]>
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. | |
d230c01b | 4 | # Generated by GNU Autoconf 2.59 for wxWidgets 2.6.1. |
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' | |
d230c01b JS |
273 | PACKAGE_VERSION='2.6.1' |
274 | PACKAGE_STRING='wxWidgets 2.6.1' | |
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" | |
ddd14b14 | 316 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS 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 ac_ct_AR ac_ct_STRIP 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 AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_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_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_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_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_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 DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS' |
a848cd7e SC |
317 | ac_subst_files='' |
318 | ||
319 | # Initialize some variables set by options. | |
320 | ac_init_help= | |
321 | ac_init_version=false | |
322 | # The variables have the same names as the options, with | |
323 | # dashes changed to underlines. | |
324 | cache_file=/dev/null | |
325 | exec_prefix=NONE | |
326 | no_create= | |
327 | no_recursion= | |
328 | prefix=NONE | |
329 | program_prefix=NONE | |
330 | program_suffix=NONE | |
331 | program_transform_name=s,x,x, | |
332 | silent= | |
333 | site= | |
334 | srcdir= | |
335 | verbose= | |
336 | x_includes=NONE | |
337 | x_libraries=NONE | |
338 | ||
339 | # Installation directory options. | |
340 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
341 | # and all the variables that are supposed to be based on exec_prefix | |
342 | # by default will actually change. | |
343 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
344 | bindir='${exec_prefix}/bin' | |
345 | sbindir='${exec_prefix}/sbin' | |
346 | libexecdir='${exec_prefix}/libexec' | |
347 | datadir='${prefix}/share' | |
348 | sysconfdir='${prefix}/etc' | |
349 | sharedstatedir='${prefix}/com' | |
350 | localstatedir='${prefix}/var' | |
351 | libdir='${exec_prefix}/lib' | |
352 | includedir='${prefix}/include' | |
353 | oldincludedir='/usr/include' | |
354 | infodir='${prefix}/info' | |
355 | mandir='${prefix}/man' | |
356 | ||
357 | ac_prev= | |
358 | for ac_option | |
359 | do | |
360 | # If the previous option needs an argument, assign it. | |
361 | if test -n "$ac_prev"; then | |
362 | eval "$ac_prev=\$ac_option" | |
363 | ac_prev= | |
364 | continue | |
365 | fi | |
366 | ||
367 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
368 | ||
369 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
370 | ||
371 | case $ac_option in | |
372 | ||
373 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
374 | ac_prev=bindir ;; | |
375 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
376 | bindir=$ac_optarg ;; | |
377 | ||
378 | -build | --build | --buil | --bui | --bu) | |
379 | ac_prev=build_alias ;; | |
380 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
381 | build_alias=$ac_optarg ;; | |
382 | ||
383 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
384 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
385 | ac_prev=cache_file ;; | |
386 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
387 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
388 | cache_file=$ac_optarg ;; | |
389 | ||
390 | --config-cache | -C) | |
391 | cache_file=config.cache ;; | |
392 | ||
393 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
394 | ac_prev=datadir ;; | |
395 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
396 | | --da=*) | |
397 | datadir=$ac_optarg ;; | |
398 | ||
399 | -disable-* | --disable-*) | |
400 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
401 | # Reject names that are not valid shell variable names. | |
402 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
403 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
404 | { (exit 1); exit 1; }; } | |
405 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
406 | eval "enable_$ac_feature=no" ;; | |
407 | ||
408 | -enable-* | --enable-*) | |
409 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
410 | # Reject names that are not valid shell variable names. | |
411 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
412 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
413 | { (exit 1); exit 1; }; } | |
414 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
415 | case $ac_option in | |
416 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
417 | *) ac_optarg=yes ;; | |
418 | esac | |
419 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
420 | ||
421 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
422 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
423 | | --exec | --exe | --ex) | |
424 | ac_prev=exec_prefix ;; | |
425 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
426 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
427 | | --exec=* | --exe=* | --ex=*) | |
428 | exec_prefix=$ac_optarg ;; | |
429 | ||
430 | -gas | --gas | --ga | --g) | |
431 | # Obsolete; use --with-gas. | |
432 | with_gas=yes ;; | |
433 | ||
434 | -help | --help | --hel | --he | -h) | |
435 | ac_init_help=long ;; | |
436 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
437 | ac_init_help=recursive ;; | |
438 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
439 | ac_init_help=short ;; | |
440 | ||
441 | -host | --host | --hos | --ho) | |
442 | ac_prev=host_alias ;; | |
443 | -host=* | --host=* | --hos=* | --ho=*) | |
444 | host_alias=$ac_optarg ;; | |
445 | ||
446 | -includedir | --includedir | --includedi | --included | --include \ | |
447 | | --includ | --inclu | --incl | --inc) | |
448 | ac_prev=includedir ;; | |
449 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
450 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
451 | includedir=$ac_optarg ;; | |
452 | ||
453 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
454 | ac_prev=infodir ;; | |
455 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
456 | infodir=$ac_optarg ;; | |
457 | ||
458 | -libdir | --libdir | --libdi | --libd) | |
459 | ac_prev=libdir ;; | |
460 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
461 | libdir=$ac_optarg ;; | |
462 | ||
463 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
464 | | --libexe | --libex | --libe) | |
465 | ac_prev=libexecdir ;; | |
466 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
467 | | --libexe=* | --libex=* | --libe=*) | |
468 | libexecdir=$ac_optarg ;; | |
469 | ||
470 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
471 | | --localstate | --localstat | --localsta | --localst \ | |
472 | | --locals | --local | --loca | --loc | --lo) | |
473 | ac_prev=localstatedir ;; | |
474 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
475 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
476 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
477 | localstatedir=$ac_optarg ;; | |
478 | ||
479 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
480 | ac_prev=mandir ;; | |
481 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
482 | mandir=$ac_optarg ;; | |
483 | ||
484 | -nfp | --nfp | --nf) | |
485 | # Obsolete; use --without-fp. | |
486 | with_fp=no ;; | |
487 | ||
488 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
489 | | --no-cr | --no-c | -n) | |
490 | no_create=yes ;; | |
491 | ||
492 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
493 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
494 | no_recursion=yes ;; | |
495 | ||
496 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
497 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
498 | | --oldin | --oldi | --old | --ol | --o) | |
499 | ac_prev=oldincludedir ;; | |
500 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
501 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
502 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
503 | oldincludedir=$ac_optarg ;; | |
504 | ||
505 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
506 | ac_prev=prefix ;; | |
507 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
508 | prefix=$ac_optarg ;; | |
509 | ||
510 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
511 | | --program-pre | --program-pr | --program-p) | |
512 | ac_prev=program_prefix ;; | |
513 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
514 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
515 | program_prefix=$ac_optarg ;; | |
516 | ||
517 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
518 | | --program-suf | --program-su | --program-s) | |
519 | ac_prev=program_suffix ;; | |
520 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
521 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
522 | program_suffix=$ac_optarg ;; | |
523 | ||
524 | -program-transform-name | --program-transform-name \ | |
525 | | --program-transform-nam | --program-transform-na \ | |
526 | | --program-transform-n | --program-transform- \ | |
527 | | --program-transform | --program-transfor \ | |
528 | | --program-transfo | --program-transf \ | |
529 | | --program-trans | --program-tran \ | |
530 | | --progr-tra | --program-tr | --program-t) | |
531 | ac_prev=program_transform_name ;; | |
532 | -program-transform-name=* | --program-transform-name=* \ | |
533 | | --program-transform-nam=* | --program-transform-na=* \ | |
534 | | --program-transform-n=* | --program-transform-=* \ | |
535 | | --program-transform=* | --program-transfor=* \ | |
536 | | --program-transfo=* | --program-transf=* \ | |
537 | | --program-trans=* | --program-tran=* \ | |
538 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
539 | program_transform_name=$ac_optarg ;; | |
540 | ||
541 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
542 | | -silent | --silent | --silen | --sile | --sil) | |
543 | silent=yes ;; | |
544 | ||
545 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
546 | ac_prev=sbindir ;; | |
547 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
548 | | --sbi=* | --sb=*) | |
549 | sbindir=$ac_optarg ;; | |
550 | ||
551 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
552 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
553 | | --sharedst | --shareds | --shared | --share | --shar \ | |
554 | | --sha | --sh) | |
555 | ac_prev=sharedstatedir ;; | |
556 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
557 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
558 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
559 | | --sha=* | --sh=*) | |
560 | sharedstatedir=$ac_optarg ;; | |
561 | ||
562 | -site | --site | --sit) | |
563 | ac_prev=site ;; | |
564 | -site=* | --site=* | --sit=*) | |
565 | site=$ac_optarg ;; | |
566 | ||
567 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
568 | ac_prev=srcdir ;; | |
569 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
570 | srcdir=$ac_optarg ;; | |
571 | ||
572 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
573 | | --syscon | --sysco | --sysc | --sys | --sy) | |
574 | ac_prev=sysconfdir ;; | |
575 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
576 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
577 | sysconfdir=$ac_optarg ;; | |
578 | ||
579 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
580 | ac_prev=target_alias ;; | |
581 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
582 | target_alias=$ac_optarg ;; | |
583 | ||
584 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
585 | verbose=yes ;; | |
586 | ||
587 | -version | --version | --versio | --versi | --vers | -V) | |
588 | ac_init_version=: ;; | |
589 | ||
590 | -with-* | --with-*) | |
591 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
592 | # Reject names that are not valid shell variable names. | |
593 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
594 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
595 | { (exit 1); exit 1; }; } | |
596 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
597 | case $ac_option in | |
598 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
599 | *) ac_optarg=yes ;; | |
600 | esac | |
601 | eval "with_$ac_package='$ac_optarg'" ;; | |
602 | ||
603 | -without-* | --without-*) | |
604 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
605 | # Reject names that are not valid shell variable names. | |
606 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
607 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
608 | { (exit 1); exit 1; }; } | |
609 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
610 | eval "with_$ac_package=no" ;; | |
611 | ||
612 | --x) | |
613 | # Obsolete; use --with-x. | |
614 | with_x=yes ;; | |
615 | ||
616 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
617 | | --x-incl | --x-inc | --x-in | --x-i) | |
618 | ac_prev=x_includes ;; | |
619 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
620 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
621 | x_includes=$ac_optarg ;; | |
622 | ||
623 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
624 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
625 | ac_prev=x_libraries ;; | |
626 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
627 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
628 | x_libraries=$ac_optarg ;; | |
629 | ||
630 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
631 | Try \`$0 --help' for more information." >&2 | |
632 | { (exit 1); exit 1; }; } | |
633 | ;; | |
634 | ||
635 | *=*) | |
636 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
637 | # Reject names that are not valid shell variable names. | |
638 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
639 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
640 | { (exit 1); exit 1; }; } | |
641 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
642 | eval "$ac_envvar='$ac_optarg'" | |
643 | export $ac_envvar ;; | |
644 | ||
645 | *) | |
646 | # FIXME: should be removed in autoconf 3.0. | |
647 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
648 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
649 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
650 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
651 | ;; | |
652 | ||
653 | esac | |
654 | done | |
655 | ||
656 | if test -n "$ac_prev"; then | |
657 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
658 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
659 | { (exit 1); exit 1; }; } | |
660 | fi | |
661 | ||
662 | # Be sure to have absolute paths. | |
663 | for ac_var in exec_prefix prefix | |
664 | do | |
665 | eval ac_val=$`echo $ac_var` | |
666 | case $ac_val in | |
667 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
668 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
669 | { (exit 1); exit 1; }; };; | |
670 | esac | |
671 | done | |
672 | ||
673 | # Be sure to have absolute paths. | |
674 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
ac1cb8d3 | 675 | localstatedir libdir includedir oldincludedir infodir mandir |
a848cd7e SC |
676 | do |
677 | eval ac_val=$`echo $ac_var` | |
678 | case $ac_val in | |
679 | [\\/$]* | ?:[\\/]* ) ;; | |
680 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
681 | { (exit 1); exit 1; }; };; | |
682 | esac | |
683 | done | |
684 | ||
685 | # There might be people who depend on the old broken behavior: `$host' | |
686 | # used to hold the argument of --host etc. | |
687 | # FIXME: To remove some day. | |
688 | build=$build_alias | |
689 | host=$host_alias | |
690 | target=$target_alias | |
691 | ||
692 | # FIXME: To remove some day. | |
693 | if test "x$host_alias" != x; then | |
694 | if test "x$build_alias" = x; then | |
695 | cross_compiling=maybe | |
696 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
697 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
698 | elif test "x$build_alias" != "x$host_alias"; then | |
699 | cross_compiling=yes | |
700 | fi | |
701 | fi | |
702 | ||
703 | ac_tool_prefix= | |
704 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
705 | ||
706 | test "$silent" = yes && exec 6>/dev/null | |
707 | ||
708 | ||
709 | # Find the source files, if location was not specified. | |
710 | if test -z "$srcdir"; then | |
711 | ac_srcdir_defaulted=yes | |
712 | # Try the directory containing this script, then its parent. | |
713 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
714 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
715 | X"$0" : 'X\(//\)[^/]' \| \ |
716 | X"$0" : 'X\(//\)$' \| \ | |
717 | X"$0" : 'X\(/\)' \| \ | |
718 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
719 | echo X"$0" | |
720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
721 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
722 | /^X\(\/\/\)$/{ s//\1/; q; } | |
723 | /^X\(\/\).*/{ s//\1/; q; } | |
724 | s/.*/./; q'` | |
725 | srcdir=$ac_confdir | |
726 | if test ! -r $srcdir/$ac_unique_file; then | |
727 | srcdir=.. | |
728 | fi | |
729 | else | |
730 | ac_srcdir_defaulted=no | |
731 | fi | |
732 | if test ! -r $srcdir/$ac_unique_file; then | |
733 | if test "$ac_srcdir_defaulted" = yes; then | |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
735 | { (exit 1); exit 1; }; } | |
736 | else | |
737 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
738 | { (exit 1); exit 1; }; } | |
739 | fi | |
740 | fi | |
741 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
742 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
743 | { (exit 1); exit 1; }; } | |
744 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
745 | ac_env_build_alias_set=${build_alias+set} | |
746 | ac_env_build_alias_value=$build_alias | |
747 | ac_cv_env_build_alias_set=${build_alias+set} | |
748 | ac_cv_env_build_alias_value=$build_alias | |
749 | ac_env_host_alias_set=${host_alias+set} | |
750 | ac_env_host_alias_value=$host_alias | |
751 | ac_cv_env_host_alias_set=${host_alias+set} | |
752 | ac_cv_env_host_alias_value=$host_alias | |
753 | ac_env_target_alias_set=${target_alias+set} | |
754 | ac_env_target_alias_value=$target_alias | |
755 | ac_cv_env_target_alias_set=${target_alias+set} | |
756 | ac_cv_env_target_alias_value=$target_alias | |
757 | ac_env_CC_set=${CC+set} | |
758 | ac_env_CC_value=$CC | |
759 | ac_cv_env_CC_set=${CC+set} | |
760 | ac_cv_env_CC_value=$CC | |
761 | ac_env_CFLAGS_set=${CFLAGS+set} | |
762 | ac_env_CFLAGS_value=$CFLAGS | |
763 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
764 | ac_cv_env_CFLAGS_value=$CFLAGS | |
765 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
766 | ac_env_LDFLAGS_value=$LDFLAGS | |
767 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
768 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
769 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
770 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
771 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
772 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
773 | ac_env_CPP_set=${CPP+set} | |
774 | ac_env_CPP_value=$CPP | |
775 | ac_cv_env_CPP_set=${CPP+set} | |
776 | ac_cv_env_CPP_value=$CPP | |
777 | ac_env_CXX_set=${CXX+set} | |
778 | ac_env_CXX_value=$CXX | |
779 | ac_cv_env_CXX_set=${CXX+set} | |
780 | ac_cv_env_CXX_value=$CXX | |
781 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
782 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
783 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
784 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
785 | ac_env_CXXCPP_set=${CXXCPP+set} | |
786 | ac_env_CXXCPP_value=$CXXCPP | |
787 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
788 | ac_cv_env_CXXCPP_value=$CXXCPP | |
789 | ||
790 | # | |
791 | # Report the --help message. | |
792 | # | |
793 | if test "$ac_init_help" = "long"; then | |
794 | # Omit some internal or obsolete options to make the list less imposing. | |
795 | # This message is too long to be a string in the A/UX 3.1 sh. | |
796 | cat <<_ACEOF | |
d230c01b | 797 | \`configure' configures wxWidgets 2.6.1 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 | |
d230c01b | 863 | short | recursive ) echo "Configuration of wxWidgets 2.6.1:";; |
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 | |
77ffb593 JS |
892 | --enable-compat22 enable wxWidgets 2.2 compatibility |
893 | --disable-compat24 disable wxWidgets 2.4 compatibility | |
ffa0583f | 894 | --disable-rpath disable use of rpath for uninstalled builds |
a848cd7e SC |
895 | --enable-intl use internationalization system |
896 | --enable-config use wxConfig (and derived) classes | |
897 | --enable-protocols use wxProtocol and derived classes | |
898 | --enable-ftp use wxFTP (requires wxProtocol | |
899 | --enable-http use wxHTTP (requires wxProtocol | |
900 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
901 | --enable-sockets use socket/network classes | |
902 | --enable-ole use OLE classes (Win32 only) | |
903 | --enable-dataobj use data object classes | |
904 | --enable-ipc use interprocess communication (wxSocket etc.) | |
905 | --enable-apple_ieee use the Apple IEEE codec | |
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 |
a848cd7e SC |
1032 | --enable-metafiles use wxMetaFile (Windows only) |
1033 | --enable-dragimage use wxDragImage | |
1034 | --enable-accessibility enable accessibility support | |
1035 | --enable-palette use wxPalette class | |
1036 | --enable-image use wxImage class | |
1037 | --enable-gif use gif images (GIF file format) | |
1038 | --enable-pcx use pcx images (PCX file format) | |
1039 | --enable-iff use iff images (IFF file format) | |
1040 | --enable-pnm use pnm images (PNM file format) | |
1041 | --enable-xpm use xpm images (XPM file format) | |
1042 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1043 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1044 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1045 | --disable-largefile omit support for large files | |
1046 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1047 | --disable-gtktest Do not try to compile and run a test GTK program | |
1048 | --disable-sdltest Do not try to compile and run a test SDL program | |
1049 | --enable-omf use OMF object format (OS/2) | |
ebee3cd0 VS |
1050 | --disable-precomp-headers |
1051 | don't use precompiled headers even if compiler can | |
a848cd7e SC |
1052 | |
1053 | Optional Packages: | |
1054 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1055 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
f34ca037 | 1056 | --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any" |
a848cd7e SC |
1057 | --with-motif use Motif/Lesstif |
1058 | --with-mac use Mac OS X | |
1059 | --with-cocoa use Cocoa | |
1060 | --with-wine use Wine | |
1061 | --with-msw use MS-Windows | |
1062 | --with-pm use OS/2 Presentation Manager | |
1063 | --with-mgl use SciTech MGL | |
1064 | --with-microwin use MicroWindows | |
1065 | --with-x11 use X11 | |
1066 | --with-libpng use libpng (PNG image format) | |
1067 | --with-libjpeg use libjpeg (JPEG file format) | |
1068 | --with-libtiff use libtiff (TIFF file format) | |
1069 | --with-libxpm use libxpm (XPM file format) | |
1070 | --with-libmspack use libmspack (CHM help files loading) | |
1071 | --with-sdl use SDL for audio on Unix | |
d51253e8 | 1072 | --with-gnomeprint use GNOME print for printing under Unix |
a848cd7e SC |
1073 | --with-opengl use OpenGL (or Mesa) |
1074 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1075 | --with-regex enable support for wxRegEx class | |
1076 | --with-zlib use zlib for LZW compression | |
1077 | --with-odbc use the IODBC and wxODBC classes | |
1078 | --with-expat enable XML support using expat parser | |
ceec2216 | 1079 | --with-flavour=NAME specify a name to identify this build |
a848cd7e SC |
1080 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1081 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1082 | --with-x use the X Window System | |
1083 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1084 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1085 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1086 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1087 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1088 | ||
1089 | Some influential environment variables: | |
dcc1b6ad VS |
1090 | CC C compiler command |
1091 | CFLAGS C compiler flags | |
1092 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1093 | nonstandard directory <lib dir> | |
1094 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1095 | headers in a nonstandard directory <include dir> | |
1096 | CPP C preprocessor | |
1097 | CXX C++ compiler command | |
1098 | CXXFLAGS C++ compiler flags | |
1099 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1100 | |
1101 | Use these variables to override the choices made by `configure' or to help | |
1102 | it to find libraries and programs with nonstandard names/locations. | |
1103 | ||
77ffb593 | 1104 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1105 | _ACEOF |
1106 | fi | |
1107 | ||
1108 | if test "$ac_init_help" = "recursive"; then | |
1109 | # If there are subdirs, report their specific --help. | |
1110 | ac_popdir=`pwd` | |
1111 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1112 | test -d $ac_dir || continue | |
1113 | ac_builddir=. | |
1114 | ||
1115 | if test "$ac_dir" != .; then | |
1116 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1117 | # A "../" for each directory in $ac_dir_suffix. | |
1118 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1119 | else | |
1120 | ac_dir_suffix= ac_top_builddir= | |
1121 | fi | |
1122 | ||
1123 | case $srcdir in | |
1124 | .) # No --srcdir option. We are building in place. | |
1125 | ac_srcdir=. | |
1126 | if test -z "$ac_top_builddir"; then | |
1127 | ac_top_srcdir=. | |
1128 | else | |
1129 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1130 | fi ;; | |
1131 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1132 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1133 | ac_top_srcdir=$srcdir ;; | |
1134 | *) # Relative path. | |
1135 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1136 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1137 | esac | |
ac1cb8d3 VS |
1138 | |
1139 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1140 | # the directories may not exist. | |
1141 | case `pwd` in | |
1142 | .) ac_abs_builddir="$ac_dir";; | |
1143 | *) | |
1144 | case "$ac_dir" in | |
1145 | .) ac_abs_builddir=`pwd`;; | |
1146 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1147 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1148 | esac;; | |
1149 | esac | |
1150 | case $ac_abs_builddir in | |
1151 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1152 | *) | |
1153 | case ${ac_top_builddir}. in | |
1154 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1155 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1156 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1157 | esac;; | |
1158 | esac | |
1159 | case $ac_abs_builddir in | |
1160 | .) ac_abs_srcdir=$ac_srcdir;; | |
1161 | *) | |
1162 | case $ac_srcdir in | |
1163 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1164 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1165 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1166 | esac;; | |
1167 | esac | |
1168 | case $ac_abs_builddir in | |
1169 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1170 | *) | |
1171 | case $ac_top_srcdir in | |
1172 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1173 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1174 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1175 | esac;; | |
1176 | esac | |
a848cd7e SC |
1177 | |
1178 | cd $ac_dir | |
1179 | # Check for guested configure; otherwise get Cygnus style configure. | |
1180 | if test -f $ac_srcdir/configure.gnu; then | |
1181 | echo | |
1182 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1183 | elif test -f $ac_srcdir/configure; then | |
1184 | echo | |
1185 | $SHELL $ac_srcdir/configure --help=recursive | |
1186 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1187 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1188 | echo |
1189 | $ac_configure --help | |
1190 | else | |
1191 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1192 | fi | |
ddd14b14 | 1193 | cd $ac_popdir |
a848cd7e SC |
1194 | done |
1195 | fi | |
1196 | ||
1197 | test -n "$ac_init_help" && exit 0 | |
1198 | if $ac_init_version; then | |
1199 | cat <<\_ACEOF | |
d230c01b | 1200 | wxWidgets configure 2.6.1 |
ac1cb8d3 | 1201 | generated by GNU Autoconf 2.59 |
a848cd7e | 1202 | |
ac1cb8d3 | 1203 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1204 | This configure script is free software; the Free Software Foundation |
1205 | gives unlimited permission to copy, distribute and modify it. | |
1206 | _ACEOF | |
1207 | exit 0 | |
1208 | fi | |
1209 | exec 5>config.log | |
1210 | cat >&5 <<_ACEOF | |
1211 | This file contains any messages produced by compilers while | |
1212 | running configure, to aid debugging if configure makes a mistake. | |
1213 | ||
d230c01b | 1214 | It was created by wxWidgets $as_me 2.6.1, which was |
ac1cb8d3 | 1215 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1216 | |
1217 | $ $0 $@ | |
1218 | ||
1219 | _ACEOF | |
1220 | { | |
1221 | cat <<_ASUNAME | |
1222 | ## --------- ## | |
1223 | ## Platform. ## | |
1224 | ## --------- ## | |
1225 | ||
1226 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1227 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1228 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1229 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1230 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1231 | ||
1232 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1233 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1234 | ||
1235 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1236 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1237 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1238 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1239 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1240 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1241 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1242 | ||
1243 | _ASUNAME | |
1244 | ||
1245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1246 | for as_dir in $PATH | |
1247 | do | |
1248 | IFS=$as_save_IFS | |
1249 | test -z "$as_dir" && as_dir=. | |
1250 | echo "PATH: $as_dir" | |
1251 | done | |
1252 | ||
1253 | } >&5 | |
1254 | ||
1255 | cat >&5 <<_ACEOF | |
1256 | ||
1257 | ||
1258 | ## ----------- ## | |
1259 | ## Core tests. ## | |
1260 | ## ----------- ## | |
1261 | ||
1262 | _ACEOF | |
1263 | ||
1264 | ||
1265 | # Keep a trace of the command line. | |
1266 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1267 | # Strip out --silent because we don't want to record it for future runs. | |
1268 | # Also quote any args containing shell meta-characters. | |
1269 | # Make two passes to allow for proper duplicate-argument suppression. | |
1270 | ac_configure_args= | |
1271 | ac_configure_args0= | |
1272 | ac_configure_args1= | |
1273 | ac_sep= | |
1274 | ac_must_keep_next=false | |
1275 | for ac_pass in 1 2 | |
1276 | do | |
1277 | for ac_arg | |
1278 | do | |
1279 | case $ac_arg in | |
1280 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1281 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1282 | | -silent | --silent | --silen | --sile | --sil) | |
1283 | continue ;; | |
1284 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1285 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1286 | esac | |
1287 | case $ac_pass in | |
1288 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1289 | 2) | |
1290 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1291 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1292 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1293 | else |
ac1cb8d3 VS |
1294 | case $ac_arg in |
1295 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1296 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1297 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1298 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1299 | case "$ac_configure_args0 " in | |
1300 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1301 | esac | |
1302 | ;; | |
1303 | -* ) ac_must_keep_next=true ;; | |
1304 | esac | |
a848cd7e SC |
1305 | fi |
1306 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1307 | # Get rid of the leading space. | |
1308 | ac_sep=" " | |
1309 | ;; | |
1310 | esac | |
1311 | done | |
1312 | done | |
1313 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1314 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1315 | ||
1316 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1317 | # config.log. We remove comments because anyway the quotes in there | |
1318 | # would cause problems or look ugly. | |
1319 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1320 | # such as our DU 5.0 friend, will then `close' the trap. | |
1321 | trap 'exit_status=$? | |
1322 | # Save into config.log some information that might help in debugging. | |
1323 | { | |
1324 | echo | |
1325 | ||
1326 | cat <<\_ASBOX | |
1327 | ## ---------------- ## | |
1328 | ## Cache variables. ## | |
1329 | ## ---------------- ## | |
1330 | _ASBOX | |
1331 | echo | |
1332 | # The following way of writing the cache mishandles newlines in values, | |
1333 | { | |
1334 | (set) 2>&1 | | |
1335 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1336 | *ac_space=\ *) | |
1337 | sed -n \ | |
ac1cb8d3 VS |
1338 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1339 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1340 | ;; |
1341 | *) | |
1342 | sed -n \ | |
ac1cb8d3 | 1343 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1344 | ;; |
1345 | esac; | |
1346 | } | |
1347 | echo | |
1348 | ||
1349 | cat <<\_ASBOX | |
1350 | ## ----------------- ## | |
1351 | ## Output variables. ## | |
1352 | ## ----------------- ## | |
1353 | _ASBOX | |
1354 | echo | |
1355 | for ac_var in $ac_subst_vars | |
1356 | do | |
1357 | eval ac_val=$`echo $ac_var` | |
1358 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1359 | done | sort | |
1360 | echo | |
1361 | ||
1362 | if test -n "$ac_subst_files"; then | |
1363 | cat <<\_ASBOX | |
1364 | ## ------------- ## | |
1365 | ## Output files. ## | |
1366 | ## ------------- ## | |
1367 | _ASBOX | |
1368 | echo | |
1369 | for ac_var in $ac_subst_files | |
1370 | do | |
1371 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1372 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1373 | done | sort |
1374 | echo | |
1375 | fi | |
1376 | ||
1377 | if test -s confdefs.h; then | |
1378 | cat <<\_ASBOX | |
1379 | ## ----------- ## | |
1380 | ## confdefs.h. ## | |
1381 | ## ----------- ## | |
1382 | _ASBOX | |
1383 | echo | |
1384 | sed "/^$/d" confdefs.h | sort | |
1385 | echo | |
1386 | fi | |
1387 | test "$ac_signal" != 0 && | |
1388 | echo "$as_me: caught signal $ac_signal" | |
1389 | echo "$as_me: exit $exit_status" | |
1390 | } >&5 | |
ac1cb8d3 | 1391 | rm -f core *.core && |
a848cd7e SC |
1392 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1393 | exit $exit_status | |
1394 | ' 0 | |
1395 | for ac_signal in 1 2 13 15; do | |
1396 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1397 | done | |
1398 | ac_signal=0 | |
1399 | ||
1400 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1401 | rm -rf conftest* confdefs.h | |
1402 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1403 | echo >confdefs.h | |
1404 | ||
1405 | # Predefined preprocessor variables. | |
1406 | ||
1407 | cat >>confdefs.h <<_ACEOF | |
1408 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1409 | _ACEOF | |
1410 | ||
1411 | ||
1412 | cat >>confdefs.h <<_ACEOF | |
1413 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1414 | _ACEOF | |
1415 | ||
1416 | ||
1417 | cat >>confdefs.h <<_ACEOF | |
1418 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1419 | _ACEOF | |
1420 | ||
1421 | ||
1422 | cat >>confdefs.h <<_ACEOF | |
1423 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1424 | _ACEOF | |
1425 | ||
1426 | ||
1427 | cat >>confdefs.h <<_ACEOF | |
1428 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1429 | _ACEOF | |
1430 | ||
1431 | ||
1432 | # Let the site file select an alternate cache file if it wants to. | |
1433 | # Prefer explicitly selected file to automatically selected ones. | |
1434 | if test -z "$CONFIG_SITE"; then | |
1435 | if test "x$prefix" != xNONE; then | |
1436 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1437 | else | |
1438 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1439 | fi | |
1440 | fi | |
1441 | for ac_site_file in $CONFIG_SITE; do | |
1442 | if test -r "$ac_site_file"; then | |
1443 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1444 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1445 | sed 's/^/| /' "$ac_site_file" >&5 | |
1446 | . "$ac_site_file" | |
1447 | fi | |
1448 | done | |
1449 | ||
1450 | if test -r "$cache_file"; then | |
1451 | # Some versions of bash will fail to source /dev/null (special | |
1452 | # files actually), so we avoid doing that. | |
1453 | if test -f "$cache_file"; then | |
1454 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1455 | echo "$as_me: loading cache $cache_file" >&6;} | |
1456 | case $cache_file in | |
1457 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1458 | *) . ./$cache_file;; | |
1459 | esac | |
1460 | fi | |
1461 | else | |
1462 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1463 | echo "$as_me: creating cache $cache_file" >&6;} | |
1464 | >$cache_file | |
1465 | fi | |
1466 | ||
1467 | # Check that the precious variables saved in the cache have kept the same | |
1468 | # value. | |
1469 | ac_cache_corrupted=false | |
1470 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1471 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1472 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1473 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1474 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1475 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1476 | case $ac_old_set,$ac_new_set in | |
1477 | set,) | |
1478 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1479 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1480 | ac_cache_corrupted=: ;; | |
1481 | ,set) | |
1482 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1483 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1484 | ac_cache_corrupted=: ;; | |
1485 | ,);; | |
1486 | *) | |
1487 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1488 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1489 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1490 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1491 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1492 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1493 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1494 | ac_cache_corrupted=: |
a848cd7e SC |
1495 | fi;; |
1496 | esac | |
1497 | # Pass precious variables to config.status. | |
1498 | if test "$ac_new_set" = set; then | |
1499 | case $ac_new_val in | |
1500 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1501 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1502 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1503 | esac | |
1504 | case " $ac_configure_args " in | |
1505 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1506 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1507 | esac | |
1508 | fi | |
1509 | done | |
1510 | if $ac_cache_corrupted; then | |
1511 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1512 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1513 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1514 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1515 | { (exit 1); exit 1; }; } | |
1516 | fi | |
1517 | ||
1518 | ac_ext=c | |
1519 | ac_cpp='$CPP $CPPFLAGS' | |
1520 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1521 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1522 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1523 | ||
1524 | ||
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 | ac_aux_dir= | |
1554 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1555 | if test -f $ac_dir/install-sh; then | |
1556 | ac_aux_dir=$ac_dir | |
1557 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1558 | break | |
1559 | elif test -f $ac_dir/install.sh; then | |
1560 | ac_aux_dir=$ac_dir | |
1561 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1562 | break | |
1563 | elif test -f $ac_dir/shtool; then | |
1564 | ac_aux_dir=$ac_dir | |
1565 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1566 | break | |
1567 | fi | |
1568 | done | |
1569 | if test -z "$ac_aux_dir"; then | |
1570 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1571 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1572 | { (exit 1); exit 1; }; } | |
1573 | fi | |
1574 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1575 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1576 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1577 | ||
1578 | # Make sure we can run config.sub. | |
1579 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1580 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1581 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1582 | { (exit 1); exit 1; }; } | |
1583 | ||
1584 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1585 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1586 | if test "${ac_cv_build+set}" = set; then | |
1587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1588 | else | |
1589 | ac_cv_build_alias=$build_alias | |
1590 | test -z "$ac_cv_build_alias" && | |
1591 | ac_cv_build_alias=`$ac_config_guess` | |
1592 | test -z "$ac_cv_build_alias" && | |
1593 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1594 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1595 | { (exit 1); exit 1; }; } | |
1596 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1597 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1598 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1599 | { (exit 1); exit 1; }; } | |
1600 | ||
1601 | fi | |
1602 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1603 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1604 | build=$ac_cv_build | |
1605 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1606 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1607 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1608 | ||
1609 | ||
1610 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1611 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1612 | if test "${ac_cv_host+set}" = set; then | |
1613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1614 | else | |
1615 | ac_cv_host_alias=$host_alias | |
1616 | test -z "$ac_cv_host_alias" && | |
1617 | ac_cv_host_alias=$ac_cv_build_alias | |
1618 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1619 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1620 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1621 | { (exit 1); exit 1; }; } | |
1622 | ||
1623 | fi | |
1624 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1625 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1626 | host=$ac_cv_host | |
1627 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1628 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1629 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1630 | ||
1631 | ||
1632 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1633 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1634 | if test "${ac_cv_target+set}" = set; then | |
1635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1636 | else | |
1637 | ac_cv_target_alias=$target_alias | |
1638 | test "x$ac_cv_target_alias" = "x" && | |
1639 | ac_cv_target_alias=$ac_cv_host_alias | |
1640 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1641 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1642 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1643 | { (exit 1); exit 1; }; } | |
1644 | ||
1645 | fi | |
1646 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1647 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1648 | target=$ac_cv_target | |
1649 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1650 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1651 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1652 | ||
1653 | ||
1654 | # The aliases save the names the user supplied, while $host etc. | |
1655 | # will get canonicalized. | |
1656 | test -n "$target_alias" && | |
1657 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1658 | NONENONEs,x,x, && | |
1659 | program_prefix=${target_alias}- | |
1660 | ||
1661 | ||
1662 | ||
ceec2216 | 1663 | wx_major_version_number=2 |
e0d84535 | 1664 | wx_minor_version_number=6 |
7a070ef1 | 1665 | wx_release_number=1 |
063c96c1 | 1666 | wx_subrelease_number=1 |
a848cd7e | 1667 | |
ceec2216 RL |
1668 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
1669 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
1670 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 1671 | |
ceec2216 | 1672 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 1673 | |
a848cd7e SC |
1674 | |
1675 | ||
1676 | ||
1677 | USE_UNIX=1 | |
1678 | USE_OS2=0 | |
1679 | USE_WIN32=0 | |
1680 | USE_DOS=0 | |
1681 | USE_BEOS=0 | |
1682 | USE_MAC=0 | |
1683 | ||
1684 | USE_AIX= | |
1685 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1686 | USE_GNU= USE_HPUX= | |
1687 | USE_LINUX= | |
1688 | USE_NETBSD= | |
1689 | USE_OPENBSD= | |
1690 | USE_OSF= USE_SGI= | |
1691 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1692 | USE_ULTRIX= | |
1693 | USE_UNIXWARE= | |
1694 | ||
1695 | USE_ALPHA= | |
1696 | ||
1697 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1698 | ||
1699 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1700 | ||
1701 | DEFAULT_wxUSE_COCOA=0 | |
1702 | DEFAULT_wxUSE_GTK=0 | |
1703 | DEFAULT_wxUSE_MAC=0 | |
1704 | DEFAULT_wxUSE_MGL=0 | |
1705 | DEFAULT_wxUSE_MICROWIN=0 | |
1706 | DEFAULT_wxUSE_MOTIF=0 | |
1707 | DEFAULT_wxUSE_MSW=0 | |
1708 | DEFAULT_wxUSE_PM=0 | |
1709 | DEFAULT_wxUSE_X11=0 | |
1710 | ||
1711 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1712 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1713 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1714 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1715 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1716 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1717 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1718 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1719 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1720 | ||
1721 | PROGRAM_EXT= | |
1722 | SO_SUFFIX=so | |
1723 | SAMPLES_RPATH_FLAG= | |
1724 | SAMPLES_RPATH_POSTLINK= | |
1725 | ||
a03b8b04 RD |
1726 | DEFAULT_STD_FLAG=yes |
1727 | ||
a848cd7e SC |
1728 | case "${host}" in |
1729 | *-hp-hpux* ) | |
1730 | USE_HPUX=1 | |
1731 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1732 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1733 | SO_SUFFIX=sl | |
1734 | cat >>confdefs.h <<\_ACEOF | |
1735 | #define __HPUX__ 1 | |
1736 | _ACEOF | |
1737 | ||
1738 | ;; | |
1739 | *-*-linux* ) | |
1740 | USE_LINUX=1 | |
1741 | cat >>confdefs.h <<\_ACEOF | |
1742 | #define __LINUX__ 1 | |
1743 | _ACEOF | |
1744 | ||
1745 | TMP=`uname -m` | |
1746 | if test "x$TMP" = "xalpha"; then | |
1747 | USE_ALPHA=1 | |
1748 | cat >>confdefs.h <<\_ACEOF | |
1749 | #define __ALPHA__ 1 | |
1750 | _ACEOF | |
1751 | ||
1752 | fi | |
1753 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1754 | ;; | |
1755 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1756 | USE_GNU=1 | |
1757 | TMP=`uname -m` | |
1758 | if test "x$TMP" = "xalpha"; then | |
1759 | USE_ALPHA=1 | |
1760 | cat >>confdefs.h <<\_ACEOF | |
1761 | #define __ALPHA__ 1 | |
1762 | _ACEOF | |
1763 | ||
1764 | fi | |
1765 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1766 | ;; | |
1767 | *-*-irix5* | *-*-irix6* ) | |
1768 | USE_SGI=1 | |
1769 | USE_SVR4=1 | |
1770 | cat >>confdefs.h <<\_ACEOF | |
1771 | #define __SGI__ 1 | |
1772 | _ACEOF | |
1773 | ||
1774 | cat >>confdefs.h <<\_ACEOF | |
1775 | #define __SVR4__ 1 | |
1776 | _ACEOF | |
1777 | ||
1778 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1779 | ;; | |
1780 | *-*-solaris2* ) | |
1781 | USE_SUN=1 | |
1782 | USE_SOLARIS=1 | |
1783 | USE_SVR4=1 | |
1784 | cat >>confdefs.h <<\_ACEOF | |
1785 | #define __SUN__ 1 | |
1786 | _ACEOF | |
1787 | ||
1788 | cat >>confdefs.h <<\_ACEOF | |
1789 | #define __SOLARIS__ 1 | |
1790 | _ACEOF | |
1791 | ||
1792 | cat >>confdefs.h <<\_ACEOF | |
1793 | #define __SVR4__ 1 | |
1794 | _ACEOF | |
1795 | ||
1796 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1797 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1798 | ;; | |
1799 | *-*-sunos4* ) | |
1800 | USE_SUN=1 | |
1801 | USE_SUNOS=1 | |
1802 | USE_BSD=1 | |
1803 | cat >>confdefs.h <<\_ACEOF | |
1804 | #define __SUN__ 1 | |
1805 | _ACEOF | |
1806 | ||
1807 | cat >>confdefs.h <<\_ACEOF | |
1808 | #define __SUNOS__ 1 | |
1809 | _ACEOF | |
1810 | ||
1811 | cat >>confdefs.h <<\_ACEOF | |
1812 | #define __BSD__ 1 | |
1813 | _ACEOF | |
1814 | ||
1815 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1816 | ;; | |
1817 | *-*-freebsd*) | |
1818 | USE_BSD=1 | |
1819 | USE_FREEBSD=1 | |
1820 | cat >>confdefs.h <<\_ACEOF | |
1821 | #define __FREEBSD__ 1 | |
1822 | _ACEOF | |
1823 | ||
1824 | cat >>confdefs.h <<\_ACEOF | |
1825 | #define __BSD__ 1 | |
1826 | _ACEOF | |
1827 | ||
1828 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1829 | ;; | |
1830 | *-*-openbsd*) | |
1831 | USE_BSD=1 | |
1832 | USE_OPENBSD=1 | |
1833 | cat >>confdefs.h <<\_ACEOF | |
1834 | #define __OPENBSD__ 1 | |
1835 | _ACEOF | |
1836 | ||
1837 | cat >>confdefs.h <<\_ACEOF | |
1838 | #define __BSD__ 1 | |
1839 | _ACEOF | |
1840 | ||
1841 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1842 | ;; | |
1843 | *-*-netbsd*) | |
1844 | USE_BSD=1 | |
1845 | USE_NETBSD=1 | |
1846 | cat >>confdefs.h <<\_ACEOF | |
1847 | #define __NETBSD__ 1 | |
1848 | _ACEOF | |
1849 | ||
1850 | cat >>confdefs.h <<\_ACEOF | |
1851 | #define __BSD__ 1 | |
1852 | _ACEOF | |
1853 | ||
1854 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1855 | ;; | |
1856 | *-*-osf* ) | |
1857 | USE_ALPHA=1 | |
1858 | USE_OSF=1 | |
1859 | cat >>confdefs.h <<\_ACEOF | |
1860 | #define __ALPHA__ 1 | |
1861 | _ACEOF | |
1862 | ||
1863 | cat >>confdefs.h <<\_ACEOF | |
1864 | #define __OSF__ 1 | |
1865 | _ACEOF | |
1866 | ||
1867 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1868 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1869 | ;; | |
1870 | *-*-dgux5* ) | |
1871 | USE_ALPHA=1 | |
1872 | USE_SVR4=1 | |
1873 | cat >>confdefs.h <<\_ACEOF | |
1874 | #define __ALPHA__ 1 | |
1875 | _ACEOF | |
1876 | ||
1877 | cat >>confdefs.h <<\_ACEOF | |
1878 | #define __SVR4__ 1 | |
1879 | _ACEOF | |
1880 | ||
1881 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1882 | ;; | |
1883 | *-*-sysv5* ) | |
1884 | USE_SYSV=1 | |
1885 | USE_SVR4=1 | |
1886 | cat >>confdefs.h <<\_ACEOF | |
1887 | #define __SYSV__ 1 | |
1888 | _ACEOF | |
1889 | ||
1890 | cat >>confdefs.h <<\_ACEOF | |
1891 | #define __SVR4__ 1 | |
1892 | _ACEOF | |
1893 | ||
1894 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1895 | ;; | |
1896 | *-*-aix* ) | |
1897 | USE_AIX=1 | |
1898 | USE_SYSV=1 | |
1899 | USE_SVR4=1 | |
1900 | SO_SUFFIX=a | |
1901 | cat >>confdefs.h <<\_ACEOF | |
1902 | #define __AIX__ 1 | |
1903 | _ACEOF | |
1904 | ||
1905 | cat >>confdefs.h <<\_ACEOF | |
1906 | #define __SYSV__ 1 | |
1907 | _ACEOF | |
1908 | ||
1909 | cat >>confdefs.h <<\_ACEOF | |
1910 | #define __SVR4__ 1 | |
1911 | _ACEOF | |
1912 | ||
1913 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1914 | ;; | |
1915 | ||
1916 | *-*-*UnixWare*) | |
1917 | USE_SYSV=1 | |
1918 | USE_SVR4=1 | |
1919 | USE_UNIXWARE=1 | |
1920 | cat >>confdefs.h <<\_ACEOF | |
1921 | #define __UNIXWARE__ 1 | |
1922 | _ACEOF | |
1923 | ||
1924 | ;; | |
1925 | ||
1926 | *-*-cygwin* | *-*-mingw32* ) | |
1927 | SO_SUFFIX=dll | |
1928 | PROGRAM_EXT=".exe" | |
1929 | RESCOMP=windres | |
1930 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
a03b8b04 | 1931 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
1932 | ;; |
1933 | ||
1934 | *-pc-msdosdjgpp ) | |
1935 | USE_UNIX=0 | |
1936 | USE_DOS=1 | |
1937 | cat >>confdefs.h <<\_ACEOF | |
1938 | #define __DOS__ 1 | |
1939 | _ACEOF | |
1940 | ||
1941 | PROGRAM_EXT=".exe" | |
1942 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
a848cd7e SC |
1943 | ;; |
1944 | ||
1945 | *-pc-os2_emx | *-pc-os2-emx ) | |
1946 | cat >>confdefs.h <<\_ACEOF | |
1947 | #define __EMX__ 1 | |
1948 | _ACEOF | |
1949 | ||
1950 | USE_OS2=1 | |
1951 | cat >>confdefs.h <<\_ACEOF | |
1952 | #define __OS2__ 1 | |
1953 | _ACEOF | |
1954 | ||
1955 | PROGRAM_EXT=".exe" | |
1956 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1957 | CXX=gcc | |
1958 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1959 | ac_executable_extensions=".exe" | |
1960 | export ac_executable_extensions | |
1961 | ac_save_IFS="$IFS" | |
1962 | IFS='\\' | |
1963 | ac_TEMP_PATH= | |
1964 | for ac_dir in $PATH; do | |
1965 | IFS=$ac_save_IFS | |
1966 | if test -z "$ac_TEMP_PATH"; then | |
1967 | ac_TEMP_PATH="$ac_dir" | |
1968 | else | |
1969 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1970 | fi | |
1971 | done | |
1972 | export PATH="$ac_TEMP_PATH" | |
1973 | unset ac_TEMP_PATH | |
a03b8b04 | 1974 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
1975 | ;; |
1976 | ||
1977 | powerpc-*-darwin* ) | |
1978 | USE_BSD=1 | |
1979 | USE_DARWIN=1 | |
1980 | SO_SUFFIX=dylib | |
1981 | cat >>confdefs.h <<\_ACEOF | |
1982 | #define __BSD__ 1 | |
1983 | _ACEOF | |
1984 | ||
1985 | cat >>confdefs.h <<\_ACEOF | |
1986 | #define __DARWIN__ 1 | |
a848cd7e SC |
1987 | _ACEOF |
1988 | ||
1989 | cat >>confdefs.h <<\_ACEOF | |
1990 | #define TARGET_CARBON 1 | |
1991 | _ACEOF | |
1992 | ||
1993 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 1994 | DEFAULT_STD_FLAG=no |
a848cd7e | 1995 | ;; |
1e9e8aba DE |
1996 | powerpc-apple-macos* ) |
1997 | USE_UNIX=0 | |
1998 | ac_cv_c_bigendian=yes | |
1999 | SO_SUFFIX=shlib | |
2000 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 2001 | DEFAULT_STD_FLAG=no |
1e9e8aba | 2002 | ;; |
a848cd7e SC |
2003 | |
2004 | *-*-beos* ) | |
2005 | USE_BEOS=1 | |
2006 | cat >>confdefs.h <<\_ACEOF | |
2007 | #define __BEOS__ 1 | |
2008 | _ACEOF | |
2009 | ||
2010 | ;; | |
2011 | ||
2012 | *) | |
2013 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
2014 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
2015 | { (exit 1); exit 1; }; } | |
2016 | esac | |
2017 | ||
2018 | ||
2019 | ||
2020 | ||
2021 | wx_arg_cache_file="configarg.cache" | |
2022 | echo "loading argument cache $wx_arg_cache_file" | |
2023 | rm -f ${wx_arg_cache_file}.tmp | |
2024 | touch ${wx_arg_cache_file}.tmp | |
2025 | touch ${wx_arg_cache_file} | |
2026 | ||
2027 | ||
2028 | DEBUG_CONFIGURE=0 | |
2029 | if test $DEBUG_CONFIGURE = 1; then | |
2030 | DEFAULT_wxUSE_UNIVERSAL=no | |
2031 | DEFAULT_wxUSE_STL=no | |
2032 | ||
2033 | DEFAULT_wxUSE_NANOX=no | |
2034 | ||
2035 | DEFAULT_wxUSE_THREADS=yes | |
2036 | ||
2037 | DEFAULT_wxUSE_SHARED=yes | |
2038 | DEFAULT_wxUSE_OPTIMISE=no | |
2039 | DEFAULT_wxUSE_PROFILE=no | |
2040 | DEFAULT_wxUSE_NO_DEPS=no | |
2041 | DEFAULT_wxUSE_NO_RTTI=no | |
2042 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2043 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2044 | DEFAULT_wxUSE_PERMISSIVE=no |
2045 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2046 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2047 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2048 | DEFAULT_wxUSE_MEM_TRACING=no | |
2049 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2050 | DEFAULT_wxUSE_DMALLOC=no | |
2051 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2052 | ||
2053 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2054 | DEFAULT_wxUSE_LOG=yes | |
2055 | DEFAULT_wxUSE_LOGWINDOW=no | |
2056 | DEFAULT_wxUSE_LOGGUI=no | |
2057 | DEFAULT_wxUSE_LOGDIALOG=no | |
2058 | ||
2059 | DEFAULT_wxUSE_GUI=yes | |
2060 | DEFAULT_wxUSE_CONTROLS=no | |
2061 | ||
2062 | DEFAULT_wxUSE_REGEX=no | |
2063 | DEFAULT_wxUSE_XML=no | |
2064 | DEFAULT_wxUSE_EXPAT=no | |
2065 | DEFAULT_wxUSE_ZLIB=no | |
2066 | DEFAULT_wxUSE_LIBPNG=no | |
2067 | DEFAULT_wxUSE_LIBJPEG=no | |
2068 | DEFAULT_wxUSE_LIBTIFF=no | |
2069 | DEFAULT_wxUSE_LIBXPM=no | |
2070 | DEFAULT_wxUSE_LIBMSPACK=no | |
2071 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2072 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e SC |
2073 | DEFAULT_wxUSE_ODBC=no |
2074 | DEFAULT_wxUSE_OPENGL=no | |
2075 | ||
2076 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
eaff0f0d | 2077 | DEFAULT_wxUSE_STACKWALKER=no |
36b6448c | 2078 | DEFAULT_wxUSE_DEBUGREPORT=no |
a848cd7e SC |
2079 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
2080 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
59746b65 | 2081 | DEFAULT_wxUSE_STD_STRING=no |
a848cd7e SC |
2082 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
2083 | DEFAULT_wxUSE_DATETIME=no | |
2084 | DEFAULT_wxUSE_TIMER=no | |
2085 | DEFAULT_wxUSE_STOPWATCH=no | |
2086 | DEFAULT_wxUSE_FILE=no | |
2087 | DEFAULT_wxUSE_FFILE=no | |
07158944 | 2088 | DEFAULT_wxUSE_STDPATHS=no |
a848cd7e SC |
2089 | DEFAULT_wxUSE_TEXTBUFFER=no |
2090 | DEFAULT_wxUSE_TEXTFILE=no | |
2091 | DEFAULT_wxUSE_SOUND=no | |
3b57de8b | 2092 | DEFAULT_wxUSE_MEDIACTRL=no |
a848cd7e SC |
2093 | DEFAULT_wxUSE_INTL=no |
2094 | DEFAULT_wxUSE_CONFIG=no | |
2095 | DEFAULT_wxUSE_FONTMAP=no | |
2096 | DEFAULT_wxUSE_STREAMS=no | |
2097 | DEFAULT_wxUSE_SOCKETS=no | |
2098 | DEFAULT_wxUSE_OLE=no | |
2099 | DEFAULT_wxUSE_DATAOBJ=no | |
2100 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2101 | DEFAULT_wxUSE_JOYSTICK=no | |
2102 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2103 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2104 | DEFAULT_wxUSE_LONGLONG=no | |
2105 | DEFAULT_wxUSE_GEOMETRY=no | |
2106 | ||
2107 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2108 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2109 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2110 | ||
2111 | DEFAULT_wxUSE_CLIPBOARD=no | |
2112 | DEFAULT_wxUSE_TOOLTIPS=no | |
2113 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2114 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2115 | DEFAULT_wxUSE_SPLINES=no | |
fbe2ca43 | 2116 | DEFAULT_wxUSE_MOUSEWHEEL=no |
a848cd7e | 2117 | |
8a7b1113 | 2118 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2119 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2120 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2121 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2122 | ||
2123 | DEFAULT_wxUSE_RESOURCES=no | |
2124 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2125 | DEFAULT_wxUSE_IPC=no | |
2126 | DEFAULT_wxUSE_HELP=no | |
2127 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2128 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2129 | DEFAULT_wxUSE_TREELAYOUT=no | |
2130 | DEFAULT_wxUSE_METAFILE=no | |
2131 | DEFAULT_wxUSE_MIMETYPE=no | |
2132 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2133 | DEFAULT_wxUSE_PROTOCOL=no | |
2134 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2135 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2136 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2137 | DEFAULT_wxUSE_URL=no | |
2138 | ||
2139 | DEFAULT_wxUSE_COMMONDLGS=no | |
2140 | DEFAULT_wxUSE_CHOICEDLG=no | |
2141 | DEFAULT_wxUSE_COLOURDLG=no | |
2142 | DEFAULT_wxUSE_DIRDLG=no | |
2143 | DEFAULT_wxUSE_FILEDLG=no | |
2144 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2145 | DEFAULT_wxUSE_FONTDLG=no | |
2146 | DEFAULT_wxUSE_MSGDLG=no | |
2147 | DEFAULT_wxUSE_NUMBERDLG=no | |
2148 | DEFAULT_wxUSE_TEXTDLG=no | |
2149 | DEFAULT_wxUSE_SPLASH=no | |
2150 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2151 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2152 | DEFAULT_wxUSE_WIZARDDLG=no | |
2153 | ||
2154 | DEFAULT_wxUSE_MENUS=no | |
2155 | DEFAULT_wxUSE_MINIFRAME=no | |
2156 | DEFAULT_wxUSE_HTML=no | |
9a8f0513 | 2157 | DEFAULT_wxUSE_XRC=no |
646b6ec1 | 2158 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2159 | DEFAULT_wxUSE_FILESYSTEM=no |
2160 | DEFAULT_wxUSE_FS_INET=no | |
2161 | DEFAULT_wxUSE_FS_ZIP=no | |
2162 | DEFAULT_wxUSE_BUSYINFO=no | |
9e8e867f | 2163 | DEFAULT_wxUSE_ARCHIVE_STREAMS=no |
a848cd7e | 2164 | DEFAULT_wxUSE_ZIPSTREAM=no |
a848cd7e SC |
2165 | DEFAULT_wxUSE_VALIDATORS=no |
2166 | ||
2167 | DEFAULT_wxUSE_ACCEL=no | |
2168 | DEFAULT_wxUSE_BUTTON=no | |
2169 | DEFAULT_wxUSE_BMPBUTTON=no | |
2170 | DEFAULT_wxUSE_CALCTRL=no | |
2171 | DEFAULT_wxUSE_CARET=no | |
2172 | DEFAULT_wxUSE_CHECKBOX=no | |
2173 | DEFAULT_wxUSE_CHECKLST=no | |
2174 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2175 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e | 2176 | DEFAULT_wxUSE_COMBOBOX=no |
da98e9be | 2177 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
2178 | DEFAULT_wxUSE_DISPLAY=no |
2179 | DEFAULT_wxUSE_GAUGE=no | |
2180 | DEFAULT_wxUSE_GRID=no | |
2181 | DEFAULT_wxUSE_IMAGLIST=no | |
2182 | DEFAULT_wxUSE_LISTBOOK=no | |
2183 | DEFAULT_wxUSE_LISTBOX=no | |
2184 | DEFAULT_wxUSE_LISTCTRL=no | |
2185 | DEFAULT_wxUSE_NOTEBOOK=no | |
2186 | DEFAULT_wxUSE_RADIOBOX=no | |
2187 | DEFAULT_wxUSE_RADIOBTN=no | |
2188 | DEFAULT_wxUSE_SASH=no | |
2189 | DEFAULT_wxUSE_SCROLLBAR=no | |
2190 | DEFAULT_wxUSE_SLIDER=no | |
2191 | DEFAULT_wxUSE_SPINBTN=no | |
2192 | DEFAULT_wxUSE_SPINCTRL=no | |
2193 | DEFAULT_wxUSE_SPLITTER=no | |
2194 | DEFAULT_wxUSE_STATBMP=no | |
2195 | DEFAULT_wxUSE_STATBOX=no | |
2196 | DEFAULT_wxUSE_STATLINE=no | |
2197 | DEFAULT_wxUSE_STATTEXT=no | |
2198 | DEFAULT_wxUSE_STATUSBAR=yes | |
2199 | DEFAULT_wxUSE_TABDIALOG=no | |
2200 | DEFAULT_wxUSE_TEXTCTRL=no | |
2201 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2202 | DEFAULT_wxUSE_TOOLBAR=no | |
2203 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2204 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
2205 | DEFAULT_wxUSE_TREECTRL=no | |
2206 | DEFAULT_wxUSE_POPUPWIN=no | |
2207 | DEFAULT_wxUSE_TIPWINDOW=no | |
2208 | ||
2209 | DEFAULT_wxUSE_UNICODE=no | |
2210 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2211 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2212 | ||
2213 | DEFAULT_wxUSE_PALETTE=no | |
2214 | DEFAULT_wxUSE_IMAGE=no | |
2215 | DEFAULT_wxUSE_GIF=no | |
2216 | DEFAULT_wxUSE_PCX=no | |
2217 | DEFAULT_wxUSE_PNM=no | |
2218 | DEFAULT_wxUSE_IFF=no | |
2219 | DEFAULT_wxUSE_XPM=no | |
2220 | DEFAULT_wxUSE_ICO_CUR=no | |
2221 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2222 | ||
2223 | DEFAULT_wxUSE_MONOLITHIC=no | |
2224 | DEFAULT_wxUSE_PLUGINS=no | |
2225 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2226 | else | |
2227 | DEFAULT_wxUSE_UNIVERSAL=no | |
2228 | DEFAULT_wxUSE_STL=no | |
2229 | ||
2230 | DEFAULT_wxUSE_NANOX=no | |
2231 | ||
2232 | DEFAULT_wxUSE_THREADS=yes | |
2233 | ||
2234 | DEFAULT_wxUSE_SHARED=yes | |
2235 | DEFAULT_wxUSE_OPTIMISE=yes | |
2236 | DEFAULT_wxUSE_PROFILE=no | |
2237 | DEFAULT_wxUSE_NO_DEPS=no | |
2238 | DEFAULT_wxUSE_NO_RTTI=no | |
2239 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2240 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2241 | DEFAULT_wxUSE_PERMISSIVE=no |
2242 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2243 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2244 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2245 | DEFAULT_wxUSE_MEM_TRACING=no | |
2246 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2247 | DEFAULT_wxUSE_DMALLOC=no | |
2248 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2249 | ||
2250 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2251 | DEFAULT_wxUSE_LOG=yes | |
2252 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2253 | DEFAULT_wxUSE_LOGGUI=yes | |
2254 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2255 | ||
2256 | DEFAULT_wxUSE_GUI=yes | |
2257 | ||
2258 | DEFAULT_wxUSE_REGEX=yes | |
2259 | DEFAULT_wxUSE_XML=yes | |
2260 | DEFAULT_wxUSE_EXPAT=yes | |
2261 | DEFAULT_wxUSE_ZLIB=yes | |
2262 | DEFAULT_wxUSE_LIBPNG=yes | |
2263 | DEFAULT_wxUSE_LIBJPEG=yes | |
2264 | DEFAULT_wxUSE_LIBTIFF=yes | |
2265 | DEFAULT_wxUSE_LIBXPM=yes | |
2266 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2267 | DEFAULT_wxUSE_LIBSDL=no | |
a03b8b04 | 2268 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e | 2269 | DEFAULT_wxUSE_ODBC=no |
52cb607e | 2270 | DEFAULT_wxUSE_OPENGL=no |
a848cd7e SC |
2271 | |
2272 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
eaff0f0d | 2273 | DEFAULT_wxUSE_STACKWALKER=yes |
6671c68b | 2274 | DEFAULT_wxUSE_DEBUGREPORT=yes |
a848cd7e | 2275 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
a03b8b04 RD |
2276 | DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG |
2277 | DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG | |
a848cd7e SC |
2278 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2279 | DEFAULT_wxUSE_DATETIME=yes | |
2280 | DEFAULT_wxUSE_TIMER=yes | |
2281 | DEFAULT_wxUSE_STOPWATCH=yes | |
2282 | DEFAULT_wxUSE_FILE=yes | |
2283 | DEFAULT_wxUSE_FFILE=yes | |
07158944 | 2284 | DEFAULT_wxUSE_STDPATHS=yes |
a848cd7e SC |
2285 | DEFAULT_wxUSE_TEXTBUFFER=yes |
2286 | DEFAULT_wxUSE_TEXTFILE=yes | |
2287 | DEFAULT_wxUSE_SOUND=yes | |
3b57de8b | 2288 | DEFAULT_wxUSE_MEDIACTRL=no |
a848cd7e SC |
2289 | DEFAULT_wxUSE_INTL=yes |
2290 | DEFAULT_wxUSE_CONFIG=yes | |
2291 | DEFAULT_wxUSE_FONTMAP=yes | |
2292 | DEFAULT_wxUSE_STREAMS=yes | |
2293 | DEFAULT_wxUSE_SOCKETS=yes | |
2294 | DEFAULT_wxUSE_OLE=yes | |
2295 | DEFAULT_wxUSE_DATAOBJ=yes | |
2296 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2297 | DEFAULT_wxUSE_JOYSTICK=yes | |
2298 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2299 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2300 | DEFAULT_wxUSE_LONGLONG=yes | |
2301 | DEFAULT_wxUSE_GEOMETRY=yes | |
2302 | ||
2303 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2304 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2305 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2306 | ||
2307 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2308 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2309 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2310 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2311 | DEFAULT_wxUSE_SPLINES=yes | |
fbe2ca43 | 2312 | DEFAULT_wxUSE_MOUSEWHEEL=yes |
a848cd7e | 2313 | |
8a7b1113 | 2314 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2315 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2316 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2317 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2318 | ||
2319 | DEFAULT_wxUSE_RESOURCES=no | |
2320 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2321 | DEFAULT_wxUSE_IPC=yes | |
2322 | DEFAULT_wxUSE_HELP=yes | |
2323 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2324 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2325 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2326 | DEFAULT_wxUSE_METAFILE=yes | |
2327 | DEFAULT_wxUSE_MIMETYPE=yes | |
2328 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2329 | DEFAULT_wxUSE_PROTOCOL=yes | |
2330 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2331 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2332 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2333 | DEFAULT_wxUSE_URL=yes | |
2334 | ||
2335 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2336 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2337 | DEFAULT_wxUSE_COLOURDLG=yes | |
2338 | DEFAULT_wxUSE_DIRDLG=yes | |
2339 | DEFAULT_wxUSE_FILEDLG=yes | |
2340 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2341 | DEFAULT_wxUSE_FONTDLG=yes | |
2342 | DEFAULT_wxUSE_MSGDLG=yes | |
2343 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2344 | DEFAULT_wxUSE_TEXTDLG=yes | |
2345 | DEFAULT_wxUSE_SPLASH=yes | |
2346 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2347 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2348 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2349 | ||
2350 | DEFAULT_wxUSE_MENUS=yes | |
2351 | DEFAULT_wxUSE_MINIFRAME=yes | |
2352 | DEFAULT_wxUSE_HTML=yes | |
9a8f0513 | 2353 | DEFAULT_wxUSE_XRC=yes |
646b6ec1 | 2354 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2355 | DEFAULT_wxUSE_FILESYSTEM=yes |
2356 | DEFAULT_wxUSE_FS_INET=yes | |
2357 | DEFAULT_wxUSE_FS_ZIP=yes | |
2358 | DEFAULT_wxUSE_BUSYINFO=yes | |
9e8e867f | 2359 | DEFAULT_wxUSE_ARCHIVE_STREAMS=yes |
a848cd7e | 2360 | DEFAULT_wxUSE_ZIPSTREAM=yes |
a848cd7e SC |
2361 | DEFAULT_wxUSE_VALIDATORS=yes |
2362 | ||
2363 | DEFAULT_wxUSE_ACCEL=yes | |
2364 | DEFAULT_wxUSE_BUTTON=yes | |
2365 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2366 | DEFAULT_wxUSE_CALCTRL=yes | |
2367 | DEFAULT_wxUSE_CARET=yes | |
2368 | DEFAULT_wxUSE_CHECKBOX=yes | |
2369 | DEFAULT_wxUSE_CHECKLST=yes | |
2370 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2371 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e | 2372 | DEFAULT_wxUSE_COMBOBOX=yes |
da98e9be | 2373 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
2374 | DEFAULT_wxUSE_DISPLAY=yes |
2375 | DEFAULT_wxUSE_GAUGE=yes | |
2376 | DEFAULT_wxUSE_GRID=yes | |
2377 | DEFAULT_wxUSE_IMAGLIST=yes | |
2378 | DEFAULT_wxUSE_LISTBOOK=yes | |
2379 | DEFAULT_wxUSE_LISTBOX=yes | |
2380 | DEFAULT_wxUSE_LISTCTRL=yes | |
2381 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2382 | DEFAULT_wxUSE_RADIOBOX=yes | |
2383 | DEFAULT_wxUSE_RADIOBTN=yes | |
2384 | DEFAULT_wxUSE_SASH=yes | |
2385 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2386 | DEFAULT_wxUSE_SLIDER=yes | |
2387 | DEFAULT_wxUSE_SPINBTN=yes | |
2388 | DEFAULT_wxUSE_SPINCTRL=yes | |
2389 | DEFAULT_wxUSE_SPLITTER=yes | |
2390 | DEFAULT_wxUSE_STATBMP=yes | |
2391 | DEFAULT_wxUSE_STATBOX=yes | |
2392 | DEFAULT_wxUSE_STATLINE=yes | |
2393 | DEFAULT_wxUSE_STATTEXT=yes | |
2394 | DEFAULT_wxUSE_STATUSBAR=yes | |
2395 | DEFAULT_wxUSE_TABDIALOG=no | |
2396 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2397 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2398 | DEFAULT_wxUSE_TOOLBAR=yes | |
2399 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2400 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
2401 | DEFAULT_wxUSE_TREECTRL=yes | |
2402 | DEFAULT_wxUSE_POPUPWIN=yes | |
2403 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2404 | ||
78de529b | 2405 | DEFAULT_wxUSE_UNICODE=no |
a848cd7e SC |
2406 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
2407 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2408 | ||
2409 | DEFAULT_wxUSE_PALETTE=yes | |
2410 | DEFAULT_wxUSE_IMAGE=yes | |
2411 | DEFAULT_wxUSE_GIF=yes | |
2412 | DEFAULT_wxUSE_PCX=yes | |
2413 | DEFAULT_wxUSE_IFF=no | |
2414 | DEFAULT_wxUSE_PNM=yes | |
2415 | DEFAULT_wxUSE_XPM=yes | |
2416 | DEFAULT_wxUSE_ICO_CUR=yes | |
2417 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2418 | ||
2419 | DEFAULT_wxUSE_MONOLITHIC=no | |
2420 | DEFAULT_wxUSE_PLUGINS=no | |
2421 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e | 2422 | |
f34ca037 | 2423 | DEFAULT_wxUSE_GTK2=yes |
a848cd7e SC |
2424 | fi |
2425 | ||
2426 | ||
2427 | ||
f34ca037 | 2428 | |
a848cd7e SC |
2429 | for toolkit in `echo $ALL_TOOLKITS`; do |
2430 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2431 | if test "x$LINE" != "x" ; then | |
2432 | has_toolkit_in_cache=1 | |
2433 | eval "DEFAULT_$LINE" | |
2434 | eval "CACHE_$toolkit=1" | |
f34ca037 MW |
2435 | |
2436 | LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}` | |
2437 | if test "x$LINE" != "x" ; then | |
2438 | eval "DEFAULT_$LINE" | |
2439 | fi | |
a848cd7e SC |
2440 | fi |
2441 | done | |
2442 | ||
2443 | ||
2444 | ||
2445 | enablestring= | |
2446 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2447 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2448 | no_cache=0 | |
2449 | # Check whether --enable-gui or --disable-gui was given. | |
2450 | if test "${enable_gui+set}" = set; then | |
2451 | enableval="$enable_gui" | |
2452 | ||
2453 | if test "$enableval" = yes; then | |
2454 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2455 | else | |
2456 | ac_cv_use_gui='wxUSE_GUI=no' | |
2457 | fi | |
2458 | ||
2459 | else | |
2460 | ||
2461 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2462 | if test "x$LINE" != x ; then | |
2463 | eval "DEFAULT_$LINE" | |
2464 | else | |
2465 | no_cache=1 | |
2466 | fi | |
2467 | ||
2468 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2469 | ||
2470 | fi; | |
2471 | ||
2472 | eval "$ac_cv_use_gui" | |
2473 | if test "$no_cache" != 1; then | |
2474 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2475 | fi | |
2476 | ||
2477 | if test "$wxUSE_GUI" = yes; then | |
2478 | echo "$as_me:$LINENO: result: yes" >&5 | |
2479 | echo "${ECHO_T}yes" >&6 | |
2480 | else | |
2481 | echo "$as_me:$LINENO: result: no" >&5 | |
2482 | echo "${ECHO_T}no" >&6 | |
2483 | fi | |
2484 | ||
2485 | ||
2486 | enablestring= | |
2487 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2488 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2489 | no_cache=0 | |
2490 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2491 | if test "${enable_monolithic+set}" = set; then | |
2492 | enableval="$enable_monolithic" | |
2493 | ||
2494 | if test "$enableval" = yes; then | |
2495 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2496 | else | |
2497 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2498 | fi | |
2499 | ||
2500 | else | |
2501 | ||
2502 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2503 | if test "x$LINE" != x ; then | |
2504 | eval "DEFAULT_$LINE" | |
2505 | else | |
2506 | no_cache=1 | |
2507 | fi | |
2508 | ||
2509 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2510 | ||
2511 | fi; | |
2512 | ||
2513 | eval "$ac_cv_use_monolithic" | |
2514 | if test "$no_cache" != 1; then | |
2515 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2516 | fi | |
2517 | ||
2518 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2519 | echo "$as_me:$LINENO: result: yes" >&5 | |
2520 | echo "${ECHO_T}yes" >&6 | |
2521 | else | |
2522 | echo "$as_me:$LINENO: result: no" >&5 | |
2523 | echo "${ECHO_T}no" >&6 | |
2524 | fi | |
2525 | ||
2526 | ||
2527 | enablestring= | |
2528 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2529 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2530 | no_cache=0 | |
2531 | # Check whether --enable-plugins or --disable-plugins was given. | |
2532 | if test "${enable_plugins+set}" = set; then | |
2533 | enableval="$enable_plugins" | |
2534 | ||
2535 | if test "$enableval" = yes; then | |
2536 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2537 | else | |
2538 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2539 | fi | |
2540 | ||
2541 | else | |
2542 | ||
2543 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2544 | if test "x$LINE" != x ; then | |
2545 | eval "DEFAULT_$LINE" | |
2546 | else | |
2547 | no_cache=1 | |
2548 | fi | |
2549 | ||
2550 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2551 | ||
2552 | fi; | |
2553 | ||
2554 | eval "$ac_cv_use_plugins" | |
2555 | if test "$no_cache" != 1; then | |
2556 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2557 | fi | |
2558 | ||
2559 | if test "$wxUSE_PLUGINS" = yes; then | |
2560 | echo "$as_me:$LINENO: result: yes" >&5 | |
2561 | echo "${ECHO_T}yes" >&6 | |
2562 | else | |
2563 | echo "$as_me:$LINENO: result: no" >&5 | |
2564 | echo "${ECHO_T}no" >&6 | |
2565 | fi | |
2566 | ||
2567 | ||
2568 | if test "$wxUSE_GUI" = "yes"; then | |
2569 | ||
2570 | ||
2571 | enablestring= | |
2572 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2573 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2574 | no_cache=0 | |
2575 | # Check whether --enable-universal or --disable-universal was given. | |
2576 | if test "${enable_universal+set}" = set; then | |
2577 | enableval="$enable_universal" | |
2578 | ||
2579 | if test "$enableval" = yes; then | |
2580 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2581 | else | |
2582 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2583 | fi | |
2584 | ||
2585 | else | |
2586 | ||
2587 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2588 | if test "x$LINE" != x ; then | |
2589 | eval "DEFAULT_$LINE" | |
2590 | else | |
2591 | no_cache=1 | |
2592 | fi | |
2593 | ||
2594 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2595 | ||
2596 | fi; | |
2597 | ||
2598 | eval "$ac_cv_use_universal" | |
2599 | if test "$no_cache" != 1; then | |
2600 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2601 | fi | |
2602 | ||
2603 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2604 | echo "$as_me:$LINENO: result: yes" >&5 | |
2605 | echo "${ECHO_T}yes" >&6 | |
2606 | else | |
2607 | echo "$as_me:$LINENO: result: no" >&5 | |
2608 | echo "${ECHO_T}no" >&6 | |
2609 | fi | |
2610 | ||
2611 | ||
2612 | # Check whether --with-gtk or --without-gtk was given. | |
2613 | if test "${with_gtk+set}" = set; then | |
2614 | withval="$with_gtk" | |
2615 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2616 | fi; | |
2617 | ||
2618 | # Check whether --with-motif or --without-motif was given. | |
2619 | if test "${with_motif+set}" = set; then | |
2620 | withval="$with_motif" | |
2621 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2622 | fi; | |
2623 | ||
2624 | # Check whether --with-mac or --without-mac was given. | |
2625 | if test "${with_mac+set}" = set; then | |
2626 | withval="$with_mac" | |
c228d3a4 | 2627 | wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2628 | fi; |
2629 | ||
2630 | # Check whether --with-cocoa or --without-cocoa was given. | |
2631 | if test "${with_cocoa+set}" = set; then | |
2632 | withval="$with_cocoa" | |
c228d3a4 | 2633 | wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2634 | fi; |
2635 | ||
2636 | # Check whether --with-wine or --without-wine was given. | |
2637 | if test "${with_wine+set}" = set; then | |
2638 | withval="$with_wine" | |
2639 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2640 | fi; | |
2641 | ||
2642 | # Check whether --with-msw or --without-msw was given. | |
2643 | if test "${with_msw+set}" = set; then | |
2644 | withval="$with_msw" | |
2645 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2646 | fi; | |
2647 | ||
2648 | # Check whether --with-pm or --without-pm was given. | |
2649 | if test "${with_pm+set}" = set; then | |
2650 | withval="$with_pm" | |
2651 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2652 | fi; | |
2653 | ||
2654 | # Check whether --with-mgl or --without-mgl was given. | |
2655 | if test "${with_mgl+set}" = set; then | |
2656 | withval="$with_mgl" | |
2657 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2658 | fi; | |
2659 | ||
2660 | # Check whether --with-microwin or --without-microwin was given. | |
2661 | if test "${with_microwin+set}" = set; then | |
2662 | withval="$with_microwin" | |
2663 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2664 | fi; | |
2665 | ||
2666 | # Check whether --with-x11 or --without-x11 was given. | |
2667 | if test "${with_x11+set}" = set; then | |
2668 | withval="$with_x11" | |
2669 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2670 | fi; | |
2671 | ||
2672 | enablestring= | |
2673 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2674 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2675 | no_cache=0 | |
2676 | # Check whether --enable-nanox or --disable-nanox was given. | |
2677 | if test "${enable_nanox+set}" = set; then | |
2678 | enableval="$enable_nanox" | |
2679 | ||
2680 | if test "$enableval" = yes; then | |
2681 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2682 | else | |
2683 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2684 | fi | |
2685 | ||
2686 | else | |
2687 | ||
2688 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2689 | if test "x$LINE" != x ; then | |
2690 | eval "DEFAULT_$LINE" | |
2691 | else | |
2692 | no_cache=1 | |
2693 | fi | |
2694 | ||
2695 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2696 | ||
2697 | fi; | |
2698 | ||
2699 | eval "$ac_cv_use_nanox" | |
2700 | if test "$no_cache" != 1; then | |
2701 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2702 | fi | |
2703 | ||
2704 | if test "$wxUSE_NANOX" = yes; then | |
2705 | echo "$as_me:$LINENO: result: yes" >&5 | |
2706 | echo "${ECHO_T}yes" >&6 | |
2707 | else | |
2708 | echo "$as_me:$LINENO: result: no" >&5 | |
2709 | echo "${ECHO_T}no" >&6 | |
2710 | fi | |
2711 | ||
2712 | ||
f34ca037 MW |
2713 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
2714 | if test "${enable_gtk2+set}" = set; then | |
2715 | enableval="$enable_gtk2" | |
2716 | wxUSE_GTK2="$enableval" | |
2717 | fi; | |
a848cd7e | 2718 | |
a848cd7e SC |
2719 | enablestring= |
2720 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2721 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2722 | no_cache=0 | |
2723 | # Check whether --enable-gpe or --disable-gpe was given. | |
2724 | if test "${enable_gpe+set}" = set; then | |
2725 | enableval="$enable_gpe" | |
2726 | ||
2727 | if test "$enableval" = yes; then | |
2728 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2729 | else | |
2730 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2731 | fi | |
2732 | ||
2733 | else | |
2734 | ||
2735 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2736 | if test "x$LINE" != x ; then | |
2737 | eval "DEFAULT_$LINE" | |
2738 | else | |
2739 | no_cache=1 | |
2740 | fi | |
2741 | ||
2742 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2743 | ||
2744 | fi; | |
2745 | ||
2746 | eval "$ac_cv_use_gpe" | |
2747 | if test "$no_cache" != 1; then | |
2748 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2749 | fi | |
2750 | ||
2751 | if test "$wxUSE_GPE" = yes; then | |
2752 | echo "$as_me:$LINENO: result: yes" >&5 | |
2753 | echo "${ECHO_T}yes" >&6 | |
2754 | else | |
2755 | echo "$as_me:$LINENO: result: no" >&5 | |
2756 | echo "${ECHO_T}no" >&6 | |
2757 | fi | |
2758 | ||
2759 | ||
2760 | ||
2761 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2762 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2763 | no_cache=0 | |
2764 | ||
2765 | # Check whether --with-libpng or --without-libpng was given. | |
2766 | if test "${with_libpng+set}" = set; then | |
2767 | withval="$with_libpng" | |
2768 | ||
2769 | if test "$withval" = yes; then | |
2770 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2771 | elif test "$withval" = no; then | |
2772 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2773 | elif test "$withval" = sys; then | |
2774 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2775 | elif test "$withval" = builtin; then | |
2776 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2777 | else | |
2778 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2779 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2780 | { (exit 1); exit 1; }; } | |
2781 | fi | |
2782 | ||
2783 | else | |
2784 | ||
2785 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2786 | if test "x$LINE" != x ; then | |
2787 | eval "DEFAULT_$LINE" | |
2788 | else | |
2789 | no_cache=1 | |
2790 | fi | |
2791 | ||
2792 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2793 | ||
2794 | fi; | |
2795 | ||
2796 | eval "$ac_cv_use_libpng" | |
2797 | if test "$no_cache" != 1; then | |
2798 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2799 | fi | |
2800 | ||
2801 | if test "$wxUSE_LIBPNG" = yes; then | |
2802 | echo "$as_me:$LINENO: result: yes" >&5 | |
2803 | echo "${ECHO_T}yes" >&6 | |
2804 | elif test "$wxUSE_LIBPNG" = no; then | |
2805 | echo "$as_me:$LINENO: result: no" >&5 | |
2806 | echo "${ECHO_T}no" >&6 | |
2807 | elif test "$wxUSE_LIBPNG" = sys; then | |
2808 | echo "$as_me:$LINENO: result: system version" >&5 | |
2809 | echo "${ECHO_T}system version" >&6 | |
2810 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2811 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2812 | echo "${ECHO_T}builtin version" >&6 | |
2813 | else | |
2814 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2815 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2816 | { (exit 1); exit 1; }; } | |
2817 | fi | |
2818 | ||
2819 | ||
2820 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2821 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2822 | no_cache=0 | |
2823 | ||
2824 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2825 | if test "${with_libjpeg+set}" = set; then | |
2826 | withval="$with_libjpeg" | |
2827 | ||
2828 | if test "$withval" = yes; then | |
2829 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2830 | elif test "$withval" = no; then | |
2831 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2832 | elif test "$withval" = sys; then | |
2833 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2834 | elif test "$withval" = builtin; then | |
2835 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2836 | else | |
2837 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2838 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2839 | { (exit 1); exit 1; }; } | |
2840 | fi | |
2841 | ||
2842 | else | |
2843 | ||
2844 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2845 | if test "x$LINE" != x ; then | |
2846 | eval "DEFAULT_$LINE" | |
2847 | else | |
2848 | no_cache=1 | |
2849 | fi | |
2850 | ||
2851 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2852 | ||
2853 | fi; | |
2854 | ||
2855 | eval "$ac_cv_use_libjpeg" | |
2856 | if test "$no_cache" != 1; then | |
2857 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2858 | fi | |
2859 | ||
2860 | if test "$wxUSE_LIBJPEG" = yes; then | |
2861 | echo "$as_me:$LINENO: result: yes" >&5 | |
2862 | echo "${ECHO_T}yes" >&6 | |
2863 | elif test "$wxUSE_LIBJPEG" = no; then | |
2864 | echo "$as_me:$LINENO: result: no" >&5 | |
2865 | echo "${ECHO_T}no" >&6 | |
2866 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2867 | echo "$as_me:$LINENO: result: system version" >&5 | |
2868 | echo "${ECHO_T}system version" >&6 | |
2869 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2870 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2871 | echo "${ECHO_T}builtin version" >&6 | |
2872 | else | |
2873 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2874 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2875 | { (exit 1); exit 1; }; } | |
2876 | fi | |
2877 | ||
2878 | ||
2879 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2880 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2881 | no_cache=0 | |
2882 | ||
2883 | # Check whether --with-libtiff or --without-libtiff was given. | |
2884 | if test "${with_libtiff+set}" = set; then | |
2885 | withval="$with_libtiff" | |
2886 | ||
2887 | if test "$withval" = yes; then | |
2888 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2889 | elif test "$withval" = no; then | |
2890 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2891 | elif test "$withval" = sys; then | |
2892 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2893 | elif test "$withval" = builtin; then | |
2894 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2895 | else | |
2896 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2897 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2898 | { (exit 1); exit 1; }; } | |
2899 | fi | |
2900 | ||
2901 | else | |
2902 | ||
2903 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2904 | if test "x$LINE" != x ; then | |
2905 | eval "DEFAULT_$LINE" | |
2906 | else | |
2907 | no_cache=1 | |
2908 | fi | |
2909 | ||
2910 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2911 | ||
2912 | fi; | |
2913 | ||
2914 | eval "$ac_cv_use_libtiff" | |
2915 | if test "$no_cache" != 1; then | |
2916 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2917 | fi | |
2918 | ||
2919 | if test "$wxUSE_LIBTIFF" = yes; then | |
2920 | echo "$as_me:$LINENO: result: yes" >&5 | |
2921 | echo "${ECHO_T}yes" >&6 | |
2922 | elif test "$wxUSE_LIBTIFF" = no; then | |
2923 | echo "$as_me:$LINENO: result: no" >&5 | |
2924 | echo "${ECHO_T}no" >&6 | |
2925 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2926 | echo "$as_me:$LINENO: result: system version" >&5 | |
2927 | echo "${ECHO_T}system version" >&6 | |
2928 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2929 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2930 | echo "${ECHO_T}builtin version" >&6 | |
2931 | else | |
2932 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2933 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2934 | { (exit 1); exit 1; }; } | |
2935 | fi | |
2936 | ||
2937 | ||
2938 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
2939 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2940 | no_cache=0 | |
2941 | ||
2942 | # Check whether --with-libxpm or --without-libxpm was given. | |
2943 | if test "${with_libxpm+set}" = set; then | |
2944 | withval="$with_libxpm" | |
2945 | ||
2946 | if test "$withval" = yes; then | |
2947 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2948 | elif test "$withval" = no; then | |
2949 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2950 | elif test "$withval" = sys; then | |
2951 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2952 | elif test "$withval" = builtin; then | |
2953 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2954 | else | |
2955 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2956 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2957 | { (exit 1); exit 1; }; } | |
2958 | fi | |
2959 | ||
2960 | else | |
2961 | ||
2962 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2963 | if test "x$LINE" != x ; then | |
2964 | eval "DEFAULT_$LINE" | |
2965 | else | |
2966 | no_cache=1 | |
2967 | fi | |
2968 | ||
2969 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2970 | ||
2971 | fi; | |
2972 | ||
2973 | eval "$ac_cv_use_libxpm" | |
2974 | if test "$no_cache" != 1; then | |
2975 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2976 | fi | |
2977 | ||
2978 | if test "$wxUSE_LIBXPM" = yes; then | |
2979 | echo "$as_me:$LINENO: result: yes" >&5 | |
2980 | echo "${ECHO_T}yes" >&6 | |
2981 | elif test "$wxUSE_LIBXPM" = no; then | |
2982 | echo "$as_me:$LINENO: result: no" >&5 | |
2983 | echo "${ECHO_T}no" >&6 | |
2984 | elif test "$wxUSE_LIBXPM" = sys; then | |
2985 | echo "$as_me:$LINENO: result: system version" >&5 | |
2986 | echo "${ECHO_T}system version" >&6 | |
2987 | elif test "$wxUSE_LIBXPM" = builtin; then | |
2988 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2989 | echo "${ECHO_T}builtin version" >&6 | |
2990 | else | |
2991 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2992 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2993 | { (exit 1); exit 1; }; } | |
2994 | fi | |
2995 | ||
2996 | ||
2997 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 | |
2998 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
2999 | no_cache=0 | |
3000 | ||
3001 | # Check whether --with-libmspack or --without-libmspack was given. | |
3002 | if test "${with_libmspack+set}" = set; then | |
3003 | withval="$with_libmspack" | |
3004 | ||
3005 | if test "$withval" = yes; then | |
3006 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3007 | else | |
3008 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3009 | fi | |
3010 | ||
3011 | else | |
3012 | ||
3013 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3014 | if test "x$LINE" != x ; then | |
3015 | eval "DEFAULT_$LINE" | |
3016 | else | |
3017 | no_cache=1 | |
3018 | fi | |
3019 | ||
3020 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3021 | ||
3022 | fi; | |
3023 | ||
3024 | eval "$ac_cv_use_libmspack" | |
3025 | if test "$no_cache" != 1; then | |
3026 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3027 | fi | |
3028 | ||
3029 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3030 | echo "$as_me:$LINENO: result: yes" >&5 | |
3031 | echo "${ECHO_T}yes" >&6 | |
3032 | else | |
3033 | echo "$as_me:$LINENO: result: no" >&5 | |
3034 | echo "${ECHO_T}no" >&6 | |
3035 | fi | |
3036 | ||
3037 | ||
3038 | echo "$as_me:$LINENO: checking for --with-sdl" >&5 | |
3039 | echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6 | |
3040 | no_cache=0 | |
3041 | ||
3042 | # Check whether --with-sdl or --without-sdl was given. | |
3043 | if test "${with_sdl+set}" = set; then | |
3044 | withval="$with_sdl" | |
3045 | ||
3046 | if test "$withval" = yes; then | |
3047 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3048 | else | |
3049 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3050 | fi | |
3051 | ||
3052 | else | |
3053 | ||
3054 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3055 | if test "x$LINE" != x ; then | |
3056 | eval "DEFAULT_$LINE" | |
3057 | else | |
3058 | no_cache=1 | |
3059 | fi | |
3060 | ||
3061 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3062 | ||
3063 | fi; | |
3064 | ||
3065 | eval "$ac_cv_use_sdl" | |
3066 | if test "$no_cache" != 1; then | |
3067 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3068 | fi | |
3069 | ||
3070 | if test "$wxUSE_LIBSDL" = yes; then | |
3071 | echo "$as_me:$LINENO: result: yes" >&5 | |
3072 | echo "${ECHO_T}yes" >&6 | |
3073 | else | |
3074 | echo "$as_me:$LINENO: result: no" >&5 | |
3075 | echo "${ECHO_T}no" >&6 | |
3076 | fi | |
3077 | ||
3078 | ||
d1c38808 VZ |
3079 | echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5 |
3080 | echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6 | |
3081 | no_cache=0 | |
3082 | ||
3083 | # Check whether --with-gnomeprint or --without-gnomeprint was given. | |
3084 | if test "${with_gnomeprint+set}" = set; then | |
3085 | withval="$with_gnomeprint" | |
3086 | ||
3087 | if test "$withval" = yes; then | |
3088 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' | |
3089 | else | |
3090 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' | |
3091 | fi | |
3092 | ||
3093 | else | |
3094 | ||
3095 | LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}` | |
3096 | if test "x$LINE" != x ; then | |
3097 | eval "DEFAULT_$LINE" | |
3098 | else | |
3099 | no_cache=1 | |
3100 | fi | |
3101 | ||
3102 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT | |
3103 | ||
3104 | fi; | |
3105 | ||
3106 | eval "$ac_cv_use_gnomeprint" | |
3107 | if test "$no_cache" != 1; then | |
3108 | echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp | |
3109 | fi | |
3110 | ||
3111 | if test "$wxUSE_LIBGNOMEPRINT" = yes; then | |
3112 | echo "$as_me:$LINENO: result: yes" >&5 | |
3113 | echo "${ECHO_T}yes" >&6 | |
3114 | else | |
3115 | echo "$as_me:$LINENO: result: no" >&5 | |
3116 | echo "${ECHO_T}no" >&6 | |
3117 | fi | |
3118 | ||
3119 | ||
a848cd7e SC |
3120 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 |
3121 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
3122 | no_cache=0 | |
3123 | ||
3124 | # Check whether --with-opengl or --without-opengl was given. | |
3125 | if test "${with_opengl+set}" = set; then | |
3126 | withval="$with_opengl" | |
3127 | ||
3128 | if test "$withval" = yes; then | |
3129 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3130 | else | |
3131 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3132 | fi | |
3133 | ||
3134 | else | |
3135 | ||
3136 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3137 | if test "x$LINE" != x ; then | |
3138 | eval "DEFAULT_$LINE" | |
3139 | else | |
3140 | no_cache=1 | |
3141 | fi | |
3142 | ||
3143 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3144 | ||
3145 | fi; | |
3146 | ||
3147 | eval "$ac_cv_use_opengl" | |
3148 | if test "$no_cache" != 1; then | |
3149 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3150 | fi | |
3151 | ||
3152 | if test "$wxUSE_OPENGL" = yes; then | |
3153 | echo "$as_me:$LINENO: result: yes" >&5 | |
3154 | echo "${ECHO_T}yes" >&6 | |
3155 | else | |
3156 | echo "$as_me:$LINENO: result: no" >&5 | |
3157 | echo "${ECHO_T}no" >&6 | |
3158 | fi | |
3159 | ||
3160 | ||
3161 | fi | |
3162 | ||
3163 | ||
3164 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 | |
3165 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
3166 | no_cache=0 | |
3167 | ||
3168 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3169 | if test "${with_dmalloc+set}" = set; then | |
3170 | withval="$with_dmalloc" | |
3171 | ||
3172 | if test "$withval" = yes; then | |
3173 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3174 | else | |
3175 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3176 | fi | |
3177 | ||
3178 | else | |
3179 | ||
3180 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3181 | if test "x$LINE" != x ; then | |
3182 | eval "DEFAULT_$LINE" | |
3183 | else | |
3184 | no_cache=1 | |
3185 | fi | |
3186 | ||
3187 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3188 | ||
3189 | fi; | |
3190 | ||
3191 | eval "$ac_cv_use_dmalloc" | |
3192 | if test "$no_cache" != 1; then | |
3193 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3194 | fi | |
3195 | ||
3196 | if test "$wxUSE_DMALLOC" = yes; then | |
3197 | echo "$as_me:$LINENO: result: yes" >&5 | |
3198 | echo "${ECHO_T}yes" >&6 | |
3199 | else | |
3200 | echo "$as_me:$LINENO: result: no" >&5 | |
3201 | echo "${ECHO_T}no" >&6 | |
3202 | fi | |
3203 | ||
3204 | ||
3205 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3206 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3207 | no_cache=0 | |
3208 | ||
3209 | # Check whether --with-regex or --without-regex was given. | |
3210 | if test "${with_regex+set}" = set; then | |
3211 | withval="$with_regex" | |
3212 | ||
3213 | if test "$withval" = yes; then | |
3214 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3215 | elif test "$withval" = no; then | |
3216 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3217 | elif test "$withval" = sys; then | |
3218 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3219 | elif test "$withval" = builtin; then | |
3220 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3221 | else | |
3222 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3223 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3224 | { (exit 1); exit 1; }; } | |
3225 | fi | |
3226 | ||
3227 | else | |
3228 | ||
3229 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3230 | if test "x$LINE" != x ; then | |
3231 | eval "DEFAULT_$LINE" | |
3232 | else | |
3233 | no_cache=1 | |
3234 | fi | |
3235 | ||
3236 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3237 | ||
3238 | fi; | |
3239 | ||
3240 | eval "$ac_cv_use_regex" | |
3241 | if test "$no_cache" != 1; then | |
3242 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3243 | fi | |
3244 | ||
3245 | if test "$wxUSE_REGEX" = yes; then | |
3246 | echo "$as_me:$LINENO: result: yes" >&5 | |
3247 | echo "${ECHO_T}yes" >&6 | |
3248 | elif test "$wxUSE_REGEX" = no; then | |
3249 | echo "$as_me:$LINENO: result: no" >&5 | |
3250 | echo "${ECHO_T}no" >&6 | |
3251 | elif test "$wxUSE_REGEX" = sys; then | |
3252 | echo "$as_me:$LINENO: result: system version" >&5 | |
3253 | echo "${ECHO_T}system version" >&6 | |
3254 | elif test "$wxUSE_REGEX" = builtin; then | |
3255 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3256 | echo "${ECHO_T}builtin version" >&6 | |
3257 | else | |
3258 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3259 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3260 | { (exit 1); exit 1; }; } | |
3261 | fi | |
3262 | ||
3263 | ||
3264 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3265 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3266 | no_cache=0 | |
3267 | ||
3268 | # Check whether --with-zlib or --without-zlib was given. | |
3269 | if test "${with_zlib+set}" = set; then | |
3270 | withval="$with_zlib" | |
3271 | ||
3272 | if test "$withval" = yes; then | |
3273 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3274 | elif test "$withval" = no; then | |
3275 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3276 | elif test "$withval" = sys; then | |
3277 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3278 | elif test "$withval" = builtin; then | |
3279 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3280 | else | |
3281 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3282 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3283 | { (exit 1); exit 1; }; } | |
3284 | fi | |
3285 | ||
3286 | else | |
3287 | ||
3288 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3289 | if test "x$LINE" != x ; then | |
3290 | eval "DEFAULT_$LINE" | |
3291 | else | |
3292 | no_cache=1 | |
3293 | fi | |
3294 | ||
3295 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3296 | ||
3297 | fi; | |
3298 | ||
3299 | eval "$ac_cv_use_zlib" | |
3300 | if test "$no_cache" != 1; then | |
3301 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3302 | fi | |
3303 | ||
3304 | if test "$wxUSE_ZLIB" = yes; then | |
3305 | echo "$as_me:$LINENO: result: yes" >&5 | |
3306 | echo "${ECHO_T}yes" >&6 | |
3307 | elif test "$wxUSE_ZLIB" = no; then | |
3308 | echo "$as_me:$LINENO: result: no" >&5 | |
3309 | echo "${ECHO_T}no" >&6 | |
3310 | elif test "$wxUSE_ZLIB" = sys; then | |
3311 | echo "$as_me:$LINENO: result: system version" >&5 | |
3312 | echo "${ECHO_T}system version" >&6 | |
3313 | elif test "$wxUSE_ZLIB" = builtin; then | |
3314 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3315 | echo "${ECHO_T}builtin version" >&6 | |
3316 | else | |
3317 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3318 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3319 | { (exit 1); exit 1; }; } | |
3320 | fi | |
3321 | ||
3322 | ||
3323 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3324 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3325 | no_cache=0 | |
3326 | ||
3327 | # Check whether --with-odbc or --without-odbc was given. | |
3328 | if test "${with_odbc+set}" = set; then | |
3329 | withval="$with_odbc" | |
3330 | ||
3331 | if test "$withval" = yes; then | |
3332 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3333 | elif test "$withval" = no; then | |
3334 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3335 | elif test "$withval" = sys; then | |
3336 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3337 | elif test "$withval" = builtin; then | |
3338 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3339 | else | |
3340 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3341 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3342 | { (exit 1); exit 1; }; } | |
3343 | fi | |
3344 | ||
3345 | else | |
3346 | ||
3347 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3348 | if test "x$LINE" != x ; then | |
3349 | eval "DEFAULT_$LINE" | |
3350 | else | |
3351 | no_cache=1 | |
3352 | fi | |
3353 | ||
3354 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3355 | ||
3356 | fi; | |
3357 | ||
3358 | eval "$ac_cv_use_odbc" | |
3359 | if test "$no_cache" != 1; then | |
3360 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3361 | fi | |
3362 | ||
3363 | if test "$wxUSE_ODBC" = yes; then | |
3364 | echo "$as_me:$LINENO: result: yes" >&5 | |
3365 | echo "${ECHO_T}yes" >&6 | |
3366 | elif test "$wxUSE_ODBC" = no; then | |
3367 | echo "$as_me:$LINENO: result: no" >&5 | |
3368 | echo "${ECHO_T}no" >&6 | |
3369 | elif test "$wxUSE_ODBC" = sys; then | |
3370 | echo "$as_me:$LINENO: result: system version" >&5 | |
3371 | echo "${ECHO_T}system version" >&6 | |
3372 | elif test "$wxUSE_ODBC" = builtin; then | |
3373 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3374 | echo "${ECHO_T}builtin version" >&6 | |
3375 | else | |
3376 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3377 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3378 | { (exit 1); exit 1; }; } | |
3379 | fi | |
3380 | ||
3381 | ||
3382 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3383 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3384 | no_cache=0 | |
3385 | ||
3386 | # Check whether --with-expat or --without-expat was given. | |
3387 | if test "${with_expat+set}" = set; then | |
3388 | withval="$with_expat" | |
3389 | ||
3390 | if test "$withval" = yes; then | |
3391 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3392 | elif test "$withval" = no; then | |
3393 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3394 | elif test "$withval" = sys; then | |
3395 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3396 | elif test "$withval" = builtin; then | |
3397 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3398 | else | |
3399 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3400 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3401 | { (exit 1); exit 1; }; } | |
3402 | fi | |
3403 | ||
3404 | else | |
3405 | ||
3406 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3407 | if test "x$LINE" != x ; then | |
3408 | eval "DEFAULT_$LINE" | |
3409 | else | |
3410 | no_cache=1 | |
3411 | fi | |
3412 | ||
3413 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3414 | ||
3415 | fi; | |
3416 | ||
3417 | eval "$ac_cv_use_expat" | |
3418 | if test "$no_cache" != 1; then | |
3419 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3420 | fi | |
3421 | ||
3422 | if test "$wxUSE_EXPAT" = yes; then | |
3423 | echo "$as_me:$LINENO: result: yes" >&5 | |
3424 | echo "${ECHO_T}yes" >&6 | |
3425 | elif test "$wxUSE_EXPAT" = no; then | |
3426 | echo "$as_me:$LINENO: result: no" >&5 | |
3427 | echo "${ECHO_T}no" >&6 | |
3428 | elif test "$wxUSE_EXPAT" = sys; then | |
3429 | echo "$as_me:$LINENO: result: system version" >&5 | |
3430 | echo "${ECHO_T}system version" >&6 | |
3431 | elif test "$wxUSE_EXPAT" = builtin; then | |
3432 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3433 | echo "${ECHO_T}builtin version" >&6 | |
3434 | else | |
3435 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3436 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3437 | { (exit 1); exit 1; }; } | |
3438 | fi | |
3439 | ||
3440 | ||
3441 | ||
3442 | ||
3443 | enablestring= | |
3444 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3445 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3446 | no_cache=0 | |
3447 | # Check whether --enable-shared or --disable-shared was given. | |
3448 | if test "${enable_shared+set}" = set; then | |
3449 | enableval="$enable_shared" | |
3450 | ||
3451 | if test "$enableval" = yes; then | |
3452 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3453 | else | |
3454 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3455 | fi | |
3456 | ||
3457 | else | |
3458 | ||
3459 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3460 | if test "x$LINE" != x ; then | |
3461 | eval "DEFAULT_$LINE" | |
3462 | else | |
3463 | no_cache=1 | |
3464 | fi | |
3465 | ||
3466 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3467 | ||
3468 | fi; | |
3469 | ||
3470 | eval "$ac_cv_use_shared" | |
3471 | if test "$no_cache" != 1; then | |
3472 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3473 | fi | |
3474 | ||
3475 | if test "$wxUSE_SHARED" = yes; then | |
3476 | echo "$as_me:$LINENO: result: yes" >&5 | |
3477 | echo "${ECHO_T}yes" >&6 | |
3478 | else | |
3479 | echo "$as_me:$LINENO: result: no" >&5 | |
3480 | echo "${ECHO_T}no" >&6 | |
3481 | fi | |
3482 | ||
3483 | ||
3484 | enablestring= | |
3485 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3486 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3487 | no_cache=0 | |
3488 | # Check whether --enable-optimise or --disable-optimise was given. | |
3489 | if test "${enable_optimise+set}" = set; then | |
3490 | enableval="$enable_optimise" | |
3491 | ||
3492 | if test "$enableval" = yes; then | |
3493 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3494 | else | |
3495 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3496 | fi | |
3497 | ||
3498 | else | |
3499 | ||
3500 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3501 | if test "x$LINE" != x ; then | |
3502 | eval "DEFAULT_$LINE" | |
3503 | else | |
3504 | no_cache=1 | |
3505 | fi | |
3506 | ||
3507 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3508 | ||
3509 | fi; | |
3510 | ||
3511 | eval "$ac_cv_use_optimise" | |
3512 | if test "$no_cache" != 1; then | |
3513 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3514 | fi | |
3515 | ||
3516 | if test "$wxUSE_OPTIMISE" = yes; then | |
3517 | echo "$as_me:$LINENO: result: yes" >&5 | |
3518 | echo "${ECHO_T}yes" >&6 | |
3519 | else | |
3520 | echo "$as_me:$LINENO: result: no" >&5 | |
3521 | echo "${ECHO_T}no" >&6 | |
3522 | fi | |
3523 | ||
3524 | ||
3525 | enablestring= | |
3526 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3527 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3528 | no_cache=0 | |
3529 | # Check whether --enable-debug or --disable-debug was given. | |
3530 | if test "${enable_debug+set}" = set; then | |
3531 | enableval="$enable_debug" | |
3532 | ||
3533 | if test "$enableval" = yes; then | |
3534 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3535 | else | |
3536 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3537 | fi | |
3538 | ||
3539 | else | |
3540 | ||
3541 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3542 | if test "x$LINE" != x ; then | |
3543 | eval "DEFAULT_$LINE" | |
3544 | else | |
3545 | no_cache=1 | |
3546 | fi | |
3547 | ||
3548 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3549 | ||
3550 | fi; | |
3551 | ||
3552 | eval "$ac_cv_use_debug" | |
3553 | if test "$no_cache" != 1; then | |
3554 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3555 | fi | |
3556 | ||
3557 | if test "$wxUSE_DEBUG" = yes; then | |
3558 | echo "$as_me:$LINENO: result: yes" >&5 | |
3559 | echo "${ECHO_T}yes" >&6 | |
3560 | else | |
3561 | echo "$as_me:$LINENO: result: no" >&5 | |
3562 | echo "${ECHO_T}no" >&6 | |
3563 | fi | |
3564 | ||
3565 | ||
3566 | enablestring= | |
3567 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3568 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3569 | no_cache=0 | |
3570 | # Check whether --enable-stl or --disable-stl was given. | |
3571 | if test "${enable_stl+set}" = set; then | |
3572 | enableval="$enable_stl" | |
3573 | ||
3574 | if test "$enableval" = yes; then | |
3575 | ac_cv_use_stl='wxUSE_STL=yes' | |
3576 | else | |
3577 | ac_cv_use_stl='wxUSE_STL=no' | |
3578 | fi | |
3579 | ||
3580 | else | |
3581 | ||
3582 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3583 | if test "x$LINE" != x ; then | |
3584 | eval "DEFAULT_$LINE" | |
3585 | else | |
3586 | no_cache=1 | |
3587 | fi | |
3588 | ||
3589 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3590 | ||
3591 | fi; | |
3592 | ||
3593 | eval "$ac_cv_use_stl" | |
3594 | if test "$no_cache" != 1; then | |
3595 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3596 | fi | |
3597 | ||
3598 | if test "$wxUSE_STL" = yes; then | |
3599 | echo "$as_me:$LINENO: result: yes" >&5 | |
3600 | echo "${ECHO_T}yes" >&6 | |
3601 | else | |
3602 | echo "$as_me:$LINENO: result: no" >&5 | |
3603 | echo "${ECHO_T}no" >&6 | |
3604 | fi | |
3605 | ||
3606 | if test "$USE_OS2" = "1"; then | |
69120ee4 | 3607 | DEFAULT_wxUSE_OMF=no |
a848cd7e SC |
3608 | |
3609 | enablestring= | |
3610 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3611 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3612 | no_cache=0 | |
3613 | # Check whether --enable-omf or --disable-omf was given. | |
3614 | if test "${enable_omf+set}" = set; then | |
3615 | enableval="$enable_omf" | |
3616 | ||
3617 | if test "$enableval" = yes; then | |
3618 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3619 | else | |
3620 | ac_cv_use_omf='wxUSE_OMF=no' | |
3621 | fi | |
3622 | ||
3623 | else | |
3624 | ||
3625 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3626 | if test "x$LINE" != x ; then | |
3627 | eval "DEFAULT_$LINE" | |
3628 | else | |
3629 | no_cache=1 | |
3630 | fi | |
3631 | ||
3632 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3633 | ||
3634 | fi; | |
3635 | ||
3636 | eval "$ac_cv_use_omf" | |
3637 | if test "$no_cache" != 1; then | |
3638 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3639 | fi | |
3640 | ||
3641 | if test "$wxUSE_OMF" = yes; then | |
3642 | echo "$as_me:$LINENO: result: yes" >&5 | |
3643 | echo "${ECHO_T}yes" >&6 | |
3644 | else | |
3645 | echo "$as_me:$LINENO: result: no" >&5 | |
3646 | echo "${ECHO_T}no" >&6 | |
3647 | fi | |
3648 | ||
3649 | fi | |
3650 | ||
3651 | if test "$wxUSE_DEBUG" = "yes"; then | |
3652 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3653 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3654 | BUILD=debug | |
3655 | elif test "$wxUSE_DEBUG" = "no"; then | |
3656 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3657 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3658 | BUILD=release | |
3659 | fi | |
3660 | ||
3661 | ||
3662 | enablestring= | |
3663 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3664 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3665 | no_cache=0 | |
3666 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3667 | if test "${enable_debug_flag+set}" = set; then | |
3668 | enableval="$enable_debug_flag" | |
3669 | ||
3670 | if test "$enableval" = yes; then | |
3671 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3672 | else | |
3673 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3674 | fi | |
3675 | ||
3676 | else | |
3677 | ||
3678 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3679 | if test "x$LINE" != x ; then | |
3680 | eval "DEFAULT_$LINE" | |
3681 | else | |
3682 | no_cache=1 | |
3683 | fi | |
3684 | ||
3685 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3686 | ||
3687 | fi; | |
3688 | ||
3689 | eval "$ac_cv_use_debug_flag" | |
3690 | if test "$no_cache" != 1; then | |
3691 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3692 | fi | |
3693 | ||
3694 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3695 | echo "$as_me:$LINENO: result: yes" >&5 | |
3696 | echo "${ECHO_T}yes" >&6 | |
3697 | else | |
3698 | echo "$as_me:$LINENO: result: no" >&5 | |
3699 | echo "${ECHO_T}no" >&6 | |
3700 | fi | |
3701 | ||
3702 | ||
3703 | enablestring= | |
3704 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3705 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3706 | no_cache=0 | |
3707 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3708 | if test "${enable_debug_info+set}" = set; then | |
3709 | enableval="$enable_debug_info" | |
3710 | ||
3711 | if test "$enableval" = yes; then | |
3712 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3713 | else | |
3714 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3715 | fi | |
3716 | ||
3717 | else | |
3718 | ||
3719 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3720 | if test "x$LINE" != x ; then | |
3721 | eval "DEFAULT_$LINE" | |
3722 | else | |
3723 | no_cache=1 | |
3724 | fi | |
3725 | ||
3726 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3727 | ||
3728 | fi; | |
3729 | ||
3730 | eval "$ac_cv_use_debug_info" | |
3731 | if test "$no_cache" != 1; then | |
3732 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3733 | fi | |
3734 | ||
3735 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3736 | echo "$as_me:$LINENO: result: yes" >&5 | |
3737 | echo "${ECHO_T}yes" >&6 | |
3738 | else | |
3739 | echo "$as_me:$LINENO: result: no" >&5 | |
3740 | echo "${ECHO_T}no" >&6 | |
3741 | fi | |
3742 | ||
3743 | ||
3744 | enablestring= | |
3745 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3746 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3747 | no_cache=0 | |
3748 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3749 | if test "${enable_debug_gdb+set}" = set; then | |
3750 | enableval="$enable_debug_gdb" | |
3751 | ||
3752 | if test "$enableval" = yes; then | |
3753 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3754 | else | |
3755 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3756 | fi | |
3757 | ||
3758 | else | |
3759 | ||
3760 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3761 | if test "x$LINE" != x ; then | |
3762 | eval "DEFAULT_$LINE" | |
3763 | else | |
3764 | no_cache=1 | |
3765 | fi | |
3766 | ||
3767 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3768 | ||
3769 | fi; | |
3770 | ||
3771 | eval "$ac_cv_use_debug_gdb" | |
3772 | if test "$no_cache" != 1; then | |
3773 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3774 | fi | |
3775 | ||
3776 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3777 | echo "$as_me:$LINENO: result: yes" >&5 | |
3778 | echo "${ECHO_T}yes" >&6 | |
3779 | else | |
3780 | echo "$as_me:$LINENO: result: no" >&5 | |
3781 | echo "${ECHO_T}no" >&6 | |
3782 | fi | |
3783 | ||
3784 | ||
3785 | enablestring= | |
3786 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3787 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3788 | no_cache=0 | |
3789 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3790 | if test "${enable_debug_cntxt+set}" = set; then | |
3791 | enableval="$enable_debug_cntxt" | |
3792 | ||
3793 | if test "$enableval" = yes; then | |
3794 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3795 | else | |
3796 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3797 | fi | |
3798 | ||
3799 | else | |
3800 | ||
3801 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3802 | if test "x$LINE" != x ; then | |
3803 | eval "DEFAULT_$LINE" | |
3804 | else | |
3805 | no_cache=1 | |
3806 | fi | |
3807 | ||
3808 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3809 | ||
3810 | fi; | |
3811 | ||
3812 | eval "$ac_cv_use_debug_cntxt" | |
3813 | if test "$no_cache" != 1; then | |
3814 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3815 | fi | |
3816 | ||
3817 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3818 | echo "$as_me:$LINENO: result: yes" >&5 | |
3819 | echo "${ECHO_T}yes" >&6 | |
3820 | else | |
3821 | echo "$as_me:$LINENO: result: no" >&5 | |
3822 | echo "${ECHO_T}no" >&6 | |
3823 | fi | |
3824 | ||
3825 | ||
3826 | enablestring= | |
3827 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3828 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3829 | no_cache=0 | |
3830 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3831 | if test "${enable_mem_tracing+set}" = set; then | |
3832 | enableval="$enable_mem_tracing" | |
3833 | ||
3834 | if test "$enableval" = yes; then | |
3835 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3836 | else | |
3837 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3838 | fi | |
3839 | ||
3840 | else | |
3841 | ||
3842 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3843 | if test "x$LINE" != x ; then | |
3844 | eval "DEFAULT_$LINE" | |
3845 | else | |
3846 | no_cache=1 | |
3847 | fi | |
3848 | ||
3849 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3850 | ||
3851 | fi; | |
3852 | ||
3853 | eval "$ac_cv_use_mem_tracing" | |
3854 | if test "$no_cache" != 1; then | |
3855 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3856 | fi | |
3857 | ||
3858 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3859 | echo "$as_me:$LINENO: result: yes" >&5 | |
3860 | echo "${ECHO_T}yes" >&6 | |
3861 | else | |
3862 | echo "$as_me:$LINENO: result: no" >&5 | |
3863 | echo "${ECHO_T}no" >&6 | |
3864 | fi | |
3865 | ||
3866 | ||
3867 | enablestring= | |
3868 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3869 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3870 | no_cache=0 | |
3871 | # Check whether --enable-profile or --disable-profile was given. | |
3872 | if test "${enable_profile+set}" = set; then | |
3873 | enableval="$enable_profile" | |
3874 | ||
3875 | if test "$enableval" = yes; then | |
3876 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3877 | else | |
3878 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3879 | fi | |
3880 | ||
3881 | else | |
3882 | ||
3883 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
3884 | if test "x$LINE" != x ; then | |
3885 | eval "DEFAULT_$LINE" | |
3886 | else | |
3887 | no_cache=1 | |
3888 | fi | |
3889 | ||
3890 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3891 | ||
3892 | fi; | |
3893 | ||
3894 | eval "$ac_cv_use_profile" | |
3895 | if test "$no_cache" != 1; then | |
3896 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3897 | fi | |
3898 | ||
3899 | if test "$wxUSE_PROFILE" = yes; then | |
3900 | echo "$as_me:$LINENO: result: yes" >&5 | |
3901 | echo "${ECHO_T}yes" >&6 | |
3902 | else | |
3903 | echo "$as_me:$LINENO: result: no" >&5 | |
3904 | echo "${ECHO_T}no" >&6 | |
3905 | fi | |
3906 | ||
3907 | ||
3908 | enablestring= | |
3909 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
3910 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
3911 | no_cache=0 | |
3912 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3913 | if test "${enable_no_rtti+set}" = set; then | |
3914 | enableval="$enable_no_rtti" | |
3915 | ||
3916 | if test "$enableval" = yes; then | |
3917 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3918 | else | |
3919 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3920 | fi | |
3921 | ||
3922 | else | |
3923 | ||
3924 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
3925 | if test "x$LINE" != x ; then | |
3926 | eval "DEFAULT_$LINE" | |
3927 | else | |
3928 | no_cache=1 | |
3929 | fi | |
3930 | ||
3931 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
3932 | ||
3933 | fi; | |
3934 | ||
3935 | eval "$ac_cv_use_no_rtti" | |
3936 | if test "$no_cache" != 1; then | |
3937 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3938 | fi | |
3939 | ||
3940 | if test "$wxUSE_NO_RTTI" = yes; then | |
3941 | echo "$as_me:$LINENO: result: yes" >&5 | |
3942 | echo "${ECHO_T}yes" >&6 | |
3943 | else | |
3944 | echo "$as_me:$LINENO: result: no" >&5 | |
3945 | echo "${ECHO_T}no" >&6 | |
3946 | fi | |
3947 | ||
3948 | ||
3949 | enablestring= | |
3950 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
3951 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
3952 | no_cache=0 | |
3953 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3954 | if test "${enable_no_exceptions+set}" = set; then | |
3955 | enableval="$enable_no_exceptions" | |
3956 | ||
3957 | if test "$enableval" = yes; then | |
3958 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3959 | else | |
3960 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3961 | fi | |
3962 | ||
3963 | else | |
3964 | ||
3965 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
3966 | if test "x$LINE" != x ; then | |
3967 | eval "DEFAULT_$LINE" | |
3968 | else | |
3969 | no_cache=1 | |
3970 | fi | |
3971 | ||
3972 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
3973 | ||
3974 | fi; | |
3975 | ||
3976 | eval "$ac_cv_use_no_exceptions" | |
3977 | if test "$no_cache" != 1; then | |
3978 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3979 | fi | |
3980 | ||
3981 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
3982 | echo "$as_me:$LINENO: result: yes" >&5 | |
3983 | echo "${ECHO_T}yes" >&6 | |
3984 | else | |
3985 | echo "$as_me:$LINENO: result: no" >&5 | |
3986 | echo "${ECHO_T}no" >&6 | |
3987 | fi | |
3988 | ||
3989 | ||
3990 | enablestring= | |
3991 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
3992 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
3993 | no_cache=0 | |
3994 | # Check whether --enable-permissive or --disable-permissive was given. | |
3995 | if test "${enable_permissive+set}" = set; then | |
3996 | enableval="$enable_permissive" | |
3997 | ||
3998 | if test "$enableval" = yes; then | |
3999 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
4000 | else | |
4001 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
4002 | fi | |
4003 | ||
4004 | else | |
4005 | ||
4006 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
4007 | if test "x$LINE" != x ; then | |
4008 | eval "DEFAULT_$LINE" | |
4009 | else | |
4010 | no_cache=1 | |
4011 | fi | |
4012 | ||
4013 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
4014 | ||
4015 | fi; | |
4016 | ||
4017 | eval "$ac_cv_use_permissive" | |
4018 | if test "$no_cache" != 1; then | |
4019 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
4020 | fi | |
4021 | ||
4022 | if test "$wxUSE_PERMISSIVE" = yes; then | |
4023 | echo "$as_me:$LINENO: result: yes" >&5 | |
4024 | echo "${ECHO_T}yes" >&6 | |
4025 | else | |
4026 | echo "$as_me:$LINENO: result: no" >&5 | |
4027 | echo "${ECHO_T}no" >&6 | |
4028 | fi | |
4029 | ||
4030 | ||
4031 | enablestring= | |
4032 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
4033 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
4034 | no_cache=0 | |
4035 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
4036 | if test "${enable_no_deps+set}" = set; then | |
4037 | enableval="$enable_no_deps" | |
4038 | ||
4039 | if test "$enableval" = yes; then | |
4040 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
4041 | else | |
4042 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
4043 | fi | |
4044 | ||
4045 | else | |
4046 | ||
4047 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4048 | if test "x$LINE" != x ; then | |
4049 | eval "DEFAULT_$LINE" | |
4050 | else | |
4051 | no_cache=1 | |
4052 | fi | |
4053 | ||
4054 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4055 | ||
4056 | fi; | |
4057 | ||
4058 | eval "$ac_cv_use_no_deps" | |
4059 | if test "$no_cache" != 1; then | |
4060 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4061 | fi | |
4062 | ||
4063 | if test "$wxUSE_NO_DEPS" = yes; then | |
4064 | echo "$as_me:$LINENO: result: yes" >&5 | |
4065 | echo "${ECHO_T}yes" >&6 | |
4066 | else | |
4067 | echo "$as_me:$LINENO: result: no" >&5 | |
4068 | echo "${ECHO_T}no" >&6 | |
4069 | fi | |
4070 | ||
4071 | ||
4072 | ||
4073 | enablestring= | |
4074 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 | |
4075 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
4076 | no_cache=0 | |
4077 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
4078 | if test "${enable_compat22+set}" = set; then | |
4079 | enableval="$enable_compat22" | |
4080 | ||
4081 | if test "$enableval" = yes; then | |
4082 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
4083 | else | |
4084 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
4085 | fi | |
4086 | ||
4087 | else | |
4088 | ||
4089 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
4090 | if test "x$LINE" != x ; then | |
4091 | eval "DEFAULT_$LINE" | |
4092 | else | |
4093 | no_cache=1 | |
4094 | fi | |
4095 | ||
4096 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
4097 | ||
4098 | fi; | |
4099 | ||
4100 | eval "$ac_cv_use_compat22" | |
4101 | if test "$no_cache" != 1; then | |
4102 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
4103 | fi | |
4104 | ||
4105 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
4106 | echo "$as_me:$LINENO: result: yes" >&5 | |
4107 | echo "${ECHO_T}yes" >&6 | |
4108 | else | |
4109 | echo "$as_me:$LINENO: result: no" >&5 | |
4110 | echo "${ECHO_T}no" >&6 | |
4111 | fi | |
4112 | ||
4113 | ||
4114 | enablestring=disable | |
4115 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4116 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
4117 | no_cache=0 | |
4118 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
4119 | if test "${enable_compat24+set}" = set; then | |
4120 | enableval="$enable_compat24" | |
4121 | ||
4122 | if test "$enableval" = yes; then | |
4123 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
4124 | else | |
4125 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
4126 | fi | |
4127 | ||
4128 | else | |
4129 | ||
4130 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
4131 | if test "x$LINE" != x ; then | |
4132 | eval "DEFAULT_$LINE" | |
4133 | else | |
4134 | no_cache=1 | |
4135 | fi | |
4136 | ||
4137 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
4138 | ||
4139 | fi; | |
4140 | ||
4141 | eval "$ac_cv_use_compat24" | |
4142 | if test "$no_cache" != 1; then | |
4143 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
4144 | fi | |
4145 | ||
4146 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
4147 | echo "$as_me:$LINENO: result: yes" >&5 | |
4148 | echo "${ECHO_T}yes" >&6 | |
4149 | else | |
4150 | echo "$as_me:$LINENO: result: no" >&5 | |
4151 | echo "${ECHO_T}no" >&6 | |
4152 | fi | |
4153 | ||
4154 | ||
ffa0583f RL |
4155 | |
4156 | enablestring= | |
4157 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5 | |
4158 | echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6 | |
4159 | no_cache=0 | |
4160 | # Check whether --enable-rpath or --disable-rpath was given. | |
a848cd7e SC |
4161 | if test "${enable_rpath+set}" = set; then |
4162 | enableval="$enable_rpath" | |
ffa0583f RL |
4163 | |
4164 | if test "$enableval" = yes; then | |
4165 | ac_cv_use_rpath='wxUSE_RPATH=yes' | |
4166 | else | |
4167 | ac_cv_use_rpath='wxUSE_RPATH=no' | |
4168 | fi | |
4169 | ||
4170 | else | |
4171 | ||
4172 | LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}` | |
4173 | if test "x$LINE" != x ; then | |
4174 | eval "DEFAULT_$LINE" | |
4175 | else | |
4176 | no_cache=1 | |
4177 | fi | |
4178 | ||
4179 | ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH | |
4180 | ||
a848cd7e SC |
4181 | fi; |
4182 | ||
ffa0583f RL |
4183 | eval "$ac_cv_use_rpath" |
4184 | if test "$no_cache" != 1; then | |
4185 | echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp | |
4186 | fi | |
4187 | ||
4188 | if test "$wxUSE_RPATH" = yes; then | |
4189 | echo "$as_me:$LINENO: result: yes" >&5 | |
4190 | echo "${ECHO_T}yes" >&6 | |
4191 | else | |
4192 | echo "$as_me:$LINENO: result: no" >&5 | |
4193 | echo "${ECHO_T}no" >&6 | |
4194 | fi | |
4195 | ||
a848cd7e SC |
4196 | |
4197 | ||
4198 | ||
4199 | ||
4200 | enablestring= | |
4201 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4202 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4203 | no_cache=0 | |
4204 | # Check whether --enable-intl or --disable-intl was given. | |
4205 | if test "${enable_intl+set}" = set; then | |
4206 | enableval="$enable_intl" | |
4207 | ||
4208 | if test "$enableval" = yes; then | |
4209 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4210 | else | |
4211 | ac_cv_use_intl='wxUSE_INTL=no' | |
4212 | fi | |
4213 | ||
4214 | else | |
4215 | ||
4216 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4217 | if test "x$LINE" != x ; then | |
4218 | eval "DEFAULT_$LINE" | |
4219 | else | |
4220 | no_cache=1 | |
4221 | fi | |
4222 | ||
4223 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4224 | ||
4225 | fi; | |
4226 | ||
4227 | eval "$ac_cv_use_intl" | |
4228 | if test "$no_cache" != 1; then | |
4229 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4230 | fi | |
4231 | ||
4232 | if test "$wxUSE_INTL" = yes; then | |
4233 | echo "$as_me:$LINENO: result: yes" >&5 | |
4234 | echo "${ECHO_T}yes" >&6 | |
4235 | else | |
4236 | echo "$as_me:$LINENO: result: no" >&5 | |
4237 | echo "${ECHO_T}no" >&6 | |
4238 | fi | |
4239 | ||
4240 | ||
4241 | enablestring= | |
4242 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4243 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4244 | no_cache=0 | |
4245 | # Check whether --enable-config or --disable-config was given. | |
4246 | if test "${enable_config+set}" = set; then | |
4247 | enableval="$enable_config" | |
4248 | ||
4249 | if test "$enableval" = yes; then | |
4250 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4251 | else | |
4252 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4253 | fi | |
4254 | ||
4255 | else | |
4256 | ||
4257 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4258 | if test "x$LINE" != x ; then | |
4259 | eval "DEFAULT_$LINE" | |
4260 | else | |
4261 | no_cache=1 | |
4262 | fi | |
4263 | ||
4264 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4265 | ||
4266 | fi; | |
4267 | ||
4268 | eval "$ac_cv_use_config" | |
4269 | if test "$no_cache" != 1; then | |
4270 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4271 | fi | |
4272 | ||
4273 | if test "$wxUSE_CONFIG" = yes; then | |
4274 | echo "$as_me:$LINENO: result: yes" >&5 | |
4275 | echo "${ECHO_T}yes" >&6 | |
4276 | else | |
4277 | echo "$as_me:$LINENO: result: no" >&5 | |
4278 | echo "${ECHO_T}no" >&6 | |
4279 | fi | |
4280 | ||
4281 | ||
4282 | ||
4283 | enablestring= | |
4284 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4285 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4286 | no_cache=0 | |
4287 | # Check whether --enable-protocols or --disable-protocols was given. | |
4288 | if test "${enable_protocols+set}" = set; then | |
4289 | enableval="$enable_protocols" | |
4290 | ||
4291 | if test "$enableval" = yes; then | |
4292 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4293 | else | |
4294 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4295 | fi | |
4296 | ||
4297 | else | |
4298 | ||
4299 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4300 | if test "x$LINE" != x ; then | |
4301 | eval "DEFAULT_$LINE" | |
4302 | else | |
4303 | no_cache=1 | |
4304 | fi | |
4305 | ||
4306 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4307 | ||
4308 | fi; | |
4309 | ||
4310 | eval "$ac_cv_use_protocols" | |
4311 | if test "$no_cache" != 1; then | |
4312 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4313 | fi | |
4314 | ||
4315 | if test "$wxUSE_PROTOCOL" = yes; then | |
4316 | echo "$as_me:$LINENO: result: yes" >&5 | |
4317 | echo "${ECHO_T}yes" >&6 | |
4318 | else | |
4319 | echo "$as_me:$LINENO: result: no" >&5 | |
4320 | echo "${ECHO_T}no" >&6 | |
4321 | fi | |
4322 | ||
4323 | ||
4324 | enablestring= | |
4325 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4326 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4327 | no_cache=0 | |
4328 | # Check whether --enable-ftp or --disable-ftp was given. | |
4329 | if test "${enable_ftp+set}" = set; then | |
4330 | enableval="$enable_ftp" | |
4331 | ||
4332 | if test "$enableval" = yes; then | |
4333 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4334 | else | |
4335 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4336 | fi | |
4337 | ||
4338 | else | |
4339 | ||
4340 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4341 | if test "x$LINE" != x ; then | |
4342 | eval "DEFAULT_$LINE" | |
4343 | else | |
4344 | no_cache=1 | |
4345 | fi | |
4346 | ||
4347 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4348 | ||
4349 | fi; | |
4350 | ||
4351 | eval "$ac_cv_use_ftp" | |
4352 | if test "$no_cache" != 1; then | |
4353 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4354 | fi | |
4355 | ||
4356 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4357 | echo "$as_me:$LINENO: result: yes" >&5 | |
4358 | echo "${ECHO_T}yes" >&6 | |
4359 | else | |
4360 | echo "$as_me:$LINENO: result: no" >&5 | |
4361 | echo "${ECHO_T}no" >&6 | |
4362 | fi | |
4363 | ||
4364 | ||
4365 | enablestring= | |
4366 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4367 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4368 | no_cache=0 | |
4369 | # Check whether --enable-http or --disable-http was given. | |
4370 | if test "${enable_http+set}" = set; then | |
4371 | enableval="$enable_http" | |
4372 | ||
4373 | if test "$enableval" = yes; then | |
4374 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4375 | else | |
4376 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4377 | fi | |
4378 | ||
4379 | else | |
4380 | ||
4381 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4382 | if test "x$LINE" != x ; then | |
4383 | eval "DEFAULT_$LINE" | |
4384 | else | |
4385 | no_cache=1 | |
4386 | fi | |
4387 | ||
4388 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4389 | ||
4390 | fi; | |
4391 | ||
4392 | eval "$ac_cv_use_http" | |
4393 | if test "$no_cache" != 1; then | |
4394 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4395 | fi | |
4396 | ||
4397 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4398 | echo "$as_me:$LINENO: result: yes" >&5 | |
4399 | echo "${ECHO_T}yes" >&6 | |
4400 | else | |
4401 | echo "$as_me:$LINENO: result: no" >&5 | |
4402 | echo "${ECHO_T}no" >&6 | |
4403 | fi | |
4404 | ||
4405 | ||
4406 | enablestring= | |
4407 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4408 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4409 | no_cache=0 | |
4410 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4411 | if test "${enable_fileproto+set}" = set; then | |
4412 | enableval="$enable_fileproto" | |
4413 | ||
4414 | if test "$enableval" = yes; then | |
4415 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4416 | else | |
4417 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4418 | fi | |
4419 | ||
4420 | else | |
4421 | ||
4422 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4423 | if test "x$LINE" != x ; then | |
4424 | eval "DEFAULT_$LINE" | |
4425 | else | |
4426 | no_cache=1 | |
4427 | fi | |
4428 | ||
4429 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4430 | ||
4431 | fi; | |
4432 | ||
4433 | eval "$ac_cv_use_fileproto" | |
4434 | if test "$no_cache" != 1; then | |
4435 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4436 | fi | |
4437 | ||
4438 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4439 | echo "$as_me:$LINENO: result: yes" >&5 | |
4440 | echo "${ECHO_T}yes" >&6 | |
4441 | else | |
4442 | echo "$as_me:$LINENO: result: no" >&5 | |
4443 | echo "${ECHO_T}no" >&6 | |
4444 | fi | |
4445 | ||
4446 | ||
4447 | enablestring= | |
4448 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4449 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4450 | no_cache=0 | |
4451 | # Check whether --enable-sockets or --disable-sockets was given. | |
4452 | if test "${enable_sockets+set}" = set; then | |
4453 | enableval="$enable_sockets" | |
4454 | ||
4455 | if test "$enableval" = yes; then | |
4456 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4457 | else | |
4458 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4459 | fi | |
4460 | ||
4461 | else | |
4462 | ||
4463 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4464 | if test "x$LINE" != x ; then | |
4465 | eval "DEFAULT_$LINE" | |
4466 | else | |
4467 | no_cache=1 | |
4468 | fi | |
4469 | ||
4470 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4471 | ||
4472 | fi; | |
4473 | ||
4474 | eval "$ac_cv_use_sockets" | |
4475 | if test "$no_cache" != 1; then | |
4476 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4477 | fi | |
4478 | ||
4479 | if test "$wxUSE_SOCKETS" = yes; then | |
4480 | echo "$as_me:$LINENO: result: yes" >&5 | |
4481 | echo "${ECHO_T}yes" >&6 | |
4482 | else | |
4483 | echo "$as_me:$LINENO: result: no" >&5 | |
4484 | echo "${ECHO_T}no" >&6 | |
4485 | fi | |
4486 | ||
4487 | ||
4488 | enablestring= | |
4489 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4490 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4491 | no_cache=0 | |
4492 | # Check whether --enable-ole or --disable-ole was given. | |
4493 | if test "${enable_ole+set}" = set; then | |
4494 | enableval="$enable_ole" | |
4495 | ||
4496 | if test "$enableval" = yes; then | |
4497 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4498 | else | |
4499 | ac_cv_use_ole='wxUSE_OLE=no' | |
4500 | fi | |
4501 | ||
4502 | else | |
4503 | ||
4504 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4505 | if test "x$LINE" != x ; then | |
4506 | eval "DEFAULT_$LINE" | |
4507 | else | |
4508 | no_cache=1 | |
4509 | fi | |
4510 | ||
4511 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4512 | ||
4513 | fi; | |
4514 | ||
4515 | eval "$ac_cv_use_ole" | |
4516 | if test "$no_cache" != 1; then | |
4517 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4518 | fi | |
4519 | ||
4520 | if test "$wxUSE_OLE" = yes; then | |
4521 | echo "$as_me:$LINENO: result: yes" >&5 | |
4522 | echo "${ECHO_T}yes" >&6 | |
4523 | else | |
4524 | echo "$as_me:$LINENO: result: no" >&5 | |
4525 | echo "${ECHO_T}no" >&6 | |
4526 | fi | |
4527 | ||
4528 | ||
4529 | enablestring= | |
4530 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4531 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4532 | no_cache=0 | |
4533 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4534 | if test "${enable_dataobj+set}" = set; then | |
4535 | enableval="$enable_dataobj" | |
4536 | ||
4537 | if test "$enableval" = yes; then | |
4538 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4539 | else | |
4540 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4541 | fi | |
4542 | ||
4543 | else | |
4544 | ||
4545 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4546 | if test "x$LINE" != x ; then | |
4547 | eval "DEFAULT_$LINE" | |
4548 | else | |
4549 | no_cache=1 | |
4550 | fi | |
4551 | ||
4552 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4553 | ||
4554 | fi; | |
4555 | ||
4556 | eval "$ac_cv_use_dataobj" | |
4557 | if test "$no_cache" != 1; then | |
4558 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4559 | fi | |
4560 | ||
4561 | if test "$wxUSE_DATAOBJ" = yes; then | |
4562 | echo "$as_me:$LINENO: result: yes" >&5 | |
4563 | echo "${ECHO_T}yes" >&6 | |
4564 | else | |
4565 | echo "$as_me:$LINENO: result: no" >&5 | |
4566 | echo "${ECHO_T}no" >&6 | |
4567 | fi | |
4568 | ||
4569 | ||
4570 | ||
4571 | enablestring= | |
4572 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4573 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4574 | no_cache=0 | |
4575 | # Check whether --enable-ipc or --disable-ipc was given. | |
4576 | if test "${enable_ipc+set}" = set; then | |
4577 | enableval="$enable_ipc" | |
4578 | ||
4579 | if test "$enableval" = yes; then | |
4580 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4581 | else | |
4582 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4583 | fi | |
4584 | ||
4585 | else | |
4586 | ||
4587 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4588 | if test "x$LINE" != x ; then | |
4589 | eval "DEFAULT_$LINE" | |
4590 | else | |
4591 | no_cache=1 | |
4592 | fi | |
4593 | ||
4594 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4595 | ||
4596 | fi; | |
4597 | ||
4598 | eval "$ac_cv_use_ipc" | |
4599 | if test "$no_cache" != 1; then | |
4600 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4601 | fi | |
4602 | ||
4603 | if test "$wxUSE_IPC" = yes; then | |
4604 | echo "$as_me:$LINENO: result: yes" >&5 | |
4605 | echo "${ECHO_T}yes" >&6 | |
4606 | else | |
4607 | echo "$as_me:$LINENO: result: no" >&5 | |
4608 | echo "${ECHO_T}no" >&6 | |
4609 | fi | |
4610 | ||
4611 | ||
4612 | ||
4613 | enablestring= | |
4614 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4615 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4616 | no_cache=0 | |
4617 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4618 | if test "${enable_apple_ieee+set}" = set; then | |
4619 | enableval="$enable_apple_ieee" | |
4620 | ||
4621 | if test "$enableval" = yes; then | |
4622 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4623 | else | |
4624 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4625 | fi | |
4626 | ||
4627 | else | |
4628 | ||
4629 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4630 | if test "x$LINE" != x ; then | |
4631 | eval "DEFAULT_$LINE" | |
4632 | else | |
4633 | no_cache=1 | |
4634 | fi | |
4635 | ||
4636 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4637 | ||
4638 | fi; | |
4639 | ||
4640 | eval "$ac_cv_use_apple_ieee" | |
4641 | if test "$no_cache" != 1; then | |
4642 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4643 | fi | |
4644 | ||
4645 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4646 | echo "$as_me:$LINENO: result: yes" >&5 | |
4647 | echo "${ECHO_T}yes" >&6 | |
4648 | else | |
4649 | echo "$as_me:$LINENO: result: no" >&5 | |
4650 | echo "${ECHO_T}no" >&6 | |
4651 | fi | |
4652 | ||
4653 | ||
81f90336 MW |
4654 | enablestring= |
4655 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5 | |
4656 | echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6 | |
4657 | no_cache=0 | |
4658 | # Check whether --enable-arcstream or --disable-arcstream was given. | |
4659 | if test "${enable_arcstream+set}" = set; then | |
4660 | enableval="$enable_arcstream" | |
4661 | ||
4662 | if test "$enableval" = yes; then | |
9e8e867f | 4663 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes' |
81f90336 | 4664 | else |
9e8e867f | 4665 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no' |
81f90336 MW |
4666 | fi |
4667 | ||
4668 | else | |
4669 | ||
9e8e867f | 4670 | LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}` |
81f90336 MW |
4671 | if test "x$LINE" != x ; then |
4672 | eval "DEFAULT_$LINE" | |
4673 | else | |
4674 | no_cache=1 | |
4675 | fi | |
4676 | ||
9e8e867f | 4677 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS |
81f90336 MW |
4678 | |
4679 | fi; | |
4680 | ||
4681 | eval "$ac_cv_use_arcstream" | |
4682 | if test "$no_cache" != 1; then | |
4683 | echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp | |
4684 | fi | |
4685 | ||
9e8e867f | 4686 | if test "$wxUSE_ARCHIVE_STREAMS" = yes; then |
81f90336 MW |
4687 | echo "$as_me:$LINENO: result: yes" >&5 |
4688 | echo "${ECHO_T}yes" >&6 | |
4689 | else | |
4690 | echo "$as_me:$LINENO: result: no" >&5 | |
4691 | echo "${ECHO_T}no" >&6 | |
4692 | fi | |
4693 | ||
4694 | ||
a848cd7e | 4695 | enablestring= |
36b6448c VZ |
4696 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5 |
4697 | echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6 | |
a848cd7e | 4698 | no_cache=0 |
36b6448c VZ |
4699 | # Check whether --enable-backtrace or --disable-backtrace was given. |
4700 | if test "${enable_backtrace+set}" = set; then | |
4701 | enableval="$enable_backtrace" | |
a848cd7e SC |
4702 | |
4703 | if test "$enableval" = yes; then | |
36b6448c | 4704 | ac_cv_use_backtrace='wxUSE_STACKWALKER=yes' |
a848cd7e | 4705 | else |
36b6448c | 4706 | ac_cv_use_backtrace='wxUSE_STACKWALKER=no' |
a848cd7e SC |
4707 | fi |
4708 | ||
4709 | else | |
4710 | ||
36b6448c | 4711 | LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}` |
a848cd7e SC |
4712 | if test "x$LINE" != x ; then |
4713 | eval "DEFAULT_$LINE" | |
4714 | else | |
4715 | no_cache=1 | |
4716 | fi | |
4717 | ||
36b6448c | 4718 | ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER |
a848cd7e SC |
4719 | |
4720 | fi; | |
4721 | ||
36b6448c | 4722 | eval "$ac_cv_use_backtrace" |
a848cd7e | 4723 | if test "$no_cache" != 1; then |
36b6448c | 4724 | echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4725 | fi |
4726 | ||
36b6448c | 4727 | if test "$wxUSE_STACKWALKER" = yes; then |
a848cd7e SC |
4728 | echo "$as_me:$LINENO: result: yes" >&5 |
4729 | echo "${ECHO_T}yes" >&6 | |
4730 | else | |
4731 | echo "$as_me:$LINENO: result: no" >&5 | |
4732 | echo "${ECHO_T}no" >&6 | |
4733 | fi | |
4734 | ||
4735 | ||
eaff0f0d | 4736 | enablestring= |
36b6448c VZ |
4737 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
4738 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
eaff0f0d | 4739 | no_cache=0 |
36b6448c VZ |
4740 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. |
4741 | if test "${enable_catch_segvs+set}" = set; then | |
4742 | enableval="$enable_catch_segvs" | |
eaff0f0d VZ |
4743 | |
4744 | if test "$enableval" = yes; then | |
36b6448c | 4745 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' |
eaff0f0d | 4746 | else |
36b6448c | 4747 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' |
eaff0f0d VZ |
4748 | fi |
4749 | ||
4750 | else | |
4751 | ||
36b6448c | 4752 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
eaff0f0d VZ |
4753 | if test "x$LINE" != x ; then |
4754 | eval "DEFAULT_$LINE" | |
4755 | else | |
4756 | no_cache=1 | |
4757 | fi | |
4758 | ||
36b6448c | 4759 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION |
eaff0f0d VZ |
4760 | |
4761 | fi; | |
4762 | ||
36b6448c | 4763 | eval "$ac_cv_use_catch_segvs" |
eaff0f0d | 4764 | if test "$no_cache" != 1; then |
36b6448c | 4765 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp |
eaff0f0d VZ |
4766 | fi |
4767 | ||
36b6448c | 4768 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then |
eaff0f0d VZ |
4769 | echo "$as_me:$LINENO: result: yes" >&5 |
4770 | echo "${ECHO_T}yes" >&6 | |
4771 | else | |
4772 | echo "$as_me:$LINENO: result: no" >&5 | |
4773 | echo "${ECHO_T}no" >&6 | |
4774 | fi | |
4775 | ||
4776 | ||
a848cd7e SC |
4777 | enablestring= |
4778 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4779 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4780 | no_cache=0 | |
4781 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4782 | if test "${enable_cmdline+set}" = set; then | |
4783 | enableval="$enable_cmdline" | |
4784 | ||
4785 | if test "$enableval" = yes; then | |
4786 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4787 | else | |
4788 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4789 | fi | |
4790 | ||
4791 | else | |
4792 | ||
4793 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4794 | if test "x$LINE" != x ; then | |
4795 | eval "DEFAULT_$LINE" | |
4796 | else | |
4797 | no_cache=1 | |
4798 | fi | |
4799 | ||
4800 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4801 | ||
4802 | fi; | |
4803 | ||
4804 | eval "$ac_cv_use_cmdline" | |
4805 | if test "$no_cache" != 1; then | |
4806 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4807 | fi | |
4808 | ||
4809 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4810 | echo "$as_me:$LINENO: result: yes" >&5 | |
4811 | echo "${ECHO_T}yes" >&6 | |
4812 | else | |
4813 | echo "$as_me:$LINENO: result: no" >&5 | |
4814 | echo "${ECHO_T}no" >&6 | |
4815 | fi | |
4816 | ||
4817 | ||
4818 | enablestring= | |
4819 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4820 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4821 | no_cache=0 | |
4822 | # Check whether --enable-datetime or --disable-datetime was given. | |
4823 | if test "${enable_datetime+set}" = set; then | |
4824 | enableval="$enable_datetime" | |
4825 | ||
4826 | if test "$enableval" = yes; then | |
4827 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4828 | else | |
4829 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4830 | fi | |
4831 | ||
4832 | else | |
4833 | ||
4834 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4835 | if test "x$LINE" != x ; then | |
4836 | eval "DEFAULT_$LINE" | |
4837 | else | |
4838 | no_cache=1 | |
4839 | fi | |
4840 | ||
4841 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4842 | ||
4843 | fi; | |
4844 | ||
4845 | eval "$ac_cv_use_datetime" | |
4846 | if test "$no_cache" != 1; then | |
4847 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4848 | fi | |
4849 | ||
4850 | if test "$wxUSE_DATETIME" = yes; then | |
4851 | echo "$as_me:$LINENO: result: yes" >&5 | |
4852 | echo "${ECHO_T}yes" >&6 | |
4853 | else | |
4854 | echo "$as_me:$LINENO: result: no" >&5 | |
4855 | echo "${ECHO_T}no" >&6 | |
4856 | fi | |
4857 | ||
4858 | ||
36b6448c VZ |
4859 | enablestring= |
4860 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5 | |
4861 | echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6 | |
4862 | no_cache=0 | |
4863 | # Check whether --enable-debugreport or --disable-debugreport was given. | |
4864 | if test "${enable_debugreport+set}" = set; then | |
4865 | enableval="$enable_debugreport" | |
4866 | ||
4867 | if test "$enableval" = yes; then | |
4868 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes' | |
4869 | else | |
4870 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no' | |
4871 | fi | |
4872 | ||
4873 | else | |
4874 | ||
4875 | LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}` | |
4876 | if test "x$LINE" != x ; then | |
4877 | eval "DEFAULT_$LINE" | |
4878 | else | |
4879 | no_cache=1 | |
4880 | fi | |
4881 | ||
4882 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT | |
4883 | ||
4884 | fi; | |
4885 | ||
4886 | eval "$ac_cv_use_debugreport" | |
4887 | if test "$no_cache" != 1; then | |
4888 | echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp | |
4889 | fi | |
4890 | ||
4891 | if test "$wxUSE_DEBUGREPORT" = yes; then | |
4892 | echo "$as_me:$LINENO: result: yes" >&5 | |
4893 | echo "${ECHO_T}yes" >&6 | |
4894 | else | |
4895 | echo "$as_me:$LINENO: result: no" >&5 | |
4896 | echo "${ECHO_T}no" >&6 | |
4897 | fi | |
4898 | ||
4899 | ||
a848cd7e SC |
4900 | enablestring= |
4901 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
4902 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
4903 | no_cache=0 | |
4904 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
4905 | if test "${enable_dialupman+set}" = set; then | |
4906 | enableval="$enable_dialupman" | |
4907 | ||
4908 | if test "$enableval" = yes; then | |
4909 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
4910 | else | |
4911 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
4912 | fi | |
4913 | ||
4914 | else | |
4915 | ||
4916 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
4917 | if test "x$LINE" != x ; then | |
4918 | eval "DEFAULT_$LINE" | |
4919 | else | |
4920 | no_cache=1 | |
4921 | fi | |
4922 | ||
4923 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
4924 | ||
4925 | fi; | |
4926 | ||
4927 | eval "$ac_cv_use_dialupman" | |
4928 | if test "$no_cache" != 1; then | |
4929 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
4930 | fi | |
4931 | ||
4932 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
4933 | echo "$as_me:$LINENO: result: yes" >&5 | |
4934 | echo "${ECHO_T}yes" >&6 | |
4935 | else | |
4936 | echo "$as_me:$LINENO: result: no" >&5 | |
4937 | echo "${ECHO_T}no" >&6 | |
4938 | fi | |
4939 | ||
4940 | ||
4941 | enablestring= | |
4942 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
4943 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
4944 | no_cache=0 | |
4945 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4946 | if test "${enable_dynlib+set}" = set; then | |
4947 | enableval="$enable_dynlib" | |
4948 | ||
4949 | if test "$enableval" = yes; then | |
4950 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4951 | else | |
4952 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4953 | fi | |
4954 | ||
4955 | else | |
4956 | ||
4957 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
4958 | if test "x$LINE" != x ; then | |
4959 | eval "DEFAULT_$LINE" | |
4960 | else | |
4961 | no_cache=1 | |
4962 | fi | |
4963 | ||
4964 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
4965 | ||
4966 | fi; | |
4967 | ||
4968 | eval "$ac_cv_use_dynlib" | |
4969 | if test "$no_cache" != 1; then | |
4970 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4971 | fi | |
4972 | ||
4973 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
4974 | echo "$as_me:$LINENO: result: yes" >&5 | |
4975 | echo "${ECHO_T}yes" >&6 | |
4976 | else | |
4977 | echo "$as_me:$LINENO: result: no" >&5 | |
4978 | echo "${ECHO_T}no" >&6 | |
4979 | fi | |
4980 | ||
4981 | ||
4982 | enablestring= | |
4983 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
4984 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
4985 | no_cache=0 | |
4986 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4987 | if test "${enable_dynamicloader+set}" = set; then | |
4988 | enableval="$enable_dynamicloader" | |
4989 | ||
4990 | if test "$enableval" = yes; then | |
4991 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4992 | else | |
4993 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4994 | fi | |
4995 | ||
4996 | else | |
4997 | ||
4998 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
4999 | if test "x$LINE" != x ; then | |
5000 | eval "DEFAULT_$LINE" | |
5001 | else | |
5002 | no_cache=1 | |
5003 | fi | |
5004 | ||
5005 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
5006 | ||
5007 | fi; | |
5008 | ||
5009 | eval "$ac_cv_use_dynamicloader" | |
5010 | if test "$no_cache" != 1; then | |
5011 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
5012 | fi | |
5013 | ||
5014 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
5015 | echo "$as_me:$LINENO: result: yes" >&5 | |
5016 | echo "${ECHO_T}yes" >&6 | |
5017 | else | |
5018 | echo "$as_me:$LINENO: result: no" >&5 | |
5019 | echo "${ECHO_T}no" >&6 | |
5020 | fi | |
5021 | ||
5022 | ||
5023 | enablestring= | |
5024 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
5025 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
5026 | no_cache=0 | |
5027 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
5028 | if test "${enable_exceptions+set}" = set; then | |
5029 | enableval="$enable_exceptions" | |
5030 | ||
5031 | if test "$enableval" = yes; then | |
5032 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
5033 | else | |
5034 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
5035 | fi | |
5036 | ||
5037 | else | |
5038 | ||
5039 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
5040 | if test "x$LINE" != x ; then | |
5041 | eval "DEFAULT_$LINE" | |
5042 | else | |
5043 | no_cache=1 | |
5044 | fi | |
5045 | ||
5046 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
5047 | ||
5048 | fi; | |
5049 | ||
5050 | eval "$ac_cv_use_exceptions" | |
5051 | if test "$no_cache" != 1; then | |
5052 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
5053 | fi | |
5054 | ||
5055 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
5056 | echo "$as_me:$LINENO: result: yes" >&5 | |
5057 | echo "${ECHO_T}yes" >&6 | |
5058 | else | |
5059 | echo "$as_me:$LINENO: result: no" >&5 | |
5060 | echo "${ECHO_T}no" >&6 | |
5061 | fi | |
5062 | ||
5063 | ||
5064 | enablestring= | |
5065 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
5066 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
5067 | no_cache=0 | |
5068 | # Check whether --enable-ffile or --disable-ffile was given. | |
5069 | if test "${enable_ffile+set}" = set; then | |
5070 | enableval="$enable_ffile" | |
5071 | ||
5072 | if test "$enableval" = yes; then | |
5073 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
5074 | else | |
5075 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
5076 | fi | |
5077 | ||
5078 | else | |
5079 | ||
5080 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
5081 | if test "x$LINE" != x ; then | |
5082 | eval "DEFAULT_$LINE" | |
5083 | else | |
5084 | no_cache=1 | |
5085 | fi | |
5086 | ||
5087 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
5088 | ||
5089 | fi; | |
5090 | ||
5091 | eval "$ac_cv_use_ffile" | |
5092 | if test "$no_cache" != 1; then | |
5093 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
5094 | fi | |
5095 | ||
5096 | if test "$wxUSE_FFILE" = yes; then | |
5097 | echo "$as_me:$LINENO: result: yes" >&5 | |
5098 | echo "${ECHO_T}yes" >&6 | |
5099 | else | |
5100 | echo "$as_me:$LINENO: result: no" >&5 | |
5101 | echo "${ECHO_T}no" >&6 | |
5102 | fi | |
5103 | ||
5104 | ||
5105 | enablestring= | |
5106 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
5107 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
5108 | no_cache=0 | |
5109 | # Check whether --enable-file or --disable-file was given. | |
5110 | if test "${enable_file+set}" = set; then | |
5111 | enableval="$enable_file" | |
5112 | ||
5113 | if test "$enableval" = yes; then | |
5114 | ac_cv_use_file='wxUSE_FILE=yes' | |
5115 | else | |
5116 | ac_cv_use_file='wxUSE_FILE=no' | |
5117 | fi | |
5118 | ||
5119 | else | |
5120 | ||
5121 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
5122 | if test "x$LINE" != x ; then | |
5123 | eval "DEFAULT_$LINE" | |
5124 | else | |
5125 | no_cache=1 | |
5126 | fi | |
5127 | ||
5128 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
5129 | ||
5130 | fi; | |
5131 | ||
5132 | eval "$ac_cv_use_file" | |
5133 | if test "$no_cache" != 1; then | |
5134 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
5135 | fi | |
5136 | ||
5137 | if test "$wxUSE_FILE" = yes; then | |
5138 | echo "$as_me:$LINENO: result: yes" >&5 | |
5139 | echo "${ECHO_T}yes" >&6 | |
5140 | else | |
5141 | echo "$as_me:$LINENO: result: no" >&5 | |
5142 | echo "${ECHO_T}no" >&6 | |
5143 | fi | |
5144 | ||
5145 | ||
5146 | enablestring= | |
5147 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
5148 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
5149 | no_cache=0 | |
5150 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5151 | if test "${enable_filesystem+set}" = set; then | |
5152 | enableval="$enable_filesystem" | |
5153 | ||
5154 | if test "$enableval" = yes; then | |
5155 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5156 | else | |
5157 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5158 | fi | |
5159 | ||
5160 | else | |
5161 | ||
5162 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
5163 | if test "x$LINE" != x ; then | |
5164 | eval "DEFAULT_$LINE" | |
5165 | else | |
5166 | no_cache=1 | |
5167 | fi | |
5168 | ||
5169 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
5170 | ||
5171 | fi; | |
5172 | ||
5173 | eval "$ac_cv_use_filesystem" | |
5174 | if test "$no_cache" != 1; then | |
5175 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5176 | fi | |
5177 | ||
5178 | if test "$wxUSE_FILESYSTEM" = yes; then | |
5179 | echo "$as_me:$LINENO: result: yes" >&5 | |
5180 | echo "${ECHO_T}yes" >&6 | |
5181 | else | |
5182 | echo "$as_me:$LINENO: result: no" >&5 | |
5183 | echo "${ECHO_T}no" >&6 | |
5184 | fi | |
5185 | ||
5186 | ||
5187 | enablestring= | |
5188 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
5189 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
5190 | no_cache=0 | |
5191 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
5192 | if test "${enable_fontmap+set}" = set; then | |
5193 | enableval="$enable_fontmap" | |
5194 | ||
5195 | if test "$enableval" = yes; then | |
5196 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
5197 | else | |
5198 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
5199 | fi | |
5200 | ||
5201 | else | |
5202 | ||
5203 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5204 | if test "x$LINE" != x ; then | |
5205 | eval "DEFAULT_$LINE" | |
5206 | else | |
5207 | no_cache=1 | |
5208 | fi | |
5209 | ||
5210 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5211 | ||
5212 | fi; | |
5213 | ||
5214 | eval "$ac_cv_use_fontmap" | |
5215 | if test "$no_cache" != 1; then | |
5216 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5217 | fi | |
5218 | ||
5219 | if test "$wxUSE_FONTMAP" = yes; then | |
5220 | echo "$as_me:$LINENO: result: yes" >&5 | |
5221 | echo "${ECHO_T}yes" >&6 | |
5222 | else | |
5223 | echo "$as_me:$LINENO: result: no" >&5 | |
5224 | echo "${ECHO_T}no" >&6 | |
5225 | fi | |
5226 | ||
5227 | ||
5228 | enablestring= | |
5229 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5230 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5231 | no_cache=0 | |
5232 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5233 | if test "${enable_fs_inet+set}" = set; then | |
5234 | enableval="$enable_fs_inet" | |
5235 | ||
5236 | if test "$enableval" = yes; then | |
5237 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5238 | else | |
5239 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5240 | fi | |
5241 | ||
5242 | else | |
5243 | ||
5244 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5245 | if test "x$LINE" != x ; then | |
5246 | eval "DEFAULT_$LINE" | |
5247 | else | |
5248 | no_cache=1 | |
5249 | fi | |
5250 | ||
5251 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5252 | ||
5253 | fi; | |
5254 | ||
5255 | eval "$ac_cv_use_fs_inet" | |
5256 | if test "$no_cache" != 1; then | |
5257 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5258 | fi | |
5259 | ||
5260 | if test "$wxUSE_FS_INET" = yes; then | |
5261 | echo "$as_me:$LINENO: result: yes" >&5 | |
5262 | echo "${ECHO_T}yes" >&6 | |
5263 | else | |
5264 | echo "$as_me:$LINENO: result: no" >&5 | |
5265 | echo "${ECHO_T}no" >&6 | |
5266 | fi | |
5267 | ||
5268 | ||
5269 | enablestring= | |
5270 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5271 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5272 | no_cache=0 | |
5273 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5274 | if test "${enable_fs_zip+set}" = set; then | |
5275 | enableval="$enable_fs_zip" | |
5276 | ||
5277 | if test "$enableval" = yes; then | |
5278 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5279 | else | |
5280 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5281 | fi | |
5282 | ||
5283 | else | |
5284 | ||
5285 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5286 | if test "x$LINE" != x ; then | |
5287 | eval "DEFAULT_$LINE" | |
5288 | else | |
5289 | no_cache=1 | |
5290 | fi | |
5291 | ||
5292 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5293 | ||
5294 | fi; | |
5295 | ||
5296 | eval "$ac_cv_use_fs_zip" | |
5297 | if test "$no_cache" != 1; then | |
5298 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5299 | fi | |
5300 | ||
5301 | if test "$wxUSE_FS_ZIP" = yes; then | |
5302 | echo "$as_me:$LINENO: result: yes" >&5 | |
5303 | echo "${ECHO_T}yes" >&6 | |
5304 | else | |
5305 | echo "$as_me:$LINENO: result: no" >&5 | |
5306 | echo "${ECHO_T}no" >&6 | |
5307 | fi | |
5308 | ||
5309 | ||
5310 | enablestring= | |
5311 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5312 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5313 | no_cache=0 | |
5314 | # Check whether --enable-geometry or --disable-geometry was given. | |
5315 | if test "${enable_geometry+set}" = set; then | |
5316 | enableval="$enable_geometry" | |
5317 | ||
5318 | if test "$enableval" = yes; then | |
5319 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5320 | else | |
5321 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5322 | fi | |
5323 | ||
5324 | else | |
5325 | ||
5326 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5327 | if test "x$LINE" != x ; then | |
5328 | eval "DEFAULT_$LINE" | |
5329 | else | |
5330 | no_cache=1 | |
5331 | fi | |
5332 | ||
5333 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5334 | ||
5335 | fi; | |
5336 | ||
5337 | eval "$ac_cv_use_geometry" | |
5338 | if test "$no_cache" != 1; then | |
5339 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5340 | fi | |
5341 | ||
5342 | if test "$wxUSE_GEOMETRY" = yes; then | |
5343 | echo "$as_me:$LINENO: result: yes" >&5 | |
5344 | echo "${ECHO_T}yes" >&6 | |
5345 | else | |
5346 | echo "$as_me:$LINENO: result: no" >&5 | |
5347 | echo "${ECHO_T}no" >&6 | |
5348 | fi | |
5349 | ||
5350 | ||
5351 | enablestring= | |
5352 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5353 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5354 | no_cache=0 | |
5355 | # Check whether --enable-log or --disable-log was given. | |
5356 | if test "${enable_log+set}" = set; then | |
5357 | enableval="$enable_log" | |
5358 | ||
5359 | if test "$enableval" = yes; then | |
5360 | ac_cv_use_log='wxUSE_LOG=yes' | |
5361 | else | |
5362 | ac_cv_use_log='wxUSE_LOG=no' | |
5363 | fi | |
5364 | ||
5365 | else | |
5366 | ||
5367 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5368 | if test "x$LINE" != x ; then | |
5369 | eval "DEFAULT_$LINE" | |
5370 | else | |
5371 | no_cache=1 | |
5372 | fi | |
5373 | ||
5374 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5375 | ||
5376 | fi; | |
5377 | ||
5378 | eval "$ac_cv_use_log" | |
5379 | if test "$no_cache" != 1; then | |
5380 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5381 | fi | |
5382 | ||
5383 | if test "$wxUSE_LOG" = yes; then | |
5384 | echo "$as_me:$LINENO: result: yes" >&5 | |
5385 | echo "${ECHO_T}yes" >&6 | |
5386 | else | |
5387 | echo "$as_me:$LINENO: result: no" >&5 | |
5388 | echo "${ECHO_T}no" >&6 | |
5389 | fi | |
5390 | ||
5391 | ||
5392 | enablestring= | |
5393 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5394 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5395 | no_cache=0 | |
5396 | # Check whether --enable-longlong or --disable-longlong was given. | |
5397 | if test "${enable_longlong+set}" = set; then | |
5398 | enableval="$enable_longlong" | |
5399 | ||
5400 | if test "$enableval" = yes; then | |
5401 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5402 | else | |
5403 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5404 | fi | |
5405 | ||
5406 | else | |
5407 | ||
5408 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5409 | if test "x$LINE" != x ; then | |
5410 | eval "DEFAULT_$LINE" | |
5411 | else | |
5412 | no_cache=1 | |
5413 | fi | |
5414 | ||
5415 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5416 | ||
5417 | fi; | |
5418 | ||
5419 | eval "$ac_cv_use_longlong" | |
5420 | if test "$no_cache" != 1; then | |
5421 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5422 | fi | |
5423 | ||
5424 | if test "$wxUSE_LONGLONG" = yes; then | |
5425 | echo "$as_me:$LINENO: result: yes" >&5 | |
5426 | echo "${ECHO_T}yes" >&6 | |
5427 | else | |
5428 | echo "$as_me:$LINENO: result: no" >&5 | |
5429 | echo "${ECHO_T}no" >&6 | |
5430 | fi | |
5431 | ||
5432 | ||
5433 | enablestring= | |
5434 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5435 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5436 | no_cache=0 | |
5437 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5438 | if test "${enable_mimetype+set}" = set; then | |
5439 | enableval="$enable_mimetype" | |
5440 | ||
5441 | if test "$enableval" = yes; then | |
5442 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5443 | else | |
5444 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5445 | fi | |
5446 | ||
5447 | else | |
5448 | ||
5449 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5450 | if test "x$LINE" != x ; then | |
5451 | eval "DEFAULT_$LINE" | |
5452 | else | |
5453 | no_cache=1 | |
5454 | fi | |
5455 | ||
5456 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5457 | ||
5458 | fi; | |
5459 | ||
5460 | eval "$ac_cv_use_mimetype" | |
5461 | if test "$no_cache" != 1; then | |
5462 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5463 | fi | |
5464 | ||
5465 | if test "$wxUSE_MIMETYPE" = yes; then | |
5466 | echo "$as_me:$LINENO: result: yes" >&5 | |
5467 | echo "${ECHO_T}yes" >&6 | |
5468 | else | |
5469 | echo "$as_me:$LINENO: result: no" >&5 | |
5470 | echo "${ECHO_T}no" >&6 | |
5471 | fi | |
5472 | ||
5473 | ||
5474 | enablestring= | |
5475 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5476 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5477 | no_cache=0 | |
5478 | # Check whether --enable-mslu or --disable-mslu was given. | |
5479 | if test "${enable_mslu+set}" = set; then | |
5480 | enableval="$enable_mslu" | |
5481 | ||
5482 | if test "$enableval" = yes; then | |
5483 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5484 | else | |
5485 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5486 | fi | |
5487 | ||
5488 | else | |
5489 | ||
5490 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5491 | if test "x$LINE" != x ; then | |
5492 | eval "DEFAULT_$LINE" | |
5493 | else | |
5494 | no_cache=1 | |
5495 | fi | |
5496 | ||
5497 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5498 | ||
5499 | fi; | |
5500 | ||
5501 | eval "$ac_cv_use_mslu" | |
5502 | if test "$no_cache" != 1; then | |
5503 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5504 | fi | |
5505 | ||
5506 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5507 | echo "$as_me:$LINENO: result: yes" >&5 | |
5508 | echo "${ECHO_T}yes" >&6 | |
5509 | else | |
5510 | echo "$as_me:$LINENO: result: no" >&5 | |
5511 | echo "${ECHO_T}no" >&6 | |
5512 | fi | |
5513 | ||
5514 | ||
5515 | enablestring= | |
5516 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5517 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5518 | no_cache=0 | |
5519 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5520 | if test "${enable_snglinst+set}" = set; then | |
5521 | enableval="$enable_snglinst" | |
5522 | ||
5523 | if test "$enableval" = yes; then | |
5524 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5525 | else | |
5526 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5527 | fi | |
5528 | ||
5529 | else | |
5530 | ||
5531 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5532 | if test "x$LINE" != x ; then | |
5533 | eval "DEFAULT_$LINE" | |
5534 | else | |
5535 | no_cache=1 | |
5536 | fi | |
5537 | ||
5538 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5539 | ||
5540 | fi; | |
5541 | ||
5542 | eval "$ac_cv_use_snglinst" | |
5543 | if test "$no_cache" != 1; then | |
5544 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5545 | fi | |
5546 | ||
5547 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5548 | echo "$as_me:$LINENO: result: yes" >&5 | |
5549 | echo "${ECHO_T}yes" >&6 | |
5550 | else | |
5551 | echo "$as_me:$LINENO: result: no" >&5 | |
5552 | echo "${ECHO_T}no" >&6 | |
5553 | fi | |
5554 | ||
5555 | ||
5556 | enablestring= | |
07158944 VZ |
5557 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5558 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
a848cd7e | 5559 | no_cache=0 |
07158944 VZ |
5560 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. |
5561 | if test "${enable_std_iostreams+set}" = set; then | |
5562 | enableval="$enable_std_iostreams" | |
a848cd7e SC |
5563 | |
5564 | if test "$enableval" = yes; then | |
07158944 | 5565 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' |
a848cd7e | 5566 | else |
07158944 | 5567 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' |
a848cd7e SC |
5568 | fi |
5569 | ||
5570 | else | |
5571 | ||
07158944 | 5572 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
a848cd7e SC |
5573 | if test "x$LINE" != x ; then |
5574 | eval "DEFAULT_$LINE" | |
5575 | else | |
5576 | no_cache=1 | |
5577 | fi | |
5578 | ||
07158944 | 5579 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM |
a848cd7e SC |
5580 | |
5581 | fi; | |
5582 | ||
07158944 | 5583 | eval "$ac_cv_use_std_iostreams" |
a848cd7e | 5584 | if test "$no_cache" != 1; then |
07158944 | 5585 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5586 | fi |
5587 | ||
07158944 | 5588 | if test "$wxUSE_STD_IOSTREAM" = yes; then |
a848cd7e SC |
5589 | echo "$as_me:$LINENO: result: yes" >&5 |
5590 | echo "${ECHO_T}yes" >&6 | |
5591 | else | |
5592 | echo "$as_me:$LINENO: result: no" >&5 | |
5593 | echo "${ECHO_T}no" >&6 | |
5594 | fi | |
5595 | ||
5596 | ||
59746b65 MW |
5597 | enablestring= |
5598 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5 | |
5599 | echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6 | |
5600 | no_cache=0 | |
5601 | # Check whether --enable-std_string or --disable-std_string was given. | |
5602 | if test "${enable_std_string+set}" = set; then | |
5603 | enableval="$enable_std_string" | |
5604 | ||
5605 | if test "$enableval" = yes; then | |
5606 | ac_cv_use_std_string='wxUSE_STD_STRING=yes' | |
5607 | else | |
5608 | ac_cv_use_std_string='wxUSE_STD_STRING=no' | |
5609 | fi | |
5610 | ||
5611 | else | |
5612 | ||
5613 | LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}` | |
5614 | if test "x$LINE" != x ; then | |
5615 | eval "DEFAULT_$LINE" | |
5616 | else | |
5617 | no_cache=1 | |
5618 | fi | |
5619 | ||
5620 | ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING | |
5621 | ||
5622 | fi; | |
5623 | ||
5624 | eval "$ac_cv_use_std_string" | |
5625 | if test "$no_cache" != 1; then | |
5626 | echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp | |
5627 | fi | |
5628 | ||
5629 | if test "$wxUSE_STD_STRING" = yes; then | |
5630 | echo "$as_me:$LINENO: result: yes" >&5 | |
5631 | echo "${ECHO_T}yes" >&6 | |
5632 | else | |
5633 | echo "$as_me:$LINENO: result: no" >&5 | |
5634 | echo "${ECHO_T}no" >&6 | |
5635 | fi | |
5636 | ||
5637 | ||
a848cd7e | 5638 | enablestring= |
07158944 VZ |
5639 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5 |
5640 | echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6 | |
a848cd7e | 5641 | no_cache=0 |
07158944 VZ |
5642 | # Check whether --enable-stdpaths or --disable-stdpaths was given. |
5643 | if test "${enable_stdpaths+set}" = set; then | |
5644 | enableval="$enable_stdpaths" | |
a848cd7e SC |
5645 | |
5646 | if test "$enableval" = yes; then | |
07158944 | 5647 | ac_cv_use_stdpaths='wxUSE_STDPATHS=yes' |
a848cd7e | 5648 | else |
07158944 | 5649 | ac_cv_use_stdpaths='wxUSE_STDPATHS=no' |
a848cd7e SC |
5650 | fi |
5651 | ||
5652 | else | |
5653 | ||
07158944 | 5654 | LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}` |
a848cd7e SC |
5655 | if test "x$LINE" != x ; then |
5656 | eval "DEFAULT_$LINE" | |
5657 | else | |
5658 | no_cache=1 | |
5659 | fi | |
5660 | ||
07158944 | 5661 | ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS |
a848cd7e SC |
5662 | |
5663 | fi; | |
5664 | ||
07158944 | 5665 | eval "$ac_cv_use_stdpaths" |
a848cd7e | 5666 | if test "$no_cache" != 1; then |
07158944 | 5667 | echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5668 | fi |
5669 | ||
07158944 | 5670 | if test "$wxUSE_STDPATHS" = yes; then |
a848cd7e SC |
5671 | echo "$as_me:$LINENO: result: yes" >&5 |
5672 | echo "${ECHO_T}yes" >&6 | |
5673 | else | |
5674 | echo "$as_me:$LINENO: result: no" >&5 | |
5675 | echo "${ECHO_T}no" >&6 | |
5676 | fi | |
5677 | ||
5678 | ||
5679 | enablestring= | |
5680 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5681 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5682 | no_cache=0 | |
5683 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5684 | if test "${enable_stopwatch+set}" = set; then | |
5685 | enableval="$enable_stopwatch" | |
5686 | ||
5687 | if test "$enableval" = yes; then | |
5688 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5689 | else | |
5690 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5691 | fi | |
5692 | ||
5693 | else | |
5694 | ||
5695 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5696 | if test "x$LINE" != x ; then | |
5697 | eval "DEFAULT_$LINE" | |
5698 | else | |
5699 | no_cache=1 | |
5700 | fi | |
5701 | ||
5702 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5703 | ||
5704 | fi; | |
5705 | ||
5706 | eval "$ac_cv_use_stopwatch" | |
5707 | if test "$no_cache" != 1; then | |
5708 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5709 | fi | |
5710 | ||
5711 | if test "$wxUSE_STOPWATCH" = yes; then | |
5712 | echo "$as_me:$LINENO: result: yes" >&5 | |
5713 | echo "${ECHO_T}yes" >&6 | |
5714 | else | |
5715 | echo "$as_me:$LINENO: result: no" >&5 | |
5716 | echo "${ECHO_T}no" >&6 | |
5717 | fi | |
5718 | ||
5719 | ||
07158944 VZ |
5720 | enablestring= |
5721 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5722 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5723 | no_cache=0 | |
5724 | # Check whether --enable-streams or --disable-streams was given. | |
5725 | if test "${enable_streams+set}" = set; then | |
5726 | enableval="$enable_streams" | |
5727 | ||
5728 | if test "$enableval" = yes; then | |
5729 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5730 | else | |
5731 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5732 | fi | |
5733 | ||
5734 | else | |
5735 | ||
5736 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5737 | if test "x$LINE" != x ; then | |
5738 | eval "DEFAULT_$LINE" | |
5739 | else | |
5740 | no_cache=1 | |
5741 | fi | |
5742 | ||
5743 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5744 | ||
5745 | fi; | |
5746 | ||
5747 | eval "$ac_cv_use_streams" | |
5748 | if test "$no_cache" != 1; then | |
5749 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5750 | fi | |
5751 | ||
5752 | if test "$wxUSE_STREAMS" = yes; then | |
5753 | echo "$as_me:$LINENO: result: yes" >&5 | |
5754 | echo "${ECHO_T}yes" >&6 | |
5755 | else | |
5756 | echo "$as_me:$LINENO: result: no" >&5 | |
5757 | echo "${ECHO_T}no" >&6 | |
5758 | fi | |
5759 | ||
5760 | ||
a848cd7e SC |
5761 | enablestring= |
5762 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5763 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5764 | no_cache=0 | |
5765 | # Check whether --enable-system_options or --disable-system_options was given. | |
5766 | if test "${enable_system_options+set}" = set; then | |
5767 | enableval="$enable_system_options" | |
5768 | ||
5769 | if test "$enableval" = yes; then | |
5770 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5771 | else | |
5772 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5773 | fi | |
5774 | ||
5775 | else | |
5776 | ||
5777 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5778 | if test "x$LINE" != x ; then | |
5779 | eval "DEFAULT_$LINE" | |
5780 | else | |
5781 | no_cache=1 | |
5782 | fi | |
5783 | ||
5784 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5785 | ||
5786 | fi; | |
5787 | ||
5788 | eval "$ac_cv_use_system_options" | |
5789 | if test "$no_cache" != 1; then | |
5790 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5791 | fi | |
5792 | ||
5793 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5794 | echo "$as_me:$LINENO: result: yes" >&5 | |
5795 | echo "${ECHO_T}yes" >&6 | |
5796 | else | |
5797 | echo "$as_me:$LINENO: result: no" >&5 | |
5798 | echo "${ECHO_T}no" >&6 | |
5799 | fi | |
5800 | ||
5801 | ||
5802 | enablestring= | |
5803 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5804 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5805 | no_cache=0 | |
5806 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5807 | if test "${enable_textbuf+set}" = set; then | |
5808 | enableval="$enable_textbuf" | |
5809 | ||
5810 | if test "$enableval" = yes; then | |
5811 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5812 | else | |
5813 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5814 | fi | |
5815 | ||
5816 | else | |
5817 | ||
5818 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
5819 | if test "x$LINE" != x ; then | |
5820 | eval "DEFAULT_$LINE" | |
5821 | else | |
5822 | no_cache=1 | |
5823 | fi | |
5824 | ||
5825 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5826 | ||
5827 | fi; | |
5828 | ||
5829 | eval "$ac_cv_use_textbuf" | |
5830 | if test "$no_cache" != 1; then | |
5831 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5832 | fi | |
5833 | ||
5834 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
5835 | echo "$as_me:$LINENO: result: yes" >&5 | |
5836 | echo "${ECHO_T}yes" >&6 | |
5837 | else | |
5838 | echo "$as_me:$LINENO: result: no" >&5 | |
5839 | echo "${ECHO_T}no" >&6 | |
5840 | fi | |
5841 | ||
5842 | ||
5843 | enablestring= | |
5844 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
5845 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
5846 | no_cache=0 | |
5847 | # Check whether --enable-textfile or --disable-textfile was given. | |
5848 | if test "${enable_textfile+set}" = set; then | |
5849 | enableval="$enable_textfile" | |
5850 | ||
5851 | if test "$enableval" = yes; then | |
5852 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
5853 | else | |
5854 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
5855 | fi | |
5856 | ||
5857 | else | |
5858 | ||
5859 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
5860 | if test "x$LINE" != x ; then | |
5861 | eval "DEFAULT_$LINE" | |
5862 | else | |
5863 | no_cache=1 | |
5864 | fi | |
5865 | ||
5866 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
5867 | ||
5868 | fi; | |
5869 | ||
5870 | eval "$ac_cv_use_textfile" | |
5871 | if test "$no_cache" != 1; then | |
5872 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
5873 | fi | |
5874 | ||
5875 | if test "$wxUSE_TEXTFILE" = yes; then | |
5876 | echo "$as_me:$LINENO: result: yes" >&5 | |
5877 | echo "${ECHO_T}yes" >&6 | |
5878 | else | |
5879 | echo "$as_me:$LINENO: result: no" >&5 | |
5880 | echo "${ECHO_T}no" >&6 | |
5881 | fi | |
5882 | ||
5883 | ||
5884 | enablestring= | |
5885 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
5886 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
5887 | no_cache=0 | |
5888 | # Check whether --enable-timer or --disable-timer was given. | |
5889 | if test "${enable_timer+set}" = set; then | |
5890 | enableval="$enable_timer" | |
5891 | ||
5892 | if test "$enableval" = yes; then | |
5893 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
5894 | else | |
5895 | ac_cv_use_timer='wxUSE_TIMER=no' | |
5896 | fi | |
5897 | ||
5898 | else | |
5899 | ||
5900 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
5901 | if test "x$LINE" != x ; then | |
5902 | eval "DEFAULT_$LINE" | |
5903 | else | |
5904 | no_cache=1 | |
5905 | fi | |
5906 | ||
5907 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
5908 | ||
5909 | fi; | |
5910 | ||
5911 | eval "$ac_cv_use_timer" | |
5912 | if test "$no_cache" != 1; then | |
5913 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
5914 | fi | |
5915 | ||
5916 | if test "$wxUSE_TIMER" = yes; then | |
5917 | echo "$as_me:$LINENO: result: yes" >&5 | |
5918 | echo "${ECHO_T}yes" >&6 | |
5919 | else | |
5920 | echo "$as_me:$LINENO: result: no" >&5 | |
5921 | echo "${ECHO_T}no" >&6 | |
5922 | fi | |
5923 | ||
5924 | ||
5925 | enablestring= | |
5926 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
5927 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
5928 | no_cache=0 | |
5929 | # Check whether --enable-unicode or --disable-unicode was given. | |
5930 | if test "${enable_unicode+set}" = set; then | |
5931 | enableval="$enable_unicode" | |
5932 | ||
5933 | if test "$enableval" = yes; then | |
5934 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
5935 | else | |
5936 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
5937 | fi | |
5938 | ||
5939 | else | |
5940 | ||
5941 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
5942 | if test "x$LINE" != x ; then | |
5943 | eval "DEFAULT_$LINE" | |
5944 | else | |
5945 | no_cache=1 | |
5946 | fi | |
5947 | ||
5948 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
5949 | ||
5950 | fi; | |
5951 | ||
5952 | eval "$ac_cv_use_unicode" | |
5953 | if test "$no_cache" != 1; then | |
5954 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
5955 | fi | |
5956 | ||
5957 | if test "$wxUSE_UNICODE" = yes; then | |
5958 | echo "$as_me:$LINENO: result: yes" >&5 | |
5959 | echo "${ECHO_T}yes" >&6 | |
5960 | else | |
5961 | echo "$as_me:$LINENO: result: no" >&5 | |
5962 | echo "${ECHO_T}no" >&6 | |
5963 | fi | |
5964 | ||
5965 | ||
5966 | enablestring= | |
5967 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
5968 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
5969 | no_cache=0 | |
5970 | # Check whether --enable-sound or --disable-sound was given. | |
5971 | if test "${enable_sound+set}" = set; then | |
5972 | enableval="$enable_sound" | |
5973 | ||
5974 | if test "$enableval" = yes; then | |
5975 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
5976 | else | |
5977 | ac_cv_use_sound='wxUSE_SOUND=no' | |
5978 | fi | |
5979 | ||
5980 | else | |
5981 | ||
5982 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
5983 | if test "x$LINE" != x ; then | |
5984 | eval "DEFAULT_$LINE" | |
5985 | else | |
5986 | no_cache=1 | |
5987 | fi | |
5988 | ||
5989 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
5990 | ||
5991 | fi; | |
5992 | ||
5993 | eval "$ac_cv_use_sound" | |
5994 | if test "$no_cache" != 1; then | |
5995 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
5996 | fi | |
5997 | ||
5998 | if test "$wxUSE_SOUND" = yes; then | |
5999 | echo "$as_me:$LINENO: result: yes" >&5 | |
6000 | echo "${ECHO_T}yes" >&6 | |
6001 | else | |
6002 | echo "$as_me:$LINENO: result: no" >&5 | |
6003 | echo "${ECHO_T}no" >&6 | |
6004 | fi | |
6005 | ||
6006 | ||
3b57de8b RL |
6007 | enablestring= |
6008 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5 | |
6009 | echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6 | |
6010 | no_cache=0 | |
6011 | # Check whether --enable-mediactrl or --disable-mediactrl was given. | |
6012 | if test "${enable_mediactrl+set}" = set; then | |
6013 | enableval="$enable_mediactrl" | |
6014 | ||
6015 | if test "$enableval" = yes; then | |
6016 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes' | |
6017 | else | |
6018 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no' | |
6019 | fi | |
6020 | ||
6021 | else | |
6022 | ||
6023 | LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}` | |
6024 | if test "x$LINE" != x ; then | |
6025 | eval "DEFAULT_$LINE" | |
6026 | else | |
6027 | no_cache=1 | |
6028 | fi | |
6029 | ||
6030 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL | |
6031 | ||
6032 | fi; | |
6033 | ||
6034 | eval "$ac_cv_use_mediactrl" | |
6035 | if test "$no_cache" != 1; then | |
6036 | echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp | |
6037 | fi | |
6038 | ||
6039 | if test "$wxUSE_MEDIACTRL" = yes; then | |
6040 | echo "$as_me:$LINENO: result: yes" >&5 | |
6041 | echo "${ECHO_T}yes" >&6 | |
6042 | else | |
6043 | echo "$as_me:$LINENO: result: no" >&5 | |
6044 | echo "${ECHO_T}no" >&6 | |
6045 | fi | |
6046 | ||
6047 | ||
a848cd7e SC |
6048 | enablestring= |
6049 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
6050 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
6051 | no_cache=0 | |
6052 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
6053 | if test "${enable_wxprintfv+set}" = set; then | |
6054 | enableval="$enable_wxprintfv" | |
6055 | ||
6056 | if test "$enableval" = yes; then | |
6057 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
6058 | else | |
6059 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
6060 | fi | |
6061 | ||
6062 | else | |
6063 | ||
6064 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
6065 | if test "x$LINE" != x ; then | |
6066 | eval "DEFAULT_$LINE" | |
6067 | else | |
6068 | no_cache=1 | |
6069 | fi | |
6070 | ||
6071 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
6072 | ||
6073 | fi; | |
6074 | ||
6075 | eval "$ac_cv_use_wxprintfv" | |
6076 | if test "$no_cache" != 1; then | |
6077 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
6078 | fi | |
6079 | ||
6080 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
6081 | echo "$as_me:$LINENO: result: yes" >&5 | |
6082 | echo "${ECHO_T}yes" >&6 | |
6083 | else | |
6084 | echo "$as_me:$LINENO: result: no" >&5 | |
6085 | echo "${ECHO_T}no" >&6 | |
6086 | fi | |
6087 | ||
6088 | ||
6089 | enablestring= | |
6090 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
6091 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
6092 | no_cache=0 | |
6093 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
6094 | if test "${enable_zipstream+set}" = set; then | |
6095 | enableval="$enable_zipstream" | |
6096 | ||
6097 | if test "$enableval" = yes; then | |
6098 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
6099 | else | |
6100 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
6101 | fi | |
6102 | ||
6103 | else | |
6104 | ||
6105 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
6106 | if test "x$LINE" != x ; then | |
6107 | eval "DEFAULT_$LINE" | |
6108 | else | |
6109 | no_cache=1 | |
6110 | fi | |
6111 | ||
6112 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
6113 | ||
6114 | fi; | |
6115 | ||
6116 | eval "$ac_cv_use_zipstream" | |
6117 | if test "$no_cache" != 1; then | |
6118 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
6119 | fi | |
6120 | ||
6121 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
6122 | echo "$as_me:$LINENO: result: yes" >&5 | |
6123 | echo "${ECHO_T}yes" >&6 | |
6124 | else | |
6125 | echo "$as_me:$LINENO: result: no" >&5 | |
6126 | echo "${ECHO_T}no" >&6 | |
6127 | fi | |
6128 | ||
6129 | ||
a848cd7e SC |
6130 | |
6131 | enablestring= | |
6132 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
6133 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
6134 | no_cache=0 | |
6135 | # Check whether --enable-url or --disable-url was given. | |
6136 | if test "${enable_url+set}" = set; then | |
6137 | enableval="$enable_url" | |
6138 | ||
6139 | if test "$enableval" = yes; then | |
6140 | ac_cv_use_url='wxUSE_URL=yes' | |
6141 | else | |
6142 | ac_cv_use_url='wxUSE_URL=no' | |
6143 | fi | |
6144 | ||
6145 | else | |
6146 | ||
6147 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
6148 | if test "x$LINE" != x ; then | |
6149 | eval "DEFAULT_$LINE" | |
6150 | else | |
6151 | no_cache=1 | |
6152 | fi | |
6153 | ||
6154 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
6155 | ||
6156 | fi; | |
6157 | ||
6158 | eval "$ac_cv_use_url" | |
6159 | if test "$no_cache" != 1; then | |
6160 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
6161 | fi | |
6162 | ||
6163 | if test "$wxUSE_URL" = yes; then | |
6164 | echo "$as_me:$LINENO: result: yes" >&5 | |
6165 | echo "${ECHO_T}yes" >&6 | |
6166 | else | |
6167 | echo "$as_me:$LINENO: result: no" >&5 | |
6168 | echo "${ECHO_T}no" >&6 | |
6169 | fi | |
6170 | ||
6171 | ||
6172 | enablestring= | |
6173 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
6174 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
6175 | no_cache=0 | |
6176 | # Check whether --enable-protocol or --disable-protocol was given. | |
6177 | if test "${enable_protocol+set}" = set; then | |
6178 | enableval="$enable_protocol" | |
6179 | ||
6180 | if test "$enableval" = yes; then | |
6181 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
6182 | else | |
6183 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
6184 | fi | |
6185 | ||
6186 | else | |
6187 | ||
6188 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
6189 | if test "x$LINE" != x ; then | |
6190 | eval "DEFAULT_$LINE" | |
6191 | else | |
6192 | no_cache=1 | |
6193 | fi | |
6194 | ||
6195 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
6196 | ||
6197 | fi; | |
6198 | ||
6199 | eval "$ac_cv_use_protocol" | |
6200 | if test "$no_cache" != 1; then | |
6201 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
6202 | fi | |
6203 | ||
6204 | if test "$wxUSE_PROTOCOL" = yes; then | |
6205 | echo "$as_me:$LINENO: result: yes" >&5 | |
6206 | echo "${ECHO_T}yes" >&6 | |
6207 | else | |
6208 | echo "$as_me:$LINENO: result: no" >&5 | |
6209 | echo "${ECHO_T}no" >&6 | |
6210 | fi | |
6211 | ||
6212 | ||
6213 | enablestring= | |
6214 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
6215 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
6216 | no_cache=0 | |
6217 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
6218 | if test "${enable_protocol_http+set}" = set; then | |
6219 | enableval="$enable_protocol_http" | |
6220 | ||
6221 | if test "$enableval" = yes; then | |
6222 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
6223 | else | |
6224 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
6225 | fi | |
6226 | ||
6227 | else | |
6228 | ||
6229 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
6230 | if test "x$LINE" != x ; then | |
6231 | eval "DEFAULT_$LINE" | |
6232 | else | |
6233 | no_cache=1 | |
6234 | fi | |
6235 | ||
6236 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
6237 | ||
6238 | fi; | |
6239 | ||
6240 | eval "$ac_cv_use_protocol_http" | |
6241 | if test "$no_cache" != 1; then | |
6242 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
6243 | fi | |
6244 | ||
6245 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
6246 | echo "$as_me:$LINENO: result: yes" >&5 | |
6247 | echo "${ECHO_T}yes" >&6 | |
6248 | else | |
6249 | echo "$as_me:$LINENO: result: no" >&5 | |
6250 | echo "${ECHO_T}no" >&6 | |
6251 | fi | |
6252 | ||
6253 | ||
6254 | enablestring= | |
6255 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
6256 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
6257 | no_cache=0 | |
6258 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
6259 | if test "${enable_protocol_ftp+set}" = set; then | |
6260 | enableval="$enable_protocol_ftp" | |
6261 | ||
6262 | if test "$enableval" = yes; then | |
6263 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
6264 | else | |
6265 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
6266 | fi | |
6267 | ||
6268 | else | |
6269 | ||
6270 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
6271 | if test "x$LINE" != x ; then | |
6272 | eval "DEFAULT_$LINE" | |
6273 | else | |
6274 | no_cache=1 | |
6275 | fi | |
6276 | ||
6277 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
6278 | ||
6279 | fi; | |
6280 | ||
6281 | eval "$ac_cv_use_protocol_ftp" | |
6282 | if test "$no_cache" != 1; then | |
6283 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
6284 | fi | |
6285 | ||
6286 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
6287 | echo "$as_me:$LINENO: result: yes" >&5 | |
6288 | echo "${ECHO_T}yes" >&6 | |
6289 | else | |
6290 | echo "$as_me:$LINENO: result: no" >&5 | |
6291 | echo "${ECHO_T}no" >&6 | |
6292 | fi | |
6293 | ||
6294 | ||
6295 | enablestring= | |
6296 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
6297 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
6298 | no_cache=0 | |
6299 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
6300 | if test "${enable_protocol_file+set}" = set; then | |
6301 | enableval="$enable_protocol_file" | |
6302 | ||
6303 | if test "$enableval" = yes; then | |
6304 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
6305 | else | |
6306 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
6307 | fi | |
6308 | ||
6309 | else | |
6310 | ||
6311 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
6312 | if test "x$LINE" != x ; then | |
6313 | eval "DEFAULT_$LINE" | |
6314 | else | |
6315 | no_cache=1 | |
6316 | fi | |
6317 | ||
6318 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
6319 | ||
6320 | fi; | |
6321 | ||
6322 | eval "$ac_cv_use_protocol_file" | |
6323 | if test "$no_cache" != 1; then | |
6324 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6325 | fi | |
6326 | ||
6327 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6328 | echo "$as_me:$LINENO: result: yes" >&5 | |
6329 | echo "${ECHO_T}yes" >&6 | |
6330 | else | |
6331 | echo "$as_me:$LINENO: result: no" >&5 | |
6332 | echo "${ECHO_T}no" >&6 | |
6333 | fi | |
6334 | ||
6335 | ||
6336 | ||
6337 | ||
6338 | ||
6339 | enablestring= | |
6340 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6341 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6342 | no_cache=0 | |
6343 | # Check whether --enable-threads or --disable-threads was given. | |
6344 | if test "${enable_threads+set}" = set; then | |
6345 | enableval="$enable_threads" | |
6346 | ||
6347 | if test "$enableval" = yes; then | |
6348 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6349 | else | |
6350 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6351 | fi | |
6352 | ||
6353 | else | |
6354 | ||
6355 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6356 | if test "x$LINE" != x ; then | |
6357 | eval "DEFAULT_$LINE" | |
6358 | else | |
6359 | no_cache=1 | |
6360 | fi | |
6361 | ||
6362 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6363 | ||
6364 | fi; | |
6365 | ||
6366 | eval "$ac_cv_use_threads" | |
6367 | if test "$no_cache" != 1; then | |
6368 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6369 | fi | |
6370 | ||
6371 | if test "$wxUSE_THREADS" = yes; then | |
6372 | echo "$as_me:$LINENO: result: yes" >&5 | |
6373 | echo "${ECHO_T}yes" >&6 | |
6374 | else | |
6375 | echo "$as_me:$LINENO: result: no" >&5 | |
6376 | echo "${ECHO_T}no" >&6 | |
6377 | fi | |
6378 | ||
6379 | ||
6380 | if test "$wxUSE_GUI" = "yes"; then | |
6381 | ||
6382 | ||
6383 | ||
6384 | enablestring= | |
6385 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6386 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6387 | no_cache=0 | |
6388 | # Check whether --enable-docview or --disable-docview was given. | |
6389 | if test "${enable_docview+set}" = set; then | |
6390 | enableval="$enable_docview" | |
6391 | ||
6392 | if test "$enableval" = yes; then | |
6393 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6394 | else | |
6395 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6396 | fi | |
6397 | ||
6398 | else | |
6399 | ||
6400 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6401 | if test "x$LINE" != x ; then | |
6402 | eval "DEFAULT_$LINE" | |
6403 | else | |
6404 | no_cache=1 | |
6405 | fi | |
6406 | ||
6407 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6408 | ||
6409 | fi; | |
6410 | ||
6411 | eval "$ac_cv_use_docview" | |
6412 | if test "$no_cache" != 1; then | |
6413 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6414 | fi | |
6415 | ||
6416 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6417 | echo "$as_me:$LINENO: result: yes" >&5 | |
6418 | echo "${ECHO_T}yes" >&6 | |
6419 | else | |
6420 | echo "$as_me:$LINENO: result: no" >&5 | |
6421 | echo "${ECHO_T}no" >&6 | |
6422 | fi | |
6423 | ||
6424 | ||
6425 | enablestring= | |
6426 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6427 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6428 | no_cache=0 | |
6429 | # Check whether --enable-help or --disable-help was given. | |
6430 | if test "${enable_help+set}" = set; then | |
6431 | enableval="$enable_help" | |
6432 | ||
6433 | if test "$enableval" = yes; then | |
6434 | ac_cv_use_help='wxUSE_HELP=yes' | |
6435 | else | |
6436 | ac_cv_use_help='wxUSE_HELP=no' | |
6437 | fi | |
6438 | ||
6439 | else | |
6440 | ||
6441 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6442 | if test "x$LINE" != x ; then | |
6443 | eval "DEFAULT_$LINE" | |
6444 | else | |
6445 | no_cache=1 | |
6446 | fi | |
6447 | ||
6448 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6449 | ||
6450 | fi; | |
6451 | ||
6452 | eval "$ac_cv_use_help" | |
6453 | if test "$no_cache" != 1; then | |
6454 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6455 | fi | |
6456 | ||
6457 | if test "$wxUSE_HELP" = yes; then | |
6458 | echo "$as_me:$LINENO: result: yes" >&5 | |
6459 | echo "${ECHO_T}yes" >&6 | |
6460 | else | |
6461 | echo "$as_me:$LINENO: result: no" >&5 | |
6462 | echo "${ECHO_T}no" >&6 | |
6463 | fi | |
6464 | ||
6465 | ||
6466 | enablestring= | |
6467 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6468 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6469 | no_cache=0 | |
6470 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6471 | if test "${enable_mshtmlhelp+set}" = set; then | |
6472 | enableval="$enable_mshtmlhelp" | |
6473 | ||
6474 | if test "$enableval" = yes; then | |
6475 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6476 | else | |
6477 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6478 | fi | |
6479 | ||
6480 | else | |
6481 | ||
6482 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6483 | if test "x$LINE" != x ; then | |
6484 | eval "DEFAULT_$LINE" | |
6485 | else | |
6486 | no_cache=1 | |
6487 | fi | |
6488 | ||
6489 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6490 | ||
6491 | fi; | |
6492 | ||
6493 | eval "$ac_cv_use_mshtmlhelp" | |
6494 | if test "$no_cache" != 1; then | |
6495 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6496 | fi | |
6497 | ||
6498 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6499 | echo "$as_me:$LINENO: result: yes" >&5 | |
6500 | echo "${ECHO_T}yes" >&6 | |
6501 | else | |
6502 | echo "$as_me:$LINENO: result: no" >&5 | |
6503 | echo "${ECHO_T}no" >&6 | |
6504 | fi | |
6505 | ||
6506 | ||
6507 | enablestring= | |
6508 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6509 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6510 | no_cache=0 | |
6511 | # Check whether --enable-html or --disable-html was given. | |
6512 | if test "${enable_html+set}" = set; then | |
6513 | enableval="$enable_html" | |
6514 | ||
6515 | if test "$enableval" = yes; then | |
6516 | ac_cv_use_html='wxUSE_HTML=yes' | |
6517 | else | |
6518 | ac_cv_use_html='wxUSE_HTML=no' | |
6519 | fi | |
6520 | ||
6521 | else | |
6522 | ||
6523 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6524 | if test "x$LINE" != x ; then | |
6525 | eval "DEFAULT_$LINE" | |
6526 | else | |
6527 | no_cache=1 | |
6528 | fi | |
6529 | ||
6530 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6531 | ||
6532 | fi; | |
6533 | ||
6534 | eval "$ac_cv_use_html" | |
6535 | if test "$no_cache" != 1; then | |
6536 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6537 | fi | |
6538 | ||
6539 | if test "$wxUSE_HTML" = yes; then | |
6540 | echo "$as_me:$LINENO: result: yes" >&5 | |
6541 | echo "${ECHO_T}yes" >&6 | |
6542 | else | |
6543 | echo "$as_me:$LINENO: result: no" >&5 | |
6544 | echo "${ECHO_T}no" >&6 | |
6545 | fi | |
6546 | ||
6547 | ||
6548 | enablestring= | |
6549 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6550 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6551 | no_cache=0 | |
6552 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6553 | if test "${enable_htmlhelp+set}" = set; then | |
6554 | enableval="$enable_htmlhelp" | |
6555 | ||
6556 | if test "$enableval" = yes; then | |
6557 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6558 | else | |
6559 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6560 | fi | |
6561 | ||
6562 | else | |
6563 | ||
6564 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6565 | if test "x$LINE" != x ; then | |
6566 | eval "DEFAULT_$LINE" | |
6567 | else | |
6568 | no_cache=1 | |
6569 | fi | |
6570 | ||
6571 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6572 | ||
6573 | fi; | |
6574 | ||
6575 | eval "$ac_cv_use_htmlhelp" | |
6576 | if test "$no_cache" != 1; then | |
6577 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6578 | fi | |
6579 | ||
6580 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6581 | echo "$as_me:$LINENO: result: yes" >&5 | |
6582 | echo "${ECHO_T}yes" >&6 | |
6583 | else | |
6584 | echo "$as_me:$LINENO: result: no" >&5 | |
6585 | echo "${ECHO_T}no" >&6 | |
6586 | fi | |
6587 | ||
6588 | ||
9a8f0513 VS |
6589 | enablestring= |
6590 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
6591 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
6592 | no_cache=0 | |
6593 | # Check whether --enable-xrc or --disable-xrc was given. | |
6594 | if test "${enable_xrc+set}" = set; then | |
6595 | enableval="$enable_xrc" | |
6596 | ||
6597 | if test "$enableval" = yes; then | |
6598 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
6599 | else | |
6600 | ac_cv_use_xrc='wxUSE_XRC=no' | |
6601 | fi | |
6602 | ||
6603 | else | |
6604 | ||
6605 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
6606 | if test "x$LINE" != x ; then | |
6607 | eval "DEFAULT_$LINE" | |
6608 | else | |
6609 | no_cache=1 | |
6610 | fi | |
6611 | ||
6612 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
6613 | ||
6614 | fi; | |
6615 | ||
6616 | eval "$ac_cv_use_xrc" | |
6617 | if test "$no_cache" != 1; then | |
6618 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
6619 | fi | |
6620 | ||
6621 | if test "$wxUSE_XRC" = yes; then | |
6622 | echo "$as_me:$LINENO: result: yes" >&5 | |
6623 | echo "${ECHO_T}yes" >&6 | |
6624 | else | |
6625 | echo "$as_me:$LINENO: result: no" >&5 | |
6626 | echo "${ECHO_T}no" >&6 | |
6627 | fi | |
6628 | ||
6629 | ||
a848cd7e SC |
6630 | enablestring= |
6631 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6632 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6633 | no_cache=0 | |
6634 | # Check whether --enable-constraints or --disable-constraints was given. | |
6635 | if test "${enable_constraints+set}" = set; then | |
6636 | enableval="$enable_constraints" | |
6637 | ||
6638 | if test "$enableval" = yes; then | |
6639 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6640 | else | |
6641 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6642 | fi | |
6643 | ||
6644 | else | |
6645 | ||
6646 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6647 | if test "x$LINE" != x ; then | |
6648 | eval "DEFAULT_$LINE" | |
6649 | else | |
6650 | no_cache=1 | |
6651 | fi | |
6652 | ||
6653 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6654 | ||
6655 | fi; | |
6656 | ||
6657 | eval "$ac_cv_use_constraints" | |
6658 | if test "$no_cache" != 1; then | |
6659 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6660 | fi | |
6661 | ||
6662 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6663 | echo "$as_me:$LINENO: result: yes" >&5 | |
6664 | echo "${ECHO_T}yes" >&6 | |
6665 | else | |
6666 | echo "$as_me:$LINENO: result: no" >&5 | |
6667 | echo "${ECHO_T}no" >&6 | |
6668 | fi | |
6669 | ||
6670 | ||
6671 | enablestring= | |
6672 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6673 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6674 | no_cache=0 | |
6675 | # Check whether --enable-printarch or --disable-printarch was given. | |
6676 | if test "${enable_printarch+set}" = set; then | |
6677 | enableval="$enable_printarch" | |
6678 | ||
6679 | if test "$enableval" = yes; then | |
6680 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6681 | else | |
6682 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6683 | fi | |
6684 | ||
6685 | else | |
6686 | ||
6687 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6688 | if test "x$LINE" != x ; then | |
6689 | eval "DEFAULT_$LINE" | |
6690 | else | |
6691 | no_cache=1 | |
6692 | fi | |
6693 | ||
6694 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6695 | ||
6696 | fi; | |
6697 | ||
6698 | eval "$ac_cv_use_printarch" | |
6699 | if test "$no_cache" != 1; then | |
6700 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6701 | fi | |
6702 | ||
6703 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6704 | echo "$as_me:$LINENO: result: yes" >&5 | |
6705 | echo "${ECHO_T}yes" >&6 | |
6706 | else | |
6707 | echo "$as_me:$LINENO: result: no" >&5 | |
6708 | echo "${ECHO_T}no" >&6 | |
6709 | fi | |
6710 | ||
6711 | ||
6712 | enablestring= | |
6713 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6714 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6715 | no_cache=0 | |
6716 | # Check whether --enable-mdi or --disable-mdi was given. | |
6717 | if test "${enable_mdi+set}" = set; then | |
6718 | enableval="$enable_mdi" | |
6719 | ||
6720 | if test "$enableval" = yes; then | |
8a7b1113 | 6721 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6722 | else |
8a7b1113 | 6723 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6724 | fi |
6725 | ||
6726 | else | |
6727 | ||
8a7b1113 | 6728 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6729 | if test "x$LINE" != x ; then |
6730 | eval "DEFAULT_$LINE" | |
6731 | else | |
6732 | no_cache=1 | |
6733 | fi | |
6734 | ||
8a7b1113 | 6735 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6736 | |
6737 | fi; | |
6738 | ||
6739 | eval "$ac_cv_use_mdi" | |
6740 | if test "$no_cache" != 1; then | |
6741 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6742 | fi | |
6743 | ||
8a7b1113 VZ |
6744 | if test "$wxUSE_MDI" = yes; then |
6745 | echo "$as_me:$LINENO: result: yes" >&5 | |
6746 | echo "${ECHO_T}yes" >&6 | |
6747 | else | |
6748 | echo "$as_me:$LINENO: result: no" >&5 | |
6749 | echo "${ECHO_T}no" >&6 | |
6750 | fi | |
6751 | ||
6752 | ||
6753 | enablestring= | |
6754 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6755 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6756 | no_cache=0 | |
6757 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6758 | if test "${enable_mdidoc+set}" = set; then | |
6759 | enableval="$enable_mdidoc" | |
6760 | ||
6761 | if test "$enableval" = yes; then | |
6762 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6763 | else | |
6764 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6765 | fi | |
6766 | ||
6767 | else | |
6768 | ||
6769 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6770 | if test "x$LINE" != x ; then | |
6771 | eval "DEFAULT_$LINE" | |
6772 | else | |
6773 | no_cache=1 | |
6774 | fi | |
6775 | ||
6776 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6777 | ||
6778 | fi; | |
6779 | ||
6780 | eval "$ac_cv_use_mdidoc" | |
6781 | if test "$no_cache" != 1; then | |
6782 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6783 | fi | |
6784 | ||
a848cd7e SC |
6785 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6786 | echo "$as_me:$LINENO: result: yes" >&5 | |
6787 | echo "${ECHO_T}yes" >&6 | |
6788 | else | |
6789 | echo "$as_me:$LINENO: result: no" >&5 | |
6790 | echo "${ECHO_T}no" >&6 | |
6791 | fi | |
6792 | ||
6793 | ||
6794 | enablestring= | |
6795 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6796 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6797 | no_cache=0 | |
6798 | # Check whether --enable-loggui or --disable-loggui was given. | |
6799 | if test "${enable_loggui+set}" = set; then | |
6800 | enableval="$enable_loggui" | |
6801 | ||
6802 | if test "$enableval" = yes; then | |
6803 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6804 | else | |
6805 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6806 | fi | |
6807 | ||
6808 | else | |
6809 | ||
6810 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6811 | if test "x$LINE" != x ; then | |
6812 | eval "DEFAULT_$LINE" | |
6813 | else | |
6814 | no_cache=1 | |
6815 | fi | |
6816 | ||
6817 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6818 | ||
6819 | fi; | |
6820 | ||
6821 | eval "$ac_cv_use_loggui" | |
6822 | if test "$no_cache" != 1; then | |
6823 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6824 | fi | |
6825 | ||
6826 | if test "$wxUSE_LOGGUI" = yes; then | |
6827 | echo "$as_me:$LINENO: result: yes" >&5 | |
6828 | echo "${ECHO_T}yes" >&6 | |
6829 | else | |
6830 | echo "$as_me:$LINENO: result: no" >&5 | |
6831 | echo "${ECHO_T}no" >&6 | |
6832 | fi | |
6833 | ||
6834 | ||
6835 | enablestring= | |
6836 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6837 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6838 | no_cache=0 | |
6839 | # Check whether --enable-logwin or --disable-logwin was given. | |
6840 | if test "${enable_logwin+set}" = set; then | |
6841 | enableval="$enable_logwin" | |
6842 | ||
6843 | if test "$enableval" = yes; then | |
6844 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6845 | else | |
6846 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6847 | fi | |
6848 | ||
6849 | else | |
6850 | ||
6851 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6852 | if test "x$LINE" != x ; then | |
6853 | eval "DEFAULT_$LINE" | |
6854 | else | |
6855 | no_cache=1 | |
6856 | fi | |
6857 | ||
6858 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6859 | ||
6860 | fi; | |
6861 | ||
6862 | eval "$ac_cv_use_logwin" | |
6863 | if test "$no_cache" != 1; then | |
6864 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6865 | fi | |
6866 | ||
6867 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6868 | echo "$as_me:$LINENO: result: yes" >&5 | |
6869 | echo "${ECHO_T}yes" >&6 | |
6870 | else | |
6871 | echo "$as_me:$LINENO: result: no" >&5 | |
6872 | echo "${ECHO_T}no" >&6 | |
6873 | fi | |
6874 | ||
6875 | ||
6876 | enablestring= | |
6877 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6878 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6879 | no_cache=0 | |
6880 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6881 | if test "${enable_logdialog+set}" = set; then | |
6882 | enableval="$enable_logdialog" | |
6883 | ||
6884 | if test "$enableval" = yes; then | |
6885 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6886 | else | |
6887 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6888 | fi | |
6889 | ||
6890 | else | |
6891 | ||
6892 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
6893 | if test "x$LINE" != x ; then | |
6894 | eval "DEFAULT_$LINE" | |
6895 | else | |
6896 | no_cache=1 | |
6897 | fi | |
6898 | ||
6899 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
6900 | ||
6901 | fi; | |
6902 | ||
6903 | eval "$ac_cv_use_logdialog" | |
6904 | if test "$no_cache" != 1; then | |
6905 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6906 | fi | |
6907 | ||
6908 | if test "$wxUSE_LOGDIALOG" = yes; then | |
6909 | echo "$as_me:$LINENO: result: yes" >&5 | |
6910 | echo "${ECHO_T}yes" >&6 | |
6911 | else | |
6912 | echo "$as_me:$LINENO: result: no" >&5 | |
6913 | echo "${ECHO_T}no" >&6 | |
6914 | fi | |
6915 | ||
6916 | ||
646b6ec1 VS |
6917 | enablestring= |
6918 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
6919 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
6920 | no_cache=0 | |
6921 | # Check whether --enable-webkit or --disable-webkit was given. | |
6922 | if test "${enable_webkit+set}" = set; then | |
6923 | enableval="$enable_webkit" | |
6924 | ||
6925 | if test "$enableval" = yes; then | |
6926 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
6927 | else | |
6928 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
6929 | fi | |
6930 | ||
6931 | else | |
6932 | ||
6933 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
6934 | if test "x$LINE" != x ; then | |
6935 | eval "DEFAULT_$LINE" | |
6936 | else | |
6937 | no_cache=1 | |
6938 | fi | |
6939 | ||
6940 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
6941 | ||
6942 | fi; | |
6943 | ||
6944 | eval "$ac_cv_use_webkit" | |
6945 | if test "$no_cache" != 1; then | |
6946 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
6947 | fi | |
6948 | ||
6949 | if test "$wxUSE_WEBKIT" = yes; then | |
6950 | echo "$as_me:$LINENO: result: yes" >&5 | |
6951 | echo "${ECHO_T}yes" >&6 | |
6952 | else | |
6953 | echo "$as_me:$LINENO: result: no" >&5 | |
6954 | echo "${ECHO_T}no" >&6 | |
6955 | fi | |
6956 | ||
6957 | ||
a848cd7e SC |
6958 | |
6959 | enablestring= | |
6960 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
6961 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
6962 | no_cache=0 | |
6963 | # Check whether --enable-postscript or --disable-postscript was given. | |
6964 | if test "${enable_postscript+set}" = set; then | |
6965 | enableval="$enable_postscript" | |
6966 | ||
6967 | if test "$enableval" = yes; then | |
6968 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6969 | else | |
6970 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6971 | fi | |
6972 | ||
6973 | else | |
6974 | ||
6975 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
6976 | if test "x$LINE" != x ; then | |
6977 | eval "DEFAULT_$LINE" | |
6978 | else | |
6979 | no_cache=1 | |
6980 | fi | |
6981 | ||
6982 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
6983 | ||
6984 | fi; | |
6985 | ||
6986 | eval "$ac_cv_use_postscript" | |
6987 | if test "$no_cache" != 1; then | |
6988 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6989 | fi | |
6990 | ||
6991 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
6992 | echo "$as_me:$LINENO: result: yes" >&5 | |
6993 | echo "${ECHO_T}yes" >&6 | |
6994 | else | |
6995 | echo "$as_me:$LINENO: result: no" >&5 | |
6996 | echo "${ECHO_T}no" >&6 | |
6997 | fi | |
6998 | ||
6999 | ||
7000 | ||
7001 | ||
7002 | ||
7003 | enablestring= | |
7004 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
7005 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
7006 | no_cache=0 | |
7007 | # Check whether --enable-prologio or --disable-prologio was given. | |
7008 | if test "${enable_prologio+set}" = set; then | |
7009 | enableval="$enable_prologio" | |
7010 | ||
7011 | if test "$enableval" = yes; then | |
7012 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
7013 | else | |
7014 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
7015 | fi | |
7016 | ||
7017 | else | |
7018 | ||
7019 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
7020 | if test "x$LINE" != x ; then | |
7021 | eval "DEFAULT_$LINE" | |
7022 | else | |
7023 | no_cache=1 | |
7024 | fi | |
7025 | ||
7026 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
7027 | ||
7028 | fi; | |
7029 | ||
7030 | eval "$ac_cv_use_prologio" | |
7031 | if test "$no_cache" != 1; then | |
7032 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
7033 | fi | |
7034 | ||
7035 | if test "$wxUSE_PROLOGIO" = yes; then | |
7036 | echo "$as_me:$LINENO: result: yes" >&5 | |
7037 | echo "${ECHO_T}yes" >&6 | |
7038 | else | |
7039 | echo "$as_me:$LINENO: result: no" >&5 | |
7040 | echo "${ECHO_T}no" >&6 | |
7041 | fi | |
7042 | ||
7043 | ||
7044 | enablestring= | |
7045 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
7046 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
7047 | no_cache=0 | |
7048 | # Check whether --enable-resources or --disable-resources was given. | |
7049 | if test "${enable_resources+set}" = set; then | |
7050 | enableval="$enable_resources" | |
7051 | ||
7052 | if test "$enableval" = yes; then | |
7053 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
7054 | else | |
7055 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
7056 | fi | |
7057 | ||
7058 | else | |
7059 | ||
7060 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
7061 | if test "x$LINE" != x ; then | |
7062 | eval "DEFAULT_$LINE" | |
7063 | else | |
7064 | no_cache=1 | |
7065 | fi | |
7066 | ||
7067 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
7068 | ||
7069 | fi; | |
7070 | ||
7071 | eval "$ac_cv_use_resources" | |
7072 | if test "$no_cache" != 1; then | |
7073 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
7074 | fi | |
7075 | ||
7076 | if test "$wxUSE_RESOURCES" = yes; then | |
7077 | echo "$as_me:$LINENO: result: yes" >&5 | |
7078 | echo "${ECHO_T}yes" >&6 | |
7079 | else | |
7080 | echo "$as_me:$LINENO: result: no" >&5 | |
7081 | echo "${ECHO_T}no" >&6 | |
7082 | fi | |
7083 | ||
7084 | ||
7085 | ||
7086 | ||
7087 | enablestring= | |
7088 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
7089 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
7090 | no_cache=0 | |
7091 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
7092 | if test "${enable_clipboard+set}" = set; then | |
7093 | enableval="$enable_clipboard" | |
7094 | ||
7095 | if test "$enableval" = yes; then | |
7096 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
7097 | else | |
7098 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
7099 | fi | |
7100 | ||
7101 | else | |
7102 | ||
7103 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
7104 | if test "x$LINE" != x ; then | |
7105 | eval "DEFAULT_$LINE" | |
7106 | else | |
7107 | no_cache=1 | |
7108 | fi | |
7109 | ||
7110 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
7111 | ||
7112 | fi; | |
7113 | ||
7114 | eval "$ac_cv_use_clipboard" | |
7115 | if test "$no_cache" != 1; then | |
7116 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
7117 | fi | |
7118 | ||
7119 | if test "$wxUSE_CLIPBOARD" = yes; then | |
7120 | echo "$as_me:$LINENO: result: yes" >&5 | |
7121 | echo "${ECHO_T}yes" >&6 | |
7122 | else | |
7123 | echo "$as_me:$LINENO: result: no" >&5 | |
7124 | echo "${ECHO_T}no" >&6 | |
7125 | fi | |
7126 | ||
7127 | ||
7128 | enablestring= | |
7129 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
7130 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
7131 | no_cache=0 | |
7132 | # Check whether --enable-dnd or --disable-dnd was given. | |
7133 | if test "${enable_dnd+set}" = set; then | |
7134 | enableval="$enable_dnd" | |
7135 | ||
7136 | if test "$enableval" = yes; then | |
7137 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
7138 | else | |
7139 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
7140 | fi | |
7141 | ||
7142 | else | |
7143 | ||
7144 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
7145 | if test "x$LINE" != x ; then | |
7146 | eval "DEFAULT_$LINE" | |
7147 | else | |
7148 | no_cache=1 | |
7149 | fi | |
7150 | ||
7151 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
7152 | ||
7153 | fi; | |
7154 | ||
7155 | eval "$ac_cv_use_dnd" | |
7156 | if test "$no_cache" != 1; then | |
7157 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
7158 | fi | |
7159 | ||
7160 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
7161 | echo "$as_me:$LINENO: result: yes" >&5 | |
7162 | echo "${ECHO_T}yes" >&6 | |
7163 | else | |
7164 | echo "$as_me:$LINENO: result: no" >&5 | |
7165 | echo "${ECHO_T}no" >&6 | |
7166 | fi | |
7167 | ||
7168 | ||
7169 | enablestring= | |
7170 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
7171 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
7172 | no_cache=0 | |
7173 | # Check whether --enable-metafile or --disable-metafile was given. | |
7174 | if test "${enable_metafile+set}" = set; then | |
7175 | enableval="$enable_metafile" | |
7176 | ||
7177 | if test "$enableval" = yes; then | |
7178 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7179 | else | |
7180 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7181 | fi | |
7182 | ||
7183 | else | |
7184 | ||
7185 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7186 | if test "x$LINE" != x ; then | |
7187 | eval "DEFAULT_$LINE" | |
7188 | else | |
7189 | no_cache=1 | |
7190 | fi | |
7191 | ||
7192 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7193 | ||
7194 | fi; | |
7195 | ||
7196 | eval "$ac_cv_use_metafile" | |
7197 | if test "$no_cache" != 1; then | |
7198 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7199 | fi | |
7200 | ||
7201 | if test "$wxUSE_METAFILE" = yes; then | |
7202 | echo "$as_me:$LINENO: result: yes" >&5 | |
7203 | echo "${ECHO_T}yes" >&6 | |
7204 | else | |
7205 | echo "$as_me:$LINENO: result: no" >&5 | |
7206 | echo "${ECHO_T}no" >&6 | |
7207 | fi | |
7208 | ||
7209 | ||
7210 | ||
7211 | ||
7212 | ||
7213 | enablestring= | |
7214 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
7215 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
7216 | no_cache=0 | |
7217 | # Check whether --enable-controls or --disable-controls was given. | |
7218 | if test "${enable_controls+set}" = set; then | |
7219 | enableval="$enable_controls" | |
7220 | ||
7221 | if test "$enableval" = yes; then | |
7222 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
7223 | else | |
7224 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
7225 | fi | |
7226 | ||
7227 | else | |
7228 | ||
7229 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
7230 | if test "x$LINE" != x ; then | |
7231 | eval "DEFAULT_$LINE" | |
7232 | else | |
7233 | no_cache=1 | |
7234 | fi | |
7235 | ||
7236 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
7237 | ||
7238 | fi; | |
7239 | ||
7240 | eval "$ac_cv_use_controls" | |
7241 | if test "$no_cache" != 1; then | |
7242 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
7243 | fi | |
7244 | ||
7245 | if test "$wxUSE_CONTROLS" = yes; then | |
7246 | echo "$as_me:$LINENO: result: yes" >&5 | |
7247 | echo "${ECHO_T}yes" >&6 | |
7248 | else | |
7249 | echo "$as_me:$LINENO: result: no" >&5 | |
7250 | echo "${ECHO_T}no" >&6 | |
7251 | fi | |
7252 | ||
7253 | ||
7254 | if test "$wxUSE_CONTROLS" = "yes"; then | |
7255 | DEFAULT_wxUSE_ACCEL=yes | |
7256 | DEFAULT_wxUSE_BMPBUTTON=yes | |
7257 | DEFAULT_wxUSE_BUTTON=yes | |
da98e9be | 7258 | DEFAULT_wxUSE_CALCTRL=yes |
a848cd7e SC |
7259 | DEFAULT_wxUSE_CARET=yes |
7260 | DEFAULT_wxUSE_COMBOBOX=yes | |
7261 | DEFAULT_wxUSE_CHECKBOX=yes | |
7262 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
7263 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 7264 | DEFAULT_wxUSE_CHOICEBOOK=yes |
da98e9be | 7265 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
7266 | DEFAULT_wxUSE_GAUGE=yes |
7267 | DEFAULT_wxUSE_GRID=yes | |
7268 | DEFAULT_wxUSE_IMAGLIST=yes | |
7269 | DEFAULT_wxUSE_LISTBOOK=yes | |
7270 | DEFAULT_wxUSE_LISTBOX=yes | |
7271 | DEFAULT_wxUSE_LISTCTRL=yes | |
7272 | DEFAULT_wxUSE_NOTEBOOK=yes | |
7273 | DEFAULT_wxUSE_RADIOBOX=yes | |
7274 | DEFAULT_wxUSE_RADIOBTN=yes | |
7275 | DEFAULT_wxUSE_SASH=yes | |
7276 | DEFAULT_wxUSE_SCROLLBAR=yes | |
7277 | DEFAULT_wxUSE_SLIDER=yes | |
7278 | DEFAULT_wxUSE_SPINBTN=yes | |
7279 | DEFAULT_wxUSE_SPINCTRL=yes | |
7280 | DEFAULT_wxUSE_SPLITTER=yes | |
7281 | DEFAULT_wxUSE_STATBMP=yes | |
7282 | DEFAULT_wxUSE_STATBOX=yes | |
7283 | DEFAULT_wxUSE_STATLINE=yes | |
7284 | DEFAULT_wxUSE_STATUSBAR=yes | |
7285 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
7286 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
7287 | DEFAULT_wxUSE_TOOLBAR=yes | |
7288 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
7289 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
7290 | DEFAULT_wxUSE_TOOLTIPS=yes | |
7291 | DEFAULT_wxUSE_TREECTRL=yes | |
7292 | DEFAULT_wxUSE_POPUPWIN=yes | |
7293 | DEFAULT_wxUSE_TIPWINDOW=yes | |
7294 | elif test "$wxUSE_CONTROLS" = "no"; then | |
7295 | DEFAULT_wxUSE_ACCEL=no | |
7296 | DEFAULT_wxUSE_BMPBUTTON=no | |
7297 | DEFAULT_wxUSE_BUTTON=no | |
7298 | DEFAULT_wxUSE_CALCTRL=no | |
7299 | DEFAULT_wxUSE_CARET=no | |
7300 | DEFAULT_wxUSE_COMBOBOX=no | |
7301 | DEFAULT_wxUSE_CHECKBOX=no | |
7302 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
7303 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 7304 | DEFAULT_wxUSE_CHOICEBOOK=no |
da98e9be | 7305 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
7306 | DEFAULT_wxUSE_GAUGE=no |
7307 | DEFAULT_wxUSE_GRID=no | |
7308 | DEFAULT_wxUSE_IMAGLIST=no | |
7309 | DEFAULT_wxUSE_LISTBOOK=no | |
7310 | DEFAULT_wxUSE_LISTBOX=no | |
7311 | DEFAULT_wxUSE_LISTCTRL=no | |
7312 | DEFAULT_wxUSE_NOTEBOOK=no | |
7313 | DEFAULT_wxUSE_RADIOBOX=no | |
7314 | DEFAULT_wxUSE_RADIOBTN=no | |
7315 | DEFAULT_wxUSE_SASH=no | |
7316 | DEFAULT_wxUSE_SCROLLBAR=no | |
7317 | DEFAULT_wxUSE_SLIDER=no | |
7318 | DEFAULT_wxUSE_SPINBTN=no | |
7319 | DEFAULT_wxUSE_SPINCTRL=no | |
7320 | DEFAULT_wxUSE_SPLITTER=no | |
7321 | DEFAULT_wxUSE_STATBMP=no | |
7322 | DEFAULT_wxUSE_STATBOX=no | |
7323 | DEFAULT_wxUSE_STATLINE=no | |
7324 | DEFAULT_wxUSE_STATUSBAR=no | |
7325 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7326 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7327 | DEFAULT_wxUSE_TOOLBAR=no | |
7328 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
7329 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
7330 | DEFAULT_wxUSE_TOOLTIPS=no | |
7331 | DEFAULT_wxUSE_TREECTRL=no | |
7332 | DEFAULT_wxUSE_POPUPWIN=no | |
7333 | DEFAULT_wxUSE_TIPWINDOW=no | |
7334 | fi | |
7335 | ||
a848cd7e SC |
7336 | |
7337 | enablestring= | |
7338 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7339 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7340 | no_cache=0 | |
7341 | # Check whether --enable-accel or --disable-accel was given. | |
7342 | if test "${enable_accel+set}" = set; then | |
7343 | enableval="$enable_accel" | |
7344 | ||
7345 | if test "$enableval" = yes; then | |
7346 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7347 | else | |
7348 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7349 | fi | |
7350 | ||
7351 | else | |
7352 | ||
7353 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7354 | if test "x$LINE" != x ; then | |
7355 | eval "DEFAULT_$LINE" | |
7356 | else | |
7357 | no_cache=1 | |
7358 | fi | |
7359 | ||
7360 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7361 | ||
7362 | fi; | |
7363 | ||
7364 | eval "$ac_cv_use_accel" | |
7365 | if test "$no_cache" != 1; then | |
7366 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7367 | fi | |
7368 | ||
7369 | if test "$wxUSE_ACCEL" = yes; then | |
7370 | echo "$as_me:$LINENO: result: yes" >&5 | |
7371 | echo "${ECHO_T}yes" >&6 | |
7372 | else | |
7373 | echo "$as_me:$LINENO: result: no" >&5 | |
7374 | echo "${ECHO_T}no" >&6 | |
7375 | fi | |
7376 | ||
7377 | ||
7378 | enablestring= | |
7379 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7380 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7381 | no_cache=0 | |
7382 | # Check whether --enable-button or --disable-button was given. | |
7383 | if test "${enable_button+set}" = set; then | |
7384 | enableval="$enable_button" | |
7385 | ||
7386 | if test "$enableval" = yes; then | |
7387 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7388 | else | |
7389 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7390 | fi | |
7391 | ||
7392 | else | |
7393 | ||
7394 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7395 | if test "x$LINE" != x ; then | |
7396 | eval "DEFAULT_$LINE" | |
7397 | else | |
7398 | no_cache=1 | |
7399 | fi | |
7400 | ||
7401 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7402 | ||
7403 | fi; | |
7404 | ||
7405 | eval "$ac_cv_use_button" | |
7406 | if test "$no_cache" != 1; then | |
7407 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7408 | fi | |
7409 | ||
7410 | if test "$wxUSE_BUTTON" = yes; then | |
7411 | echo "$as_me:$LINENO: result: yes" >&5 | |
7412 | echo "${ECHO_T}yes" >&6 | |
7413 | else | |
7414 | echo "$as_me:$LINENO: result: no" >&5 | |
7415 | echo "${ECHO_T}no" >&6 | |
7416 | fi | |
7417 | ||
7418 | ||
7419 | enablestring= | |
7420 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7421 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7422 | no_cache=0 | |
7423 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7424 | if test "${enable_bmpbutton+set}" = set; then | |
7425 | enableval="$enable_bmpbutton" | |
7426 | ||
7427 | if test "$enableval" = yes; then | |
7428 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7429 | else | |
7430 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7431 | fi | |
7432 | ||
7433 | else | |
7434 | ||
7435 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7436 | if test "x$LINE" != x ; then | |
7437 | eval "DEFAULT_$LINE" | |
7438 | else | |
7439 | no_cache=1 | |
7440 | fi | |
7441 | ||
7442 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7443 | ||
7444 | fi; | |
7445 | ||
7446 | eval "$ac_cv_use_bmpbutton" | |
7447 | if test "$no_cache" != 1; then | |
7448 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7449 | fi | |
7450 | ||
7451 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7452 | echo "$as_me:$LINENO: result: yes" >&5 | |
7453 | echo "${ECHO_T}yes" >&6 | |
7454 | else | |
7455 | echo "$as_me:$LINENO: result: no" >&5 | |
7456 | echo "${ECHO_T}no" >&6 | |
7457 | fi | |
7458 | ||
7459 | ||
7460 | enablestring= | |
7461 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7462 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7463 | no_cache=0 | |
7464 | # Check whether --enable-calendar or --disable-calendar was given. | |
7465 | if test "${enable_calendar+set}" = set; then | |
7466 | enableval="$enable_calendar" | |
7467 | ||
7468 | if test "$enableval" = yes; then | |
7469 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7470 | else | |
7471 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7472 | fi | |
7473 | ||
7474 | else | |
7475 | ||
7476 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7477 | if test "x$LINE" != x ; then | |
7478 | eval "DEFAULT_$LINE" | |
7479 | else | |
7480 | no_cache=1 | |
7481 | fi | |
7482 | ||
7483 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7484 | ||
7485 | fi; | |
7486 | ||
7487 | eval "$ac_cv_use_calendar" | |
7488 | if test "$no_cache" != 1; then | |
7489 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7490 | fi | |
7491 | ||
7492 | if test "$wxUSE_CALCTRL" = yes; then | |
7493 | echo "$as_me:$LINENO: result: yes" >&5 | |
7494 | echo "${ECHO_T}yes" >&6 | |
7495 | else | |
7496 | echo "$as_me:$LINENO: result: no" >&5 | |
7497 | echo "${ECHO_T}no" >&6 | |
7498 | fi | |
7499 | ||
7500 | ||
7501 | enablestring= | |
7502 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7503 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7504 | no_cache=0 | |
7505 | # Check whether --enable-caret or --disable-caret was given. | |
7506 | if test "${enable_caret+set}" = set; then | |
7507 | enableval="$enable_caret" | |
7508 | ||
7509 | if test "$enableval" = yes; then | |
7510 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7511 | else | |
7512 | ac_cv_use_caret='wxUSE_CARET=no' | |
7513 | fi | |
7514 | ||
7515 | else | |
7516 | ||
7517 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7518 | if test "x$LINE" != x ; then | |
7519 | eval "DEFAULT_$LINE" | |
7520 | else | |
7521 | no_cache=1 | |
7522 | fi | |
7523 | ||
7524 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7525 | ||
7526 | fi; | |
7527 | ||
7528 | eval "$ac_cv_use_caret" | |
7529 | if test "$no_cache" != 1; then | |
7530 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7531 | fi | |
7532 | ||
7533 | if test "$wxUSE_CARET" = yes; then | |
7534 | echo "$as_me:$LINENO: result: yes" >&5 | |
7535 | echo "${ECHO_T}yes" >&6 | |
7536 | else | |
7537 | echo "$as_me:$LINENO: result: no" >&5 | |
7538 | echo "${ECHO_T}no" >&6 | |
7539 | fi | |
7540 | ||
7541 | ||
7542 | enablestring= | |
7543 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7544 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7545 | no_cache=0 | |
7546 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7547 | if test "${enable_checkbox+set}" = set; then | |
7548 | enableval="$enable_checkbox" | |
7549 | ||
7550 | if test "$enableval" = yes; then | |
7551 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7552 | else | |
7553 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7554 | fi | |
7555 | ||
7556 | else | |
7557 | ||
7558 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7559 | if test "x$LINE" != x ; then | |
7560 | eval "DEFAULT_$LINE" | |
7561 | else | |
7562 | no_cache=1 | |
7563 | fi | |
7564 | ||
7565 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7566 | ||
7567 | fi; | |
7568 | ||
7569 | eval "$ac_cv_use_checkbox" | |
7570 | if test "$no_cache" != 1; then | |
7571 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7572 | fi | |
7573 | ||
7574 | if test "$wxUSE_CHECKBOX" = yes; then | |
7575 | echo "$as_me:$LINENO: result: yes" >&5 | |
7576 | echo "${ECHO_T}yes" >&6 | |
7577 | else | |
7578 | echo "$as_me:$LINENO: result: no" >&5 | |
7579 | echo "${ECHO_T}no" >&6 | |
7580 | fi | |
7581 | ||
7582 | ||
7583 | enablestring= | |
7584 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7585 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7586 | no_cache=0 | |
7587 | # Check whether --enable-checklst or --disable-checklst was given. | |
7588 | if test "${enable_checklst+set}" = set; then | |
7589 | enableval="$enable_checklst" | |
7590 | ||
7591 | if test "$enableval" = yes; then | |
7592 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7593 | else | |
7594 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7595 | fi | |
7596 | ||
7597 | else | |
7598 | ||
7599 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7600 | if test "x$LINE" != x ; then | |
7601 | eval "DEFAULT_$LINE" | |
7602 | else | |
7603 | no_cache=1 | |
7604 | fi | |
7605 | ||
7606 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7607 | ||
7608 | fi; | |
7609 | ||
7610 | eval "$ac_cv_use_checklst" | |
7611 | if test "$no_cache" != 1; then | |
7612 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7613 | fi | |
7614 | ||
7615 | if test "$wxUSE_CHECKLST" = yes; then | |
7616 | echo "$as_me:$LINENO: result: yes" >&5 | |
7617 | echo "${ECHO_T}yes" >&6 | |
7618 | else | |
7619 | echo "$as_me:$LINENO: result: no" >&5 | |
7620 | echo "${ECHO_T}no" >&6 | |
7621 | fi | |
7622 | ||
7623 | ||
7624 | enablestring= | |
7625 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7626 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7627 | no_cache=0 | |
7628 | # Check whether --enable-choice or --disable-choice was given. | |
7629 | if test "${enable_choice+set}" = set; then | |
7630 | enableval="$enable_choice" | |
7631 | ||
7632 | if test "$enableval" = yes; then | |
7633 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7634 | else | |
7635 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7636 | fi | |
7637 | ||
7638 | else | |
7639 | ||
7640 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7641 | if test "x$LINE" != x ; then | |
7642 | eval "DEFAULT_$LINE" | |
7643 | else | |
7644 | no_cache=1 | |
7645 | fi | |
7646 | ||
7647 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7648 | ||
7649 | fi; | |
7650 | ||
7651 | eval "$ac_cv_use_choice" | |
7652 | if test "$no_cache" != 1; then | |
7653 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7654 | fi | |
7655 | ||
7656 | if test "$wxUSE_CHOICE" = yes; then | |
7657 | echo "$as_me:$LINENO: result: yes" >&5 | |
7658 | echo "${ECHO_T}yes" >&6 | |
7659 | else | |
7660 | echo "$as_me:$LINENO: result: no" >&5 | |
7661 | echo "${ECHO_T}no" >&6 | |
7662 | fi | |
7663 | ||
7664 | ||
92bbdbcd WS |
7665 | enablestring= |
7666 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
7667 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
7668 | no_cache=0 | |
7669 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
7670 | if test "${enable_choicebook+set}" = set; then | |
7671 | enableval="$enable_choicebook" | |
7672 | ||
7673 | if test "$enableval" = yes; then | |
7674 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
7675 | else | |
7676 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
7677 | fi | |
7678 | ||
7679 | else | |
7680 | ||
7681 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
7682 | if test "x$LINE" != x ; then | |
7683 | eval "DEFAULT_$LINE" | |
7684 | else | |
7685 | no_cache=1 | |
7686 | fi | |
7687 | ||
7688 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
7689 | ||
7690 | fi; | |
7691 | ||
7692 | eval "$ac_cv_use_choicebook" | |
7693 | if test "$no_cache" != 1; then | |
7694 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
7695 | fi | |
7696 | ||
7697 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
7698 | echo "$as_me:$LINENO: result: yes" >&5 | |
7699 | echo "${ECHO_T}yes" >&6 | |
7700 | else | |
7701 | echo "$as_me:$LINENO: result: no" >&5 | |
7702 | echo "${ECHO_T}no" >&6 | |
7703 | fi | |
7704 | ||
7705 | ||
a848cd7e SC |
7706 | enablestring= |
7707 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
7708 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7709 | no_cache=0 | |
7710 | # Check whether --enable-combobox or --disable-combobox was given. | |
7711 | if test "${enable_combobox+set}" = set; then | |
7712 | enableval="$enable_combobox" | |
7713 | ||
7714 | if test "$enableval" = yes; then | |
7715 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7716 | else | |
7717 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7718 | fi | |
7719 | ||
7720 | else | |
7721 | ||
7722 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
7723 | if test "x$LINE" != x ; then | |
7724 | eval "DEFAULT_$LINE" | |
7725 | else | |
7726 | no_cache=1 | |
7727 | fi | |
7728 | ||
7729 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7730 | ||
7731 | fi; | |
7732 | ||
7733 | eval "$ac_cv_use_combobox" | |
7734 | if test "$no_cache" != 1; then | |
7735 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7736 | fi | |
7737 | ||
7738 | if test "$wxUSE_COMBOBOX" = yes; then | |
7739 | echo "$as_me:$LINENO: result: yes" >&5 | |
7740 | echo "${ECHO_T}yes" >&6 | |
7741 | else | |
7742 | echo "$as_me:$LINENO: result: no" >&5 | |
7743 | echo "${ECHO_T}no" >&6 | |
7744 | fi | |
7745 | ||
7746 | ||
da98e9be VZ |
7747 | enablestring= |
7748 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5 | |
7749 | echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6 | |
7750 | no_cache=0 | |
7751 | # Check whether --enable-datepick or --disable-datepick was given. | |
7752 | if test "${enable_datepick+set}" = set; then | |
7753 | enableval="$enable_datepick" | |
7754 | ||
7755 | if test "$enableval" = yes; then | |
7756 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes' | |
7757 | else | |
7758 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no' | |
7759 | fi | |
7760 | ||
7761 | else | |
7762 | ||
7763 | LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}` | |
7764 | if test "x$LINE" != x ; then | |
7765 | eval "DEFAULT_$LINE" | |
7766 | else | |
7767 | no_cache=1 | |
7768 | fi | |
7769 | ||
7770 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL | |
7771 | ||
7772 | fi; | |
7773 | ||
7774 | eval "$ac_cv_use_datepick" | |
7775 | if test "$no_cache" != 1; then | |
7776 | echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp | |
7777 | fi | |
7778 | ||
7779 | if test "$wxUSE_DATEPICKCTRL" = yes; then | |
7780 | echo "$as_me:$LINENO: result: yes" >&5 | |
7781 | echo "${ECHO_T}yes" >&6 | |
7782 | else | |
7783 | echo "$as_me:$LINENO: result: no" >&5 | |
7784 | echo "${ECHO_T}no" >&6 | |
7785 | fi | |
7786 | ||
7787 | ||
a848cd7e SC |
7788 | enablestring= |
7789 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
7790 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
7791 | no_cache=0 | |
7792 | # Check whether --enable-display or --disable-display was given. | |
7793 | if test "${enable_display+set}" = set; then | |
7794 | enableval="$enable_display" | |
7795 | ||
7796 | if test "$enableval" = yes; then | |
7797 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7798 | else | |
7799 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7800 | fi | |
7801 | ||
7802 | else | |
7803 | ||
7804 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
7805 | if test "x$LINE" != x ; then | |
7806 | eval "DEFAULT_$LINE" | |
7807 | else | |
7808 | no_cache=1 | |
7809 | fi | |
7810 | ||
7811 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
7812 | ||
7813 | fi; | |
7814 | ||
7815 | eval "$ac_cv_use_display" | |
7816 | if test "$no_cache" != 1; then | |
7817 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7818 | fi | |
7819 | ||
7820 | if test "$wxUSE_DISPLAY" = yes; then | |
7821 | echo "$as_me:$LINENO: result: yes" >&5 | |
7822 | echo "${ECHO_T}yes" >&6 | |
7823 | else | |
7824 | echo "$as_me:$LINENO: result: no" >&5 | |
7825 | echo "${ECHO_T}no" >&6 | |
7826 | fi | |
7827 | ||
7828 | ||
7829 | enablestring= | |
7830 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
7831 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
7832 | no_cache=0 | |
7833 | # Check whether --enable-gauge or --disable-gauge was given. | |
7834 | if test "${enable_gauge+set}" = set; then | |
7835 | enableval="$enable_gauge" | |
7836 | ||
7837 | if test "$enableval" = yes; then | |
7838 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7839 | else | |
7840 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7841 | fi | |
7842 | ||
7843 | else | |
7844 | ||
7845 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
7846 | if test "x$LINE" != x ; then | |
7847 | eval "DEFAULT_$LINE" | |
7848 | else | |
7849 | no_cache=1 | |
7850 | fi | |
7851 | ||
7852 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
7853 | ||
7854 | fi; | |
7855 | ||
7856 | eval "$ac_cv_use_gauge" | |
7857 | if test "$no_cache" != 1; then | |
7858 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7859 | fi | |
7860 | ||
7861 | if test "$wxUSE_GAUGE" = yes; then | |
7862 | echo "$as_me:$LINENO: result: yes" >&5 | |
7863 | echo "${ECHO_T}yes" >&6 | |
7864 | else | |
7865 | echo "$as_me:$LINENO: result: no" >&5 | |
7866 | echo "${ECHO_T}no" >&6 | |
7867 | fi | |
7868 | ||
7869 | ||
7870 | enablestring= | |
7871 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
7872 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
7873 | no_cache=0 | |
7874 | # Check whether --enable-grid or --disable-grid was given. | |
7875 | if test "${enable_grid+set}" = set; then | |
7876 | enableval="$enable_grid" | |
7877 | ||
7878 | if test "$enableval" = yes; then | |
7879 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7880 | else | |
7881 | ac_cv_use_grid='wxUSE_GRID=no' | |
7882 | fi | |
7883 | ||
7884 | else | |
7885 | ||
7886 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
7887 | if test "x$LINE" != x ; then | |
7888 | eval "DEFAULT_$LINE" | |
7889 | else | |
7890 | no_cache=1 | |
7891 | fi | |
7892 | ||
7893 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
7894 | ||
7895 | fi; | |
7896 | ||
7897 | eval "$ac_cv_use_grid" | |
7898 | if test "$no_cache" != 1; then | |
7899 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7900 | fi | |
7901 | ||
7902 | if test "$wxUSE_GRID" = yes; then | |
7903 | echo "$as_me:$LINENO: result: yes" >&5 | |
7904 | echo "${ECHO_T}yes" >&6 | |
7905 | else | |
7906 | echo "$as_me:$LINENO: result: no" >&5 | |
7907 | echo "${ECHO_T}no" >&6 | |
7908 | fi | |
7909 | ||
7910 | ||
7911 | enablestring= | |
7912 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
7913 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
7914 | no_cache=0 | |
7915 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7916 | if test "${enable_imaglist+set}" = set; then | |
7917 | enableval="$enable_imaglist" | |
7918 | ||
7919 | if test "$enableval" = yes; then | |
7920 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7921 | else | |
7922 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7923 | fi | |
7924 | ||
7925 | else | |
7926 | ||
7927 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
7928 | if test "x$LINE" != x ; then | |
7929 | eval "DEFAULT_$LINE" | |
7930 | else | |
7931 | no_cache=1 | |
7932 | fi | |
7933 | ||
7934 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
7935 | ||
7936 | fi; | |
7937 | ||
7938 | eval "$ac_cv_use_imaglist" | |
7939 | if test "$no_cache" != 1; then | |
7940 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7941 | fi | |
7942 | ||
7943 | if test "$wxUSE_IMAGLIST" = yes; then | |
7944 | echo "$as_me:$LINENO: result: yes" >&5 | |
7945 | echo "${ECHO_T}yes" >&6 | |
7946 | else | |
7947 | echo "$as_me:$LINENO: result: no" >&5 | |
7948 | echo "${ECHO_T}no" >&6 | |
7949 | fi | |
7950 | ||
7951 | ||
7952 | enablestring= | |
7953 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7954 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7955 | no_cache=0 | |
7956 | # Check whether --enable-listbook or --disable-listbook was given. | |
7957 | if test "${enable_listbook+set}" = set; then | |
7958 | enableval="$enable_listbook" | |
7959 | ||
7960 | if test "$enableval" = yes; then | |
7961 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7962 | else | |
7963 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7964 | fi | |
7965 | ||
7966 | else | |
7967 | ||
7968 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7969 | if test "x$LINE" != x ; then | |
7970 | eval "DEFAULT_$LINE" | |
7971 | else | |
7972 | no_cache=1 | |
7973 | fi | |
7974 | ||
7975 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7976 | ||
7977 | fi; | |
7978 | ||
7979 | eval "$ac_cv_use_listbook" | |
7980 | if test "$no_cache" != 1; then | |
7981 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7982 | fi | |
7983 | ||
7984 | if test "$wxUSE_LISTBOOK" = yes; then | |
7985 | echo "$as_me:$LINENO: result: yes" >&5 | |
7986 | echo "${ECHO_T}yes" >&6 | |
7987 | else | |
7988 | echo "$as_me:$LINENO: result: no" >&5 | |
7989 | echo "${ECHO_T}no" >&6 | |
7990 | fi | |
7991 | ||
7992 | ||
7993 | enablestring= | |
7994 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
7995 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
7996 | no_cache=0 | |
7997 | # Check whether --enable-listbox or --disable-listbox was given. | |
7998 | if test "${enable_listbox+set}" = set; then | |
7999 | enableval="$enable_listbox" | |
8000 | ||
8001 | if test "$enableval" = yes; then | |
8002 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
8003 | else | |
8004 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
8005 | fi | |
8006 | ||
8007 | else | |
8008 | ||
8009 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
8010 | if test "x$LINE" != x ; then | |
8011 | eval "DEFAULT_$LINE" | |
8012 | else | |
8013 | no_cache=1 | |
8014 | fi | |
8015 | ||
8016 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
8017 | ||
8018 | fi; | |
8019 | ||
8020 | eval "$ac_cv_use_listbox" | |
8021 | if test "$no_cache" != 1; then | |
8022 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
8023 | fi | |
8024 | ||
8025 | if test "$wxUSE_LISTBOX" = yes; then | |
8026 | echo "$as_me:$LINENO: result: yes" >&5 | |
8027 | echo "${ECHO_T}yes" >&6 | |
8028 | else | |
8029 | echo "$as_me:$LINENO: result: no" >&5 | |
8030 | echo "${ECHO_T}no" >&6 | |
8031 | fi | |
8032 | ||
8033 | ||
8034 | enablestring= | |
8035 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
8036 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
8037 | no_cache=0 | |
8038 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
8039 | if test "${enable_listctrl+set}" = set; then | |
8040 | enableval="$enable_listctrl" | |
8041 | ||
8042 | if test "$enableval" = yes; then | |
8043 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
8044 | else | |
8045 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
8046 | fi | |
8047 | ||
8048 | else | |
8049 | ||
8050 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
8051 | if test "x$LINE" != x ; then | |
8052 | eval "DEFAULT_$LINE" | |
8053 | else | |
8054 | no_cache=1 | |
8055 | fi | |
8056 | ||
8057 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
8058 | ||
8059 | fi; | |
8060 | ||
8061 | eval "$ac_cv_use_listctrl" | |
8062 | if test "$no_cache" != 1; then | |
8063 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
8064 | fi | |
8065 | ||
8066 | if test "$wxUSE_LISTCTRL" = yes; then | |
8067 | echo "$as_me:$LINENO: result: yes" >&5 | |
8068 | echo "${ECHO_T}yes" >&6 | |
8069 | else | |
8070 | echo "$as_me:$LINENO: result: no" >&5 | |
8071 | echo "${ECHO_T}no" >&6 | |
8072 | fi | |
8073 | ||
8074 | ||
8075 | enablestring= | |
8076 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
8077 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
8078 | no_cache=0 | |
8079 | # Check whether --enable-notebook or --disable-notebook was given. | |
8080 | if test "${enable_notebook+set}" = set; then | |
8081 | enableval="$enable_notebook" | |
8082 | ||
8083 | if test "$enableval" = yes; then | |
8084 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
8085 | else | |
8086 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
8087 | fi | |
8088 | ||
8089 | else | |
8090 | ||
8091 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
8092 | if test "x$LINE" != x ; then | |
8093 | eval "DEFAULT_$LINE" | |
8094 | else | |
8095 | no_cache=1 | |
8096 | fi | |
8097 | ||
8098 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
8099 | ||
8100 | fi; | |
8101 | ||
8102 | eval "$ac_cv_use_notebook" | |
8103 | if test "$no_cache" != 1; then | |
8104 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
8105 | fi | |
8106 | ||
8107 | if test "$wxUSE_NOTEBOOK" = yes; then | |
8108 | echo "$as_me:$LINENO: result: yes" >&5 | |
8109 | echo "${ECHO_T}yes" >&6 | |
8110 | else | |
8111 | echo "$as_me:$LINENO: result: no" >&5 | |
8112 | echo "${ECHO_T}no" >&6 | |
8113 | fi | |
8114 | ||
8115 | ||
8116 | enablestring= | |
8117 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
8118 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
8119 | no_cache=0 | |
8120 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
8121 | if test "${enable_radiobox+set}" = set; then | |
8122 | enableval="$enable_radiobox" | |
8123 | ||
8124 | if test "$enableval" = yes; then | |
8125 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
8126 | else | |
8127 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
8128 | fi | |
8129 | ||
8130 | else | |
8131 | ||
8132 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
8133 | if test "x$LINE" != x ; then | |
8134 | eval "DEFAULT_$LINE" | |
8135 | else | |
8136 | no_cache=1 | |
8137 | fi | |
8138 | ||
8139 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
8140 | ||
8141 | fi; | |
8142 | ||
8143 | eval "$ac_cv_use_radiobox" | |
8144 | if test "$no_cache" != 1; then | |
8145 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
8146 | fi | |
8147 | ||
8148 | if test "$wxUSE_RADIOBOX" = yes; then | |
8149 | echo "$as_me:$LINENO: result: yes" >&5 | |
8150 | echo "${ECHO_T}yes" >&6 | |
8151 | else | |
8152 | echo "$as_me:$LINENO: result: no" >&5 | |
8153 | echo "${ECHO_T}no" >&6 | |
8154 | fi | |
8155 | ||
8156 | ||
8157 | enablestring= | |
8158 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
8159 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
8160 | no_cache=0 | |
8161 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
8162 | if test "${enable_radiobtn+set}" = set; then | |
8163 | enableval="$enable_radiobtn" | |
8164 | ||
8165 | if test "$enableval" = yes; then | |
8166 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
8167 | else | |
8168 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
8169 | fi | |
8170 | ||
8171 | else | |
8172 | ||
8173 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
8174 | if test "x$LINE" != x ; then | |
8175 | eval "DEFAULT_$LINE" | |
8176 | else | |
8177 | no_cache=1 | |
8178 | fi | |
8179 | ||
8180 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
8181 | ||
8182 | fi; | |
8183 | ||
8184 | eval "$ac_cv_use_radiobtn" | |
8185 | if test "$no_cache" != 1; then | |
8186 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
8187 | fi | |
8188 | ||
8189 | if test "$wxUSE_RADIOBTN" = yes; then | |
8190 | echo "$as_me:$LINENO: result: yes" >&5 | |
8191 | echo "${ECHO_T}yes" >&6 | |
8192 | else | |
8193 | echo "$as_me:$LINENO: result: no" >&5 | |
8194 | echo "${ECHO_T}no" >&6 | |
8195 | fi | |
8196 | ||
8197 | ||
8198 | enablestring= | |
8199 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
8200 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
8201 | no_cache=0 | |
8202 | # Check whether --enable-sash or --disable-sash was given. | |
8203 | if test "${enable_sash+set}" = set; then | |
8204 | enableval="$enable_sash" | |
8205 | ||
8206 | if test "$enableval" = yes; then | |
8207 | ac_cv_use_sash='wxUSE_SASH=yes' | |
8208 | else | |
8209 | ac_cv_use_sash='wxUSE_SASH=no' | |
8210 | fi | |
8211 | ||
8212 | else | |
8213 | ||
8214 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
8215 | if test "x$LINE" != x ; then | |
8216 | eval "DEFAULT_$LINE" | |
8217 | else | |
8218 | no_cache=1 | |
8219 | fi | |
8220 | ||
8221 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
8222 | ||
8223 | fi; | |
8224 | ||
8225 | eval "$ac_cv_use_sash" | |
8226 | if test "$no_cache" != 1; then | |
8227 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
8228 | fi | |
8229 | ||
8230 | if test "$wxUSE_SASH" = yes; then | |
8231 | echo "$as_me:$LINENO: result: yes" >&5 | |
8232 | echo "${ECHO_T}yes" >&6 | |
8233 | else | |
8234 | echo "$as_me:$LINENO: result: no" >&5 | |
8235 | echo "${ECHO_T}no" >&6 | |
8236 | fi | |
8237 | ||
8238 | ||
8239 | enablestring= | |
8240 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
8241 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
8242 | no_cache=0 | |
8243 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
8244 | if test "${enable_scrollbar+set}" = set; then | |
8245 | enableval="$enable_scrollbar" | |
8246 | ||
8247 | if test "$enableval" = yes; then | |
8248 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
8249 | else | |
8250 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
8251 | fi | |
8252 | ||
8253 | else | |
8254 | ||
8255 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
8256 | if test "x$LINE" != x ; then | |
8257 | eval "DEFAULT_$LINE" | |
8258 | else | |
8259 | no_cache=1 | |
8260 | fi | |
8261 | ||
8262 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
8263 | ||
8264 | fi; | |
8265 | ||
8266 | eval "$ac_cv_use_scrollbar" | |
8267 | if test "$no_cache" != 1; then | |
8268 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
8269 | fi | |
8270 | ||
8271 | if test "$wxUSE_SCROLLBAR" = yes; then | |
8272 | echo "$as_me:$LINENO: result: yes" >&5 | |
8273 | echo "${ECHO_T}yes" >&6 | |
8274 | else | |
8275 | echo "$as_me:$LINENO: result: no" >&5 | |
8276 | echo "${ECHO_T}no" >&6 | |
8277 | fi | |
8278 | ||
8279 | ||
8280 | enablestring= | |
8281 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
8282 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
8283 | no_cache=0 | |
8284 | # Check whether --enable-slider or --disable-slider was given. | |
8285 | if test "${enable_slider+set}" = set; then | |
8286 | enableval="$enable_slider" | |
8287 | ||
8288 | if test "$enableval" = yes; then | |
8289 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
8290 | else | |
8291 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
8292 | fi | |
8293 | ||
8294 | else | |
8295 | ||
8296 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
8297 | if test "x$LINE" != x ; then | |
8298 | eval "DEFAULT_$LINE" | |
8299 | else | |
8300 | no_cache=1 | |
8301 | fi | |
8302 | ||
8303 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
8304 | ||
8305 | fi; | |
8306 | ||
8307 | eval "$ac_cv_use_slider" | |
8308 | if test "$no_cache" != 1; then | |
8309 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
8310 | fi | |
8311 | ||
8312 | if test "$wxUSE_SLIDER" = yes; then | |
8313 | echo "$as_me:$LINENO: result: yes" >&5 | |
8314 | echo "${ECHO_T}yes" >&6 | |
8315 | else | |
8316 | echo "$as_me:$LINENO: result: no" >&5 | |
8317 | echo "${ECHO_T}no" >&6 | |
8318 | fi | |
8319 | ||
8320 | ||
8321 | enablestring= | |
8322 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
8323 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
8324 | no_cache=0 | |
8325 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
8326 | if test "${enable_spinbtn+set}" = set; then | |
8327 | enableval="$enable_spinbtn" | |
8328 | ||
8329 | if test "$enableval" = yes; then | |
8330 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
8331 | else | |
8332 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
8333 | fi | |
8334 | ||
8335 | else | |
8336 | ||
8337 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
8338 | if test "x$LINE" != x ; then | |
8339 | eval "DEFAULT_$LINE" | |
8340 | else | |
8341 | no_cache=1 | |
8342 | fi | |
8343 | ||
8344 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
8345 | ||
8346 | fi; | |
8347 | ||
8348 | eval "$ac_cv_use_spinbtn" | |
8349 | if test "$no_cache" != 1; then | |
8350 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
8351 | fi | |
8352 | ||
8353 | if test "$wxUSE_SPINBTN" = yes; then | |
8354 | echo "$as_me:$LINENO: result: yes" >&5 | |
8355 | echo "${ECHO_T}yes" >&6 | |
8356 | else | |
8357 | echo "$as_me:$LINENO: result: no" >&5 | |
8358 | echo "${ECHO_T}no" >&6 | |
8359 | fi | |
8360 | ||
8361 | ||
8362 | enablestring= | |
8363 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
8364 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
8365 | no_cache=0 | |
8366 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
8367 | if test "${enable_spinctrl+set}" = set; then | |
8368 | enableval="$enable_spinctrl" | |
8369 | ||
8370 | if test "$enableval" = yes; then | |
8371 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
8372 | else | |
8373 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
8374 | fi | |
8375 | ||
8376 | else | |
8377 | ||
8378 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
8379 | if test "x$LINE" != x ; then | |
8380 | eval "DEFAULT_$LINE" | |
8381 | else | |
8382 | no_cache=1 | |
8383 | fi | |
8384 | ||
8385 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
8386 | ||
8387 | fi; | |
8388 | ||
8389 | eval "$ac_cv_use_spinctrl" | |
8390 | if test "$no_cache" != 1; then | |
8391 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
8392 | fi | |
8393 | ||
8394 | if test "$wxUSE_SPINCTRL" = yes; then | |
8395 | echo "$as_me:$LINENO: result: yes" >&5 | |
8396 | echo "${ECHO_T}yes" >&6 | |
8397 | else | |
8398 | echo "$as_me:$LINENO: result: no" >&5 | |
8399 | echo "${ECHO_T}no" >&6 | |
8400 | fi | |
8401 | ||
8402 | ||
8403 | enablestring= | |
8404 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
8405 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
8406 | no_cache=0 | |
8407 | # Check whether --enable-splitter or --disable-splitter was given. | |
8408 | if test "${enable_splitter+set}" = set; then | |
8409 | enableval="$enable_splitter" | |
8410 | ||
8411 | if test "$enableval" = yes; then | |
8412 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
8413 | else | |
8414 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
8415 | fi | |
8416 | ||
8417 | else | |
8418 | ||
8419 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
8420 | if test "x$LINE" != x ; then | |
8421 | eval "DEFAULT_$LINE" | |
8422 | else | |
8423 | no_cache=1 | |
8424 | fi | |
8425 | ||
8426 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
8427 | ||
8428 | fi; | |
8429 | ||
8430 | eval "$ac_cv_use_splitter" | |
8431 | if test "$no_cache" != 1; then | |
8432 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
8433 | fi | |
8434 | ||
8435 | if test "$wxUSE_SPLITTER" = yes; then | |
8436 | echo "$as_me:$LINENO: result: yes" >&5 | |
8437 | echo "${ECHO_T}yes" >&6 | |
8438 | else | |
8439 | echo "$as_me:$LINENO: result: no" >&5 | |
8440 | echo "${ECHO_T}no" >&6 | |
8441 | fi | |
8442 | ||
8443 | ||
8444 | enablestring= | |
8445 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
8446 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
8447 | no_cache=0 | |
8448 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
8449 | if test "${enable_statbmp+set}" = set; then | |
8450 | enableval="$enable_statbmp" | |
8451 | ||
8452 | if test "$enableval" = yes; then | |
8453 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8454 | else | |
8455 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8456 | fi | |
8457 | ||
8458 | else | |
8459 | ||
8460 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8461 | if test "x$LINE" != x ; then | |
8462 | eval "DEFAULT_$LINE" | |
8463 | else | |
8464 | no_cache=1 | |
8465 | fi | |
8466 | ||
8467 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8468 | ||
8469 | fi; | |
8470 | ||
8471 | eval "$ac_cv_use_statbmp" | |
8472 | if test "$no_cache" != 1; then | |
8473 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8474 | fi | |
8475 | ||
8476 | if test "$wxUSE_STATBMP" = yes; then | |
8477 | echo "$as_me:$LINENO: result: yes" >&5 | |
8478 | echo "${ECHO_T}yes" >&6 | |
8479 | else | |
8480 | echo "$as_me:$LINENO: result: no" >&5 | |
8481 | echo "${ECHO_T}no" >&6 | |
8482 | fi | |
8483 | ||
8484 | ||
8485 | enablestring= | |
8486 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8487 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8488 | no_cache=0 | |
8489 | # Check whether --enable-statbox or --disable-statbox was given. | |
8490 | if test "${enable_statbox+set}" = set; then | |
8491 | enableval="$enable_statbox" | |
8492 | ||
8493 | if test "$enableval" = yes; then | |
8494 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8495 | else | |
8496 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8497 | fi | |
8498 | ||
8499 | else | |
8500 | ||
8501 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8502 | if test "x$LINE" != x ; then | |
8503 | eval "DEFAULT_$LINE" | |
8504 | else | |
8505 | no_cache=1 | |
8506 | fi | |
8507 | ||
8508 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8509 | ||
8510 | fi; | |
8511 | ||
8512 | eval "$ac_cv_use_statbox" | |
8513 | if test "$no_cache" != 1; then | |
8514 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8515 | fi | |
8516 | ||
8517 | if test "$wxUSE_STATBOX" = yes; then | |
8518 | echo "$as_me:$LINENO: result: yes" >&5 | |
8519 | echo "${ECHO_T}yes" >&6 | |
8520 | else | |
8521 | echo "$as_me:$LINENO: result: no" >&5 | |
8522 | echo "${ECHO_T}no" >&6 | |
8523 | fi | |
8524 | ||
8525 | ||
8526 | enablestring= | |
8527 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8528 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8529 | no_cache=0 | |
8530 | # Check whether --enable-statline or --disable-statline was given. | |
8531 | if test "${enable_statline+set}" = set; then | |
8532 | enableval="$enable_statline" | |
8533 | ||
8534 | if test "$enableval" = yes; then | |
8535 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8536 | else | |
8537 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8538 | fi | |
8539 | ||
8540 | else | |
8541 | ||
8542 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8543 | if test "x$LINE" != x ; then | |
8544 | eval "DEFAULT_$LINE" | |
8545 | else | |
8546 | no_cache=1 | |
8547 | fi | |
8548 | ||
8549 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8550 | ||
8551 | fi; | |
8552 | ||
8553 | eval "$ac_cv_use_statline" | |
8554 | if test "$no_cache" != 1; then | |
8555 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8556 | fi | |
8557 | ||
8558 | if test "$wxUSE_STATLINE" = yes; then | |
8559 | echo "$as_me:$LINENO: result: yes" >&5 | |
8560 | echo "${ECHO_T}yes" >&6 | |
8561 | else | |
8562 | echo "$as_me:$LINENO: result: no" >&5 | |
8563 | echo "${ECHO_T}no" >&6 | |
8564 | fi | |
8565 | ||
8566 | ||
8567 | enablestring= | |
8568 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8569 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8570 | no_cache=0 | |
8571 | # Check whether --enable-stattext or --disable-stattext was given. | |
8572 | if test "${enable_stattext+set}" = set; then | |
8573 | enableval="$enable_stattext" | |
8574 | ||
8575 | if test "$enableval" = yes; then | |
8576 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8577 | else | |
8578 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8579 | fi | |
8580 | ||
8581 | else | |
8582 | ||
8583 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8584 | if test "x$LINE" != x ; then | |
8585 | eval "DEFAULT_$LINE" | |
8586 | else | |
8587 | no_cache=1 | |
8588 | fi | |
8589 | ||
8590 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8591 | ||
8592 | fi; | |
8593 | ||
8594 | eval "$ac_cv_use_stattext" | |
8595 | if test "$no_cache" != 1; then | |
8596 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8597 | fi | |
8598 | ||
8599 | if test "$wxUSE_STATTEXT" = yes; then | |
8600 | echo "$as_me:$LINENO: result: yes" >&5 | |
8601 | echo "${ECHO_T}yes" >&6 | |
8602 | else | |
8603 | echo "$as_me:$LINENO: result: no" >&5 | |
8604 | echo "${ECHO_T}no" >&6 | |
8605 | fi | |
8606 | ||
8607 | ||
8608 | enablestring= | |
8609 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8610 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8611 | no_cache=0 | |
8612 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8613 | if test "${enable_statusbar+set}" = set; then | |
8614 | enableval="$enable_statusbar" | |
8615 | ||
8616 | if test "$enableval" = yes; then | |
8617 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8618 | else | |
8619 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8620 | fi | |
8621 | ||
8622 | else | |
8623 | ||
8624 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8625 | if test "x$LINE" != x ; then | |
8626 | eval "DEFAULT_$LINE" | |
8627 | else | |
8628 | no_cache=1 | |
8629 | fi | |
8630 | ||
8631 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8632 | ||
8633 | fi; | |
8634 | ||
8635 | eval "$ac_cv_use_statusbar" | |
8636 | if test "$no_cache" != 1; then | |
8637 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8638 | fi | |
8639 | ||
8640 | if test "$wxUSE_STATUSBAR" = yes; then | |
8641 | echo "$as_me:$LINENO: result: yes" >&5 | |
8642 | echo "${ECHO_T}yes" >&6 | |
8643 | else | |
8644 | echo "$as_me:$LINENO: result: no" >&5 | |
8645 | echo "${ECHO_T}no" >&6 | |
8646 | fi | |
8647 | ||
8648 | ||
8649 | enablestring= | |
8650 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8651 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8652 | no_cache=0 | |
8653 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8654 | if test "${enable_tabdialog+set}" = set; then | |
8655 | enableval="$enable_tabdialog" | |
8656 | ||
8657 | if test "$enableval" = yes; then | |
8658 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8659 | else | |
8660 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8661 | fi | |
8662 | ||
8663 | else | |
8664 | ||
8665 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
8666 | if test "x$LINE" != x ; then | |
8667 | eval "DEFAULT_$LINE" | |
8668 | else | |
8669 | no_cache=1 | |
8670 | fi | |
8671 | ||
8672 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8673 | ||
8674 | fi; | |
8675 | ||
8676 | eval "$ac_cv_use_tabdialog" | |
8677 | if test "$no_cache" != 1; then | |
8678 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8679 | fi | |
8680 | ||
8681 | if test "$wxUSE_TABDIALOG" = yes; then | |
8682 | echo "$as_me:$LINENO: result: yes" >&5 | |
8683 | echo "${ECHO_T}yes" >&6 | |
8684 | else | |
8685 | echo "$as_me:$LINENO: result: no" >&5 | |
8686 | echo "${ECHO_T}no" >&6 | |
8687 | fi | |
8688 | ||
8689 | ||
8690 | enablestring= | |
8691 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
8692 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8693 | no_cache=0 | |
8694 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8695 | if test "${enable_textctrl+set}" = set; then | |
8696 | enableval="$enable_textctrl" | |
8697 | ||
8698 | if test "$enableval" = yes; then | |
8699 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8700 | else | |
8701 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8702 | fi | |
8703 | ||
8704 | else | |
8705 | ||
8706 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
8707 | if test "x$LINE" != x ; then | |
8708 | eval "DEFAULT_$LINE" | |
8709 | else | |
8710 | no_cache=1 | |
8711 | fi | |
8712 | ||
8713 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8714 | ||
8715 | fi; | |
8716 | ||
8717 | eval "$ac_cv_use_textctrl" | |
8718 | if test "$no_cache" != 1; then | |
8719 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8720 | fi | |
8721 | ||
8722 | if test "$wxUSE_TEXTCTRL" = yes; then | |
8723 | echo "$as_me:$LINENO: result: yes" >&5 | |
8724 | echo "${ECHO_T}yes" >&6 | |
8725 | else | |
8726 | echo "$as_me:$LINENO: result: no" >&5 | |
8727 | echo "${ECHO_T}no" >&6 | |
8728 | fi | |
8729 | ||
8730 | ||
8731 | enablestring= | |
8732 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
8733 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
8734 | no_cache=0 | |
8735 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8736 | if test "${enable_togglebtn+set}" = set; then | |
8737 | enableval="$enable_togglebtn" | |
8738 | ||
8739 | if test "$enableval" = yes; then | |
8740 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8741 | else | |
8742 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8743 | fi | |
8744 | ||
8745 | else | |
8746 | ||
8747 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
8748 | if test "x$LINE" != x ; then | |
8749 | eval "DEFAULT_$LINE" | |
8750 | else | |
8751 | no_cache=1 | |
8752 | fi | |
8753 | ||
8754 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8755 | ||
8756 | fi; | |
8757 | ||
8758 | eval "$ac_cv_use_togglebtn" | |
8759 | if test "$no_cache" != 1; then | |
8760 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8761 | fi | |
8762 | ||
8763 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
8764 | echo "$as_me:$LINENO: result: yes" >&5 | |
8765 | echo "${ECHO_T}yes" >&6 | |
8766 | else | |
8767 | echo "$as_me:$LINENO: result: no" >&5 | |
8768 | echo "${ECHO_T}no" >&6 | |
8769 | fi | |
8770 | ||
8771 | ||
8772 | enablestring= | |
8773 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
8774 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
8775 | no_cache=0 | |
8776 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8777 | if test "${enable_toolbar+set}" = set; then | |
8778 | enableval="$enable_toolbar" | |
8779 | ||
8780 | if test "$enableval" = yes; then | |
8781 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8782 | else | |
8783 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8784 | fi | |
8785 | ||
8786 | else | |
8787 | ||
8788 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
8789 | if test "x$LINE" != x ; then | |
8790 | eval "DEFAULT_$LINE" | |
8791 | else | |
8792 | no_cache=1 | |
8793 | fi | |
8794 | ||
8795 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8796 | ||
8797 | fi; | |
8798 | ||
8799 | eval "$ac_cv_use_toolbar" | |
8800 | if test "$no_cache" != 1; then | |
8801 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8802 | fi | |
8803 | ||
8804 | if test "$wxUSE_TOOLBAR" = yes; then | |
8805 | echo "$as_me:$LINENO: result: yes" >&5 | |
8806 | echo "${ECHO_T}yes" >&6 | |
8807 | else | |
8808 | echo "$as_me:$LINENO: result: no" >&5 | |
8809 | echo "${ECHO_T}no" >&6 | |
8810 | fi | |
8811 | ||
8812 | ||
8813 | enablestring= | |
8814 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
8815 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
8816 | no_cache=0 | |
8817 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8818 | if test "${enable_tbarnative+set}" = set; then | |
8819 | enableval="$enable_tbarnative" | |
8820 | ||
8821 | if test "$enableval" = yes; then | |
8822 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8823 | else | |
8824 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8825 | fi | |
8826 | ||
8827 | else | |
8828 | ||
8829 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
8830 | if test "x$LINE" != x ; then | |
8831 | eval "DEFAULT_$LINE" | |
8832 | else | |
8833 | no_cache=1 | |
8834 | fi | |
8835 | ||
8836 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
8837 | ||
8838 | fi; | |
8839 | ||
8840 | eval "$ac_cv_use_tbarnative" | |
8841 | if test "$no_cache" != 1; then | |
8842 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8843 | fi | |
8844 | ||
8845 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
8846 | echo "$as_me:$LINENO: result: yes" >&5 | |
8847 | echo "${ECHO_T}yes" >&6 | |
8848 | else | |
8849 | echo "$as_me:$LINENO: result: no" >&5 | |
8850 | echo "${ECHO_T}no" >&6 | |
8851 | fi | |
8852 | ||
8853 | ||
8854 | enablestring= | |
8855 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
8856 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
8857 | no_cache=0 | |
8858 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8859 | if test "${enable_tbarsmpl+set}" = set; then | |
8860 | enableval="$enable_tbarsmpl" | |
8861 | ||
8862 | if test "$enableval" = yes; then | |
8863 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8864 | else | |
8865 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8866 | fi | |
8867 | ||
8868 | else | |
8869 | ||
8870 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
8871 | if test "x$LINE" != x ; then | |
8872 | eval "DEFAULT_$LINE" | |
8873 | else | |
8874 | no_cache=1 | |
8875 | fi | |
8876 | ||
8877 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
8878 | ||
8879 | fi; | |
8880 | ||
8881 | eval "$ac_cv_use_tbarsmpl" | |
8882 | if test "$no_cache" != 1; then | |
8883 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8884 | fi | |
8885 | ||
8886 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
8887 | echo "$as_me:$LINENO: result: yes" >&5 | |
8888 | echo "${ECHO_T}yes" >&6 | |
8889 | else | |
8890 | echo "$as_me:$LINENO: result: no" >&5 | |
8891 | echo "${ECHO_T}no" >&6 | |
8892 | fi | |
8893 | ||
8894 | ||
8895 | enablestring= | |
8896 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
8897 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
8898 | no_cache=0 | |
8899 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8900 | if test "${enable_treectrl+set}" = set; then | |
8901 | enableval="$enable_treectrl" | |
8902 | ||
8903 | if test "$enableval" = yes; then | |
8904 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8905 | else | |
8906 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8907 | fi | |
8908 | ||
8909 | else | |
8910 | ||
8911 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
8912 | if test "x$LINE" != x ; then | |
8913 | eval "DEFAULT_$LINE" | |
8914 | else | |
8915 | no_cache=1 | |
8916 | fi | |
8917 | ||
8918 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
8919 | ||
8920 | fi; | |
8921 | ||
8922 | eval "$ac_cv_use_treectrl" | |
8923 | if test "$no_cache" != 1; then | |
8924 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8925 | fi | |
8926 | ||
8927 | if test "$wxUSE_TREECTRL" = yes; then | |
8928 | echo "$as_me:$LINENO: result: yes" >&5 | |
8929 | echo "${ECHO_T}yes" >&6 | |
8930 | else | |
8931 | echo "$as_me:$LINENO: result: no" >&5 | |
8932 | echo "${ECHO_T}no" >&6 | |
8933 | fi | |
8934 | ||
8935 | ||
8936 | enablestring= | |
8937 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
8938 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
8939 | no_cache=0 | |
8940 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8941 | if test "${enable_tipwindow+set}" = set; then | |
8942 | enableval="$enable_tipwindow" | |
8943 | ||
8944 | if test "$enableval" = yes; then | |
8945 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8946 | else | |
8947 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8948 | fi | |
8949 | ||
8950 | else | |
8951 | ||
8952 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
8953 | if test "x$LINE" != x ; then | |
8954 | eval "DEFAULT_$LINE" | |
8955 | else | |
8956 | no_cache=1 | |
8957 | fi | |
8958 | ||
8959 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
8960 | ||
8961 | fi; | |
8962 | ||
8963 | eval "$ac_cv_use_tipwindow" | |
8964 | if test "$no_cache" != 1; then | |
8965 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8966 | fi | |
8967 | ||
8968 | if test "$wxUSE_TIPWINDOW" = yes; then | |
8969 | echo "$as_me:$LINENO: result: yes" >&5 | |
8970 | echo "${ECHO_T}yes" >&6 | |
8971 | else | |
8972 | echo "$as_me:$LINENO: result: no" >&5 | |
8973 | echo "${ECHO_T}no" >&6 | |
8974 | fi | |
8975 | ||
8976 | ||
8977 | enablestring= | |
8978 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
8979 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
8980 | no_cache=0 | |
8981 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8982 | if test "${enable_popupwin+set}" = set; then | |
8983 | enableval="$enable_popupwin" | |
8984 | ||
8985 | if test "$enableval" = yes; then | |
8986 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8987 | else | |
8988 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8989 | fi | |
8990 | ||
8991 | else | |
8992 | ||
8993 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
8994 | if test "x$LINE" != x ; then | |
8995 | eval "DEFAULT_$LINE" | |
8996 | else | |
8997 | no_cache=1 | |
8998 | fi | |
8999 | ||
9000 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9001 | ||
9002 | fi; | |
9003 | ||
9004 | eval "$ac_cv_use_popupwin" | |
9005 | if test "$no_cache" != 1; then | |
9006 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
9007 | fi | |
9008 | ||
9009 | if test "$wxUSE_POPUPWIN" = yes; then | |
9010 | echo "$as_me:$LINENO: result: yes" >&5 | |
9011 | echo "${ECHO_T}yes" >&6 | |
9012 | else | |
9013 | echo "$as_me:$LINENO: result: no" >&5 | |
9014 | echo "${ECHO_T}no" >&6 | |
9015 | fi | |
9016 | ||
9017 | ||
9018 | ||
9019 | ||
9020 | enablestring= | |
9021 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
9022 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
9023 | no_cache=0 | |
9024 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
9025 | if test "${enable_commondlg+set}" = set; then | |
9026 | enableval="$enable_commondlg" | |
9027 | ||
9028 | if test "$enableval" = yes; then | |
9029 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
9030 | else | |
9031 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
9032 | fi | |
9033 | ||
9034 | else | |
9035 | ||
9036 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
9037 | if test "x$LINE" != x ; then | |
9038 | eval "DEFAULT_$LINE" | |
9039 | else | |
9040 | no_cache=1 | |
9041 | fi | |
9042 | ||
9043 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
9044 | ||
9045 | fi; | |
9046 | ||
9047 | eval "$ac_cv_use_commondlg" | |
9048 | if test "$no_cache" != 1; then | |
9049 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
9050 | fi | |
9051 | ||
9052 | if test "$wxUSE_COMMONDLGS" = yes; then | |
9053 | echo "$as_me:$LINENO: result: yes" >&5 | |
9054 | echo "${ECHO_T}yes" >&6 | |
9055 | else | |
9056 | echo "$as_me:$LINENO: result: no" >&5 | |
9057 | echo "${ECHO_T}no" >&6 | |
9058 | fi | |
9059 | ||
9060 | ||
9061 | enablestring= | |
9062 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
9063 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
9064 | no_cache=0 | |
9065 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
9066 | if test "${enable_choicedlg+set}" = set; then | |
9067 | enableval="$enable_choicedlg" | |
9068 | ||
9069 | if test "$enableval" = yes; then | |
9070 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
9071 | else | |
9072 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
9073 | fi | |
9074 | ||
9075 | else | |
9076 | ||
9077 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
9078 | if test "x$LINE" != x ; then | |
9079 | eval "DEFAULT_$LINE" | |
9080 | else | |
9081 | no_cache=1 | |
9082 | fi | |
9083 | ||
9084 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
9085 | ||
9086 | fi; | |
9087 | ||
9088 | eval "$ac_cv_use_choicedlg" | |
9089 | if test "$no_cache" != 1; then | |
9090 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
9091 | fi | |
9092 | ||
9093 | if test "$wxUSE_CHOICEDLG" = yes; then | |
9094 | echo "$as_me:$LINENO: result: yes" >&5 | |
9095 | echo "${ECHO_T}yes" >&6 | |
9096 | else | |
9097 | echo "$as_me:$LINENO: result: no" >&5 | |
9098 | echo "${ECHO_T}no" >&6 | |
9099 | fi | |
9100 | ||
9101 | ||
9102 | enablestring= | |
9103 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
9104 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
9105 | no_cache=0 | |
9106 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
9107 | if test "${enable_coldlg+set}" = set; then | |
9108 | enableval="$enable_coldlg" | |
9109 | ||
9110 | if test "$enableval" = yes; then | |
9111 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
9112 | else | |
9113 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
9114 | fi | |
9115 | ||
9116 | else | |
9117 | ||
9118 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
9119 | if test "x$LINE" != x ; then | |
9120 | eval "DEFAULT_$LINE" | |
9121 | else | |
9122 | no_cache=1 | |
9123 | fi | |
9124 | ||
9125 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
9126 | ||
9127 | fi; | |
9128 | ||
9129 | eval "$ac_cv_use_coldlg" | |
9130 | if test "$no_cache" != 1; then | |
9131 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
9132 | fi | |
9133 | ||
9134 | if test "$wxUSE_COLOURDLG" = yes; then | |
9135 | echo "$as_me:$LINENO: result: yes" >&5 | |
9136 | echo "${ECHO_T}yes" >&6 | |
9137 | else | |
9138 | echo "$as_me:$LINENO: result: no" >&5 | |
9139 | echo "${ECHO_T}no" >&6 | |
9140 | fi | |
9141 | ||
9142 | ||
9143 | enablestring= | |
9144 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
9145 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
9146 | no_cache=0 | |
9147 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
9148 | if test "${enable_filedlg+set}" = set; then | |
9149 | enableval="$enable_filedlg" | |
9150 | ||
9151 | if test "$enableval" = yes; then | |
9152 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
9153 | else | |
9154 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
9155 | fi | |
9156 | ||
9157 | else | |
9158 | ||
9159 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
9160 | if test "x$LINE" != x ; then | |
9161 | eval "DEFAULT_$LINE" | |
9162 | else | |
9163 | no_cache=1 | |
9164 | fi | |
9165 | ||
9166 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
9167 | ||
9168 | fi; | |
9169 | ||
9170 | eval "$ac_cv_use_filedlg" | |
9171 | if test "$no_cache" != 1; then | |
9172 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
9173 | fi | |
9174 | ||
9175 | if test "$wxUSE_FILEDLG" = yes; then | |
9176 | echo "$as_me:$LINENO: result: yes" >&5 | |
9177 | echo "${ECHO_T}yes" >&6 | |
9178 | else | |
9179 | echo "$as_me:$LINENO: result: no" >&5 | |
9180 | echo "${ECHO_T}no" >&6 | |
9181 | fi | |
9182 | ||
9183 | ||
9184 | enablestring= | |
9185 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
9186 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
9187 | no_cache=0 | |
9188 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
9189 | if test "${enable_finddlg+set}" = set; then | |
9190 | enableval="$enable_finddlg" | |
9191 | ||
9192 | if test "$enableval" = yes; then | |
9193 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
9194 | else | |
9195 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
9196 | fi | |
9197 | ||
9198 | else | |
9199 | ||
9200 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
9201 | if test "x$LINE" != x ; then | |
9202 | eval "DEFAULT_$LINE" | |
9203 | else | |
9204 | no_cache=1 | |
9205 | fi | |
9206 | ||
9207 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
9208 | ||
9209 | fi; | |
9210 | ||
9211 | eval "$ac_cv_use_finddlg" | |
9212 | if test "$no_cache" != 1; then | |
9213 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
9214 | fi | |
9215 | ||
9216 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
9217 | echo "$as_me:$LINENO: result: yes" >&5 | |
9218 | echo "${ECHO_T}yes" >&6 | |
9219 | else | |
9220 | echo "$as_me:$LINENO: result: no" >&5 | |
9221 | echo "${ECHO_T}no" >&6 | |
9222 | fi | |
9223 | ||
9224 | ||
9225 | enablestring= | |
9226 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
9227 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
9228 | no_cache=0 | |
9229 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
9230 | if test "${enable_fontdlg+set}" = set; then | |
9231 | enableval="$enable_fontdlg" | |
9232 | ||
9233 | if test "$enableval" = yes; then | |
9234 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
9235 | else | |
9236 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
9237 | fi | |
9238 | ||
9239 | else | |
9240 | ||
9241 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
9242 | if test "x$LINE" != x ; then | |
9243 | eval "DEFAULT_$LINE" | |
9244 | else | |
9245 | no_cache=1 | |
9246 | fi | |
9247 | ||
9248 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
9249 | ||
9250 | fi; | |
9251 | ||
9252 | eval "$ac_cv_use_fontdlg" | |
9253 | if test "$no_cache" != 1; then | |
9254 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
9255 | fi | |
9256 | ||
9257 | if test "$wxUSE_FONTDLG" = yes; then | |
9258 | echo "$as_me:$LINENO: result: yes" >&5 | |
9259 | echo "${ECHO_T}yes" >&6 | |
9260 | else | |
9261 | echo "$as_me:$LINENO: result: no" >&5 | |
9262 | echo "${ECHO_T}no" >&6 | |
9263 | fi | |
9264 | ||
9265 | ||
9266 | enablestring= | |
9267 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
9268 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
9269 | no_cache=0 | |
9270 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
9271 | if test "${enable_dirdlg+set}" = set; then | |
9272 | enableval="$enable_dirdlg" | |
9273 | ||
9274 | if test "$enableval" = yes; then | |
9275 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
9276 | else | |
9277 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
9278 | fi | |
9279 | ||
9280 | else | |
9281 | ||
9282 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
9283 | if test "x$LINE" != x ; then | |
9284 | eval "DEFAULT_$LINE" | |
9285 | else | |
9286 | no_cache=1 | |
9287 | fi | |
9288 | ||
9289 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
9290 | ||
9291 | fi; | |
9292 | ||
9293 | eval "$ac_cv_use_dirdlg" | |
9294 | if test "$no_cache" != 1; then | |
9295 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
9296 | fi | |
9297 | ||
9298 | if test "$wxUSE_DIRDLG" = yes; then | |
9299 | echo "$as_me:$LINENO: result: yes" >&5 | |
9300 | echo "${ECHO_T}yes" >&6 | |
9301 | else | |
9302 | echo "$as_me:$LINENO: result: no" >&5 | |
9303 | echo "${ECHO_T}no" >&6 | |
9304 | fi | |
9305 | ||
9306 | ||
9307 | enablestring= | |
9308 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
9309 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
9310 | no_cache=0 | |
9311 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
9312 | if test "${enable_msgdlg+set}" = set; then | |
9313 | enableval="$enable_msgdlg" | |
9314 | ||
9315 | if test "$enableval" = yes; then | |
9316 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
9317 | else | |
9318 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
9319 | fi | |
9320 | ||
9321 | else | |
9322 | ||
9323 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
9324 | if test "x$LINE" != x ; then | |
9325 | eval "DEFAULT_$LINE" | |
9326 | else | |
9327 | no_cache=1 | |
9328 | fi | |
9329 | ||
9330 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
9331 | ||
9332 | fi; | |
9333 | ||
9334 | eval "$ac_cv_use_msgdlg" | |
9335 | if test "$no_cache" != 1; then | |
9336 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
9337 | fi | |
9338 | ||
9339 | if test "$wxUSE_MSGDLG" = yes; then | |
9340 | echo "$as_me:$LINENO: result: yes" >&5 | |
9341 | echo "${ECHO_T}yes" >&6 | |
9342 | else | |
9343 | echo "$as_me:$LINENO: result: no" >&5 | |
9344 | echo "${ECHO_T}no" >&6 | |
9345 | fi | |
9346 | ||
9347 | ||
9348 | enablestring= | |
9349 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
9350 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
9351 | no_cache=0 | |
9352 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
9353 | if test "${enable_numberdlg+set}" = set; then | |
9354 | enableval="$enable_numberdlg" | |
9355 | ||
9356 | if test "$enableval" = yes; then | |
9357 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
9358 | else | |
9359 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
9360 | fi | |
9361 | ||
9362 | else | |
9363 | ||
9364 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
9365 | if test "x$LINE" != x ; then | |
9366 | eval "DEFAULT_$LINE" | |
9367 | else | |
9368 | no_cache=1 | |
9369 | fi | |
9370 | ||
9371 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
9372 | ||
9373 | fi; | |
9374 | ||
9375 | eval "$ac_cv_use_numberdlg" | |
9376 | if test "$no_cache" != 1; then | |
9377 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
9378 | fi | |
9379 | ||
9380 | if test "$wxUSE_NUMBERDLG" = yes; then | |
9381 | echo "$as_me:$LINENO: result: yes" >&5 | |
9382 | echo "${ECHO_T}yes" >&6 | |
9383 | else | |
9384 | echo "$as_me:$LINENO: result: no" >&5 | |
9385 | echo "${ECHO_T}no" >&6 | |
9386 | fi | |
9387 | ||
9388 | ||
9389 | enablestring= | |
9390 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
9391 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
9392 | no_cache=0 | |
9393 | # Check whether --enable-splash or --disable-splash was given. | |
9394 | if test "${enable_splash+set}" = set; then | |
9395 | enableval="$enable_splash" | |
9396 | ||
9397 | if test "$enableval" = yes; then | |
9398 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
9399 | else | |
9400 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
9401 | fi | |
9402 | ||
9403 | else | |
9404 | ||
9405 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
9406 | if test "x$LINE" != x ; then | |
9407 | eval "DEFAULT_$LINE" | |
9408 | else | |
9409 | no_cache=1 | |
9410 | fi | |
9411 | ||
9412 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
9413 | ||
9414 | fi; | |
9415 | ||
9416 | eval "$ac_cv_use_splash" | |
9417 | if test "$no_cache" != 1; then | |
9418 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
9419 | fi | |
9420 | ||
9421 | if test "$wxUSE_SPLASH" = yes; then | |
9422 | echo "$as_me:$LINENO: result: yes" >&5 | |
9423 | echo "${ECHO_T}yes" >&6 | |
9424 | else | |
9425 | echo "$as_me:$LINENO: result: no" >&5 | |
9426 | echo "${ECHO_T}no" >&6 | |
9427 | fi | |
9428 | ||
9429 | ||
9430 | enablestring= | |
9431 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
9432 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
9433 | no_cache=0 | |
9434 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
9435 | if test "${enable_textdlg+set}" = set; then | |
9436 | enableval="$enable_textdlg" | |
9437 | ||
9438 | if test "$enableval" = yes; then | |
9439 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
9440 | else | |
9441 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
9442 | fi | |
9443 | ||
9444 | else | |
9445 | ||
9446 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
9447 | if test "x$LINE" != x ; then | |
9448 | eval "DEFAULT_$LINE" | |
9449 | else | |
9450 | no_cache=1 | |
9451 | fi | |
9452 | ||
9453 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9454 | ||
9455 | fi; | |
9456 | ||
9457 | eval "$ac_cv_use_textdlg" | |
9458 | if test "$no_cache" != 1; then | |
9459 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9460 | fi | |
9461 | ||
9462 | if test "$wxUSE_TEXTDLG" = yes; then | |
9463 | echo "$as_me:$LINENO: result: yes" >&5 | |
9464 | echo "${ECHO_T}yes" >&6 | |
9465 | else | |
9466 | echo "$as_me:$LINENO: result: no" >&5 | |
9467 | echo "${ECHO_T}no" >&6 | |
9468 | fi | |
9469 | ||
9470 | ||
9471 | enablestring= | |
9472 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9473 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9474 | no_cache=0 | |
9475 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9476 | if test "${enable_tipdlg+set}" = set; then | |
9477 | enableval="$enable_tipdlg" | |
9478 | ||
9479 | if test "$enableval" = yes; then | |
9480 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9481 | else | |
9482 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9483 | fi | |
9484 | ||
9485 | else | |
9486 | ||
9487 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9488 | if test "x$LINE" != x ; then | |
9489 | eval "DEFAULT_$LINE" | |
9490 | else | |
9491 | no_cache=1 | |
9492 | fi | |
9493 | ||
9494 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9495 | ||
9496 | fi; | |
9497 | ||
9498 | eval "$ac_cv_use_tipdlg" | |
9499 | if test "$no_cache" != 1; then | |
9500 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9501 | fi | |
9502 | ||
9503 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
9504 | echo "$as_me:$LINENO: result: yes" >&5 | |
9505 | echo "${ECHO_T}yes" >&6 | |
9506 | else | |
9507 | echo "$as_me:$LINENO: result: no" >&5 | |
9508 | echo "${ECHO_T}no" >&6 | |
9509 | fi | |
9510 | ||
9511 | ||
9512 | enablestring= | |
9513 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
9514 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9515 | no_cache=0 | |
9516 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9517 | if test "${enable_progressdlg+set}" = set; then | |
9518 | enableval="$enable_progressdlg" | |
9519 | ||
9520 | if test "$enableval" = yes; then | |
9521 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9522 | else | |
9523 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9524 | fi | |
9525 | ||
9526 | else | |
9527 | ||
9528 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9529 | if test "x$LINE" != x ; then | |
9530 | eval "DEFAULT_$LINE" | |
9531 | else | |
9532 | no_cache=1 | |
9533 | fi | |
9534 | ||
9535 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9536 | ||
9537 | fi; | |
9538 | ||
9539 | eval "$ac_cv_use_progressdlg" | |
9540 | if test "$no_cache" != 1; then | |
9541 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9542 | fi | |
9543 | ||
9544 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9545 | echo "$as_me:$LINENO: result: yes" >&5 | |
9546 | echo "${ECHO_T}yes" >&6 | |
9547 | else | |
9548 | echo "$as_me:$LINENO: result: no" >&5 | |
9549 | echo "${ECHO_T}no" >&6 | |
9550 | fi | |
9551 | ||
9552 | ||
9553 | enablestring= | |
9554 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9555 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9556 | no_cache=0 | |
9557 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9558 | if test "${enable_wizarddlg+set}" = set; then | |
9559 | enableval="$enable_wizarddlg" | |
9560 | ||
9561 | if test "$enableval" = yes; then | |
9562 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9563 | else | |
9564 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9565 | fi | |
9566 | ||
9567 | else | |
9568 | ||
9569 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9570 | if test "x$LINE" != x ; then | |
9571 | eval "DEFAULT_$LINE" | |
9572 | else | |
9573 | no_cache=1 | |
9574 | fi | |
9575 | ||
9576 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9577 | ||
9578 | fi; | |
9579 | ||
9580 | eval "$ac_cv_use_wizarddlg" | |
9581 | if test "$no_cache" != 1; then | |
9582 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9583 | fi | |
9584 | ||
9585 | if test "$wxUSE_WIZARDDLG" = yes; then | |
9586 | echo "$as_me:$LINENO: result: yes" >&5 | |
9587 | echo "${ECHO_T}yes" >&6 | |
9588 | else | |
9589 | echo "$as_me:$LINENO: result: no" >&5 | |
9590 | echo "${ECHO_T}no" >&6 | |
9591 | fi | |
9592 | ||
9593 | ||
9594 | ||
9595 | ||
9596 | enablestring= | |
9597 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9598 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9599 | no_cache=0 | |
9600 | # Check whether --enable-menus or --disable-menus was given. | |
9601 | if test "${enable_menus+set}" = set; then | |
9602 | enableval="$enable_menus" | |
9603 | ||
9604 | if test "$enableval" = yes; then | |
9605 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9606 | else | |
9607 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9608 | fi | |
9609 | ||
9610 | else | |
9611 | ||
9612 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9613 | if test "x$LINE" != x ; then | |
9614 | eval "DEFAULT_$LINE" | |
9615 | else | |
9616 | no_cache=1 | |
9617 | fi | |
9618 | ||
9619 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9620 | ||
9621 | fi; | |
9622 | ||
9623 | eval "$ac_cv_use_menus" | |
9624 | if test "$no_cache" != 1; then | |
9625 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9626 | fi | |
9627 | ||
9628 | if test "$wxUSE_MENUS" = yes; then | |
9629 | echo "$as_me:$LINENO: result: yes" >&5 | |
9630 | echo "${ECHO_T}yes" >&6 | |
9631 | else | |
9632 | echo "$as_me:$LINENO: result: no" >&5 | |
9633 | echo "${ECHO_T}no" >&6 | |
9634 | fi | |
9635 | ||
9636 | ||
9637 | enablestring= | |
9638 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
9639 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
9640 | no_cache=0 | |
9641 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9642 | if test "${enable_miniframe+set}" = set; then | |
9643 | enableval="$enable_miniframe" | |
9644 | ||
9645 | if test "$enableval" = yes; then | |
9646 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9647 | else | |
9648 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9649 | fi | |
9650 | ||
9651 | else | |
9652 | ||
9653 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
9654 | if test "x$LINE" != x ; then | |
9655 | eval "DEFAULT_$LINE" | |
9656 | else | |
9657 | no_cache=1 | |
9658 | fi | |
9659 | ||
9660 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
9661 | ||
9662 | fi; | |
9663 | ||
9664 | eval "$ac_cv_use_miniframe" | |
9665 | if test "$no_cache" != 1; then | |
9666 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9667 | fi | |
9668 | ||
9669 | if test "$wxUSE_MINIFRAME" = yes; then | |
9670 | echo "$as_me:$LINENO: result: yes" >&5 | |
9671 | echo "${ECHO_T}yes" >&6 | |
9672 | else | |
9673 | echo "$as_me:$LINENO: result: no" >&5 | |
9674 | echo "${ECHO_T}no" >&6 | |
9675 | fi | |
9676 | ||
9677 | ||
9678 | enablestring= | |
9679 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
9680 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
9681 | no_cache=0 | |
9682 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9683 | if test "${enable_tooltips+set}" = set; then | |
9684 | enableval="$enable_tooltips" | |
9685 | ||
9686 | if test "$enableval" = yes; then | |
9687 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9688 | else | |
9689 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9690 | fi | |
9691 | ||
9692 | else | |
9693 | ||
9694 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
9695 | if test "x$LINE" != x ; then | |
9696 | eval "DEFAULT_$LINE" | |
9697 | else | |
9698 | no_cache=1 | |
9699 | fi | |
9700 | ||
9701 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
9702 | ||
9703 | fi; | |
9704 | ||
9705 | eval "$ac_cv_use_tooltips" | |
9706 | if test "$no_cache" != 1; then | |
9707 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9708 | fi | |
9709 | ||
9710 | if test "$wxUSE_TOOLTIPS" = yes; then | |
9711 | echo "$as_me:$LINENO: result: yes" >&5 | |
9712 | echo "${ECHO_T}yes" >&6 | |
9713 | else | |
9714 | echo "$as_me:$LINENO: result: no" >&5 | |
9715 | echo "${ECHO_T}no" >&6 | |
9716 | fi | |
9717 | ||
9718 | ||
9719 | enablestring= | |
9720 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
9721 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
9722 | no_cache=0 | |
9723 | # Check whether --enable-splines or --disable-splines was given. | |
9724 | if test "${enable_splines+set}" = set; then | |
9725 | enableval="$enable_splines" | |
9726 | ||
9727 | if test "$enableval" = yes; then | |
9728 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9729 | else | |
9730 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9731 | fi | |
9732 | ||
9733 | else | |
9734 | ||
9735 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
9736 | if test "x$LINE" != x ; then | |
9737 | eval "DEFAULT_$LINE" | |
9738 | else | |
9739 | no_cache=1 | |
9740 | fi | |
9741 | ||
9742 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
9743 | ||
9744 | fi; | |
9745 | ||
9746 | eval "$ac_cv_use_splines" | |
9747 | if test "$no_cache" != 1; then | |
9748 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9749 | fi | |
9750 | ||
9751 | if test "$wxUSE_SPLINES" = yes; then | |
9752 | echo "$as_me:$LINENO: result: yes" >&5 | |
9753 | echo "${ECHO_T}yes" >&6 | |
9754 | else | |
9755 | echo "$as_me:$LINENO: result: no" >&5 | |
9756 | echo "${ECHO_T}no" >&6 | |
9757 | fi | |
9758 | ||
9759 | ||
fbe2ca43 SN |
9760 | enablestring= |
9761 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5 | |
9762 | echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6 | |
9763 | no_cache=0 | |
9764 | # Check whether --enable-mousewheel or --disable-mousewheel was given. | |
9765 | if test "${enable_mousewheel+set}" = set; then | |
9766 | enableval="$enable_mousewheel" | |
9767 | ||
9768 | if test "$enableval" = yes; then | |
9769 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes' | |
9770 | else | |
9771 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no' | |
9772 | fi | |
9773 | ||
9774 | else | |
9775 | ||
9776 | LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}` | |
9777 | if test "x$LINE" != x ; then | |
9778 | eval "DEFAULT_$LINE" | |
9779 | else | |
9780 | no_cache=1 | |
9781 | fi | |
9782 | ||
9783 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL | |
9784 | ||
9785 | fi; | |
9786 | ||
9787 | eval "$ac_cv_use_mousewheel" | |
9788 | if test "$no_cache" != 1; then | |
9789 | echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp | |
9790 | fi | |
9791 | ||
9792 | if test "$wxUSE_MOUSEWHEEL" = yes; then | |
9793 | echo "$as_me:$LINENO: result: yes" >&5 | |
9794 | echo "${ECHO_T}yes" >&6 | |
9795 | else | |
9796 | echo "$as_me:$LINENO: result: no" >&5 | |
9797 | echo "${ECHO_T}no" >&6 | |
9798 | fi | |
9799 | ||
9800 | ||
a848cd7e SC |
9801 | enablestring= |
9802 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
9803 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
9804 | no_cache=0 | |
9805 | # Check whether --enable-validators or --disable-validators was given. | |
9806 | if test "${enable_validators+set}" = set; then | |
9807 | enableval="$enable_validators" | |
9808 | ||
9809 | if test "$enableval" = yes; then | |
9810 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9811 | else | |
9812 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9813 | fi | |
9814 | ||
9815 | else | |
9816 | ||
9817 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
9818 | if test "x$LINE" != x ; then | |
9819 | eval "DEFAULT_$LINE" | |
9820 | else | |
9821 | no_cache=1 | |
9822 | fi | |
9823 | ||
9824 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
9825 | ||
9826 | fi; | |
9827 | ||
9828 | eval "$ac_cv_use_validators" | |
9829 | if test "$no_cache" != 1; then | |
9830 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9831 | fi | |
9832 | ||
9833 | if test "$wxUSE_VALIDATORS" = yes; then | |
9834 | echo "$as_me:$LINENO: result: yes" >&5 | |
9835 | echo "${ECHO_T}yes" >&6 | |
9836 | else | |
9837 | echo "$as_me:$LINENO: result: no" >&5 | |
9838 | echo "${ECHO_T}no" >&6 | |
9839 | fi | |
9840 | ||
9841 | ||
9842 | enablestring= | |
9843 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
9844 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
9845 | no_cache=0 | |
9846 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9847 | if test "${enable_busyinfo+set}" = set; then | |
9848 | enableval="$enable_busyinfo" | |
9849 | ||
9850 | if test "$enableval" = yes; then | |
9851 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9852 | else | |
9853 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9854 | fi | |
9855 | ||
9856 | else | |
9857 | ||
9858 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
9859 | if test "x$LINE" != x ; then | |
9860 | eval "DEFAULT_$LINE" | |
9861 | else | |
9862 | no_cache=1 | |
9863 | fi | |
9864 | ||
9865 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
9866 | ||
9867 | fi; | |
9868 | ||
9869 | eval "$ac_cv_use_busyinfo" | |
9870 | if test "$no_cache" != 1; then | |
9871 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9872 | fi | |
9873 | ||
9874 | if test "$wxUSE_BUSYINFO" = yes; then | |
9875 | echo "$as_me:$LINENO: result: yes" >&5 | |
9876 | echo "${ECHO_T}yes" >&6 | |
9877 | else | |
9878 | echo "$as_me:$LINENO: result: no" >&5 | |
9879 | echo "${ECHO_T}no" >&6 | |
9880 | fi | |
9881 | ||
9882 | ||
9883 | enablestring= | |
9884 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
9885 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
9886 | no_cache=0 | |
9887 | # Check whether --enable-joystick or --disable-joystick was given. | |
9888 | if test "${enable_joystick+set}" = set; then | |
9889 | enableval="$enable_joystick" | |
9890 | ||
9891 | if test "$enableval" = yes; then | |
9892 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9893 | else | |
9894 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9895 | fi | |
9896 | ||
9897 | else | |
9898 | ||
9899 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
9900 | if test "x$LINE" != x ; then | |
9901 | eval "DEFAULT_$LINE" | |
9902 | else | |
9903 | no_cache=1 | |
9904 | fi | |
9905 | ||
9906 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
9907 | ||
9908 | fi; | |
9909 | ||
9910 | eval "$ac_cv_use_joystick" | |
9911 | if test "$no_cache" != 1; then | |
9912 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9913 | fi | |
9914 | ||
9915 | if test "$wxUSE_JOYSTICK" = yes; then | |
9916 | echo "$as_me:$LINENO: result: yes" >&5 | |
9917 | echo "${ECHO_T}yes" >&6 | |
9918 | else | |
9919 | echo "$as_me:$LINENO: result: no" >&5 | |
9920 | echo "${ECHO_T}no" >&6 | |
9921 | fi | |
9922 | ||
9923 | ||
9924 | enablestring= | |
9925 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
9926 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
9927 | no_cache=0 | |
9928 | # Check whether --enable-metafile or --disable-metafile was given. | |
9929 | if test "${enable_metafile+set}" = set; then | |
9930 | enableval="$enable_metafile" | |
9931 | ||
9932 | if test "$enableval" = yes; then | |
9933 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9934 | else | |
9935 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9936 | fi | |
9937 | ||
9938 | else | |
9939 | ||
9940 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
9941 | if test "x$LINE" != x ; then | |
9942 | eval "DEFAULT_$LINE" | |
9943 | else | |
9944 | no_cache=1 | |
9945 | fi | |
9946 | ||
9947 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
9948 | ||
9949 | fi; | |
9950 | ||
9951 | eval "$ac_cv_use_metafile" | |
9952 | if test "$no_cache" != 1; then | |
9953 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9954 | fi | |
9955 | ||
9956 | if test "$wxUSE_METAFILE" = yes; then | |
9957 | echo "$as_me:$LINENO: result: yes" >&5 | |
9958 | echo "${ECHO_T}yes" >&6 | |
9959 | else | |
9960 | echo "$as_me:$LINENO: result: no" >&5 | |
9961 | echo "${ECHO_T}no" >&6 | |
9962 | fi | |
9963 | ||
9964 | ||
9965 | enablestring= | |
9966 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
9967 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
9968 | no_cache=0 | |
9969 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9970 | if test "${enable_dragimage+set}" = set; then | |
9971 | enableval="$enable_dragimage" | |
9972 | ||
9973 | if test "$enableval" = yes; then | |
9974 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9975 | else | |
9976 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9977 | fi | |
9978 | ||
9979 | else | |
9980 | ||
9981 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
9982 | if test "x$LINE" != x ; then | |
9983 | eval "DEFAULT_$LINE" | |
9984 | else | |
9985 | no_cache=1 | |
9986 | fi | |
9987 | ||
9988 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
9989 | ||
9990 | fi; | |
9991 | ||
9992 | eval "$ac_cv_use_dragimage" | |
9993 | if test "$no_cache" != 1; then | |
9994 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9995 | fi | |
9996 | ||
9997 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
9998 | echo "$as_me:$LINENO: result: yes" >&5 | |
9999 | echo "${ECHO_T}yes" >&6 | |
10000 | else | |
10001 | echo "$as_me:$LINENO: result: no" >&5 | |
10002 | echo "${ECHO_T}no" >&6 | |
10003 | fi | |
10004 | ||
10005 | ||
10006 | enablestring= | |
10007 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
10008 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
10009 | no_cache=0 | |
10010 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
10011 | if test "${enable_accessibility+set}" = set; then | |
10012 | enableval="$enable_accessibility" | |
10013 | ||
10014 | if test "$enableval" = yes; then | |
10015 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
10016 | else | |
10017 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
10018 | fi | |
10019 | ||
10020 | else | |
10021 | ||
10022 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
10023 | if test "x$LINE" != x ; then | |
10024 | eval "DEFAULT_$LINE" | |
10025 | else | |
10026 | no_cache=1 | |
10027 | fi | |
10028 | ||
10029 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
10030 | ||
10031 | fi; | |
10032 | ||
10033 | eval "$ac_cv_use_accessibility" | |
10034 | if test "$no_cache" != 1; then | |
10035 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
10036 | fi | |
10037 | ||
10038 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
10039 | echo "$as_me:$LINENO: result: yes" >&5 | |
10040 | echo "${ECHO_T}yes" >&6 | |
10041 | else | |
10042 | echo "$as_me:$LINENO: result: no" >&5 | |
10043 | echo "${ECHO_T}no" >&6 | |
10044 | fi | |
10045 | ||
10046 | ||
10047 | ||
10048 | ||
10049 | enablestring= | |
10050 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
10051 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
10052 | no_cache=0 | |
10053 | # Check whether --enable-palette or --disable-palette was given. | |
10054 | if test "${enable_palette+set}" = set; then | |
10055 | enableval="$enable_palette" | |
10056 | ||
10057 | if test "$enableval" = yes; then | |
10058 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
10059 | else | |
10060 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
10061 | fi | |
10062 | ||
10063 | else | |
10064 | ||
10065 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
10066 | if test "x$LINE" != x ; then | |
10067 | eval "DEFAULT_$LINE" | |
10068 | else | |
10069 | no_cache=1 | |
10070 | fi | |
10071 | ||
10072 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
10073 | ||
10074 | fi; | |
10075 | ||
10076 | eval "$ac_cv_use_palette" | |
10077 | if test "$no_cache" != 1; then | |
10078 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
10079 | fi | |
10080 | ||
10081 | if test "$wxUSE_PALETTE" = yes; then | |
10082 | echo "$as_me:$LINENO: result: yes" >&5 | |
10083 | echo "${ECHO_T}yes" >&6 | |
10084 | else | |
10085 | echo "$as_me:$LINENO: result: no" >&5 | |
10086 | echo "${ECHO_T}no" >&6 | |
10087 | fi | |
10088 | ||
10089 | ||
10090 | enablestring= | |
10091 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
10092 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
10093 | no_cache=0 | |
10094 | # Check whether --enable-image or --disable-image was given. | |
10095 | if test "${enable_image+set}" = set; then | |
10096 | enableval="$enable_image" | |
10097 | ||
10098 | if test "$enableval" = yes; then | |
10099 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
10100 | else | |
10101 | ac_cv_use_image='wxUSE_IMAGE=no' | |
10102 | fi | |
10103 | ||
10104 | else | |
10105 | ||
10106 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
10107 | if test "x$LINE" != x ; then | |
10108 | eval "DEFAULT_$LINE" | |
10109 | else | |
10110 | no_cache=1 | |
10111 | fi | |
10112 | ||
10113 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
10114 | ||
10115 | fi; | |
10116 | ||
10117 | eval "$ac_cv_use_image" | |
10118 | if test "$no_cache" != 1; then | |
10119 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
10120 | fi | |
10121 | ||
10122 | if test "$wxUSE_IMAGE" = yes; then | |
10123 | echo "$as_me:$LINENO: result: yes" >&5 | |
10124 | echo "${ECHO_T}yes" >&6 | |
10125 | else | |
10126 | echo "$as_me:$LINENO: result: no" >&5 | |
10127 | echo "${ECHO_T}no" >&6 | |
10128 | fi | |
10129 | ||
10130 | ||
10131 | enablestring= | |
10132 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
10133 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10134 | no_cache=0 | |
10135 | # Check whether --enable-gif or --disable-gif was given. | |
10136 | if test "${enable_gif+set}" = set; then | |
10137 | enableval="$enable_gif" | |
10138 | ||
10139 | if test "$enableval" = yes; then | |
10140 | ac_cv_use_gif='wxUSE_GIF=yes' | |
10141 | else | |
10142 | ac_cv_use_gif='wxUSE_GIF=no' | |
10143 | fi | |
10144 | ||
10145 | else | |
10146 | ||
10147 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
10148 | if test "x$LINE" != x ; then | |
10149 | eval "DEFAULT_$LINE" | |
10150 | else | |
10151 | no_cache=1 | |
10152 | fi | |
10153 | ||
10154 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10155 | ||
10156 | fi; | |
10157 | ||
10158 | eval "$ac_cv_use_gif" | |
10159 | if test "$no_cache" != 1; then | |
10160 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
10161 | fi | |
10162 | ||
10163 | if test "$wxUSE_GIF" = yes; then | |
10164 | echo "$as_me:$LINENO: result: yes" >&5 | |
10165 | echo "${ECHO_T}yes" >&6 | |
10166 | else | |
10167 | echo "$as_me:$LINENO: result: no" >&5 | |
10168 | echo "${ECHO_T}no" >&6 | |
10169 | fi | |
10170 | ||
10171 | ||
10172 | enablestring= | |
10173 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
10174 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10175 | no_cache=0 | |
10176 | # Check whether --enable-pcx or --disable-pcx was given. | |
10177 | if test "${enable_pcx+set}" = set; then | |
10178 | enableval="$enable_pcx" | |
10179 | ||
10180 | if test "$enableval" = yes; then | |
10181 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
10182 | else | |
10183 | ac_cv_use_pcx='wxUSE_PCX=no' | |
10184 | fi | |
10185 | ||
10186 | else | |
10187 | ||
10188 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
10189 | if test "x$LINE" != x ; then | |
10190 | eval "DEFAULT_$LINE" | |
10191 | else | |
10192 | no_cache=1 | |
10193 | fi | |
10194 | ||
10195 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10196 | ||
10197 | fi; | |
10198 | ||
10199 | eval "$ac_cv_use_pcx" | |
10200 | if test "$no_cache" != 1; then | |
10201 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
10202 | fi | |
10203 | ||
10204 | if test "$wxUSE_PCX" = yes; then | |
10205 | echo "$as_me:$LINENO: result: yes" >&5 | |
10206 | echo "${ECHO_T}yes" >&6 | |
10207 | else | |
10208 | echo "$as_me:$LINENO: result: no" >&5 | |
10209 | echo "${ECHO_T}no" >&6 | |
10210 | fi | |
10211 | ||
10212 | ||
10213 | enablestring= | |
10214 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
10215 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
10216 | no_cache=0 | |
10217 | # Check whether --enable-iff or --disable-iff was given. | |
10218 | if test "${enable_iff+set}" = set; then | |
10219 | enableval="$enable_iff" | |
10220 | ||
10221 | if test "$enableval" = yes; then | |
10222 | ac_cv_use_iff='wxUSE_IFF=yes' | |
10223 | else | |
10224 | ac_cv_use_iff='wxUSE_IFF=no' | |
10225 | fi | |
10226 | ||
10227 | else | |
10228 | ||
10229 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
10230 | if test "x$LINE" != x ; then | |
10231 | eval "DEFAULT_$LINE" | |
10232 | else | |
10233 | no_cache=1 | |
10234 | fi | |
10235 | ||
10236 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
10237 | ||
10238 | fi; | |
10239 | ||
10240 | eval "$ac_cv_use_iff" | |
10241 | if test "$no_cache" != 1; then | |
10242 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
10243 | fi | |
10244 | ||
10245 | if test "$wxUSE_IFF" = yes; then | |
10246 | echo "$as_me:$LINENO: result: yes" >&5 | |
10247 | echo "${ECHO_T}yes" >&6 | |
10248 | else | |
10249 | echo "$as_me:$LINENO: result: no" >&5 | |
10250 | echo "${ECHO_T}no" >&6 | |
10251 | fi | |
10252 | ||
10253 | ||
10254 | enablestring= | |
10255 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
10256 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10257 | no_cache=0 | |
10258 | # Check whether --enable-pnm or --disable-pnm was given. | |
10259 | if test "${enable_pnm+set}" = set; then | |
10260 | enableval="$enable_pnm" | |
10261 | ||
10262 | if test "$enableval" = yes; then | |
10263 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
10264 | else | |
10265 | ac_cv_use_pnm='wxUSE_PNM=no' | |
10266 | fi | |
10267 | ||
10268 | else | |
10269 | ||
10270 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
10271 | if test "x$LINE" != x ; then | |
10272 | eval "DEFAULT_$LINE" | |
10273 | else | |
10274 | no_cache=1 | |
10275 | fi | |
10276 | ||
10277 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10278 | ||
10279 | fi; | |
10280 | ||
10281 | eval "$ac_cv_use_pnm" | |
10282 | if test "$no_cache" != 1; then | |
10283 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
10284 | fi | |
10285 | ||
10286 | if test "$wxUSE_PNM" = yes; then | |
10287 | echo "$as_me:$LINENO: result: yes" >&5 | |
10288 | echo "${ECHO_T}yes" >&6 | |
10289 | else | |
10290 | echo "$as_me:$LINENO: result: no" >&5 | |
10291 | echo "${ECHO_T}no" >&6 | |
10292 | fi | |
10293 | ||
10294 | ||
10295 | enablestring= | |
10296 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
10297 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
10298 | no_cache=0 | |
10299 | # Check whether --enable-xpm or --disable-xpm was given. | |
10300 | if test "${enable_xpm+set}" = set; then | |
10301 | enableval="$enable_xpm" | |
10302 | ||
10303 | if test "$enableval" = yes; then | |
10304 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
10305 | else | |
10306 | ac_cv_use_xpm='wxUSE_XPM=no' | |
10307 | fi | |
10308 | ||
10309 | else | |
10310 | ||
10311 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
10312 | if test "x$LINE" != x ; then | |
10313 | eval "DEFAULT_$LINE" | |
10314 | else | |
10315 | no_cache=1 | |
10316 | fi | |
10317 | ||
10318 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
10319 | ||
10320 | fi; | |
10321 | ||
10322 | eval "$ac_cv_use_xpm" | |
10323 | if test "$no_cache" != 1; then | |
10324 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
10325 | fi | |
10326 | ||
10327 | if test "$wxUSE_XPM" = yes; then | |
10328 | echo "$as_me:$LINENO: result: yes" >&5 | |
10329 | echo "${ECHO_T}yes" >&6 | |
10330 | else | |
10331 | echo "$as_me:$LINENO: result: no" >&5 | |
10332 | echo "${ECHO_T}no" >&6 | |
10333 | fi | |
10334 | ||
10335 | ||
10336 | enablestring= | |
10337 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
10338 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
10339 | no_cache=0 | |
10340 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
10341 | if test "${enable_ico_cur+set}" = set; then | |
10342 | enableval="$enable_ico_cur" | |
10343 | ||
10344 | if test "$enableval" = yes; then | |
10345 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
10346 | else | |
10347 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
10348 | fi | |
10349 | ||
10350 | else | |
10351 | ||
10352 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
10353 | if test "x$LINE" != x ; then | |
10354 | eval "DEFAULT_$LINE" | |
10355 | else | |
10356 | no_cache=1 | |
10357 | fi | |
10358 | ||
10359 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
10360 | ||
10361 | fi; | |
10362 | ||
10363 | eval "$ac_cv_use_ico_cur" | |
10364 | if test "$no_cache" != 1; then | |
10365 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
10366 | fi | |
10367 | ||
10368 | if test "$wxUSE_ICO_CUR" = yes; then | |
10369 | echo "$as_me:$LINENO: result: yes" >&5 | |
10370 | echo "${ECHO_T}yes" >&6 | |
10371 | else | |
10372 | echo "$as_me:$LINENO: result: no" >&5 | |
10373 | echo "${ECHO_T}no" >&6 | |
10374 | fi | |
10375 | ||
10376 | ||
10377 | fi | |
10378 | ||
10379 | ||
10380 | ||
ceec2216 RL |
10381 | # Check whether --with-flavour or --without-flavour was given. |
10382 | if test "${with_flavour+set}" = set; then | |
10383 | withval="$with_flavour" | |
10384 | WX_FLAVOUR="$withval" | |
10385 | fi; | |
10386 | ||
10387 | ||
10388 | ||
a848cd7e SC |
10389 | enablestring= |
10390 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
10391 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
10392 | no_cache=0 | |
10393 | # Check whether --enable-official_build or --disable-official_build was given. | |
10394 | if test "${enable_official_build+set}" = set; then | |
10395 | enableval="$enable_official_build" | |
10396 | ||
10397 | if test "$enableval" = yes; then | |
10398 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
10399 | else | |
10400 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
10401 | fi | |
10402 | ||
10403 | else | |
10404 | ||
10405 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${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_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
10413 | ||
10414 | fi; | |
10415 | ||
10416 | eval "$ac_cv_use_official_build" | |
10417 | if test "$no_cache" != 1; then | |
10418 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
10419 | fi | |
10420 | ||
10421 | if test "$wxUSE_OFFICIAL_BUILD" = 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 | # Check whether --enable-vendor or --disable-vendor was given. | |
10430 | if test "${enable_vendor+set}" = set; then | |
10431 | enableval="$enable_vendor" | |
10432 | VENDOR="$enableval" | |
10433 | fi; | |
10434 | if test "x$VENDOR" = "x"; then | |
10435 | VENDOR="custom" | |
10436 | fi | |
10437 | ||
a848cd7e SC |
10438 | |
10439 | ||
10440 | ||
10441 | echo "saving argument cache $wx_arg_cache_file" | |
10442 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
10443 | ||
10444 | ||
10445 | ||
10446 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
10447 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
10448 | ||
10449 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
10450 | if test "$wxUSE_WINE" = "yes"; then | |
10451 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
10452 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
10453 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
10454 | wxUSE_SHARED=no | |
10455 | fi | |
10456 | ||
f597b41c | 10457 | |
a848cd7e SC |
10458 | if test "$wxUSE_GUI" = "yes"; then |
10459 | ||
10460 | if test "$USE_BEOS" = 1; then | |
10461 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
10462 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
10463 | { (exit 1); exit 1; }; } | |
10464 | fi | |
10465 | ||
10466 | if test "$TOOLKIT_GIVEN" = 1; then | |
10467 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10468 | var=wxUSE_$toolkit | |
10469 | eval "value=\$${var}" | |
f34ca037 MW |
10470 | if test "x$value" = "xno"; then |
10471 | eval "$var=0" | |
10472 | elif test "x$value" != "x"; then | |
10473 | eval "$var=1" | |
10474 | fi | |
10475 | ||
10476 | if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then | |
10477 | eval "wx${toolkit}_VERSION=$value" | |
10478 | fi | |
a848cd7e SC |
10479 | done |
10480 | else | |
10481 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10482 | if test "$has_toolkit_in_cache" != 1; then | |
10483 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
10484 | else | |
10485 | var=DEFAULT_wxUSE_$toolkit | |
f34ca037 MW |
10486 | |
10487 | eval "version=\$DEFAULT_wx${toolkit}_VERSION" | |
10488 | if test "x$version" != "x"; then | |
10489 | eval "wx${toolkit}_VERSION=$version" | |
10490 | fi | |
a848cd7e SC |
10491 | fi |
10492 | eval "wxUSE_$toolkit=\$${var}" | |
10493 | done | |
10494 | fi | |
10495 | ||
10496 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
10497 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
10498 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10499 | ||
10500 | case "${host}" in | |
10501 | *-pc-os2_emx | *-pc-os2-emx ) | |
10502 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
10503 | esac | |
10504 | ||
10505 | case "$NUM_TOOLKITS" in | |
10506 | 1) | |
10507 | ;; | |
10508 | 0) | |
10509 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10510 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10511 | { (exit 1); exit 1; }; } | |
10512 | ;; | |
10513 | *) | |
10514 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10515 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10516 | { (exit 1); exit 1; }; } | |
10517 | esac | |
10518 | ||
f34ca037 MW |
10519 | # to be removed when --disable-gtk2 isn't needed |
10520 | if test "x$wxUSE_GTK2" = "xyes"; then | |
10521 | wxGTK_VERSION=2 | |
10522 | elif test "x$wxUSE_GTK2" = "xno"; then | |
10523 | wxGTK_VERSION=1 | |
10524 | fi | |
10525 | ||
a848cd7e SC |
10526 | for toolkit in `echo $ALL_TOOLKITS`; do |
10527 | var=wxUSE_$toolkit | |
10528 | eval "value=\$${var}" | |
10529 | if test "x$value" != x; then | |
10530 | cache_var=CACHE_$toolkit | |
10531 | eval "cache=\$${cache_var}" | |
10532 | if test "$cache" = 1; then | |
10533 | echo "$var=$value" >> ${wx_arg_cache_file} | |
f34ca037 MW |
10534 | eval "version=\$wx${toolkit}_VERSION" |
10535 | if test "x$version" != "x"; then | |
10536 | echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file} | |
10537 | fi | |
a848cd7e SC |
10538 | fi |
10539 | if test "$value" = 1; then | |
10540 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
10541 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
10542 | echo "${ECHO_T}$toolkit_echo" >&6 | |
10543 | fi | |
10544 | fi | |
10545 | done | |
10546 | else | |
10547 | if test "x$host_alias" != "x"; then | |
10548 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
10549 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10550 | else | |
10551 | echo "$as_me:$LINENO: result: base only" >&5 | |
10552 | echo "${ECHO_T}base only" >&6 | |
10553 | fi | |
10554 | fi | |
10555 | ||
10556 | wants_win32=0 | |
10557 | doesnt_want_win32=0 | |
10558 | case "${host}" in | |
10559 | *-*-cygwin*) | |
10560 | if test "$wxUSE_MSW" = 1 ; then | |
10561 | wants_win32=1 | |
7275146d | 10562 | BAKEFILE_FORCE_PLATFORM=win32 |
a848cd7e SC |
10563 | else |
10564 | doesnt_want_win32=1 | |
10565 | fi | |
10566 | ;; | |
10567 | *-*-mingw*) | |
10568 | wants_win32=1 | |
10569 | ;; | |
10570 | esac | |
10571 | ||
10572 | if test "$wxUSE_WINE" = "yes"; then | |
10573 | wants_win32=1 | |
10574 | CC=winegcc | |
10575 | CXX=wineg++ | |
10576 | RESCOMP=wrc | |
10577 | LDFLAGS_GUI="-mwindows" | |
10578 | fi | |
10579 | ||
10580 | if test "$wants_win32" = 1 ; then | |
10581 | USE_UNIX=0 | |
10582 | USE_WIN32=1 | |
10583 | cat >>confdefs.h <<\_ACEOF | |
10584 | #define __WIN32__ 1 | |
10585 | _ACEOF | |
10586 | ||
10587 | cat >>confdefs.h <<\_ACEOF | |
10588 | #define __WIN95__ 1 | |
10589 | _ACEOF | |
10590 | ||
10591 | cat >>confdefs.h <<\_ACEOF | |
10592 | #define __WINDOWS__ 1 | |
10593 | _ACEOF | |
10594 | ||
10595 | cat >>confdefs.h <<\_ACEOF | |
10596 | #define __GNUWIN32__ 1 | |
10597 | _ACEOF | |
10598 | ||
10599 | cat >>confdefs.h <<\_ACEOF | |
10600 | #define STRICT 1 | |
10601 | _ACEOF | |
10602 | ||
10603 | cat >>confdefs.h <<\_ACEOF | |
10604 | #define WINVER 0x0400 | |
10605 | _ACEOF | |
10606 | ||
10607 | fi | |
10608 | if test "$doesnt_want_win32" = 1 ; then | |
10609 | USE_UNIX=1 | |
10610 | USE_WIN32=0 | |
10611 | fi | |
10612 | ||
10613 | if test "$USE_UNIX" = 1 ; then | |
10614 | wxUSE_UNIX=yes | |
10615 | cat >>confdefs.h <<\_ACEOF | |
10616 | #define __UNIX__ 1 | |
10617 | _ACEOF | |
10618 | ||
10619 | fi | |
10620 | ||
10621 | ||
10622 | cat >confcache <<\_ACEOF | |
10623 | # This file is a shell script that caches the results of configure | |
10624 | # tests run on this system so they can be shared between configure | |
10625 | # scripts and configure runs, see configure's option --config-cache. | |
10626 | # It is not useful on other systems. If it contains results you don't | |
10627 | # want to keep, you may remove or edit it. | |
10628 | # | |
10629 | # config.status only pays attention to the cache file if you give it | |
10630 | # the --recheck option to rerun configure. | |
10631 | # | |
10632 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10633 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10634 | # following values. | |
10635 | ||
10636 | _ACEOF | |
10637 | ||
10638 | # The following way of writing the cache mishandles newlines in values, | |
10639 | # but we know of no workaround that is simple, portable, and efficient. | |
10640 | # So, don't put newlines in cache variables' values. | |
10641 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10642 | # and sets the high bit in the cache file unless we assign to the vars. | |
10643 | { | |
10644 | (set) 2>&1 | | |
10645 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10646 | *ac_space=\ *) | |
10647 | # `set' does not quote correctly, so add quotes (double-quote | |
10648 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10649 | sed -n \ | |
ac1cb8d3 VS |
10650 | "s/'/'\\\\''/g; |
10651 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
10652 | ;; |
10653 | *) | |
10654 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10655 | sed -n \ | |
ac1cb8d3 | 10656 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
10657 | ;; |
10658 | esac; | |
10659 | } | | |
10660 | sed ' | |
10661 | t clear | |
10662 | : clear | |
10663 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10664 | t end | |
10665 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10666 | : end' >>confcache | |
10667 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10668 | if test -w $cache_file; then | |
10669 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10670 | cat confcache >$cache_file | |
10671 | else | |
10672 | echo "not updating unwritable cache $cache_file" | |
10673 | fi | |
10674 | fi | |
10675 | rm -f confcache | |
10676 | ||
10677 | if test "$build" != "$host" ; then | |
1e9e8aba | 10678 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then |
a848cd7e SC |
10679 | CC=$host_alias-gcc |
10680 | CXX=$host_alias-c++ | |
10681 | AR=$host_alias-ar | |
10682 | RANLIB=$host_alias-ranlib | |
10683 | DLLTOOL=$host_alias-dlltool | |
10684 | RESCOMP=$host_alias-windres | |
a848cd7e | 10685 | STRIP=$host_alias-strip |
1e9e8aba DE |
10686 | elif test "x$CC" '!=' "x"; then |
10687 | echo "You set CC, I assume you know what you are doing." | |
a848cd7e SC |
10688 | else |
10689 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 | |
10690 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
10691 | { (exit 1); exit 1; }; } | |
10692 | fi | |
10693 | fi | |
10694 | ||
10695 | CFLAGS=${CFLAGS:=} | |
6dcfc289 DE |
10696 | |
10697 | ||
10698 | ac_ext=c | |
a848cd7e SC |
10699 | ac_cpp='$CPP $CPPFLAGS' |
10700 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10701 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10702 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10703 | if test -n "$ac_tool_prefix"; then | |
10704 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10705 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10706 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10707 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10708 | if test "${ac_cv_prog_CC+set}" = set; then | |
10709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10710 | else | |
10711 | if test -n "$CC"; then | |
10712 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10713 | else | |
10714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10715 | for as_dir in $PATH | |
10716 | do | |
10717 | IFS=$as_save_IFS | |
10718 | test -z "$as_dir" && as_dir=. | |
10719 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10720 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10721 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10722 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10723 | break 2 | |
10724 | fi | |
10725 | done | |
10726 | done | |
10727 | ||
10728 | fi | |
10729 | fi | |
10730 | CC=$ac_cv_prog_CC | |
10731 | if test -n "$CC"; then | |
10732 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10733 | echo "${ECHO_T}$CC" >&6 | |
10734 | else | |
10735 | echo "$as_me:$LINENO: result: no" >&5 | |
10736 | echo "${ECHO_T}no" >&6 | |
10737 | fi | |
10738 | ||
10739 | fi | |
10740 | if test -z "$ac_cv_prog_CC"; then | |
10741 | ac_ct_CC=$CC | |
10742 | # Extract the first word of "gcc", so it can be a program name with args. | |
10743 | set dummy gcc; ac_word=$2 | |
10744 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10745 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10746 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10748 | else | |
10749 | if test -n "$ac_ct_CC"; then | |
10750 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10751 | else | |
10752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10753 | for as_dir in $PATH | |
10754 | do | |
10755 | IFS=$as_save_IFS | |
10756 | test -z "$as_dir" && as_dir=. | |
10757 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10758 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10759 | ac_cv_prog_ac_ct_CC="gcc" | |
10760 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10761 | break 2 | |
10762 | fi | |
10763 | done | |
10764 | done | |
10765 | ||
10766 | fi | |
10767 | fi | |
10768 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10769 | if test -n "$ac_ct_CC"; then | |
10770 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10771 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10772 | else | |
10773 | echo "$as_me:$LINENO: result: no" >&5 | |
10774 | echo "${ECHO_T}no" >&6 | |
10775 | fi | |
10776 | ||
10777 | CC=$ac_ct_CC | |
10778 | else | |
10779 | CC="$ac_cv_prog_CC" | |
10780 | fi | |
10781 | ||
10782 | if test -z "$CC"; then | |
10783 | if test -n "$ac_tool_prefix"; then | |
10784 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10785 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10786 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10787 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10788 | if test "${ac_cv_prog_CC+set}" = set; then | |
10789 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10790 | else | |
10791 | if test -n "$CC"; then | |
10792 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10793 | else | |
10794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10795 | for as_dir in $PATH | |
10796 | do | |
10797 | IFS=$as_save_IFS | |
10798 | test -z "$as_dir" && as_dir=. | |
10799 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10800 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10801 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10802 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10803 | break 2 | |
10804 | fi | |
10805 | done | |
10806 | done | |
10807 | ||
10808 | fi | |
10809 | fi | |
10810 | CC=$ac_cv_prog_CC | |
10811 | if test -n "$CC"; then | |
10812 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10813 | echo "${ECHO_T}$CC" >&6 | |
10814 | else | |
10815 | echo "$as_me:$LINENO: result: no" >&5 | |
10816 | echo "${ECHO_T}no" >&6 | |
10817 | fi | |
10818 | ||
10819 | fi | |
10820 | if test -z "$ac_cv_prog_CC"; then | |
10821 | ac_ct_CC=$CC | |
10822 | # Extract the first word of "cc", so it can be a program name with args. | |
10823 | set dummy cc; ac_word=$2 | |
10824 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10825 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10826 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10828 | else | |
10829 | if test -n "$ac_ct_CC"; then | |
10830 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10831 | else | |
10832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10833 | for as_dir in $PATH | |
10834 | do | |
10835 | IFS=$as_save_IFS | |
10836 | test -z "$as_dir" && as_dir=. | |
10837 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10838 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10839 | ac_cv_prog_ac_ct_CC="cc" | |
10840 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10841 | break 2 | |
10842 | fi | |
10843 | done | |
10844 | done | |
10845 | ||
10846 | fi | |
10847 | fi | |
10848 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10849 | if test -n "$ac_ct_CC"; then | |
10850 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10851 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10852 | else | |
10853 | echo "$as_me:$LINENO: result: no" >&5 | |
10854 | echo "${ECHO_T}no" >&6 | |
10855 | fi | |
10856 | ||
10857 | CC=$ac_ct_CC | |
10858 | else | |
10859 | CC="$ac_cv_prog_CC" | |
10860 | fi | |
10861 | ||
10862 | fi | |
10863 | if test -z "$CC"; then | |
10864 | # Extract the first word of "cc", so it can be a program name with args. | |
10865 | set dummy cc; ac_word=$2 | |
10866 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10867 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10868 | if test "${ac_cv_prog_CC+set}" = set; then | |
10869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10870 | else | |
10871 | if test -n "$CC"; then | |
10872 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10873 | else | |
10874 | ac_prog_rejected=no | |
10875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10876 | for as_dir in $PATH | |
10877 | do | |
10878 | IFS=$as_save_IFS | |
10879 | test -z "$as_dir" && as_dir=. | |
10880 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10881 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10882 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10883 | ac_prog_rejected=yes | |
10884 | continue | |
10885 | fi | |
10886 | ac_cv_prog_CC="cc" | |
10887 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10888 | break 2 | |
10889 | fi | |
10890 | done | |
10891 | done | |
10892 | ||
10893 | if test $ac_prog_rejected = yes; then | |
10894 | # We found a bogon in the path, so make sure we never use it. | |
10895 | set dummy $ac_cv_prog_CC | |
10896 | shift | |
10897 | if test $# != 0; then | |
10898 | # We chose a different compiler from the bogus one. | |
10899 | # However, it has the same basename, so the bogon will be chosen | |
10900 | # first if we set CC to just the basename; use the full file name. | |
10901 | shift | |
10902 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
10903 | fi | |
10904 | fi | |
10905 | fi | |
10906 | fi | |
10907 | CC=$ac_cv_prog_CC | |
10908 | if test -n "$CC"; then | |
10909 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10910 | echo "${ECHO_T}$CC" >&6 | |
10911 | else | |
10912 | echo "$as_me:$LINENO: result: no" >&5 | |
10913 | echo "${ECHO_T}no" >&6 | |
10914 | fi | |
10915 | ||
10916 | fi | |
10917 | if test -z "$CC"; then | |
10918 | if test -n "$ac_tool_prefix"; then | |
10919 | for ac_prog in cl | |
10920 | do | |
10921 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10922 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10923 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10924 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10925 | if test "${ac_cv_prog_CC+set}" = set; then | |
10926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10927 | else | |
10928 | if test -n "$CC"; then | |
10929 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10930 | else | |
10931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10932 | for as_dir in $PATH | |
10933 | do | |
10934 | IFS=$as_save_IFS | |
10935 | test -z "$as_dir" && as_dir=. | |
10936 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10937 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10938 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10939 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10940 | break 2 | |
10941 | fi | |
10942 | done | |
10943 | done | |
10944 | ||
10945 | fi | |
10946 | fi | |
10947 | CC=$ac_cv_prog_CC | |
10948 | if test -n "$CC"; then | |
10949 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10950 | echo "${ECHO_T}$CC" >&6 | |
10951 | else | |
10952 | echo "$as_me:$LINENO: result: no" >&5 | |
10953 | echo "${ECHO_T}no" >&6 | |
10954 | fi | |
10955 | ||
10956 | test -n "$CC" && break | |
10957 | done | |
10958 | fi | |
10959 | if test -z "$CC"; then | |
10960 | ac_ct_CC=$CC | |
10961 | for ac_prog in cl | |
10962 | do | |
10963 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10964 | set dummy $ac_prog; ac_word=$2 | |
10965 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10966 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10967 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10969 | else | |
10970 | if test -n "$ac_ct_CC"; then | |
10971 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10972 | else | |
10973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10974 | for as_dir in $PATH | |
10975 | do | |
10976 | IFS=$as_save_IFS | |
10977 | test -z "$as_dir" && as_dir=. | |
10978 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10979 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10980 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10981 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10982 | break 2 | |
10983 | fi | |
10984 | done | |
10985 | done | |
10986 | ||
10987 | fi | |
10988 | fi | |
10989 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10990 | if test -n "$ac_ct_CC"; then | |
10991 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10992 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10993 | else | |
10994 | echo "$as_me:$LINENO: result: no" >&5 | |
10995 | echo "${ECHO_T}no" >&6 | |
10996 | fi | |
10997 | ||
10998 | test -n "$ac_ct_CC" && break | |
10999 | done | |
11000 | ||
11001 | CC=$ac_ct_CC | |
11002 | fi | |
11003 | ||
11004 | fi | |
11005 | ||
11006 | ||
11007 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
11008 | See \`config.log' for more details." >&5 | |
11009 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
11010 | See \`config.log' for more details." >&2;} | |
11011 | { (exit 1); exit 1; }; } | |
11012 | ||
11013 | # Provide some information about the compiler. | |
11014 | echo "$as_me:$LINENO:" \ | |
11015 | "checking for C compiler version" >&5 | |
11016 | ac_compiler=`set X $ac_compile; echo $2` | |
11017 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11018 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11019 | ac_status=$? | |
11020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11021 | (exit $ac_status); } | |
11022 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11023 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11024 | ac_status=$? | |
11025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11026 | (exit $ac_status); } | |
11027 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11028 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11029 | ac_status=$? | |
11030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11031 | (exit $ac_status); } | |
11032 | ||
11033 | cat >conftest.$ac_ext <<_ACEOF | |
11034 | /* confdefs.h. */ | |
11035 | _ACEOF | |
11036 | cat confdefs.h >>conftest.$ac_ext | |
11037 | cat >>conftest.$ac_ext <<_ACEOF | |
11038 | /* end confdefs.h. */ | |
11039 | ||
11040 | int | |
11041 | main () | |
11042 | { | |
11043 | ||
11044 | ; | |
11045 | return 0; | |
11046 | } | |
11047 | _ACEOF | |
11048 | ac_clean_files_save=$ac_clean_files | |
11049 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
11050 | # Try to create an executable without -o first, disregard a.out. | |
11051 | # It will help us diagnose broken compilers, and finding out an intuition | |
11052 | # of exeext. | |
ac1cb8d3 VS |
11053 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
11054 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
11055 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
11056 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
11057 | (eval $ac_link_default) 2>&5 | |
11058 | ac_status=$? | |
11059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11060 | (exit $ac_status); }; then | |
11061 | # Find the output, starting from the most likely. This scheme is | |
11062 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
11063 | # resort. | |
11064 | ||
11065 | # Be careful to initialize this variable, since it used to be cached. | |
11066 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
11067 | ac_cv_exeext= | |
11068 | # b.out is created by i960 compilers. | |
11069 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
11070 | do | |
11071 | test -f "$ac_file" || continue | |
11072 | case $ac_file in | |
11073 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 11074 | ;; |
a848cd7e | 11075 | conftest.$ac_ext ) |
ac1cb8d3 VS |
11076 | # This is the source file. |
11077 | ;; | |
a848cd7e | 11078 | [ab].out ) |
ac1cb8d3 VS |
11079 | # We found the default executable, but exeext='' is most |
11080 | # certainly right. | |
11081 | break;; | |
a848cd7e | 11082 | *.* ) |
ac1cb8d3 VS |
11083 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
11084 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
11085 | # but it would be cool to find out if it's true. Does anybody | |
11086 | # maintain Libtool? --akim. | |
11087 | export ac_cv_exeext | |
11088 | break;; | |
a848cd7e | 11089 | * ) |
ac1cb8d3 | 11090 | break;; |
a848cd7e SC |
11091 | esac |
11092 | done | |
11093 | else | |
11094 | echo "$as_me: failed program was:" >&5 | |
11095 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11096 | ||
11097 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
11098 | See \`config.log' for more details." >&5 | |
11099 | echo "$as_me: error: C compiler cannot create executables | |
11100 | See \`config.log' for more details." >&2;} | |
11101 | { (exit 77); exit 77; }; } | |
11102 | fi | |
11103 | ||
11104 | ac_exeext=$ac_cv_exeext | |
11105 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
11106 | echo "${ECHO_T}$ac_file" >&6 | |
11107 | ||
11108 | # Check the compiler produces executables we can run. If not, either | |
11109 | # the compiler is broken, or we cross compile. | |
11110 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
11111 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
11112 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
11113 | # If not cross compiling, check that we can run a simple program. | |
11114 | if test "$cross_compiling" != yes; then | |
11115 | if { ac_try='./$ac_file' | |
11116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11117 | (eval $ac_try) 2>&5 | |
11118 | ac_status=$? | |
11119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11120 | (exit $ac_status); }; }; then | |
11121 | cross_compiling=no | |
11122 | else | |
11123 | if test "$cross_compiling" = maybe; then | |
11124 | cross_compiling=yes | |
11125 | else | |
11126 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
11127 | If you meant to cross compile, use \`--host'. | |
11128 | See \`config.log' for more details." >&5 | |
11129 | echo "$as_me: error: cannot run C compiled programs. | |
11130 | If you meant to cross compile, use \`--host'. | |
11131 | See \`config.log' for more details." >&2;} | |
11132 | { (exit 1); exit 1; }; } | |
11133 | fi | |
11134 | fi | |
11135 | fi | |
11136 | echo "$as_me:$LINENO: result: yes" >&5 | |
11137 | echo "${ECHO_T}yes" >&6 | |
11138 | ||
11139 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
11140 | ac_clean_files=$ac_clean_files_save | |
11141 | # Check the compiler produces executables we can run. If not, either | |
11142 | # the compiler is broken, or we cross compile. | |
11143 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
11144 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
11145 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
11146 | echo "${ECHO_T}$cross_compiling" >&6 | |
11147 | ||
11148 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
11149 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
11150 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11151 | (eval $ac_link) 2>&5 | |
11152 | ac_status=$? | |
11153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11154 | (exit $ac_status); }; then | |
11155 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
11156 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
11157 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
11158 | # `rm'. | |
11159 | for ac_file in conftest.exe conftest conftest.*; do | |
11160 | test -f "$ac_file" || continue | |
11161 | case $ac_file in | |
11162 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
11163 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
11164 | export ac_cv_exeext |
11165 | break;; | |
a848cd7e SC |
11166 | * ) break;; |
11167 | esac | |
11168 | done | |
11169 | else | |
11170 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
11171 | See \`config.log' for more details." >&5 | |
11172 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
11173 | See \`config.log' for more details." >&2;} | |
11174 | { (exit 1); exit 1; }; } | |
11175 | fi | |
11176 | ||
11177 | rm -f conftest$ac_cv_exeext | |
11178 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
11179 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
11180 | ||
11181 | rm -f conftest.$ac_ext | |
11182 | EXEEXT=$ac_cv_exeext | |
11183 | ac_exeext=$EXEEXT | |
11184 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
11185 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
11186 | if test "${ac_cv_objext+set}" = set; then | |
11187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11188 | else | |
11189 | cat >conftest.$ac_ext <<_ACEOF | |
11190 | /* confdefs.h. */ | |
11191 | _ACEOF | |
11192 | cat confdefs.h >>conftest.$ac_ext | |
11193 | cat >>conftest.$ac_ext <<_ACEOF | |
11194 | /* end confdefs.h. */ | |
11195 | ||
11196 | int | |
11197 | main () | |
11198 | { | |
11199 | ||
11200 | ; | |
11201 | return 0; | |
11202 | } | |
11203 | _ACEOF | |
11204 | rm -f conftest.o conftest.obj | |
11205 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11206 | (eval $ac_compile) 2>&5 | |
11207 | ac_status=$? | |
11208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11209 | (exit $ac_status); }; then | |
11210 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
11211 | case $ac_file in | |
11212 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
11213 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
11214 | break;; | |
11215 | esac | |
11216 | done | |
11217 | else | |
11218 | echo "$as_me: failed program was:" >&5 | |
11219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11220 | ||
11221 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
11222 | See \`config.log' for more details." >&5 | |
11223 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
11224 | See \`config.log' for more details." >&2;} | |
11225 | { (exit 1); exit 1; }; } | |
11226 | fi | |
11227 | ||
11228 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
11229 | fi | |
11230 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
11231 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
11232 | OBJEXT=$ac_cv_objext | |
11233 | ac_objext=$OBJEXT | |
11234 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
11235 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
11236 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
11237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11238 | else | |
11239 | cat >conftest.$ac_ext <<_ACEOF | |
11240 | /* confdefs.h. */ | |
11241 | _ACEOF | |
11242 | cat confdefs.h >>conftest.$ac_ext | |
11243 | cat >>conftest.$ac_ext <<_ACEOF | |
11244 | /* end confdefs.h. */ | |
11245 | ||
11246 | int | |
11247 | main () | |
11248 | { | |
11249 | #ifndef __GNUC__ | |
11250 | choke me | |
11251 | #endif | |
11252 | ||
11253 | ; | |
11254 | return 0; | |
11255 | } | |
11256 | _ACEOF | |
11257 | rm -f conftest.$ac_objext | |
11258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11259 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11260 | ac_status=$? |
ac1cb8d3 VS |
11261 | grep -v '^ *+' conftest.er1 >conftest.err |
11262 | rm -f conftest.er1 | |
11263 | cat conftest.err >&5 | |
a848cd7e SC |
11264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11265 | (exit $ac_status); } && | |
ddd14b14 RR |
11266 | { ac_try='test -z "$ac_c_werror_flag" |
11267 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11269 | (eval $ac_try) 2>&5 | |
11270 | ac_status=$? | |
11271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11272 | (exit $ac_status); }; } && | |
11273 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11275 | (eval $ac_try) 2>&5 | |
11276 | ac_status=$? | |
11277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11278 | (exit $ac_status); }; }; then | |
11279 | ac_compiler_gnu=yes | |
11280 | else | |
11281 | echo "$as_me: failed program was:" >&5 | |
11282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11283 | ||
11284 | ac_compiler_gnu=no | |
11285 | fi | |
ac1cb8d3 | 11286 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11287 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
11288 | ||
11289 | fi | |
11290 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
11291 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
11292 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
11293 | ac_test_CFLAGS=${CFLAGS+set} | |
11294 | ac_save_CFLAGS=$CFLAGS | |
52ada004 | 11295 | CFLAGS="-g" |
a848cd7e SC |
11296 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
11297 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11298 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11300 | else | |
11301 | cat >conftest.$ac_ext <<_ACEOF | |
11302 | /* confdefs.h. */ | |
11303 | _ACEOF | |
11304 | cat confdefs.h >>conftest.$ac_ext | |
11305 | cat >>conftest.$ac_ext <<_ACEOF | |
11306 | /* end confdefs.h. */ | |
11307 | ||
11308 | int | |
11309 | main () | |
11310 | { | |
11311 | ||
11312 | ; | |
11313 | return 0; | |
11314 | } | |
11315 | _ACEOF | |
11316 | rm -f conftest.$ac_objext | |
11317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11318 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11319 | ac_status=$? |
ac1cb8d3 VS |
11320 | grep -v '^ *+' conftest.er1 >conftest.err |
11321 | rm -f conftest.er1 | |
11322 | cat conftest.err >&5 | |
a848cd7e SC |
11323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11324 | (exit $ac_status); } && | |
ddd14b14 RR |
11325 | { ac_try='test -z "$ac_c_werror_flag" |
11326 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11328 | (eval $ac_try) 2>&5 | |
11329 | ac_status=$? | |
11330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11331 | (exit $ac_status); }; } && | |
11332 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11334 | (eval $ac_try) 2>&5 | |
11335 | ac_status=$? | |
11336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11337 | (exit $ac_status); }; }; then | |
11338 | ac_cv_prog_cc_g=yes | |
11339 | else | |
11340 | echo "$as_me: failed program was:" >&5 | |
11341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11342 | ||
11343 | ac_cv_prog_cc_g=no | |
11344 | fi | |
ac1cb8d3 | 11345 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11346 | fi |
11347 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11348 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11349 | if test "$ac_test_CFLAGS" = set; then | |
11350 | CFLAGS=$ac_save_CFLAGS | |
11351 | elif test $ac_cv_prog_cc_g = yes; then | |
11352 | if test "$GCC" = yes; then | |
11353 | CFLAGS="-g -O2" | |
11354 | else | |
11355 | CFLAGS="-g" | |
11356 | fi | |
11357 | else | |
11358 | if test "$GCC" = yes; then | |
11359 | CFLAGS="-O2" | |
11360 | else | |
11361 | CFLAGS= | |
11362 | fi | |
11363 | fi | |
11364 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
11365 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
11366 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
11367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11368 | else | |
11369 | ac_cv_prog_cc_stdc=no | |
11370 | ac_save_CC=$CC | |
11371 | cat >conftest.$ac_ext <<_ACEOF | |
11372 | /* confdefs.h. */ | |
11373 | _ACEOF | |
11374 | cat confdefs.h >>conftest.$ac_ext | |
11375 | cat >>conftest.$ac_ext <<_ACEOF | |
11376 | /* end confdefs.h. */ | |
11377 | #include <stdarg.h> | |
11378 | #include <stdio.h> | |
11379 | #include <sys/types.h> | |
11380 | #include <sys/stat.h> | |
11381 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
11382 | struct buf { int x; }; | |
11383 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
11384 | static char *e (p, i) | |
11385 | char **p; | |
11386 | int i; | |
11387 | { | |
11388 | return p[i]; | |
11389 | } | |
11390 | static char *f (char * (*g) (char **, int), char **p, ...) | |
11391 | { | |
11392 | char *s; | |
11393 | va_list v; | |
11394 | va_start (v,p); | |
11395 | s = g (p, va_arg (v,int)); | |
11396 | va_end (v); | |
11397 | return s; | |
11398 | } | |
ac1cb8d3 VS |
11399 | |
11400 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
11401 | function prototypes and stuff, but not '\xHH' hex character constants. | |
11402 | These don't provoke an error unfortunately, instead are silently treated | |
11403 | as 'x'. The following induces an error, until -std1 is added to get | |
11404 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
11405 | array size at least. It's necessary to write '\x00'==0 to get something | |
11406 | that's true only with -std1. */ | |
11407 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
11408 | ||
a848cd7e SC |
11409 | int test (int i, double x); |
11410 | struct s1 {int (*f) (int a);}; | |
11411 | struct s2 {int (*f) (double a);}; | |
11412 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
11413 | int argc; | |
11414 | char **argv; | |
11415 | int | |
11416 | main () | |
11417 | { | |
11418 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
11419 | ; | |
11420 | return 0; | |
11421 | } | |
11422 | _ACEOF | |
11423 | # Don't try gcc -ansi; that turns off useful extensions and | |
11424 | # breaks some systems' header files. | |
11425 | # AIX -qlanglvl=ansi | |
11426 | # Ultrix and OSF/1 -std1 | |
11427 | # HP-UX 10.20 and later -Ae | |
11428 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
11429 | # SVR4 -Xc -D__EXTENSIONS__ | |
11430 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
11431 | do | |
11432 | CC="$ac_save_CC $ac_arg" | |
11433 | rm -f conftest.$ac_objext | |
11434 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11435 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11436 | ac_status=$? |
ac1cb8d3 VS |
11437 | grep -v '^ *+' conftest.er1 >conftest.err |
11438 | rm -f conftest.er1 | |
11439 | cat conftest.err >&5 | |
a848cd7e SC |
11440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11441 | (exit $ac_status); } && | |
ddd14b14 RR |
11442 | { ac_try='test -z "$ac_c_werror_flag" |
11443 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11445 | (eval $ac_try) 2>&5 | |
11446 | ac_status=$? | |
11447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11448 | (exit $ac_status); }; } && | |
11449 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11451 | (eval $ac_try) 2>&5 | |
11452 | ac_status=$? | |
11453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11454 | (exit $ac_status); }; }; then | |
11455 | ac_cv_prog_cc_stdc=$ac_arg | |
11456 | break | |
11457 | else | |
11458 | echo "$as_me: failed program was:" >&5 | |
11459 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11460 | ||
11461 | fi | |
ac1cb8d3 | 11462 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
11463 | done |
11464 | rm -f conftest.$ac_ext conftest.$ac_objext | |
11465 | CC=$ac_save_CC | |
11466 | ||
11467 | fi | |
11468 | ||
11469 | case "x$ac_cv_prog_cc_stdc" in | |
11470 | x|xno) | |
11471 | echo "$as_me:$LINENO: result: none needed" >&5 | |
11472 | echo "${ECHO_T}none needed" >&6 ;; | |
11473 | *) | |
11474 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
11475 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
11476 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
11477 | esac | |
11478 | ||
11479 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
11480 | # in C++ we need to declare it. In case someone uses the same compiler | |
11481 | # for both compiling C and C++ we need to have the C++ compiler decide | |
11482 | # the declaration of exit, since it's the most demanding environment. | |
11483 | cat >conftest.$ac_ext <<_ACEOF | |
11484 | #ifndef __cplusplus | |
11485 | choke me | |
11486 | #endif | |
11487 | _ACEOF | |
11488 | rm -f conftest.$ac_objext | |
11489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11490 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11491 | ac_status=$? |
ac1cb8d3 VS |
11492 | grep -v '^ *+' conftest.er1 >conftest.err |
11493 | rm -f conftest.er1 | |
11494 | cat conftest.err >&5 | |
a848cd7e SC |
11495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11496 | (exit $ac_status); } && | |
ddd14b14 RR |
11497 | { ac_try='test -z "$ac_c_werror_flag" |
11498 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11500 | (eval $ac_try) 2>&5 | |
11501 | ac_status=$? | |
11502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11503 | (exit $ac_status); }; } && | |
11504 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11506 | (eval $ac_try) 2>&5 | |
11507 | ac_status=$? | |
11508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11509 | (exit $ac_status); }; }; then | |
11510 | for ac_declaration in \ | |
ac1cb8d3 | 11511 | '' \ |
a848cd7e SC |
11512 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11513 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11514 | 'extern "C" void exit (int) throw ();' \ | |
11515 | 'extern "C" void exit (int);' \ | |
11516 | 'void exit (int);' | |
11517 | do | |
11518 | cat >conftest.$ac_ext <<_ACEOF | |
11519 | /* confdefs.h. */ | |
11520 | _ACEOF | |
11521 | cat confdefs.h >>conftest.$ac_ext | |
11522 | cat >>conftest.$ac_ext <<_ACEOF | |
11523 | /* end confdefs.h. */ | |
de59c161 | 11524 | $ac_declaration |
ac1cb8d3 | 11525 | #include <stdlib.h> |
a848cd7e SC |
11526 | int |
11527 | main () | |
11528 | { | |
11529 | exit (42); | |
11530 | ; | |
11531 | return 0; | |
11532 | } | |
11533 | _ACEOF | |
11534 | rm -f conftest.$ac_objext | |
11535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11536 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11537 | ac_status=$? |
ac1cb8d3 VS |
11538 | grep -v '^ *+' conftest.er1 >conftest.err |
11539 | rm -f conftest.er1 | |
11540 | cat conftest.err >&5 | |
a848cd7e SC |
11541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11542 | (exit $ac_status); } && | |
ddd14b14 RR |
11543 | { ac_try='test -z "$ac_c_werror_flag" |
11544 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11546 | (eval $ac_try) 2>&5 | |
11547 | ac_status=$? | |
11548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11549 | (exit $ac_status); }; } && | |
11550 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11552 | (eval $ac_try) 2>&5 | |
11553 | ac_status=$? | |
11554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11555 | (exit $ac_status); }; }; then | |
11556 | : | |
11557 | else | |
11558 | echo "$as_me: failed program was:" >&5 | |
11559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11560 | ||
11561 | continue | |
11562 | fi | |
ac1cb8d3 | 11563 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11564 | cat >conftest.$ac_ext <<_ACEOF |
11565 | /* confdefs.h. */ | |
11566 | _ACEOF | |
11567 | cat confdefs.h >>conftest.$ac_ext | |
11568 | cat >>conftest.$ac_ext <<_ACEOF | |
11569 | /* end confdefs.h. */ | |
11570 | $ac_declaration | |
11571 | int | |
11572 | main () | |
11573 | { | |
11574 | exit (42); | |
11575 | ; | |
11576 | return 0; | |
11577 | } | |
11578 | _ACEOF | |
11579 | rm -f conftest.$ac_objext | |
11580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11581 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11582 | ac_status=$? |
ac1cb8d3 VS |
11583 | grep -v '^ *+' conftest.er1 >conftest.err |
11584 | rm -f conftest.er1 | |
11585 | cat conftest.err >&5 | |
a848cd7e SC |
11586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11587 | (exit $ac_status); } && | |
ddd14b14 RR |
11588 | { ac_try='test -z "$ac_c_werror_flag" |
11589 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11591 | (eval $ac_try) 2>&5 | |
11592 | ac_status=$? | |
11593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11594 | (exit $ac_status); }; } && | |
11595 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11597 | (eval $ac_try) 2>&5 | |
11598 | ac_status=$? | |
11599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11600 | (exit $ac_status); }; }; then | |
11601 | break | |
11602 | else | |
11603 | echo "$as_me: failed program was:" >&5 | |
11604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11605 | ||
11606 | fi | |
ac1cb8d3 | 11607 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11608 | done |
11609 | rm -f conftest* | |
11610 | if test -n "$ac_declaration"; then | |
11611 | echo '#ifdef __cplusplus' >>confdefs.h | |
11612 | echo $ac_declaration >>confdefs.h | |
11613 | echo '#endif' >>confdefs.h | |
11614 | fi | |
11615 | ||
11616 | else | |
11617 | echo "$as_me: failed program was:" >&5 | |
11618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11619 | ||
11620 | fi | |
ac1cb8d3 | 11621 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11622 | ac_ext=c |
11623 | ac_cpp='$CPP $CPPFLAGS' | |
11624 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11625 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11626 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11627 | ||
6dcfc289 | 11628 | echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5 |
480ccd21 DE |
11629 | echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6 |
11630 | if test "${wx_cv_c_exto+set}" = set; then | |
11631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11632 | else | |
11633 | cat >conftest.$ac_ext <<_ACEOF | |
11634 | /* confdefs.h. */ | |
11635 | _ACEOF | |
11636 | cat confdefs.h >>conftest.$ac_ext | |
11637 | cat >>conftest.$ac_ext <<_ACEOF | |
11638 | /* end confdefs.h. */ | |
11639 | ||
11640 | int | |
11641 | main () | |
11642 | { | |
11643 | ||
11644 | ; | |
11645 | return 0; | |
11646 | } | |
11647 | _ACEOF | |
11648 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
11649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11650 | (eval $ac_compile) 2>&5 | |
11651 | ac_status=$? | |
11652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11653 | (exit $ac_status); }; then | |
11654 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
11655 | case $ac_file in | |
11656 | conftest.$ac_ext.o) | |
11657 | wx_cv_c_exto="-ext o" | |
11658 | ;; | |
11659 | *) | |
11660 | ;; | |
11661 | esac | |
11662 | done | |
11663 | else | |
11664 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
11665 | See \`config.log' for more details." >&5 | |
11666 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
11667 | See \`config.log' for more details." >&2;} | |
11668 | { (exit 1); exit 1; }; } | |
11669 | ||
11670 | fi | |
11671 | ||
11672 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
11673 | ||
11674 | fi | |
11675 | echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5 | |
11676 | echo "${ECHO_T}$wx_cv_c_exto" >&6 | |
11677 | if test "x$wx_cv_c_exto" '!=' "x"; then | |
11678 | if test "c" = "c"; then | |
11679 | CFLAGS="$wx_cv_c_exto $CFLAGS" | |
11680 | fi | |
11681 | if test "c" = "cxx"; then | |
11682 | CXXFLAGS="$wx_cv_c_exto $CXXFLAGS" | |
11683 | fi | |
11684 | fi | |
11685 | ||
6dcfc289 DE |
11686 | if test "x$wx_cv_c_exto" '!=' "x"; then |
11687 | unset ac_cv_prog_cc_g | |
11688 | ac_test_CFLAGS=${CFLAGS+set} | |
480ccd21 | 11689 | ac_save_CFLAGS=$CFLAGS |
52ada004 | 11690 | CFLAGS="-g" |
480ccd21 DE |
11691 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
11692 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11693 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11695 | else | |
11696 | cat >conftest.$ac_ext <<_ACEOF | |
11697 | /* confdefs.h. */ | |
11698 | _ACEOF | |
11699 | cat confdefs.h >>conftest.$ac_ext | |
11700 | cat >>conftest.$ac_ext <<_ACEOF | |
11701 | /* end confdefs.h. */ | |
11702 | ||
11703 | int | |
11704 | main () | |
11705 | { | |
11706 | ||
11707 | ; | |
11708 | return 0; | |
11709 | } | |
11710 | _ACEOF | |
11711 | rm -f conftest.$ac_objext | |
11712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11713 | (eval $ac_compile) 2>conftest.er1 | |
11714 | ac_status=$? | |
11715 | grep -v '^ *+' conftest.er1 >conftest.err | |
11716 | rm -f conftest.er1 | |
11717 | cat conftest.err >&5 | |
11718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11719 | (exit $ac_status); } && | |
ddd14b14 RR |
11720 | { ac_try='test -z "$ac_c_werror_flag" |
11721 | || test ! -s conftest.err' | |
480ccd21 DE |
11722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11723 | (eval $ac_try) 2>&5 | |
11724 | ac_status=$? | |
11725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11726 | (exit $ac_status); }; } && | |
11727 | { ac_try='test -s conftest.$ac_objext' | |
11728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11729 | (eval $ac_try) 2>&5 | |
11730 | ac_status=$? | |
11731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11732 | (exit $ac_status); }; }; then | |
11733 | ac_cv_prog_cc_g=yes | |
11734 | else | |
11735 | echo "$as_me: failed program was:" >&5 | |
11736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11737 | ||
11738 | ac_cv_prog_cc_g=no | |
11739 | fi | |
11740 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11741 | fi | |
11742 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11743 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11744 | if test "$ac_test_CFLAGS" = set; then | |
11745 | CFLAGS=$ac_save_CFLAGS | |
11746 | elif test $ac_cv_prog_cc_g = yes; then | |
11747 | if test "$GCC" = yes; then | |
11748 | CFLAGS="-g -O2" | |
11749 | else | |
11750 | CFLAGS="-g" | |
11751 | fi | |
11752 | else | |
11753 | if test "$GCC" = yes; then | |
11754 | CFLAGS="-O2" | |
11755 | else | |
11756 | CFLAGS= | |
11757 | fi | |
11758 | fi | |
6dcfc289 DE |
11759 | fi |
11760 | ac_ext=c | |
95986553 DE |
11761 | ac_cpp='$CPP $CPPFLAGS' |
11762 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11763 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11764 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11765 | ||
11766 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5 | |
11767 | echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6 | |
11768 | if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then | |
11769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11770 | else | |
11771 | cat >conftest.$ac_ext <<_ACEOF | |
11772 | /* confdefs.h. */ | |
11773 | _ACEOF | |
11774 | cat confdefs.h >>conftest.$ac_ext | |
11775 | cat >>conftest.$ac_ext <<_ACEOF | |
11776 | /* end confdefs.h. */ | |
11777 | ||
11778 | int | |
11779 | main () | |
11780 | { | |
11781 | #ifndef __MWERKS__ | |
11782 | choke me | |
11783 | #endif | |
11784 | ||
11785 | ; | |
11786 | return 0; | |
11787 | } | |
11788 | _ACEOF | |
11789 | rm -f conftest.$ac_objext | |
11790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11791 | (eval $ac_compile) 2>conftest.er1 | |
11792 | ac_status=$? | |
11793 | grep -v '^ *+' conftest.er1 >conftest.err | |
11794 | rm -f conftest.er1 | |
11795 | cat conftest.err >&5 | |
11796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11797 | (exit $ac_status); } && | |
ddd14b14 RR |
11798 | { ac_try='test -z "$ac_c_werror_flag" |
11799 | || test ! -s conftest.err' | |
95986553 DE |
11800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11801 | (eval $ac_try) 2>&5 | |
11802 | ac_status=$? | |
11803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11804 | (exit $ac_status); }; } && | |
11805 | { ac_try='test -s conftest.$ac_objext' | |
11806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11807 | (eval $ac_try) 2>&5 | |
11808 | ac_status=$? | |
11809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11810 | (exit $ac_status); }; }; then | |
11811 | bakefile_compiler_mwerks=yes | |
11812 | else | |
11813 | echo "$as_me: failed program was:" >&5 | |
11814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11815 | ||
11816 | bakefile_compiler_mwerks=no | |
11817 | fi | |
11818 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11819 | bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks | |
11820 | ||
11821 | fi | |
11822 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5 | |
11823 | echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6 | |
11824 | ||
0e6fa1d9 | 11825 | MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes` |
95986553 DE |
11826 | ac_ext=c |
11827 | ac_cpp='$CPP $CPPFLAGS' | |
11828 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11829 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11830 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11831 | ||
11832 | ||
6dcfc289 | 11833 | ac_ext=c |
9273ffba DE |
11834 | ac_cpp='$CPP $CPPFLAGS' |
11835 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11836 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11837 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11838 | ||
11839 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
11840 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
11841 | if test "${wx_cv_c_compiler_xlc+set}" = set; then | |
11842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11843 | else | |
11844 | cat >conftest.$ac_ext <<_ACEOF | |
11845 | /* confdefs.h. */ | |
11846 | _ACEOF | |
11847 | cat confdefs.h >>conftest.$ac_ext | |
11848 | cat >>conftest.$ac_ext <<_ACEOF | |
11849 | /* end confdefs.h. */ | |
11850 | ||
11851 | int | |
11852 | main () | |
11853 | { | |
11854 | #ifndef __xlC__ | |
11855 | choke me | |
11856 | #endif | |
11857 | ||
11858 | ; | |
11859 | return 0; | |
11860 | } | |
11861 | _ACEOF | |
11862 | rm -f conftest.$ac_objext | |
11863 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11864 | (eval $ac_compile) 2>conftest.er1 | |
11865 | ac_status=$? | |
11866 | grep -v '^ *+' conftest.er1 >conftest.err | |
11867 | rm -f conftest.er1 | |
11868 | cat conftest.err >&5 | |
11869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11870 | (exit $ac_status); } && | |
ddd14b14 RR |
11871 | { ac_try='test -z "$ac_c_werror_flag" |
11872 | || test ! -s conftest.err' | |
9273ffba DE |
11873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11874 | (eval $ac_try) 2>&5 | |
11875 | ac_status=$? | |
11876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11877 | (exit $ac_status); }; } && | |
11878 | { ac_try='test -s conftest.$ac_objext' | |
11879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11880 | (eval $ac_try) 2>&5 | |
11881 | ac_status=$? | |
11882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11883 | (exit $ac_status); }; }; then | |
11884 | wx_compiler_xlc=yes | |
11885 | else | |
11886 | echo "$as_me: failed program was:" >&5 | |
11887 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11888 | ||
11889 | wx_compiler_xlc=no | |
11890 | fi | |
11891 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11892 | wx_cv_c_compiler_xlc=$wx_compiler_xlc | |
11893 | ||
11894 | fi | |
11895 | echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5 | |
11896 | echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6 | |
11897 | ||
0e6fa1d9 | 11898 | XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes` |
9273ffba DE |
11899 | ac_ext=c |
11900 | ac_cpp='$CPP $CPPFLAGS' | |
11901 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11902 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11903 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11904 | ||
11905 | ||
a848cd7e | 11906 | |
6dcfc289 | 11907 | |
a9e5b1f0 MW |
11908 | ac_ext=c |
11909 | ac_cpp='$CPP $CPPFLAGS' | |
11910 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11911 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11912 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11913 | ||
11914 | echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5 | |
11915 | echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6 | |
11916 | if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then | |
11917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11918 | else | |
11919 | cat >conftest.$ac_ext <<_ACEOF | |
11920 | /* confdefs.h. */ | |
11921 | _ACEOF | |
11922 | cat confdefs.h >>conftest.$ac_ext | |
11923 | cat >>conftest.$ac_ext <<_ACEOF | |
11924 | /* end confdefs.h. */ | |
11925 | ||
11926 | int | |
11927 | main () | |
11928 | { | |
11929 | ||
11930 | #ifndef __SUNPRO_C | |
11931 | choke me | |
11932 | #endif | |
11933 | ||
11934 | ; | |
11935 | return 0; | |
11936 | } | |
11937 | _ACEOF | |
11938 | rm -f conftest.$ac_objext | |
11939 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11940 | (eval $ac_compile) 2>conftest.er1 | |
11941 | ac_status=$? | |
11942 | grep -v '^ *+' conftest.er1 >conftest.err | |
11943 | rm -f conftest.er1 | |
11944 | cat conftest.err >&5 | |
11945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11946 | (exit $ac_status); } && | |
ddd14b14 RR |
11947 | { ac_try='test -z "$ac_c_werror_flag" |
11948 | || test ! -s conftest.err' | |
a9e5b1f0 MW |
11949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11950 | (eval $ac_try) 2>&5 | |
11951 | ac_status=$? | |
11952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11953 | (exit $ac_status); }; } && | |
11954 | { ac_try='test -s conftest.$ac_objext' | |
11955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11956 | (eval $ac_try) 2>&5 | |
11957 | ac_status=$? | |
11958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11959 | (exit $ac_status); }; }; then | |
11960 | bakefile_cv_c_compiler___SUNPRO_C=yes | |
11961 | else | |
11962 | echo "$as_me: failed program was:" >&5 | |
11963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11964 | ||
11965 | bakefile_cv_c_compiler___SUNPRO_C=no | |
11966 | ||
11967 | fi | |
11968 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11969 | ||
11970 | ||
11971 | fi | |
11972 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5 | |
11973 | echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6 | |
11974 | ac_ext=c | |
11975 | ac_cpp='$CPP $CPPFLAGS' | |
11976 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11977 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11978 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11979 | ||
11980 | if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then | |
11981 | :; SUNCC=yes | |
11982 | else | |
11983 | :; | |
11984 | fi | |
11985 | ||
11986 | ||
11987 | ||
11988 | ||
a848cd7e SC |
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 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
11995 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
11996 | # On Suns, sometimes $CPP names a directory. | |
11997 | if test -n "$CPP" && test -d "$CPP"; then | |
11998 | CPP= | |
11999 | fi | |
12000 | if test -z "$CPP"; then | |
12001 | if test "${ac_cv_prog_CPP+set}" = set; then | |
12002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12003 | else | |
12004 | # Double quotes because CPP needs to be expanded | |
12005 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
12006 | do | |
12007 | ac_preproc_ok=false | |
12008 | for ac_c_preproc_warn_flag in '' yes | |
12009 | do | |
12010 | # Use a header file that comes with gcc, so configuring glibc | |
12011 | # with a fresh cross-compiler works. | |
12012 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12013 | # <limits.h> exists even on freestanding compilers. | |
12014 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12015 | # not just through cpp. "Syntax error" is here to catch this case. | |
12016 | cat >conftest.$ac_ext <<_ACEOF | |
12017 | /* confdefs.h. */ | |
12018 | _ACEOF | |
12019 | cat confdefs.h >>conftest.$ac_ext | |
12020 | cat >>conftest.$ac_ext <<_ACEOF | |
12021 | /* end confdefs.h. */ | |
12022 | #ifdef __STDC__ | |
12023 | # include <limits.h> | |
12024 | #else | |
12025 | # include <assert.h> | |
12026 | #endif | |
ac1cb8d3 | 12027 | Syntax error |
a848cd7e SC |
12028 | _ACEOF |
12029 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12030 | (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then | |
12037 | if test -s conftest.err; then | |
12038 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12039 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12040 | else |
12041 | ac_cpp_err= | |
12042 | fi | |
12043 | else | |
12044 | ac_cpp_err=yes | |
12045 | fi | |
12046 | if test -z "$ac_cpp_err"; then | |
12047 | : | |
12048 | else | |
12049 | echo "$as_me: failed program was:" >&5 | |
12050 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12051 | ||
12052 | # Broken: fails on valid input. | |
12053 | continue | |
12054 | fi | |
12055 | rm -f conftest.err conftest.$ac_ext | |
12056 | ||
12057 | # OK, works on sane cases. Now check whether non-existent headers | |
12058 | # can be detected and how. | |
12059 | cat >conftest.$ac_ext <<_ACEOF | |
12060 | /* confdefs.h. */ | |
12061 | _ACEOF | |
12062 | cat confdefs.h >>conftest.$ac_ext | |
12063 | cat >>conftest.$ac_ext <<_ACEOF | |
12064 | /* end confdefs.h. */ | |
12065 | #include <ac_nonexistent.h> | |
12066 | _ACEOF | |
12067 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12068 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12069 | ac_status=$? | |
12070 | grep -v '^ *+' conftest.er1 >conftest.err | |
12071 | rm -f conftest.er1 | |
12072 | cat conftest.err >&5 | |
12073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12074 | (exit $ac_status); } >/dev/null; then | |
12075 | if test -s conftest.err; then | |
12076 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12077 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12078 | else |
12079 | ac_cpp_err= | |
12080 | fi | |
12081 | else | |
12082 | ac_cpp_err=yes | |
12083 | fi | |
12084 | if test -z "$ac_cpp_err"; then | |
12085 | # Broken: success on invalid input. | |
12086 | continue | |
12087 | else | |
12088 | echo "$as_me: failed program was:" >&5 | |
12089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12090 | ||
12091 | # Passes both tests. | |
12092 | ac_preproc_ok=: | |
12093 | break | |
12094 | fi | |
12095 | rm -f conftest.err conftest.$ac_ext | |
12096 | ||
12097 | done | |
12098 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12099 | rm -f conftest.err conftest.$ac_ext | |
12100 | if $ac_preproc_ok; then | |
12101 | break | |
12102 | fi | |
12103 | ||
12104 | done | |
12105 | ac_cv_prog_CPP=$CPP | |
12106 | ||
12107 | fi | |
12108 | CPP=$ac_cv_prog_CPP | |
12109 | else | |
12110 | ac_cv_prog_CPP=$CPP | |
12111 | fi | |
12112 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
12113 | echo "${ECHO_T}$CPP" >&6 | |
12114 | ac_preproc_ok=false | |
12115 | for ac_c_preproc_warn_flag in '' yes | |
12116 | do | |
12117 | # Use a header file that comes with gcc, so configuring glibc | |
12118 | # with a fresh cross-compiler works. | |
12119 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12120 | # <limits.h> exists even on freestanding compilers. | |
12121 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12122 | # not just through cpp. "Syntax error" is here to catch this case. | |
12123 | cat >conftest.$ac_ext <<_ACEOF | |
12124 | /* confdefs.h. */ | |
12125 | _ACEOF | |
12126 | cat confdefs.h >>conftest.$ac_ext | |
12127 | cat >>conftest.$ac_ext <<_ACEOF | |
12128 | /* end confdefs.h. */ | |
12129 | #ifdef __STDC__ | |
12130 | # include <limits.h> | |
12131 | #else | |
12132 | # include <assert.h> | |
12133 | #endif | |
ac1cb8d3 | 12134 | Syntax error |
a848cd7e SC |
12135 | _ACEOF |
12136 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12137 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12138 | ac_status=$? | |
12139 | grep -v '^ *+' conftest.er1 >conftest.err | |
12140 | rm -f conftest.er1 | |
12141 | cat conftest.err >&5 | |
12142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12143 | (exit $ac_status); } >/dev/null; then | |
12144 | if test -s conftest.err; then | |
12145 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12146 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12147 | else |
12148 | ac_cpp_err= | |
12149 | fi | |
12150 | else | |
12151 | ac_cpp_err=yes | |
12152 | fi | |
12153 | if test -z "$ac_cpp_err"; then | |
12154 | : | |
12155 | else | |
12156 | echo "$as_me: failed program was:" >&5 | |
12157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12158 | ||
12159 | # Broken: fails on valid input. | |
12160 | continue | |
12161 | fi | |
12162 | rm -f conftest.err conftest.$ac_ext | |
12163 | ||
12164 | # OK, works on sane cases. Now check whether non-existent headers | |
12165 | # can be detected and how. | |
12166 | cat >conftest.$ac_ext <<_ACEOF | |
12167 | /* confdefs.h. */ | |
12168 | _ACEOF | |
12169 | cat confdefs.h >>conftest.$ac_ext | |
12170 | cat >>conftest.$ac_ext <<_ACEOF | |
12171 | /* end confdefs.h. */ | |
12172 | #include <ac_nonexistent.h> | |
12173 | _ACEOF | |
12174 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12175 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12176 | ac_status=$? | |
12177 | grep -v '^ *+' conftest.er1 >conftest.err | |
12178 | rm -f conftest.er1 | |
12179 | cat conftest.err >&5 | |
12180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12181 | (exit $ac_status); } >/dev/null; then | |
12182 | if test -s conftest.err; then | |
12183 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12184 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12185 | else |
12186 | ac_cpp_err= | |
12187 | fi | |
12188 | else | |
12189 | ac_cpp_err=yes | |
12190 | fi | |
12191 | if test -z "$ac_cpp_err"; then | |
12192 | # Broken: success on invalid input. | |
12193 | continue | |
12194 | else | |
12195 | echo "$as_me: failed program was:" >&5 | |
12196 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12197 | ||
12198 | # Passes both tests. | |
12199 | ac_preproc_ok=: | |
12200 | break | |
12201 | fi | |
12202 | rm -f conftest.err conftest.$ac_ext | |
12203 | ||
12204 | done | |
12205 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12206 | rm -f conftest.err conftest.$ac_ext | |
12207 | if $ac_preproc_ok; then | |
12208 | : | |
12209 | else | |
12210 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
12211 | See \`config.log' for more details." >&5 | |
12212 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
12213 | See \`config.log' for more details." >&2;} | |
12214 | { (exit 1); exit 1; }; } | |
12215 | fi | |
12216 | ||
12217 | ac_ext=c | |
12218 | ac_cpp='$CPP $CPPFLAGS' | |
12219 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12220 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12221 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12222 | ||
12223 | ||
12224 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
12225 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
12226 | if test "${ac_cv_prog_egrep+set}" = set; then | |
12227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12228 | else | |
12229 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
12230 | then ac_cv_prog_egrep='grep -E' | |
12231 | else ac_cv_prog_egrep='egrep' | |
12232 | fi | |
12233 | fi | |
12234 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
12235 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
12236 | EGREP=$ac_cv_prog_egrep | |
12237 | ||
12238 | ||
12239 | if test $ac_cv_c_compiler_gnu = yes; then | |
12240 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
12241 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
12242 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
12243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12244 | else | |
12245 | ac_pattern="Autoconf.*'x'" | |
12246 | cat >conftest.$ac_ext <<_ACEOF | |
12247 | /* confdefs.h. */ | |
12248 | _ACEOF | |
12249 | cat confdefs.h >>conftest.$ac_ext | |
12250 | cat >>conftest.$ac_ext <<_ACEOF | |
12251 | /* end confdefs.h. */ | |
12252 | #include <sgtty.h> | |
12253 | Autoconf TIOCGETP | |
12254 | _ACEOF | |
12255 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12256 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
12257 | ac_cv_prog_gcc_traditional=yes | |
12258 | else | |
12259 | ac_cv_prog_gcc_traditional=no | |
12260 | fi | |
12261 | rm -f conftest* | |
12262 | ||
12263 | ||
12264 | if test $ac_cv_prog_gcc_traditional = no; then | |
12265 | cat >conftest.$ac_ext <<_ACEOF | |
12266 | /* confdefs.h. */ | |
12267 | _ACEOF | |
12268 | cat confdefs.h >>conftest.$ac_ext | |
12269 | cat >>conftest.$ac_ext <<_ACEOF | |
12270 | /* end confdefs.h. */ | |
12271 | #include <termio.h> | |
12272 | Autoconf TCGETA | |
12273 | _ACEOF | |
12274 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12275 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
12276 | ac_cv_prog_gcc_traditional=yes | |
12277 | fi | |
12278 | rm -f conftest* | |
12279 | ||
12280 | fi | |
12281 | fi | |
12282 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
12283 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
12284 | if test $ac_cv_prog_gcc_traditional = yes; then | |
12285 | CC="$CC -traditional" | |
12286 | fi | |
12287 | fi | |
12288 | ||
12289 | ||
12290 | ||
12291 | ||
12292 | ac_ext=cc | |
12293 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12294 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12295 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12296 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12297 | ||
12298 | ||
12299 | CXXFLAGS=${CXXFLAGS:=} | |
6dcfc289 DE |
12300 | |
12301 | ||
12302 | ac_ext=cc | |
a848cd7e SC |
12303 | ac_cpp='$CXXCPP $CPPFLAGS' |
12304 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12305 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12306 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12307 | if test -n "$ac_tool_prefix"; then | |
12308 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
12309 | do | |
12310 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
12311 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
12312 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12313 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12314 | if test "${ac_cv_prog_CXX+set}" = set; then | |
12315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12316 | else | |
12317 | if test -n "$CXX"; then | |
12318 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
12319 | else | |
12320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12321 | for as_dir in $PATH | |
12322 | do | |
12323 | IFS=$as_save_IFS | |
12324 | test -z "$as_dir" && as_dir=. | |
12325 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12326 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12327 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
12328 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12329 | break 2 | |
12330 | fi | |
12331 | done | |
12332 | done | |
12333 | ||
12334 | fi | |
12335 | fi | |
12336 | CXX=$ac_cv_prog_CXX | |
12337 | if test -n "$CXX"; then | |
12338 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
12339 | echo "${ECHO_T}$CXX" >&6 | |
12340 | else | |
12341 | echo "$as_me:$LINENO: result: no" >&5 | |
12342 | echo "${ECHO_T}no" >&6 | |
12343 | fi | |
12344 | ||
12345 | test -n "$CXX" && break | |
12346 | done | |
12347 | fi | |
12348 | if test -z "$CXX"; then | |
12349 | ac_ct_CXX=$CXX | |
12350 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
12351 | do | |
12352 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12353 | set dummy $ac_prog; ac_word=$2 | |
12354 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12355 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12356 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
12357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12358 | else | |
12359 | if test -n "$ac_ct_CXX"; then | |
12360 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
12361 | else | |
12362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12363 | for as_dir in $PATH | |
12364 | do | |
12365 | IFS=$as_save_IFS | |
12366 | test -z "$as_dir" && as_dir=. | |
12367 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12368 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12369 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
12370 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12371 | break 2 | |
12372 | fi | |
12373 | done | |
12374 | done | |
12375 | ||
12376 | fi | |
12377 | fi | |
12378 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
12379 | if test -n "$ac_ct_CXX"; then | |
12380 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
12381 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
12382 | else | |
12383 | echo "$as_me:$LINENO: result: no" >&5 | |
12384 | echo "${ECHO_T}no" >&6 | |
12385 | fi | |
12386 | ||
12387 | test -n "$ac_ct_CXX" && break | |
12388 | done | |
12389 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
12390 | ||
12391 | CXX=$ac_ct_CXX | |
12392 | fi | |
12393 | ||
12394 | ||
12395 | # Provide some information about the compiler. | |
12396 | echo "$as_me:$LINENO:" \ | |
12397 | "checking for C++ compiler version" >&5 | |
12398 | ac_compiler=`set X $ac_compile; echo $2` | |
12399 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
12400 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
12401 | ac_status=$? | |
12402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12403 | (exit $ac_status); } | |
12404 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
12405 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
12406 | ac_status=$? | |
12407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12408 | (exit $ac_status); } | |
12409 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
12410 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
12411 | ac_status=$? | |
12412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12413 | (exit $ac_status); } | |
12414 | ||
12415 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
12416 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
12417 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
12418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12419 | else | |
12420 | cat >conftest.$ac_ext <<_ACEOF | |
12421 | /* confdefs.h. */ | |
12422 | _ACEOF | |
12423 | cat confdefs.h >>conftest.$ac_ext | |
12424 | cat >>conftest.$ac_ext <<_ACEOF | |
12425 | /* end confdefs.h. */ | |
12426 | ||
12427 | int | |
12428 | main () | |
12429 | { | |
12430 | #ifndef __GNUC__ | |
12431 | choke me | |
12432 | #endif | |
12433 | ||
12434 | ; | |
12435 | return 0; | |
12436 | } | |
12437 | _ACEOF | |
12438 | rm -f conftest.$ac_objext | |
12439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12440 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12441 | ac_status=$? |
ac1cb8d3 VS |
12442 | grep -v '^ *+' conftest.er1 >conftest.err |
12443 | rm -f conftest.er1 | |
12444 | cat conftest.err >&5 | |
a848cd7e SC |
12445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12446 | (exit $ac_status); } && | |
ddd14b14 RR |
12447 | { ac_try='test -z "$ac_cxx_werror_flag" |
12448 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12450 | (eval $ac_try) 2>&5 | |
12451 | ac_status=$? | |
12452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12453 | (exit $ac_status); }; } && | |
12454 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12456 | (eval $ac_try) 2>&5 | |
12457 | ac_status=$? | |
12458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12459 | (exit $ac_status); }; }; then | |
12460 | ac_compiler_gnu=yes | |
12461 | else | |
12462 | echo "$as_me: failed program was:" >&5 | |
12463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12464 | ||
12465 | ac_compiler_gnu=no | |
12466 | fi | |
ac1cb8d3 | 12467 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12468 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
12469 | ||
12470 | fi | |
12471 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
12472 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
12473 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
12474 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
12475 | ac_save_CXXFLAGS=$CXXFLAGS | |
12476 | CXXFLAGS="-g" | |
12477 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
12478 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
12479 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
12480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12481 | else | |
12482 | cat >conftest.$ac_ext <<_ACEOF | |
12483 | /* confdefs.h. */ | |
12484 | _ACEOF | |
12485 | cat confdefs.h >>conftest.$ac_ext | |
12486 | cat >>conftest.$ac_ext <<_ACEOF | |
12487 | /* end confdefs.h. */ | |
12488 | ||
12489 | int | |
12490 | main () | |
12491 | { | |
12492 | ||
12493 | ; | |
12494 | return 0; | |
12495 | } | |
12496 | _ACEOF | |
12497 | rm -f conftest.$ac_objext | |
12498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12499 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12500 | ac_status=$? |
ac1cb8d3 VS |
12501 | grep -v '^ *+' conftest.er1 >conftest.err |
12502 | rm -f conftest.er1 | |
12503 | cat conftest.err >&5 | |
a848cd7e SC |
12504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12505 | (exit $ac_status); } && | |
ddd14b14 RR |
12506 | { ac_try='test -z "$ac_cxx_werror_flag" |
12507 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12509 | (eval $ac_try) 2>&5 | |
12510 | ac_status=$? | |
12511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12512 | (exit $ac_status); }; } && | |
12513 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12515 | (eval $ac_try) 2>&5 | |
12516 | ac_status=$? | |
12517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12518 | (exit $ac_status); }; }; then | |
12519 | ac_cv_prog_cxx_g=yes | |
12520 | else | |
12521 | echo "$as_me: failed program was:" >&5 | |
12522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12523 | ||
12524 | ac_cv_prog_cxx_g=no | |
12525 | fi | |
ac1cb8d3 | 12526 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12527 | fi |
12528 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
12529 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
12530 | if test "$ac_test_CXXFLAGS" = set; then | |
12531 | CXXFLAGS=$ac_save_CXXFLAGS | |
12532 | elif test $ac_cv_prog_cxx_g = yes; then | |
12533 | if test "$GXX" = yes; then | |
52ada004 | 12534 | CXXFLAGS="-g -O2" |
a848cd7e | 12535 | else |
52ada004 | 12536 | CXXFLAGS="-g" |
a848cd7e SC |
12537 | fi |
12538 | else | |
12539 | if test "$GXX" = yes; then | |
12540 | CXXFLAGS="-O2" | |
12541 | else | |
12542 | CXXFLAGS= | |
12543 | fi | |
12544 | fi | |
12545 | for ac_declaration in \ | |
ac1cb8d3 | 12546 | '' \ |
a848cd7e SC |
12547 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
12548 | 'extern "C" void std::exit (int); using std::exit;' \ | |
12549 | 'extern "C" void exit (int) throw ();' \ | |
12550 | 'extern "C" void exit (int);' \ | |
12551 | 'void exit (int);' | |
12552 | do | |
12553 | cat >conftest.$ac_ext <<_ACEOF | |
12554 | /* confdefs.h. */ | |
12555 | _ACEOF | |
12556 | cat confdefs.h >>conftest.$ac_ext | |
12557 | cat >>conftest.$ac_ext <<_ACEOF | |
12558 | /* end confdefs.h. */ | |
de59c161 | 12559 | $ac_declaration |
ac1cb8d3 | 12560 | #include <stdlib.h> |
a848cd7e SC |
12561 | int |
12562 | main () | |
12563 | { | |
12564 | exit (42); | |
12565 | ; | |
12566 | return 0; | |
12567 | } | |
12568 | _ACEOF | |
12569 | rm -f conftest.$ac_objext | |
12570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12571 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12572 | ac_status=$? |
ac1cb8d3 VS |
12573 | grep -v '^ *+' conftest.er1 >conftest.err |
12574 | rm -f conftest.er1 | |
12575 | cat conftest.err >&5 | |
a848cd7e SC |
12576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12577 | (exit $ac_status); } && | |
ddd14b14 RR |
12578 | { ac_try='test -z "$ac_cxx_werror_flag" |
12579 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12581 | (eval $ac_try) 2>&5 | |
12582 | ac_status=$? | |
12583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12584 | (exit $ac_status); }; } && | |
12585 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12587 | (eval $ac_try) 2>&5 | |
12588 | ac_status=$? | |
12589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12590 | (exit $ac_status); }; }; then | |
12591 | : | |
12592 | else | |
12593 | echo "$as_me: failed program was:" >&5 | |
12594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12595 | ||
12596 | continue | |
12597 | fi | |
ac1cb8d3 | 12598 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12599 | cat >conftest.$ac_ext <<_ACEOF |
12600 | /* confdefs.h. */ | |
12601 | _ACEOF | |
12602 | cat confdefs.h >>conftest.$ac_ext | |
12603 | cat >>conftest.$ac_ext <<_ACEOF | |
12604 | /* end confdefs.h. */ | |
12605 | $ac_declaration | |
12606 | int | |
12607 | main () | |
12608 | { | |
12609 | exit (42); | |
12610 | ; | |
12611 | return 0; | |
12612 | } | |
12613 | _ACEOF | |
12614 | rm -f conftest.$ac_objext | |
12615 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12616 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12617 | ac_status=$? |
ac1cb8d3 VS |
12618 | grep -v '^ *+' conftest.er1 >conftest.err |
12619 | rm -f conftest.er1 | |
12620 | cat conftest.err >&5 | |
a848cd7e SC |
12621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12622 | (exit $ac_status); } && | |
ddd14b14 RR |
12623 | { ac_try='test -z "$ac_cxx_werror_flag" |
12624 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12626 | (eval $ac_try) 2>&5 | |
12627 | ac_status=$? | |
12628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12629 | (exit $ac_status); }; } && | |
12630 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12632 | (eval $ac_try) 2>&5 | |
12633 | ac_status=$? | |
12634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12635 | (exit $ac_status); }; }; then | |
12636 | break | |
12637 | else | |
12638 | echo "$as_me: failed program was:" >&5 | |
12639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12640 | ||
12641 | fi | |
ac1cb8d3 | 12642 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12643 | done |
12644 | rm -f conftest* | |
12645 | if test -n "$ac_declaration"; then | |
12646 | echo '#ifdef __cplusplus' >>confdefs.h | |
12647 | echo $ac_declaration >>confdefs.h | |
12648 | echo '#endif' >>confdefs.h | |
12649 | fi | |
12650 | ||
12651 | ac_ext=cc | |
12652 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12653 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12654 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12655 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12656 | ||
6dcfc289 | 12657 | echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5 |
480ccd21 DE |
12658 | echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6 |
12659 | if test "${wx_cv_cxx_exto+set}" = set; then | |
12660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12661 | else | |
12662 | cat >conftest.$ac_ext <<_ACEOF | |
12663 | /* confdefs.h. */ | |
12664 | _ACEOF | |
12665 | cat confdefs.h >>conftest.$ac_ext | |
12666 | cat >>conftest.$ac_ext <<_ACEOF | |
12667 | /* end confdefs.h. */ | |
12668 | ||
12669 | int | |
12670 | main () | |
12671 | { | |
12672 | ||
12673 | ; | |
12674 | return 0; | |
12675 | } | |
12676 | _ACEOF | |
12677 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
12678 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12679 | (eval $ac_compile) 2>&5 | |
12680 | ac_status=$? | |
12681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12682 | (exit $ac_status); }; then | |
12683 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
12684 | case $ac_file in | |
12685 | conftest.$ac_ext.o) | |
12686 | wx_cv_cxx_exto="-ext o" | |
12687 | ;; | |
12688 | *) | |
12689 | ;; | |
12690 | esac | |
12691 | done | |
12692 | else | |
12693 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
12694 | See \`config.log' for more details." >&5 | |
12695 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
12696 | See \`config.log' for more details." >&2;} | |
12697 | { (exit 1); exit 1; }; } | |
12698 | ||
12699 | fi | |
12700 | ||
12701 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
12702 | ||
12703 | fi | |
12704 | echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5 | |
12705 | echo "${ECHO_T}$wx_cv_cxx_exto" >&6 | |
12706 | if test "x$wx_cv_cxx_exto" '!=' "x"; then | |
12707 | if test "cxx" = "c"; then | |
12708 | CFLAGS="$wx_cv_cxx_exto $CFLAGS" | |
12709 | fi | |
12710 | if test "cxx" = "cxx"; then | |
12711 | CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS" | |
12712 | fi | |
12713 | fi | |
12714 | ||
6dcfc289 DE |
12715 | if test "x$wx_cv_cxx_exto" '!=' "x"; then |
12716 | unset ac_cv_prog_cxx_g | |
12717 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
480ccd21 DE |
12718 | ac_save_CXXFLAGS=$CXXFLAGS |
12719 | CXXFLAGS="-g" | |
12720 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
12721 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
12722 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
12723 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12724 | else | |
12725 | cat >conftest.$ac_ext <<_ACEOF | |
12726 | /* confdefs.h. */ | |
12727 | _ACEOF | |
12728 | cat confdefs.h >>conftest.$ac_ext | |
12729 | cat >>conftest.$ac_ext <<_ACEOF | |
12730 | /* end confdefs.h. */ | |
12731 | ||
12732 | int | |
12733 | main () | |
12734 | { | |
12735 | ||
12736 | ; | |
12737 | return 0; | |
12738 | } | |
12739 | _ACEOF | |
12740 | rm -f conftest.$ac_objext | |
12741 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12742 | (eval $ac_compile) 2>conftest.er1 | |
12743 | ac_status=$? | |
12744 | grep -v '^ *+' conftest.er1 >conftest.err | |
12745 | rm -f conftest.er1 | |
12746 | cat conftest.err >&5 | |
12747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12748 | (exit $ac_status); } && | |
ddd14b14 RR |
12749 | { ac_try='test -z "$ac_cxx_werror_flag" |
12750 | || test ! -s conftest.err' | |
480ccd21 DE |
12751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12752 | (eval $ac_try) 2>&5 | |
12753 | ac_status=$? | |
12754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12755 | (exit $ac_status); }; } && | |
12756 | { ac_try='test -s conftest.$ac_objext' | |
12757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12758 | (eval $ac_try) 2>&5 | |
12759 | ac_status=$? | |
12760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12761 | (exit $ac_status); }; }; then | |
12762 | ac_cv_prog_cxx_g=yes | |
12763 | else | |
12764 | echo "$as_me: failed program was:" >&5 | |
12765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12766 | ||
12767 | ac_cv_prog_cxx_g=no | |
12768 | fi | |
12769 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12770 | fi | |
12771 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
12772 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
12773 | if test "$ac_test_CXXFLAGS" = set; then | |
12774 | CXXFLAGS=$ac_save_CXXFLAGS | |
12775 | elif test $ac_cv_prog_cxx_g = yes; then | |
12776 | if test "$GXX" = yes; then | |
52ada004 | 12777 | CXXFLAGS="-g -O2" |
480ccd21 | 12778 | else |
52ada004 | 12779 | CXXFLAGS="-g" |
480ccd21 DE |
12780 | fi |
12781 | else | |
12782 | if test "$GXX" = yes; then | |
12783 | CXXFLAGS="-O2" | |
12784 | else | |
12785 | CXXFLAGS= | |
12786 | fi | |
12787 | fi | |
6dcfc289 DE |
12788 | fi |
12789 | ac_ext=cc | |
95986553 DE |
12790 | ac_cpp='$CXXCPP $CPPFLAGS' |
12791 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12792 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12793 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12794 | ||
12795 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5 | |
12796 | echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6 | |
12797 | if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then | |
12798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12799 | else | |
12800 | cat >conftest.$ac_ext <<_ACEOF | |
12801 | /* confdefs.h. */ | |
12802 | _ACEOF | |
12803 | cat confdefs.h >>conftest.$ac_ext | |
12804 | cat >>conftest.$ac_ext <<_ACEOF | |
12805 | /* end confdefs.h. */ | |
12806 | ||
12807 | int | |
12808 | main () | |
12809 | { | |
12810 | #ifndef __MWERKS__ | |
12811 | choke me | |
12812 | #endif | |
12813 | ||
12814 | ; | |
12815 | return 0; | |
12816 | } | |
12817 | _ACEOF | |
12818 | rm -f conftest.$ac_objext | |
12819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12820 | (eval $ac_compile) 2>conftest.er1 | |
12821 | ac_status=$? | |
12822 | grep -v '^ *+' conftest.er1 >conftest.err | |
12823 | rm -f conftest.er1 | |
12824 | cat conftest.err >&5 | |
12825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12826 | (exit $ac_status); } && | |
ddd14b14 RR |
12827 | { ac_try='test -z "$ac_cxx_werror_flag" |
12828 | || test ! -s conftest.err' | |
95986553 DE |
12829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12830 | (eval $ac_try) 2>&5 | |
12831 | ac_status=$? | |
12832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12833 | (exit $ac_status); }; } && | |
12834 | { ac_try='test -s conftest.$ac_objext' | |
12835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12836 | (eval $ac_try) 2>&5 | |
12837 | ac_status=$? | |
12838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12839 | (exit $ac_status); }; }; then | |
12840 | bakefile_compiler_mwerks=yes | |
12841 | else | |
12842 | echo "$as_me: failed program was:" >&5 | |
12843 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12844 | ||
12845 | bakefile_compiler_mwerks=no | |
12846 | fi | |
12847 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12848 | bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks | |
12849 | ||
12850 | fi | |
12851 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5 | |
12852 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6 | |
12853 | ||
0e6fa1d9 | 12854 | MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes` |
95986553 DE |
12855 | ac_ext=cc |
12856 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12857 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12858 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12859 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12860 | ||
12861 | ||
6dcfc289 | 12862 | ac_ext=cc |
9273ffba DE |
12863 | ac_cpp='$CXXCPP $CPPFLAGS' |
12864 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12865 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12866 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12867 | ||
12868 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
12869 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
12870 | if test "${wx_cv_cxx_compiler_xlc+set}" = set; then | |
12871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12872 | else | |
12873 | cat >conftest.$ac_ext <<_ACEOF | |
12874 | /* confdefs.h. */ | |
12875 | _ACEOF | |
12876 | cat confdefs.h >>conftest.$ac_ext | |
12877 | cat >>conftest.$ac_ext <<_ACEOF | |
12878 | /* end confdefs.h. */ | |
12879 | ||
12880 | int | |
12881 | main () | |
12882 | { | |
12883 | #ifndef __xlC__ | |
12884 | choke me | |
12885 | #endif | |
12886 | ||
12887 | ; | |
12888 | return 0; | |
12889 | } | |
12890 | _ACEOF | |
12891 | rm -f conftest.$ac_objext | |
12892 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12893 | (eval $ac_compile) 2>conftest.er1 | |
12894 | ac_status=$? | |
12895 | grep -v '^ *+' conftest.er1 >conftest.err | |
12896 | rm -f conftest.er1 | |
12897 | cat conftest.err >&5 | |
12898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12899 | (exit $ac_status); } && | |
ddd14b14 RR |
12900 | { ac_try='test -z "$ac_cxx_werror_flag" |
12901 | || test ! -s conftest.err' | |
9273ffba DE |
12902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12903 | (eval $ac_try) 2>&5 | |
12904 | ac_status=$? | |
12905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12906 | (exit $ac_status); }; } && | |
12907 | { ac_try='test -s conftest.$ac_objext' | |
12908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12909 | (eval $ac_try) 2>&5 | |
12910 | ac_status=$? | |
12911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12912 | (exit $ac_status); }; }; then | |
12913 | wx_compiler_xlc=yes | |
12914 | else | |
12915 | echo "$as_me: failed program was:" >&5 | |
12916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12917 | ||
12918 | wx_compiler_xlc=no | |
12919 | fi | |
12920 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12921 | wx_cv_cxx_compiler_xlc=$wx_compiler_xlc | |
12922 | ||
12923 | fi | |
12924 | echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5 | |
12925 | echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6 | |
12926 | ||
0e6fa1d9 | 12927 | XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes` |
9273ffba DE |
12928 | ac_ext=cc |
12929 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12930 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12931 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12932 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12933 | ||
12934 | ||
95986553 | 12935 | |
6dcfc289 | 12936 | |
a9e5b1f0 MW |
12937 | ac_ext=cc |
12938 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12939 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12940 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12941 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12942 | ||
12943 | echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5 | |
12944 | echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6 | |
12945 | if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then | |
12946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12947 | else | |
12948 | cat >conftest.$ac_ext <<_ACEOF | |
12949 | /* confdefs.h. */ | |
12950 | _ACEOF | |
12951 | cat confdefs.h >>conftest.$ac_ext | |
12952 | cat >>conftest.$ac_ext <<_ACEOF | |
12953 | /* end confdefs.h. */ | |
12954 | ||
12955 | int | |
12956 | main () | |
12957 | { | |
12958 | ||
12959 | #ifndef __SUNPRO_CC | |
12960 | choke me | |
12961 | #endif | |
12962 | ||
12963 | ; | |
12964 | return 0; | |
12965 | } | |
12966 | _ACEOF | |
12967 | rm -f conftest.$ac_objext | |
12968 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12969 | (eval $ac_compile) 2>conftest.er1 | |
12970 | ac_status=$? | |
12971 | grep -v '^ *+' conftest.er1 >conftest.err | |
12972 | rm -f conftest.er1 | |
12973 | cat conftest.err >&5 | |
12974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12975 | (exit $ac_status); } && | |
ddd14b14 RR |
12976 | { ac_try='test -z "$ac_cxx_werror_flag" |
12977 | || test ! -s conftest.err' | |
a9e5b1f0 MW |
12978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12979 | (eval $ac_try) 2>&5 | |
12980 | ac_status=$? | |
12981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12982 | (exit $ac_status); }; } && | |
12983 | { ac_try='test -s conftest.$ac_objext' | |
12984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12985 | (eval $ac_try) 2>&5 | |
12986 | ac_status=$? | |
12987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12988 | (exit $ac_status); }; }; then | |
12989 | bakefile_cv_cxx_compiler___SUNPRO_CC=yes | |
12990 | else | |
12991 | echo "$as_me: failed program was:" >&5 | |
12992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12993 | ||
12994 | bakefile_cv_cxx_compiler___SUNPRO_CC=no | |
12995 | ||
12996 | fi | |
12997 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12998 | ||
12999 | ||
13000 | fi | |
13001 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5 | |
13002 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6 | |
13003 | ac_ext=cc | |
13004 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13005 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13006 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13007 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13008 | ||
13009 | if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then | |
13010 | :; SUNCXX=yes | |
13011 | else | |
13012 | :; | |
13013 | fi | |
13014 | ||
13015 | ||
13016 | ||
13017 | ||
a848cd7e SC |
13018 | ac_ext=c |
13019 | ac_cpp='$CPP $CPPFLAGS' | |
13020 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13021 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13022 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13023 | ||
13024 | ||
a848cd7e SC |
13025 | if test -n "$ac_tool_prefix"; then |
13026 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
13027 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
13028 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13029 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13030 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
13031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13032 | else | |
13033 | if test -n "$RANLIB"; then | |
13034 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
13035 | else | |
13036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13037 | for as_dir in $PATH | |
13038 | do | |
13039 | IFS=$as_save_IFS | |
13040 | test -z "$as_dir" && as_dir=. | |
13041 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13042 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13043 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
13044 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13045 | break 2 | |
13046 | fi | |
13047 | done | |
13048 | done | |
13049 | ||
13050 | fi | |
13051 | fi | |
13052 | RANLIB=$ac_cv_prog_RANLIB | |
13053 | if test -n "$RANLIB"; then | |
13054 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
13055 | echo "${ECHO_T}$RANLIB" >&6 | |
13056 | else | |
13057 | echo "$as_me:$LINENO: result: no" >&5 | |
13058 | echo "${ECHO_T}no" >&6 | |
13059 | fi | |
13060 | ||
13061 | fi | |
13062 | if test -z "$ac_cv_prog_RANLIB"; then | |
13063 | ac_ct_RANLIB=$RANLIB | |
13064 | # Extract the first word of "ranlib", so it can be a program name with args. | |
13065 | set dummy ranlib; ac_word=$2 | |
13066 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13067 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13068 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
13069 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13070 | else | |
13071 | if test -n "$ac_ct_RANLIB"; then | |
13072 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
13073 | else | |
13074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13075 | for as_dir in $PATH | |
13076 | do | |
13077 | IFS=$as_save_IFS | |
13078 | test -z "$as_dir" && as_dir=. | |
13079 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13080 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13081 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
13082 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13083 | break 2 | |
13084 | fi | |
13085 | done | |
13086 | done | |
13087 | ||
13088 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
13089 | fi | |
13090 | fi | |
13091 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
13092 | if test -n "$ac_ct_RANLIB"; then | |
13093 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
13094 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
13095 | else | |
13096 | echo "$as_me:$LINENO: result: no" >&5 | |
13097 | echo "${ECHO_T}no" >&6 | |
13098 | fi | |
13099 | ||
13100 | RANLIB=$ac_ct_RANLIB | |
13101 | else | |
13102 | RANLIB="$ac_cv_prog_RANLIB" | |
13103 | fi | |
13104 | ||
13105 | ||
13106 | # Extract the first word of "ar", so it can be a program name with args. | |
13107 | set dummy ar; ac_word=$2 | |
13108 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13109 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13110 | if test "${ac_cv_prog_AR+set}" = set; then | |
13111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13112 | else | |
13113 | if test -n "$AR"; then | |
13114 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
13115 | else | |
13116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13117 | for as_dir in $PATH | |
13118 | do | |
13119 | IFS=$as_save_IFS | |
13120 | test -z "$as_dir" && as_dir=. | |
13121 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13122 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13123 | ac_cv_prog_AR="ar" | |
13124 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13125 | break 2 | |
13126 | fi | |
13127 | done | |
13128 | done | |
13129 | ||
13130 | fi | |
13131 | fi | |
13132 | AR=$ac_cv_prog_AR | |
13133 | if test -n "$AR"; then | |
13134 | echo "$as_me:$LINENO: result: $AR" >&5 | |
13135 | echo "${ECHO_T}$AR" >&6 | |
13136 | else | |
13137 | echo "$as_me:$LINENO: result: no" >&5 | |
13138 | echo "${ECHO_T}no" >&6 | |
13139 | fi | |
13140 | ||
13141 | if test "x$AR" = "x" ; then | |
77ffb593 JS |
13142 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
13143 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
13144 | { (exit 1); exit 1; }; } |
13145 | fi | |
13146 | ||
13147 | # Find a good install program. We prefer a C program (faster), | |
13148 | # so one script is as good as another. But avoid the broken or | |
13149 | # incompatible versions: | |
13150 | # SysV /etc/install, /usr/sbin/install | |
13151 | # SunOS /usr/etc/install | |
13152 | # IRIX /sbin/install | |
13153 | # AIX /bin/install | |
13154 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
13155 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
13156 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
13157 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 13158 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
13159 | # ./install, which can be erroneously created by make from ./install.sh. |
13160 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
13161 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
13162 | if test -z "$INSTALL"; then | |
13163 | if test "${ac_cv_path_install+set}" = set; then | |
13164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13165 | else | |
13166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13167 | for as_dir in $PATH | |
13168 | do | |
13169 | IFS=$as_save_IFS | |
13170 | test -z "$as_dir" && as_dir=. | |
13171 | # Account for people who put trailing slashes in PATH elements. | |
13172 | case $as_dir/ in | |
13173 | ./ | .// | /cC/* | \ | |
13174 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 13175 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
13176 | /usr/ucb/* ) ;; |
13177 | *) | |
13178 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
13179 | # Don't use installbsd from OSF since it installs stuff as root | |
13180 | # by default. | |
13181 | for ac_prog in ginstall scoinst install; do | |
13182 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
13183 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
13184 | if test $ac_prog = install && | |
13185 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
13186 | # AIX install. It has an incompatible calling convention. | |
13187 | : | |
13188 | elif test $ac_prog = install && | |
13189 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
13190 | # program-specific install script used by HP pwplus--don't use. | |
13191 | : | |
13192 | else | |
13193 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
13194 | break 3 | |
13195 | fi | |
13196 | fi | |
a848cd7e SC |
13197 | done |
13198 | done | |
13199 | ;; | |
13200 | esac | |
13201 | done | |
13202 | ||
13203 | ||
13204 | fi | |
13205 | if test "${ac_cv_path_install+set}" = set; then | |
13206 | INSTALL=$ac_cv_path_install | |
13207 | else | |
13208 | # As a last resort, use the slow shell script. We don't cache a | |
13209 | # path for INSTALL within a source directory, because that will | |
13210 | # break other packages using the cache if that directory is | |
13211 | # removed, or if the path is relative. | |
13212 | INSTALL=$ac_install_sh | |
13213 | fi | |
13214 | fi | |
13215 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
13216 | echo "${ECHO_T}$INSTALL" >&6 | |
13217 | ||
13218 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
13219 | # It thinks the first close brace ends the variable substitution. | |
13220 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
13221 | ||
13222 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
13223 | ||
13224 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
13225 | ||
13226 | ||
13227 | case ${INSTALL} in | |
13228 | /* ) # Absolute | |
13229 | ;; | |
13230 | ?:* ) # Drive letter, considered as absolute. | |
13231 | ;; | |
13232 | *) | |
13233 | INSTALL=`pwd`/${INSTALL} ;; | |
13234 | esac | |
13235 | ||
a848cd7e SC |
13236 | |
13237 | case "${host}" in | |
13238 | ||
13239 | powerpc-*-darwin* ) | |
13240 | INSTALL_PROGRAM="cp -fp" | |
13241 | INSTALL_DATA="cp -fp" | |
13242 | ;; | |
13243 | *) | |
13244 | ;; | |
13245 | esac | |
13246 | ||
13247 | # Extract the first word of "strip", so it can be a program name with args. | |
13248 | set dummy strip; ac_word=$2 | |
13249 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13250 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13251 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
13252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13253 | else | |
13254 | if test -n "$STRIP"; then | |
13255 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
13256 | else | |
13257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13258 | for as_dir in $PATH | |
13259 | do | |
13260 | IFS=$as_save_IFS | |
13261 | test -z "$as_dir" && as_dir=. | |
13262 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13263 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13264 | ac_cv_prog_STRIP="strip" | |
13265 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13266 | break 2 | |
13267 | fi | |
13268 | done | |
13269 | done | |
13270 | ||
13271 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
13272 | fi | |
13273 | fi | |
13274 | STRIP=$ac_cv_prog_STRIP | |
13275 | if test -n "$STRIP"; then | |
13276 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
13277 | echo "${ECHO_T}$STRIP" >&6 | |
13278 | else | |
13279 | echo "$as_me:$LINENO: result: no" >&5 | |
13280 | echo "${ECHO_T}no" >&6 | |
13281 | fi | |
13282 | ||
13283 | ||
13284 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
13285 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
13286 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
13287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13288 | else | |
13289 | ||
13290 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
13291 | egrep -s GNU > /dev/null); then | |
13292 | wx_cv_prog_makeisgnu="yes" | |
13293 | else | |
13294 | wx_cv_prog_makeisgnu="no" | |
13295 | fi | |
13296 | ||
13297 | fi | |
13298 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
13299 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
13300 | ||
13301 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
13302 | IF_GNU_MAKE="" | |
13303 | else | |
13304 | IF_GNU_MAKE="#" | |
13305 | fi | |
13306 | ||
13307 | ||
13308 | ||
13309 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
13310 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
13311 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
13312 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
13313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13314 | else | |
13315 | ||
13316 | cat - << EOF > confMake | |
13317 | check : file | |
13318 | cp \$? \$@ | |
13319 | cp \$? final_file | |
13320 | EOF | |
13321 | ||
13322 | if test ! -d sub ; then | |
13323 | mkdir sub | |
13324 | fi | |
13325 | echo dummy > sub/file | |
13326 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
13327 | RESULT=$? | |
13328 | rm -f sub/file check final_file confMake | |
13329 | rmdir sub | |
13330 | if test "$RESULT" = 0; then | |
13331 | wx_cv_prog_makevpath="yes" | |
13332 | else | |
13333 | wx_cv_prog_makevpath="no" | |
13334 | fi | |
13335 | ||
13336 | fi | |
13337 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
13338 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
13339 | ||
13340 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
13341 | { { echo "$as_me:$LINENO: error: | |
13342 | You need a make-utility that is able to use the variable | |
13343 | VPATH correctly. | |
13344 | If your version of make does not support VPATH correctly, | |
13345 | please install GNU-make (possibly as gmake), and start | |
13346 | configure with the following command: | |
13347 | export MAKE=gmake; ./configure for sh-type shells | |
13348 | setenv MAKE gmake; ./configure for csh-type shells | |
13349 | Also please do remember to use gmake in this case every time | |
13350 | you are trying to compile. | |
13351 | " >&5 | |
13352 | echo "$as_me: error: | |
13353 | You need a make-utility that is able to use the variable | |
13354 | VPATH correctly. | |
13355 | If your version of make does not support VPATH correctly, | |
13356 | please install GNU-make (possibly as gmake), and start | |
13357 | configure with the following command: | |
13358 | export MAKE=gmake; ./configure for sh-type shells | |
13359 | setenv MAKE gmake; ./configure for csh-type shells | |
13360 | Also please do remember to use gmake in this case every time | |
13361 | you are trying to compile. | |
13362 | " >&2;} | |
13363 | { (exit 1); exit 1; }; } | |
13364 | fi fi | |
13365 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
13366 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
13367 | LN_S=$as_ln_s | |
13368 | if test "$LN_S" = "ln -s"; then | |
13369 | echo "$as_me:$LINENO: result: yes" >&5 | |
13370 | echo "${ECHO_T}yes" >&6 | |
13371 | else | |
13372 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
13373 | echo "${ECHO_T}no, using $LN_S" >&6 | |
13374 | fi | |
13375 | ||
13376 | ||
13377 | ||
9273ffba DE |
13378 | if test "x$XLCXX" = "xyes"; then |
13379 | CXXFLAGS="$CXXFLAGS -qunique" | |
13380 | fi | |
13381 | ||
13382 | ||
4d7ec9f1 DE |
13383 | case "${host}" in |
13384 | powerpc-*-darwin* ) | |
13385 | echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5 | |
13386 | echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6 | |
13387 | cat >conftest.$ac_ext <<_ACEOF | |
13388 | /* confdefs.h. */ | |
13389 | _ACEOF | |
13390 | cat confdefs.h >>conftest.$ac_ext | |
13391 | cat >>conftest.$ac_ext <<_ACEOF | |
13392 | /* end confdefs.h. */ | |
13393 | ||
13394 | int | |
13395 | main () | |
13396 | { | |
13397 | #ifndef __POWERPC__ | |
13398 | choke me for lack of PowerPC | |
13399 | #endif | |
13400 | ||
13401 | ; | |
13402 | return 0; | |
13403 | } | |
13404 | _ACEOF | |
13405 | rm -f conftest.$ac_objext | |
13406 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13407 | (eval $ac_compile) 2>conftest.er1 | |
13408 | ac_status=$? | |
13409 | grep -v '^ *+' conftest.er1 >conftest.err | |
13410 | rm -f conftest.er1 | |
13411 | cat conftest.err >&5 | |
13412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13413 | (exit $ac_status); } && | |
ddd14b14 RR |
13414 | { ac_try='test -z "$ac_c_werror_flag" |
13415 | || test ! -s conftest.err' | |
4d7ec9f1 DE |
13416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13417 | (eval $ac_try) 2>&5 | |
13418 | ac_status=$? | |
13419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13420 | (exit $ac_status); }; } && | |
13421 | { ac_try='test -s conftest.$ac_objext' | |
13422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13423 | (eval $ac_try) 2>&5 | |
13424 | ac_status=$? | |
13425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13426 | (exit $ac_status); }; }; then | |
13427 | echo "$as_me:$LINENO: result: yes" >&5 | |
13428 | echo "${ECHO_T}yes" >&6 | |
13429 | else | |
13430 | echo "$as_me: failed program was:" >&5 | |
13431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13432 | ||
13433 | echo "$as_me:$LINENO: result: no" >&5 | |
13434 | echo "${ECHO_T}no" >&6 | |
13435 | cat >>confdefs.h <<\_ACEOF | |
13436 | #define __POWERPC__ 1 | |
13437 | _ACEOF | |
13438 | ||
13439 | ||
13440 | fi | |
13441 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13442 | echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5 | |
13443 | echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6 | |
13444 | cat >conftest.$ac_ext <<_ACEOF | |
13445 | /* confdefs.h. */ | |
13446 | _ACEOF | |
13447 | cat confdefs.h >>conftest.$ac_ext | |
13448 | cat >>conftest.$ac_ext <<_ACEOF | |
13449 | /* end confdefs.h. */ | |
13450 | #include <CoreFoundation/CFBase.h> | |
13451 | ||
13452 | int | |
13453 | main () | |
13454 | { | |
13455 | ||
13456 | ; | |
13457 | return 0; | |
13458 | } | |
13459 | _ACEOF | |
13460 | rm -f conftest.$ac_objext | |
13461 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13462 | (eval $ac_compile) 2>conftest.er1 | |
13463 | ac_status=$? | |
13464 | grep -v '^ *+' conftest.er1 >conftest.err | |
13465 | rm -f conftest.er1 | |
13466 | cat conftest.err >&5 | |
13467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13468 | (exit $ac_status); } && | |
ddd14b14 RR |
13469 | { ac_try='test -z "$ac_c_werror_flag" |
13470 | || test ! -s conftest.err' | |
4d7ec9f1 DE |
13471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13472 | (eval $ac_try) 2>&5 | |
13473 | ac_status=$? | |
13474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13475 | (exit $ac_status); }; } && | |
13476 | { ac_try='test -s conftest.$ac_objext' | |
13477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13478 | (eval $ac_try) 2>&5 | |
13479 | ac_status=$? | |
13480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13481 | (exit $ac_status); }; }; then | |
13482 | echo "$as_me:$LINENO: result: yes" >&5 | |
13483 | echo "${ECHO_T}yes" >&6 | |
13484 | else | |
13485 | echo "$as_me: failed program was:" >&5 | |
13486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13487 | ||
13488 | echo "$as_me:$LINENO: result: no" >&5 | |
13489 | echo "${ECHO_T}no" >&6 | |
13490 | echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5 | |
13491 | echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6 | |
13492 | cat >conftest.$ac_ext <<_ACEOF | |
13493 | /* confdefs.h. */ | |
13494 | _ACEOF | |
13495 | cat confdefs.h >>conftest.$ac_ext | |
13496 | cat >>conftest.$ac_ext <<_ACEOF | |
13497 | /* end confdefs.h. */ | |
13498 | #define __CF_USE_FRAMEWORK_INCLUDES__ | |
13499 | #include <CoreFoundation/CFBase.h> | |
13500 | ||
13501 | int | |
13502 | main () | |
13503 | { | |
13504 | ||
13505 | ; | |
13506 | return 0; | |
13507 | } | |
13508 | _ACEOF | |
13509 | rm -f conftest.$ac_objext | |
13510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13511 | (eval $ac_compile) 2>conftest.er1 | |
13512 | ac_status=$? | |
13513 | grep -v '^ *+' conftest.er1 >conftest.err | |
13514 | rm -f conftest.er1 | |
13515 | cat conftest.err >&5 | |
13516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13517 | (exit $ac_status); } && | |
ddd14b14 RR |
13518 | { ac_try='test -z "$ac_c_werror_flag" |
13519 | || test ! -s conftest.err' | |
4d7ec9f1 DE |
13520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13521 | (eval $ac_try) 2>&5 | |
13522 | ac_status=$? | |
13523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13524 | (exit $ac_status); }; } && | |
13525 | { ac_try='test -s conftest.$ac_objext' | |
13526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13527 | (eval $ac_try) 2>&5 | |
13528 | ac_status=$? | |
13529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13530 | (exit $ac_status); }; }; then | |
13531 | echo "$as_me:$LINENO: result: yes" >&5 | |
13532 | echo "${ECHO_T}yes" >&6 | |
13533 | CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__" | |
13534 | else | |
13535 | echo "$as_me: failed program was:" >&5 | |
13536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13537 | ||
13538 | { { echo "$as_me:$LINENO: error: no. CoreFoundation not available. | |
13539 | See \`config.log' for more details." >&5 | |
13540 | echo "$as_me: error: no. CoreFoundation not available. | |
13541 | See \`config.log' for more details." >&2;} | |
13542 | { (exit 1); exit 1; }; } | |
13543 | ||
13544 | fi | |
13545 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13546 | ||
13547 | ||
13548 | fi | |
13549 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13550 | ;; | |
13551 | esac | |
13552 | ||
a848cd7e SC |
13553 | case "${host}" in |
13554 | *-pc-os2_emx | *-pc-os2-emx ) | |
13555 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
13556 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
13557 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
13558 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
13559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13560 | else | |
13561 | ac_check_lib_save_LIBS=$LIBS | |
13562 | LIBS="-lcExt $LIBS" | |
13563 | cat >conftest.$ac_ext <<_ACEOF | |
13564 | /* confdefs.h. */ | |
13565 | _ACEOF | |
13566 | cat confdefs.h >>conftest.$ac_ext | |
13567 | cat >>conftest.$ac_ext <<_ACEOF | |
13568 | /* end confdefs.h. */ | |
13569 | ||
13570 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13571 | #ifdef __cplusplus | |
13572 | extern "C" | |
13573 | #endif | |
13574 | /* We use char because int might match the return type of a gcc2 | |
13575 | builtin and then its argument prototype would still apply. */ | |
13576 | char drand48 (); | |
13577 | int | |
13578 | main () | |
13579 | { | |
13580 | drand48 (); | |
13581 | ; | |
13582 | return 0; | |
13583 | } | |
13584 | _ACEOF | |
13585 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13586 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13587 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13588 | ac_status=$? |
ac1cb8d3 VS |
13589 | grep -v '^ *+' conftest.er1 >conftest.err |
13590 | rm -f conftest.er1 | |
13591 | cat conftest.err >&5 | |
a848cd7e SC |
13592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13593 | (exit $ac_status); } && | |
ddd14b14 RR |
13594 | { ac_try='test -z "$ac_c_werror_flag" |
13595 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13597 | (eval $ac_try) 2>&5 | |
13598 | ac_status=$? | |
13599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13600 | (exit $ac_status); }; } && | |
13601 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13603 | (eval $ac_try) 2>&5 | |
13604 | ac_status=$? | |
13605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13606 | (exit $ac_status); }; }; then | |
13607 | ac_cv_lib_cExt_drand48=yes | |
13608 | else | |
13609 | echo "$as_me: failed program was:" >&5 | |
13610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13611 | ||
13612 | ac_cv_lib_cExt_drand48=no | |
13613 | fi | |
ac1cb8d3 VS |
13614 | rm -f conftest.err conftest.$ac_objext \ |
13615 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13616 | LIBS=$ac_check_lib_save_LIBS |
13617 | fi | |
13618 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
13619 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
13620 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
13621 | LIBS="$LIBS -lcExt" | |
13622 | fi | |
13623 | ||
13624 | else | |
13625 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
13626 | fi | |
69120ee4 VZ |
13627 | echo "$as_me:$LINENO: checking for gcc/libc version" >&5 |
13628 | echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6 | |
a848cd7e SC |
13629 | if test "${wx_cv_gccversion+set}" = set; then |
13630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13631 | else | |
13632 | ||
391a765e VS |
13633 | if test "$cross_compiling" = yes; then |
13634 | wx_cv_gccversion="EMX2" | |
13635 | ||
13636 | else | |
13637 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
13638 | /* confdefs.h. */ |
13639 | _ACEOF | |
13640 | cat confdefs.h >>conftest.$ac_ext | |
13641 | cat >>conftest.$ac_ext <<_ACEOF | |
13642 | /* end confdefs.h. */ | |
13643 | ||
391a765e | 13644 | #include <stdio.h> |
a848cd7e | 13645 | |
391a765e VS |
13646 | int main() |
13647 | { | |
13648 | FILE *f=fopen("conftestval", "w"); | |
13649 | if (!f) exit(1); | |
13650 | fprintf(f, | |
a848cd7e | 13651 | #if (__GNUC__ < 3) |
391a765e VS |
13652 | "EMX2" |
13653 | #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
13654 | "EMX3" | |
13655 | #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2) | |
13656 | "Innotek5" | |
13657 | #else | |
13658 | "Innotek6" | |
a848cd7e | 13659 | #endif |
391a765e VS |
13660 | ); |
13661 | exit(0); | |
13662 | } | |
a848cd7e | 13663 | |
a848cd7e | 13664 | _ACEOF |
391a765e VS |
13665 | rm -f conftest$ac_exeext |
13666 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13667 | (eval $ac_link) 2>&5 | |
ac1cb8d3 VS |
13668 | ac_status=$? |
13669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
391a765e | 13670 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a848cd7e SC |
13671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13672 | (eval $ac_try) 2>&5 | |
13673 | ac_status=$? | |
13674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13675 | (exit $ac_status); }; }; then | |
391a765e | 13676 | wx_cv_gccversion=`cat conftestval` |
a848cd7e | 13677 | else |
391a765e VS |
13678 | echo "$as_me: program exited with status $ac_status" >&5 |
13679 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
13680 | sed 's/^/| /' conftest.$ac_ext >&5 |
13681 | ||
391a765e VS |
13682 | ( exit $ac_status ) |
13683 | wx_cv_gccversion="EMX2" | |
a848cd7e | 13684 | fi |
391a765e | 13685 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 13686 | fi |
a848cd7e SC |
13687 | |
13688 | fi | |
13689 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
13690 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
391a765e | 13691 | if test "$wx_cv_gccversion" = "EMX2"; then |
a848cd7e SC |
13692 | LIBS="$LIBS -lstdcpp" |
13693 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
13694 | else | |
391a765e | 13695 | if test "$wx_cv_gccversion" = "EMX3"; then |
ddd14b14 | 13696 | LIBS="$LIBS -lstdcxx -lgcc" |
a848cd7e SC |
13697 | LDFLAGS="$LDFLAGS -Zsysv-signals" |
13698 | else | |
13699 | LIBS="$LIBS -lstdc++" | |
13700 | fi | |
13701 | fi | |
94acd38e DE |
13702 | if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then |
13703 | { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5 | |
13704 | echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;} | |
13705 | wxUSE_OMF=yes | |
2da0c077 | 13706 | enable_omf=yes |
a848cd7e SC |
13707 | fi |
13708 | ;; | |
13709 | *) | |
13710 | ||
13711 | ||
13712 | ||
13713 | ac_ext=cc | |
13714 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13715 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13716 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13717 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13718 | ||
13719 | ||
95986553 | 13720 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 |
a848cd7e SC |
13721 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 |
13722 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
13723 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13724 | else | |
13725 | ||
13726 | cat >conftest.$ac_ext <<_ACEOF | |
13727 | /* confdefs.h. */ | |
13728 | _ACEOF | |
13729 | cat confdefs.h >>conftest.$ac_ext | |
13730 | cat >>conftest.$ac_ext <<_ACEOF | |
13731 | /* end confdefs.h. */ | |
13732 | ||
13733 | #include <string.h> | |
13734 | ||
13735 | int | |
13736 | main () | |
13737 | { | |
13738 | ||
13739 | strcasecmp("foo", "bar"); | |
13740 | ||
13741 | ; | |
13742 | return 0; | |
13743 | } | |
13744 | _ACEOF | |
13745 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13746 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13747 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13748 | ac_status=$? |
ac1cb8d3 VS |
13749 | grep -v '^ *+' conftest.er1 >conftest.err |
13750 | rm -f conftest.er1 | |
13751 | cat conftest.err >&5 | |
a848cd7e SC |
13752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13753 | (exit $ac_status); } && | |
ddd14b14 RR |
13754 | { ac_try='test -z "$ac_cxx_werror_flag" |
13755 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13757 | (eval $ac_try) 2>&5 | |
13758 | ac_status=$? | |
13759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13760 | (exit $ac_status); }; } && | |
13761 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13763 | (eval $ac_try) 2>&5 | |
13764 | ac_status=$? | |
13765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13766 | (exit $ac_status); }; }; then | |
13767 | ac_cv_string_strcasecmp=yes | |
13768 | else | |
13769 | echo "$as_me: failed program was:" >&5 | |
13770 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13771 | ||
13772 | ac_cv_string_strcasecmp=no | |
13773 | ||
13774 | fi | |
ac1cb8d3 VS |
13775 | rm -f conftest.err conftest.$ac_objext \ |
13776 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13777 | |
13778 | fi | |
13779 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
13780 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
13781 | ||
13782 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
13783 | cat >>confdefs.h <<\_ACEOF | |
13784 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
13785 | _ACEOF | |
13786 | ||
13787 | else | |
13788 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
13789 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
13790 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
13791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13792 | else | |
13793 | ||
13794 | cat >conftest.$ac_ext <<_ACEOF | |
13795 | /* confdefs.h. */ | |
13796 | _ACEOF | |
13797 | cat confdefs.h >>conftest.$ac_ext | |
13798 | cat >>conftest.$ac_ext <<_ACEOF | |
13799 | /* end confdefs.h. */ | |
13800 | ||
13801 | #include <strings.h> | |
13802 | ||
13803 | int | |
13804 | main () | |
13805 | { | |
13806 | ||
13807 | strcasecmp("foo", "bar"); | |
13808 | ||
13809 | ; | |
13810 | return 0; | |
13811 | } | |
13812 | _ACEOF | |
13813 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13814 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13815 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13816 | ac_status=$? |
ac1cb8d3 VS |
13817 | grep -v '^ *+' conftest.er1 >conftest.err |
13818 | rm -f conftest.er1 | |
13819 | cat conftest.err >&5 | |
a848cd7e SC |
13820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13821 | (exit $ac_status); } && | |
ddd14b14 RR |
13822 | { ac_try='test -z "$ac_cxx_werror_flag" |
13823 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13825 | (eval $ac_try) 2>&5 | |
13826 | ac_status=$? | |
13827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13828 | (exit $ac_status); }; } && | |
13829 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13831 | (eval $ac_try) 2>&5 | |
13832 | ac_status=$? | |
13833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13834 | (exit $ac_status); }; }; then | |
13835 | ac_cv_strings_strcasecmp=yes | |
13836 | else | |
13837 | echo "$as_me: failed program was:" >&5 | |
13838 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13839 | ||
13840 | ac_cv_strings_strcasecmp=no | |
13841 | ||
13842 | fi | |
ac1cb8d3 VS |
13843 | rm -f conftest.err conftest.$ac_objext \ |
13844 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13845 | |
13846 | fi | |
13847 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
13848 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
13849 | ||
0c3c69fc | 13850 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
13851 | cat >>confdefs.h <<\_ACEOF |
13852 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
13853 | _ACEOF | |
13854 | ||
13855 | else | |
13856 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
13857 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
13858 | { (exit 1); exit 1; }; } | |
13859 | fi | |
13860 | fi | |
13861 | ||
13862 | ac_ext=c | |
13863 | ac_cpp='$CPP $CPPFLAGS' | |
13864 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13865 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13866 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13867 | ||
13868 | ;; | |
13869 | esac | |
13870 | ||
13871 | ||
13872 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
13873 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
13874 | if test "${ac_cv_header_stdc+set}" = set; then | |
13875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13876 | else | |
13877 | cat >conftest.$ac_ext <<_ACEOF | |
13878 | /* confdefs.h. */ | |
13879 | _ACEOF | |
13880 | cat confdefs.h >>conftest.$ac_ext | |
13881 | cat >>conftest.$ac_ext <<_ACEOF | |
13882 | /* end confdefs.h. */ | |
13883 | #include <stdlib.h> | |
13884 | #include <stdarg.h> | |
13885 | #include <string.h> | |
13886 | #include <float.h> | |
13887 | ||
13888 | int | |
13889 | main () | |
13890 | { | |
13891 | ||
13892 | ; | |
13893 | return 0; | |
13894 | } | |
13895 | _ACEOF | |
13896 | rm -f conftest.$ac_objext | |
13897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13898 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13899 | ac_status=$? |
ac1cb8d3 VS |
13900 | grep -v '^ *+' conftest.er1 >conftest.err |
13901 | rm -f conftest.er1 | |
13902 | cat conftest.err >&5 | |
a848cd7e SC |
13903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13904 | (exit $ac_status); } && | |
ddd14b14 RR |
13905 | { ac_try='test -z "$ac_c_werror_flag" |
13906 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13908 | (eval $ac_try) 2>&5 | |
13909 | ac_status=$? | |
13910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13911 | (exit $ac_status); }; } && | |
13912 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13914 | (eval $ac_try) 2>&5 | |
13915 | ac_status=$? | |
13916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13917 | (exit $ac_status); }; }; then | |
13918 | ac_cv_header_stdc=yes | |
13919 | else | |
13920 | echo "$as_me: failed program was:" >&5 | |
13921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13922 | ||
13923 | ac_cv_header_stdc=no | |
13924 | fi | |
ac1cb8d3 | 13925 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13926 | |
13927 | if test $ac_cv_header_stdc = yes; then | |
13928 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
13929 | cat >conftest.$ac_ext <<_ACEOF | |
13930 | /* confdefs.h. */ | |
13931 | _ACEOF | |
13932 | cat confdefs.h >>conftest.$ac_ext | |
13933 | cat >>conftest.$ac_ext <<_ACEOF | |
13934 | /* end confdefs.h. */ | |
13935 | #include <string.h> | |
13936 | ||
13937 | _ACEOF | |
13938 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13939 | $EGREP "memchr" >/dev/null 2>&1; then | |
13940 | : | |
13941 | else | |
13942 | ac_cv_header_stdc=no | |
13943 | fi | |
13944 | rm -f conftest* | |
13945 | ||
13946 | fi | |
13947 | ||
13948 | if test $ac_cv_header_stdc = yes; then | |
13949 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
13950 | cat >conftest.$ac_ext <<_ACEOF | |
13951 | /* confdefs.h. */ | |
13952 | _ACEOF | |
13953 | cat confdefs.h >>conftest.$ac_ext | |
13954 | cat >>conftest.$ac_ext <<_ACEOF | |
13955 | /* end confdefs.h. */ | |
13956 | #include <stdlib.h> | |
13957 | ||
13958 | _ACEOF | |
13959 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13960 | $EGREP "free" >/dev/null 2>&1; then | |
13961 | : | |
13962 | else | |
13963 | ac_cv_header_stdc=no | |
13964 | fi | |
13965 | rm -f conftest* | |
13966 | ||
13967 | fi | |
13968 | ||
13969 | if test $ac_cv_header_stdc = yes; then | |
13970 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
13971 | if test "$cross_compiling" = yes; then | |
13972 | : | |
13973 | else | |
13974 | cat >conftest.$ac_ext <<_ACEOF | |
13975 | /* confdefs.h. */ | |
13976 | _ACEOF | |
13977 | cat confdefs.h >>conftest.$ac_ext | |
13978 | cat >>conftest.$ac_ext <<_ACEOF | |
13979 | /* end confdefs.h. */ | |
13980 | #include <ctype.h> | |
13981 | #if ((' ' & 0x0FF) == 0x020) | |
13982 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
13983 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
13984 | #else | |
13985 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
13986 | (('a' <= (c) && (c) <= 'i') \ |
13987 | || ('j' <= (c) && (c) <= 'r') \ | |
13988 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
13989 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
13990 | #endif | |
13991 | ||
13992 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
13993 | int | |
13994 | main () | |
13995 | { | |
13996 | int i; | |
13997 | for (i = 0; i < 256; i++) | |
13998 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 13999 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
14000 | exit(2); |
14001 | exit (0); | |
14002 | } | |
14003 | _ACEOF | |
14004 | rm -f conftest$ac_exeext | |
14005 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14006 | (eval $ac_link) 2>&5 | |
14007 | ac_status=$? | |
14008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14009 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14011 | (eval $ac_try) 2>&5 | |
14012 | ac_status=$? | |
14013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14014 | (exit $ac_status); }; }; then | |
14015 | : | |
14016 | else | |
14017 | echo "$as_me: program exited with status $ac_status" >&5 | |
14018 | echo "$as_me: failed program was:" >&5 | |
14019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14020 | ||
14021 | ( exit $ac_status ) | |
14022 | ac_cv_header_stdc=no | |
14023 | fi | |
ac1cb8d3 | 14024 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14025 | fi |
14026 | fi | |
14027 | fi | |
14028 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
14029 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
14030 | if test $ac_cv_header_stdc = yes; then | |
14031 | ||
14032 | cat >>confdefs.h <<\_ACEOF | |
14033 | #define STDC_HEADERS 1 | |
14034 | _ACEOF | |
14035 | ||
14036 | fi | |
14037 | ||
14038 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
14039 | ||
14040 | ||
14041 | ||
14042 | ||
14043 | ||
14044 | ||
14045 | ||
14046 | ||
14047 | ||
14048 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 14049 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
14050 | do |
14051 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14052 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14053 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14054 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14056 | else | |
14057 | cat >conftest.$ac_ext <<_ACEOF | |
14058 | /* confdefs.h. */ | |
14059 | _ACEOF | |
14060 | cat confdefs.h >>conftest.$ac_ext | |
14061 | cat >>conftest.$ac_ext <<_ACEOF | |
14062 | /* end confdefs.h. */ | |
14063 | $ac_includes_default | |
14064 | ||
14065 | #include <$ac_header> | |
14066 | _ACEOF | |
14067 | rm -f conftest.$ac_objext | |
14068 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14069 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14070 | ac_status=$? |
ac1cb8d3 VS |
14071 | grep -v '^ *+' conftest.er1 >conftest.err |
14072 | rm -f conftest.er1 | |
14073 | cat conftest.err >&5 | |
a848cd7e SC |
14074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14075 | (exit $ac_status); } && | |
ddd14b14 RR |
14076 | { ac_try='test -z "$ac_c_werror_flag" |
14077 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14079 | (eval $ac_try) 2>&5 | |
14080 | ac_status=$? | |
14081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14082 | (exit $ac_status); }; } && | |
14083 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14085 | (eval $ac_try) 2>&5 | |
14086 | ac_status=$? | |
14087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14088 | (exit $ac_status); }; }; then | |
14089 | eval "$as_ac_Header=yes" | |
14090 | else | |
14091 | echo "$as_me: failed program was:" >&5 | |
14092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14093 | ||
14094 | eval "$as_ac_Header=no" | |
14095 | fi | |
ac1cb8d3 | 14096 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14097 | fi |
14098 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14099 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14100 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14101 | cat >>confdefs.h <<_ACEOF | |
14102 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14103 | _ACEOF | |
14104 | ||
14105 | fi | |
14106 | ||
14107 | done | |
14108 | ||
14109 | ||
14110 | ||
14111 | for ac_header in stdlib.h | |
14112 | do | |
14113 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14114 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14115 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14116 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14117 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14119 | fi | |
14120 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14121 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14122 | else | |
14123 | # Is the header compilable? | |
14124 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14125 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14126 | cat >conftest.$ac_ext <<_ACEOF | |
14127 | /* confdefs.h. */ | |
14128 | _ACEOF | |
14129 | cat confdefs.h >>conftest.$ac_ext | |
14130 | cat >>conftest.$ac_ext <<_ACEOF | |
14131 | /* end confdefs.h. */ | |
14132 | $ac_includes_default | |
14133 | #include <$ac_header> | |
14134 | _ACEOF | |
14135 | rm -f conftest.$ac_objext | |
14136 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14137 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14138 | ac_status=$? |
ac1cb8d3 VS |
14139 | grep -v '^ *+' conftest.er1 >conftest.err |
14140 | rm -f conftest.er1 | |
14141 | cat conftest.err >&5 | |
a848cd7e SC |
14142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14143 | (exit $ac_status); } && | |
ddd14b14 RR |
14144 | { ac_try='test -z "$ac_c_werror_flag" |
14145 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14147 | (eval $ac_try) 2>&5 | |
14148 | ac_status=$? | |
14149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14150 | (exit $ac_status); }; } && | |
14151 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14153 | (eval $ac_try) 2>&5 | |
14154 | ac_status=$? | |
14155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14156 | (exit $ac_status); }; }; then | |
14157 | ac_header_compiler=yes | |
14158 | else | |
14159 | echo "$as_me: failed program was:" >&5 | |
14160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14161 | ||
14162 | ac_header_compiler=no | |
14163 | fi | |
ac1cb8d3 | 14164 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14165 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14166 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14167 | ||
14168 | # Is the header present? | |
14169 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14170 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14171 | cat >conftest.$ac_ext <<_ACEOF | |
14172 | /* confdefs.h. */ | |
14173 | _ACEOF | |
14174 | cat confdefs.h >>conftest.$ac_ext | |
14175 | cat >>conftest.$ac_ext <<_ACEOF | |
14176 | /* end confdefs.h. */ | |
14177 | #include <$ac_header> | |
14178 | _ACEOF | |
14179 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14180 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14181 | ac_status=$? | |
14182 | grep -v '^ *+' conftest.er1 >conftest.err | |
14183 | rm -f conftest.er1 | |
14184 | cat conftest.err >&5 | |
14185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14186 | (exit $ac_status); } >/dev/null; then | |
14187 | if test -s conftest.err; then | |
14188 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14189 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14190 | else |
14191 | ac_cpp_err= | |
14192 | fi | |
14193 | else | |
14194 | ac_cpp_err=yes | |
14195 | fi | |
14196 | if test -z "$ac_cpp_err"; then | |
14197 | ac_header_preproc=yes | |
14198 | else | |
14199 | echo "$as_me: failed program was:" >&5 | |
14200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14201 | ||
14202 | ac_header_preproc=no | |
14203 | fi | |
14204 | rm -f conftest.err conftest.$ac_ext | |
14205 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14206 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14207 | ||
14208 | # So? What about this header? | |
ac1cb8d3 VS |
14209 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14210 | yes:no: ) | |
a848cd7e SC |
14211 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14212 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14213 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14214 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14215 | ac_header_preproc=yes | |
a848cd7e | 14216 | ;; |
ac1cb8d3 | 14217 | no:yes:* ) |
a848cd7e SC |
14218 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14219 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14220 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14221 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14222 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14223 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14224 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14225 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14226 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14227 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14228 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14229 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14230 | ( |
14231 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14232 | ## ----------------------------------------- ## |
14233 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14234 | ## ----------------------------------------- ## | |
a848cd7e SC |
14235 | _ASBOX |
14236 | ) | | |
14237 | sed "s/^/$as_me: WARNING: /" >&2 | |
14238 | ;; | |
14239 | esac | |
14240 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14241 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14242 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14244 | else | |
ac1cb8d3 | 14245 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14246 | fi |
14247 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14248 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14249 | ||
14250 | fi | |
14251 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14252 | cat >>confdefs.h <<_ACEOF | |
14253 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14254 | _ACEOF | |
14255 | ||
14256 | fi | |
14257 | ||
14258 | done | |
14259 | ||
14260 | ||
14261 | for ac_header in malloc.h | |
14262 | do | |
14263 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14264 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14265 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14266 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14267 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14269 | fi | |
14270 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14271 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14272 | else | |
14273 | # Is the header compilable? | |
14274 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14275 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14276 | cat >conftest.$ac_ext <<_ACEOF | |
14277 | /* confdefs.h. */ | |
14278 | _ACEOF | |
14279 | cat confdefs.h >>conftest.$ac_ext | |
14280 | cat >>conftest.$ac_ext <<_ACEOF | |
14281 | /* end confdefs.h. */ | |
14282 | $ac_includes_default | |
14283 | #include <$ac_header> | |
14284 | _ACEOF | |
14285 | rm -f conftest.$ac_objext | |
14286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14287 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14288 | ac_status=$? |
ac1cb8d3 VS |
14289 | grep -v '^ *+' conftest.er1 >conftest.err |
14290 | rm -f conftest.er1 | |
14291 | cat conftest.err >&5 | |
a848cd7e SC |
14292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14293 | (exit $ac_status); } && | |
ddd14b14 RR |
14294 | { ac_try='test -z "$ac_c_werror_flag" |
14295 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14297 | (eval $ac_try) 2>&5 | |
14298 | ac_status=$? | |
14299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14300 | (exit $ac_status); }; } && | |
14301 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14303 | (eval $ac_try) 2>&5 | |
14304 | ac_status=$? | |
14305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14306 | (exit $ac_status); }; }; then | |
14307 | ac_header_compiler=yes | |
14308 | else | |
14309 | echo "$as_me: failed program was:" >&5 | |
14310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14311 | ||
14312 | ac_header_compiler=no | |
14313 | fi | |
ac1cb8d3 | 14314 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14315 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14316 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14317 | ||
14318 | # Is the header present? | |
14319 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14320 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14321 | cat >conftest.$ac_ext <<_ACEOF | |
14322 | /* confdefs.h. */ | |
14323 | _ACEOF | |
14324 | cat confdefs.h >>conftest.$ac_ext | |
14325 | cat >>conftest.$ac_ext <<_ACEOF | |
14326 | /* end confdefs.h. */ | |
14327 | #include <$ac_header> | |
14328 | _ACEOF | |
14329 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14330 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14331 | ac_status=$? | |
14332 | grep -v '^ *+' conftest.er1 >conftest.err | |
14333 | rm -f conftest.er1 | |
14334 | cat conftest.err >&5 | |
14335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14336 | (exit $ac_status); } >/dev/null; then | |
14337 | if test -s conftest.err; then | |
14338 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14339 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14340 | else |
14341 | ac_cpp_err= | |
14342 | fi | |
14343 | else | |
14344 | ac_cpp_err=yes | |
14345 | fi | |
14346 | if test -z "$ac_cpp_err"; then | |
14347 | ac_header_preproc=yes | |
14348 | else | |
14349 | echo "$as_me: failed program was:" >&5 | |
14350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14351 | ||
14352 | ac_header_preproc=no | |
14353 | fi | |
14354 | rm -f conftest.err conftest.$ac_ext | |
14355 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14356 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14357 | ||
14358 | # So? What about this header? | |
ac1cb8d3 VS |
14359 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14360 | yes:no: ) | |
a848cd7e SC |
14361 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14362 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14363 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14364 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14365 | ac_header_preproc=yes | |
a848cd7e | 14366 | ;; |
ac1cb8d3 | 14367 | no:yes:* ) |
a848cd7e SC |
14368 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14369 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14370 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14371 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14372 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14373 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14374 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14375 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14376 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14377 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14378 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14379 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14380 | ( |
14381 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14382 | ## ----------------------------------------- ## |
14383 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14384 | ## ----------------------------------------- ## | |
a848cd7e SC |
14385 | _ASBOX |
14386 | ) | | |
14387 | sed "s/^/$as_me: WARNING: /" >&2 | |
14388 | ;; | |
14389 | esac | |
14390 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14391 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14392 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14394 | else | |
ac1cb8d3 | 14395 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14396 | fi |
14397 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14398 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14399 | ||
14400 | fi | |
14401 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14402 | cat >>confdefs.h <<_ACEOF | |
14403 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14404 | _ACEOF | |
14405 | ||
14406 | fi | |
14407 | ||
14408 | done | |
14409 | ||
14410 | ||
14411 | for ac_header in unistd.h | |
14412 | do | |
14413 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14414 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14415 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14416 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14417 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14419 | fi | |
14420 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14421 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14422 | else | |
14423 | # Is the header compilable? | |
14424 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14425 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14426 | cat >conftest.$ac_ext <<_ACEOF | |
14427 | /* confdefs.h. */ | |
14428 | _ACEOF | |
14429 | cat confdefs.h >>conftest.$ac_ext | |
14430 | cat >>conftest.$ac_ext <<_ACEOF | |
14431 | /* end confdefs.h. */ | |
14432 | $ac_includes_default | |
14433 | #include <$ac_header> | |
14434 | _ACEOF | |
14435 | rm -f conftest.$ac_objext | |
14436 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14437 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14438 | ac_status=$? |
ac1cb8d3 VS |
14439 | grep -v '^ *+' conftest.er1 >conftest.err |
14440 | rm -f conftest.er1 | |
14441 | cat conftest.err >&5 | |
a848cd7e SC |
14442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14443 | (exit $ac_status); } && | |
ddd14b14 RR |
14444 | { ac_try='test -z "$ac_c_werror_flag" |
14445 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14447 | (eval $ac_try) 2>&5 | |
14448 | ac_status=$? | |
14449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14450 | (exit $ac_status); }; } && | |
14451 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14453 | (eval $ac_try) 2>&5 | |
14454 | ac_status=$? | |
14455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14456 | (exit $ac_status); }; }; then | |
14457 | ac_header_compiler=yes | |
14458 | else | |
14459 | echo "$as_me: failed program was:" >&5 | |
14460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14461 | ||
14462 | ac_header_compiler=no | |
14463 | fi | |
ac1cb8d3 | 14464 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14465 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14466 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14467 | ||
14468 | # Is the header present? | |
14469 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14470 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14471 | cat >conftest.$ac_ext <<_ACEOF | |
14472 | /* confdefs.h. */ | |
14473 | _ACEOF | |
14474 | cat confdefs.h >>conftest.$ac_ext | |
14475 | cat >>conftest.$ac_ext <<_ACEOF | |
14476 | /* end confdefs.h. */ | |
14477 | #include <$ac_header> | |
14478 | _ACEOF | |
14479 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14480 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14481 | ac_status=$? | |
14482 | grep -v '^ *+' conftest.er1 >conftest.err | |
14483 | rm -f conftest.er1 | |
14484 | cat conftest.err >&5 | |
14485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14486 | (exit $ac_status); } >/dev/null; then | |
14487 | if test -s conftest.err; then | |
14488 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14489 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14490 | else |
14491 | ac_cpp_err= | |
14492 | fi | |
14493 | else | |
14494 | ac_cpp_err=yes | |
14495 | fi | |
14496 | if test -z "$ac_cpp_err"; then | |
14497 | ac_header_preproc=yes | |
14498 | else | |
14499 | echo "$as_me: failed program was:" >&5 | |
14500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14501 | ||
14502 | ac_header_preproc=no | |
14503 | fi | |
14504 | rm -f conftest.err conftest.$ac_ext | |
14505 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14506 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14507 | ||
14508 | # So? What about this header? | |
ac1cb8d3 VS |
14509 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14510 | yes:no: ) | |
a848cd7e SC |
14511 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14512 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14513 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14514 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14515 | ac_header_preproc=yes | |
a848cd7e | 14516 | ;; |
ac1cb8d3 | 14517 | no:yes:* ) |
a848cd7e SC |
14518 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14519 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14520 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14521 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14522 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14523 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14524 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14525 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14526 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14527 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14528 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14529 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14530 | ( |
14531 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14532 | ## ----------------------------------------- ## |
14533 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14534 | ## ----------------------------------------- ## | |
a848cd7e SC |
14535 | _ASBOX |
14536 | ) | | |
14537 | sed "s/^/$as_me: WARNING: /" >&2 | |
14538 | ;; | |
14539 | esac | |
14540 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14541 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14542 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14544 | else | |
ac1cb8d3 | 14545 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14546 | fi |
14547 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14548 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14549 | ||
14550 | fi | |
14551 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14552 | cat >>confdefs.h <<_ACEOF | |
14553 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14554 | _ACEOF | |
14555 | ||
14556 | fi | |
14557 | ||
14558 | done | |
14559 | ||
14560 | ||
14561 | for ac_header in wchar.h | |
14562 | do | |
14563 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14564 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14565 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14566 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14567 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14569 | fi | |
14570 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14571 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14572 | else | |
14573 | # Is the header compilable? | |
14574 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14575 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14576 | cat >conftest.$ac_ext <<_ACEOF | |
14577 | /* confdefs.h. */ | |
14578 | _ACEOF | |
14579 | cat confdefs.h >>conftest.$ac_ext | |
14580 | cat >>conftest.$ac_ext <<_ACEOF | |
14581 | /* end confdefs.h. */ | |
14582 | $ac_includes_default | |
14583 | #include <$ac_header> | |
14584 | _ACEOF | |
14585 | rm -f conftest.$ac_objext | |
14586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14587 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14588 | ac_status=$? |
ac1cb8d3 VS |
14589 | grep -v '^ *+' conftest.er1 >conftest.err |
14590 | rm -f conftest.er1 | |
14591 | cat conftest.err >&5 | |
a848cd7e SC |
14592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14593 | (exit $ac_status); } && | |
ddd14b14 RR |
14594 | { ac_try='test -z "$ac_c_werror_flag" |
14595 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14597 | (eval $ac_try) 2>&5 | |
14598 | ac_status=$? | |
14599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14600 | (exit $ac_status); }; } && | |
14601 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14603 | (eval $ac_try) 2>&5 | |
14604 | ac_status=$? | |
14605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14606 | (exit $ac_status); }; }; then | |
14607 | ac_header_compiler=yes | |
14608 | else | |
14609 | echo "$as_me: failed program was:" >&5 | |
14610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14611 | ||
14612 | ac_header_compiler=no | |
14613 | fi | |
ac1cb8d3 | 14614 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14615 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14616 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14617 | ||
14618 | # Is the header present? | |
14619 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14620 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14621 | cat >conftest.$ac_ext <<_ACEOF | |
14622 | /* confdefs.h. */ | |
14623 | _ACEOF | |
14624 | cat confdefs.h >>conftest.$ac_ext | |
14625 | cat >>conftest.$ac_ext <<_ACEOF | |
14626 | /* end confdefs.h. */ | |
14627 | #include <$ac_header> | |
14628 | _ACEOF | |
14629 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14630 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14631 | ac_status=$? | |
14632 | grep -v '^ *+' conftest.er1 >conftest.err | |
14633 | rm -f conftest.er1 | |
14634 | cat conftest.err >&5 | |
14635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14636 | (exit $ac_status); } >/dev/null; then | |
14637 | if test -s conftest.err; then | |
14638 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14639 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14640 | else |
14641 | ac_cpp_err= | |
14642 | fi | |
14643 | else | |
14644 | ac_cpp_err=yes | |
14645 | fi | |
14646 | if test -z "$ac_cpp_err"; then | |
14647 | ac_header_preproc=yes | |
14648 | else | |
14649 | echo "$as_me: failed program was:" >&5 | |
14650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14651 | ||
14652 | ac_header_preproc=no | |
14653 | fi | |
14654 | rm -f conftest.err conftest.$ac_ext | |
14655 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14656 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14657 | ||
14658 | # So? What about this header? | |
ac1cb8d3 VS |
14659 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14660 | yes:no: ) | |
a848cd7e SC |
14661 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14662 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14663 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14664 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14665 | ac_header_preproc=yes | |
a848cd7e | 14666 | ;; |
ac1cb8d3 | 14667 | no:yes:* ) |
a848cd7e SC |
14668 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14669 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14670 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14671 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14672 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14673 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14674 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14675 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14676 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14677 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14678 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14679 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14680 | ( |
14681 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14682 | ## ----------------------------------------- ## |
14683 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14684 | ## ----------------------------------------- ## | |
a848cd7e SC |
14685 | _ASBOX |
14686 | ) | | |
14687 | sed "s/^/$as_me: WARNING: /" >&2 | |
14688 | ;; | |
14689 | esac | |
14690 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14691 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14692 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14694 | else | |
ac1cb8d3 | 14695 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14696 | fi |
14697 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14698 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14699 | ||
14700 | fi | |
14701 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14702 | cat >>confdefs.h <<_ACEOF | |
14703 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14704 | _ACEOF | |
14705 | ||
14706 | fi | |
14707 | ||
14708 | done | |
14709 | ||
14710 | ||
14711 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
14712 | ||
14713 | for ac_header in wcstr.h | |
14714 | do | |
14715 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14716 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14717 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14718 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14719 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14721 | fi | |
14722 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14723 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14724 | else | |
14725 | # Is the header compilable? | |
14726 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14727 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14728 | cat >conftest.$ac_ext <<_ACEOF | |
14729 | /* confdefs.h. */ | |
14730 | _ACEOF | |
14731 | cat confdefs.h >>conftest.$ac_ext | |
14732 | cat >>conftest.$ac_ext <<_ACEOF | |
14733 | /* end confdefs.h. */ | |
14734 | $ac_includes_default | |
14735 | #include <$ac_header> | |
14736 | _ACEOF | |
14737 | rm -f conftest.$ac_objext | |
14738 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14739 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14740 | ac_status=$? |
ac1cb8d3 VS |
14741 | grep -v '^ *+' conftest.er1 >conftest.err |
14742 | rm -f conftest.er1 | |
14743 | cat conftest.err >&5 | |
a848cd7e SC |
14744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14745 | (exit $ac_status); } && | |
ddd14b14 RR |
14746 | { ac_try='test -z "$ac_c_werror_flag" |
14747 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14749 | (eval $ac_try) 2>&5 | |
14750 | ac_status=$? | |
14751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14752 | (exit $ac_status); }; } && | |
14753 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14755 | (eval $ac_try) 2>&5 | |
14756 | ac_status=$? | |
14757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14758 | (exit $ac_status); }; }; then | |
14759 | ac_header_compiler=yes | |
14760 | else | |
14761 | echo "$as_me: failed program was:" >&5 | |
14762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14763 | ||
14764 | ac_header_compiler=no | |
14765 | fi | |
ac1cb8d3 | 14766 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14767 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14768 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14769 | ||
14770 | # Is the header present? | |
14771 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14772 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14773 | cat >conftest.$ac_ext <<_ACEOF | |
14774 | /* confdefs.h. */ | |
14775 | _ACEOF | |
14776 | cat confdefs.h >>conftest.$ac_ext | |
14777 | cat >>conftest.$ac_ext <<_ACEOF | |
14778 | /* end confdefs.h. */ | |
14779 | #include <$ac_header> | |
14780 | _ACEOF | |
14781 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14782 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14783 | ac_status=$? | |
14784 | grep -v '^ *+' conftest.er1 >conftest.err | |
14785 | rm -f conftest.er1 | |
14786 | cat conftest.err >&5 | |
14787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14788 | (exit $ac_status); } >/dev/null; then | |
14789 | if test -s conftest.err; then | |
14790 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14791 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14792 | else |
14793 | ac_cpp_err= | |
14794 | fi | |
14795 | else | |
14796 | ac_cpp_err=yes | |
14797 | fi | |
14798 | if test -z "$ac_cpp_err"; then | |
14799 | ac_header_preproc=yes | |
14800 | else | |
14801 | echo "$as_me: failed program was:" >&5 | |
14802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14803 | ||
14804 | ac_header_preproc=no | |
14805 | fi | |
14806 | rm -f conftest.err conftest.$ac_ext | |
14807 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14808 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14809 | ||
14810 | # So? What about this header? | |
ac1cb8d3 VS |
14811 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14812 | yes:no: ) | |
a848cd7e SC |
14813 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14814 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14815 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14816 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14817 | ac_header_preproc=yes | |
a848cd7e | 14818 | ;; |
ac1cb8d3 | 14819 | no:yes:* ) |
a848cd7e SC |
14820 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14821 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14822 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14823 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14824 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14825 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14826 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14827 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14828 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14829 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14830 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14831 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14832 | ( |
14833 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14834 | ## ----------------------------------------- ## |
14835 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14836 | ## ----------------------------------------- ## | |
a848cd7e SC |
14837 | _ASBOX |
14838 | ) | | |
14839 | sed "s/^/$as_me: WARNING: /" >&2 | |
14840 | ;; | |
14841 | esac | |
14842 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14843 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14844 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14846 | else | |
ac1cb8d3 | 14847 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14848 | fi |
14849 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14850 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14851 | ||
14852 | fi | |
14853 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14854 | cat >>confdefs.h <<_ACEOF | |
14855 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14856 | _ACEOF | |
14857 | ||
14858 | fi | |
14859 | ||
14860 | done | |
14861 | ||
14862 | fi | |
14863 | ||
14864 | ||
14865 | for ac_header in fnmatch.h | |
14866 | do | |
14867 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14868 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14869 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14870 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14871 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14873 | fi | |
14874 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14875 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14876 | else | |
14877 | # Is the header compilable? | |
14878 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14879 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14880 | cat >conftest.$ac_ext <<_ACEOF | |
14881 | /* confdefs.h. */ | |
14882 | _ACEOF | |
14883 | cat confdefs.h >>conftest.$ac_ext | |
14884 | cat >>conftest.$ac_ext <<_ACEOF | |
14885 | /* end confdefs.h. */ | |
14886 | $ac_includes_default | |
14887 | #include <$ac_header> | |
14888 | _ACEOF | |
14889 | rm -f conftest.$ac_objext | |
14890 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14891 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14892 | ac_status=$? |
ac1cb8d3 VS |
14893 | grep -v '^ *+' conftest.er1 >conftest.err |
14894 | rm -f conftest.er1 | |
14895 | cat conftest.err >&5 | |
a848cd7e SC |
14896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14897 | (exit $ac_status); } && | |
ddd14b14 RR |
14898 | { ac_try='test -z "$ac_c_werror_flag" |
14899 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14901 | (eval $ac_try) 2>&5 | |
14902 | ac_status=$? | |
14903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14904 | (exit $ac_status); }; } && | |
14905 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14907 | (eval $ac_try) 2>&5 | |
14908 | ac_status=$? | |
14909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14910 | (exit $ac_status); }; }; then | |
14911 | ac_header_compiler=yes | |
14912 | else | |
14913 | echo "$as_me: failed program was:" >&5 | |
14914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14915 | ||
14916 | ac_header_compiler=no | |
14917 | fi | |
ac1cb8d3 | 14918 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14919 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14920 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14921 | ||
14922 | # Is the header present? | |
14923 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14924 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14925 | cat >conftest.$ac_ext <<_ACEOF | |
14926 | /* confdefs.h. */ | |
14927 | _ACEOF | |
14928 | cat confdefs.h >>conftest.$ac_ext | |
14929 | cat >>conftest.$ac_ext <<_ACEOF | |
14930 | /* end confdefs.h. */ | |
14931 | #include <$ac_header> | |
14932 | _ACEOF | |
14933 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14934 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14935 | ac_status=$? | |
14936 | grep -v '^ *+' conftest.er1 >conftest.err | |
14937 | rm -f conftest.er1 | |
14938 | cat conftest.err >&5 | |
14939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14940 | (exit $ac_status); } >/dev/null; then | |
14941 | if test -s conftest.err; then | |
14942 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14943 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14944 | else |
14945 | ac_cpp_err= | |
14946 | fi | |
14947 | else | |
14948 | ac_cpp_err=yes | |
14949 | fi | |
14950 | if test -z "$ac_cpp_err"; then | |
14951 | ac_header_preproc=yes | |
14952 | else | |
14953 | echo "$as_me: failed program was:" >&5 | |
14954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14955 | ||
14956 | ac_header_preproc=no | |
14957 | fi | |
14958 | rm -f conftest.err conftest.$ac_ext | |
14959 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14960 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14961 | ||
14962 | # So? What about this header? | |
ac1cb8d3 VS |
14963 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14964 | yes:no: ) | |
a848cd7e SC |
14965 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14966 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14967 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14968 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14969 | ac_header_preproc=yes | |
a848cd7e | 14970 | ;; |
ac1cb8d3 | 14971 | no:yes:* ) |
a848cd7e SC |
14972 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14973 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14974 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14975 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14976 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14977 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14978 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14979 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14980 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14981 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14982 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14983 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14984 | ( |
14985 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14986 | ## ----------------------------------------- ## |
14987 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14988 | ## ----------------------------------------- ## | |
a848cd7e SC |
14989 | _ASBOX |
14990 | ) | | |
14991 | sed "s/^/$as_me: WARNING: /" >&2 | |
14992 | ;; | |
14993 | esac | |
14994 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14995 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14996 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14998 | else | |
ac1cb8d3 | 14999 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15000 | fi |
15001 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15002 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15003 | ||
15004 | fi | |
15005 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15006 | cat >>confdefs.h <<_ACEOF | |
15007 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15008 | _ACEOF | |
15009 | ||
15010 | fi | |
15011 | ||
15012 | done | |
15013 | ||
15014 | ||
15015 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then | |
15016 | ||
15017 | for ac_func in fnmatch | |
15018 | do | |
15019 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15020 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15021 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15022 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15024 | else | |
15025 | cat >conftest.$ac_ext <<_ACEOF | |
15026 | /* confdefs.h. */ | |
15027 | _ACEOF | |
15028 | cat confdefs.h >>conftest.$ac_ext | |
15029 | cat >>conftest.$ac_ext <<_ACEOF | |
15030 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
15031 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
15032 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15033 | #define $ac_func innocuous_$ac_func | |
15034 | ||
a848cd7e SC |
15035 | /* System header to define __stub macros and hopefully few prototypes, |
15036 | which can conflict with char $ac_func (); below. | |
15037 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15038 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 15039 | |
a848cd7e SC |
15040 | #ifdef __STDC__ |
15041 | # include <limits.h> | |
15042 | #else | |
15043 | # include <assert.h> | |
15044 | #endif | |
ac1cb8d3 VS |
15045 | |
15046 | #undef $ac_func | |
15047 | ||
a848cd7e SC |
15048 | /* Override any gcc2 internal prototype to avoid an error. */ |
15049 | #ifdef __cplusplus | |
15050 | extern "C" | |
15051 | { | |
15052 | #endif | |
15053 | /* We use char because int might match the return type of a gcc2 | |
15054 | builtin and then its argument prototype would still apply. */ | |
15055 | char $ac_func (); | |
15056 | /* The GNU C library defines this for functions which it implements | |
15057 | to always fail with ENOSYS. Some functions are actually named | |
15058 | something starting with __ and the normal name is an alias. */ | |
15059 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15060 | choke me | |
15061 | #else | |
15062 | char (*f) () = $ac_func; | |
15063 | #endif | |
15064 | #ifdef __cplusplus | |
15065 | } | |
15066 | #endif | |
15067 | ||
15068 | int | |
15069 | main () | |
15070 | { | |
15071 | return f != $ac_func; | |
15072 | ; | |
15073 | return 0; | |
15074 | } | |
15075 | _ACEOF | |
15076 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15077 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15078 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15079 | ac_status=$? |
ac1cb8d3 VS |
15080 | grep -v '^ *+' conftest.er1 >conftest.err |
15081 | rm -f conftest.er1 | |
15082 | cat conftest.err >&5 | |
a848cd7e SC |
15083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15084 | (exit $ac_status); } && | |
ddd14b14 RR |
15085 | { ac_try='test -z "$ac_c_werror_flag" |
15086 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15088 | (eval $ac_try) 2>&5 | |
15089 | ac_status=$? | |
15090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15091 | (exit $ac_status); }; } && | |
15092 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15094 | (eval $ac_try) 2>&5 | |
15095 | ac_status=$? | |
15096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15097 | (exit $ac_status); }; }; then | |
15098 | eval "$as_ac_var=yes" | |
15099 | else | |
15100 | echo "$as_me: failed program was:" >&5 | |
15101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15102 | ||
15103 | eval "$as_ac_var=no" | |
15104 | fi | |
ac1cb8d3 VS |
15105 | rm -f conftest.err conftest.$ac_objext \ |
15106 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15107 | fi |
15108 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
15109 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
15110 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
15111 | cat >>confdefs.h <<_ACEOF | |
15112 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15113 | _ACEOF | |
15114 | ||
15115 | fi | |
15116 | done | |
15117 | ||
15118 | fi | |
15119 | ||
15120 | ||
15121 | for ac_header in langinfo.h | |
15122 | do | |
15123 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15124 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15125 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15126 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15127 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15129 | fi | |
15130 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15131 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15132 | else | |
15133 | # Is the header compilable? | |
15134 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15135 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15136 | cat >conftest.$ac_ext <<_ACEOF | |
15137 | /* confdefs.h. */ | |
15138 | _ACEOF | |
15139 | cat confdefs.h >>conftest.$ac_ext | |
15140 | cat >>conftest.$ac_ext <<_ACEOF | |
15141 | /* end confdefs.h. */ | |
15142 | $ac_includes_default | |
15143 | #include <$ac_header> | |
15144 | _ACEOF | |
15145 | rm -f conftest.$ac_objext | |
15146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15147 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15148 | ac_status=$? |
ac1cb8d3 VS |
15149 | grep -v '^ *+' conftest.er1 >conftest.err |
15150 | rm -f conftest.er1 | |
15151 | cat conftest.err >&5 | |
a848cd7e SC |
15152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15153 | (exit $ac_status); } && | |
ddd14b14 RR |
15154 | { ac_try='test -z "$ac_c_werror_flag" |
15155 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15157 | (eval $ac_try) 2>&5 | |
15158 | ac_status=$? | |
15159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15160 | (exit $ac_status); }; } && | |
15161 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15163 | (eval $ac_try) 2>&5 | |
15164 | ac_status=$? | |
15165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15166 | (exit $ac_status); }; }; then | |
15167 | ac_header_compiler=yes | |
15168 | else | |
15169 | echo "$as_me: failed program was:" >&5 | |
15170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15171 | ||
15172 | ac_header_compiler=no | |
15173 | fi | |
ac1cb8d3 | 15174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15175 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15176 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15177 | ||
15178 | # Is the header present? | |
15179 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15180 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15181 | cat >conftest.$ac_ext <<_ACEOF | |
15182 | /* confdefs.h. */ | |
15183 | _ACEOF | |
15184 | cat confdefs.h >>conftest.$ac_ext | |
15185 | cat >>conftest.$ac_ext <<_ACEOF | |
15186 | /* end confdefs.h. */ | |
15187 | #include <$ac_header> | |
15188 | _ACEOF | |
15189 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15190 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15191 | ac_status=$? | |
15192 | grep -v '^ *+' conftest.er1 >conftest.err | |
15193 | rm -f conftest.er1 | |
15194 | cat conftest.err >&5 | |
15195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15196 | (exit $ac_status); } >/dev/null; then | |
15197 | if test -s conftest.err; then | |
15198 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15199 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15200 | else |
15201 | ac_cpp_err= | |
15202 | fi | |
15203 | else | |
15204 | ac_cpp_err=yes | |
15205 | fi | |
15206 | if test -z "$ac_cpp_err"; then | |
15207 | ac_header_preproc=yes | |
15208 | else | |
15209 | echo "$as_me: failed program was:" >&5 | |
15210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15211 | ||
15212 | ac_header_preproc=no | |
15213 | fi | |
15214 | rm -f conftest.err conftest.$ac_ext | |
15215 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15216 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15217 | ||
15218 | # So? What about this header? | |
ac1cb8d3 VS |
15219 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15220 | yes:no: ) | |
a848cd7e SC |
15221 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15222 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15223 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15224 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15225 | ac_header_preproc=yes | |
a848cd7e | 15226 | ;; |
ac1cb8d3 | 15227 | no:yes:* ) |
a848cd7e SC |
15228 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15229 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15230 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15231 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15232 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15233 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15234 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15235 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15236 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15237 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15238 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15239 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15240 | ( |
15241 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15242 | ## ----------------------------------------- ## |
15243 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15244 | ## ----------------------------------------- ## | |
a848cd7e SC |
15245 | _ASBOX |
15246 | ) | | |
15247 | sed "s/^/$as_me: WARNING: /" >&2 | |
15248 | ;; | |
15249 | esac | |
15250 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15251 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15252 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15253 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15254 | else | |
ac1cb8d3 | 15255 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15256 | fi |
15257 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15258 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15259 | ||
15260 | fi | |
15261 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15262 | cat >>confdefs.h <<_ACEOF | |
15263 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15264 | _ACEOF | |
15265 | ||
15266 | fi | |
15267 | ||
15268 | done | |
15269 | ||
15270 | ||
15271 | case "${host}" in | |
15272 | *-pc-os2_emx | *-pc-os2-emx ) | |
391a765e VS |
15273 | if test $ac_cv_header_langinfo_h = "yes" \ |
15274 | -a \( "$wx_cv_gccversion" = "EMX2" \ | |
15275 | -o "$wx_cv_gccversion" = "EMX3" \ | |
15276 | -o "$wx_cv_gccversion" = "Innotek5" \); then | |
a848cd7e SC |
15277 | LIBS="$LIBS -lintl" |
15278 | fi | |
15279 | ;; | |
15280 | esac | |
15281 | ||
15282 | if test "$wxUSE_GUI" = "yes"; then | |
15283 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
15284 | ||
15285 | for ac_header in X11/Xlib.h | |
15286 | do | |
15287 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15288 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15289 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15290 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15291 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15293 | fi | |
15294 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15295 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15296 | else | |
15297 | # Is the header compilable? | |
15298 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15299 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15300 | cat >conftest.$ac_ext <<_ACEOF | |
15301 | /* confdefs.h. */ | |
15302 | _ACEOF | |
15303 | cat confdefs.h >>conftest.$ac_ext | |
15304 | cat >>conftest.$ac_ext <<_ACEOF | |
15305 | /* end confdefs.h. */ | |
15306 | $ac_includes_default | |
15307 | #include <$ac_header> | |
15308 | _ACEOF | |
15309 | rm -f conftest.$ac_objext | |
15310 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15311 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15312 | ac_status=$? |
ac1cb8d3 VS |
15313 | grep -v '^ *+' conftest.er1 >conftest.err |
15314 | rm -f conftest.er1 | |
15315 | cat conftest.err >&5 | |
a848cd7e SC |
15316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15317 | (exit $ac_status); } && | |
ddd14b14 RR |
15318 | { ac_try='test -z "$ac_c_werror_flag" |
15319 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15321 | (eval $ac_try) 2>&5 | |
15322 | ac_status=$? | |
15323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15324 | (exit $ac_status); }; } && | |
15325 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15327 | (eval $ac_try) 2>&5 | |
15328 | ac_status=$? | |
15329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15330 | (exit $ac_status); }; }; then | |
15331 | ac_header_compiler=yes | |
15332 | else | |
15333 | echo "$as_me: failed program was:" >&5 | |
15334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15335 | ||
15336 | ac_header_compiler=no | |
15337 | fi | |
ac1cb8d3 | 15338 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15339 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15340 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15341 | ||
15342 | # Is the header present? | |
15343 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15344 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15345 | cat >conftest.$ac_ext <<_ACEOF | |
15346 | /* confdefs.h. */ | |
15347 | _ACEOF | |
15348 | cat confdefs.h >>conftest.$ac_ext | |
15349 | cat >>conftest.$ac_ext <<_ACEOF | |
15350 | /* end confdefs.h. */ | |
15351 | #include <$ac_header> | |
15352 | _ACEOF | |
15353 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15354 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15355 | ac_status=$? | |
15356 | grep -v '^ *+' conftest.er1 >conftest.err | |
15357 | rm -f conftest.er1 | |
15358 | cat conftest.err >&5 | |
15359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15360 | (exit $ac_status); } >/dev/null; then | |
15361 | if test -s conftest.err; then | |
15362 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15363 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15364 | else |
15365 | ac_cpp_err= | |
15366 | fi | |
15367 | else | |
15368 | ac_cpp_err=yes | |
15369 | fi | |
15370 | if test -z "$ac_cpp_err"; then | |
15371 | ac_header_preproc=yes | |
15372 | else | |
15373 | echo "$as_me: failed program was:" >&5 | |
15374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15375 | ||
15376 | ac_header_preproc=no | |
15377 | fi | |
15378 | rm -f conftest.err conftest.$ac_ext | |
15379 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15380 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15381 | ||
15382 | # So? What about this header? | |
ac1cb8d3 VS |
15383 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15384 | yes:no: ) | |
a848cd7e SC |
15385 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15386 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15387 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15388 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15389 | ac_header_preproc=yes | |
a848cd7e | 15390 | ;; |
ac1cb8d3 | 15391 | no:yes:* ) |
a848cd7e SC |
15392 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15393 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15394 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15395 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15396 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15397 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15398 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15399 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15400 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15401 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15402 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15403 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15404 | ( |
15405 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15406 | ## ----------------------------------------- ## |
15407 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15408 | ## ----------------------------------------- ## | |
a848cd7e SC |
15409 | _ASBOX |
15410 | ) | | |
15411 | sed "s/^/$as_me: WARNING: /" >&2 | |
15412 | ;; | |
15413 | esac | |
15414 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15415 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15416 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15418 | else | |
ac1cb8d3 | 15419 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15420 | fi |
15421 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15422 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15423 | ||
15424 | fi | |
15425 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15426 | cat >>confdefs.h <<_ACEOF | |
15427 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15428 | _ACEOF | |
15429 | ||
15430 | fi | |
15431 | ||
15432 | done | |
15433 | ||
15434 | ||
15435 | for ac_header in X11/XKBlib.h | |
15436 | do | |
15437 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15438 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15439 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15440 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15442 | else | |
15443 | cat >conftest.$ac_ext <<_ACEOF | |
15444 | /* confdefs.h. */ | |
15445 | _ACEOF | |
15446 | cat confdefs.h >>conftest.$ac_ext | |
15447 | cat >>conftest.$ac_ext <<_ACEOF | |
15448 | /* end confdefs.h. */ | |
15449 | ||
15450 | #if HAVE_X11_XLIB_H | |
15451 | #include <X11/Xlib.h> | |
15452 | #endif | |
15453 | ||
15454 | ||
15455 | #include <$ac_header> | |
15456 | _ACEOF | |
15457 | rm -f conftest.$ac_objext | |
15458 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15459 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15460 | ac_status=$? |
ac1cb8d3 VS |
15461 | grep -v '^ *+' conftest.er1 >conftest.err |
15462 | rm -f conftest.er1 | |
15463 | cat conftest.err >&5 | |
a848cd7e SC |
15464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15465 | (exit $ac_status); } && | |
ddd14b14 RR |
15466 | { ac_try='test -z "$ac_c_werror_flag" |
15467 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15469 | (eval $ac_try) 2>&5 | |
15470 | ac_status=$? | |
15471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15472 | (exit $ac_status); }; } && | |
15473 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15475 | (eval $ac_try) 2>&5 | |
15476 | ac_status=$? | |
15477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15478 | (exit $ac_status); }; }; then | |
15479 | eval "$as_ac_Header=yes" | |
15480 | else | |
15481 | echo "$as_me: failed program was:" >&5 | |
15482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15483 | ||
15484 | eval "$as_ac_Header=no" | |
15485 | fi | |
ac1cb8d3 | 15486 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15487 | fi |
15488 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15489 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15490 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15491 | cat >>confdefs.h <<_ACEOF | |
15492 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15493 | _ACEOF | |
15494 | ||
15495 | fi | |
15496 | ||
15497 | done | |
15498 | ||
15499 | fi | |
15500 | fi | |
15501 | ||
15502 | ||
15503 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
15504 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
15505 | if test "${ac_cv_c_const+set}" = set; then | |
15506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15507 | else | |
15508 | cat >conftest.$ac_ext <<_ACEOF | |
15509 | /* confdefs.h. */ | |
15510 | _ACEOF | |
15511 | cat confdefs.h >>conftest.$ac_ext | |
15512 | cat >>conftest.$ac_ext <<_ACEOF | |
15513 | /* end confdefs.h. */ | |
15514 | ||
15515 | int | |
15516 | main () | |
15517 | { | |
15518 | /* FIXME: Include the comments suggested by Paul. */ | |
15519 | #ifndef __cplusplus | |
15520 | /* Ultrix mips cc rejects this. */ | |
15521 | typedef int charset[2]; | |
15522 | const charset x; | |
15523 | /* SunOS 4.1.1 cc rejects this. */ | |
15524 | char const *const *ccp; | |
15525 | char **p; | |
15526 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
15527 | struct point {int x, y;}; | |
15528 | static struct point const zero = {0,0}; | |
15529 | /* AIX XL C 1.02.0.0 rejects this. | |
15530 | It does not let you subtract one const X* pointer from another in | |
15531 | an arm of an if-expression whose if-part is not a constant | |
15532 | expression */ | |
15533 | const char *g = "string"; | |
15534 | ccp = &g + (g ? g-g : 0); | |
15535 | /* HPUX 7.0 cc rejects these. */ | |
15536 | ++ccp; | |
15537 | p = (char**) ccp; | |
15538 | ccp = (char const *const *) p; | |
15539 | { /* SCO 3.2v4 cc rejects this. */ | |
15540 | char *t; | |
15541 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
15542 | ||
15543 | *t++ = 0; | |
15544 | } | |
15545 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
15546 | int x[] = {25, 17}; | |
15547 | const int *foo = &x[0]; | |
15548 | ++foo; | |
15549 | } | |
15550 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
15551 | typedef const int *iptr; | |
15552 | iptr p = 0; | |
15553 | ++p; | |
15554 | } | |
15555 | { /* AIX XL C 1.02.0.0 rejects this saying | |
15556 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
15557 | struct s { int j; const int *ap[3]; }; | |
15558 | struct s *b; b->j = 5; | |
15559 | } | |
15560 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
15561 | const int foo = 10; | |
15562 | } | |
15563 | #endif | |
15564 | ||
15565 | ; | |
15566 | return 0; | |
15567 | } | |
15568 | _ACEOF | |
15569 | rm -f conftest.$ac_objext | |
15570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15571 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15572 | ac_status=$? |
ac1cb8d3 VS |
15573 | grep -v '^ *+' conftest.er1 >conftest.err |
15574 | rm -f conftest.er1 | |
15575 | cat conftest.err >&5 | |
a848cd7e SC |
15576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15577 | (exit $ac_status); } && | |
ddd14b14 RR |
15578 | { ac_try='test -z "$ac_c_werror_flag" |
15579 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15581 | (eval $ac_try) 2>&5 | |
15582 | ac_status=$? | |
15583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15584 | (exit $ac_status); }; } && | |
15585 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15587 | (eval $ac_try) 2>&5 | |
15588 | ac_status=$? | |
15589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15590 | (exit $ac_status); }; }; then | |
15591 | ac_cv_c_const=yes | |
15592 | else | |
15593 | echo "$as_me: failed program was:" >&5 | |
15594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15595 | ||
15596 | ac_cv_c_const=no | |
15597 | fi | |
ac1cb8d3 | 15598 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15599 | fi |
15600 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
15601 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
15602 | if test $ac_cv_c_const = no; then | |
15603 | ||
15604 | cat >>confdefs.h <<\_ACEOF | |
15605 | #define const | |
15606 | _ACEOF | |
15607 | ||
15608 | fi | |
15609 | ||
15610 | echo "$as_me:$LINENO: checking for inline" >&5 | |
15611 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
15612 | if test "${ac_cv_c_inline+set}" = set; then | |
15613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15614 | else | |
15615 | ac_cv_c_inline=no | |
15616 | for ac_kw in inline __inline__ __inline; do | |
15617 | cat >conftest.$ac_ext <<_ACEOF | |
15618 | /* confdefs.h. */ | |
15619 | _ACEOF | |
15620 | cat confdefs.h >>conftest.$ac_ext | |
15621 | cat >>conftest.$ac_ext <<_ACEOF | |
15622 | /* end confdefs.h. */ | |
15623 | #ifndef __cplusplus | |
15624 | typedef int foo_t; | |
15625 | static $ac_kw foo_t static_foo () {return 0; } | |
15626 | $ac_kw foo_t foo () {return 0; } | |
15627 | #endif | |
15628 | ||
15629 | _ACEOF | |
15630 | rm -f conftest.$ac_objext | |
15631 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15632 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15633 | ac_status=$? |
ac1cb8d3 VS |
15634 | grep -v '^ *+' conftest.er1 >conftest.err |
15635 | rm -f conftest.er1 | |
15636 | cat conftest.err >&5 | |
a848cd7e SC |
15637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15638 | (exit $ac_status); } && | |
ddd14b14 RR |
15639 | { ac_try='test -z "$ac_c_werror_flag" |
15640 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15642 | (eval $ac_try) 2>&5 | |
15643 | ac_status=$? | |
15644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15645 | (exit $ac_status); }; } && | |
15646 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15648 | (eval $ac_try) 2>&5 | |
15649 | ac_status=$? | |
15650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15651 | (exit $ac_status); }; }; then | |
15652 | ac_cv_c_inline=$ac_kw; break | |
15653 | else | |
15654 | echo "$as_me: failed program was:" >&5 | |
15655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15656 | ||
15657 | fi | |
ac1cb8d3 | 15658 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15659 | done |
15660 | ||
15661 | fi | |
15662 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
15663 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
15664 | |
15665 | ||
a848cd7e SC |
15666 | case $ac_cv_c_inline in |
15667 | inline | yes) ;; | |
ac1cb8d3 VS |
15668 | *) |
15669 | case $ac_cv_c_inline in | |
15670 | no) ac_val=;; | |
15671 | *) ac_val=$ac_cv_c_inline;; | |
15672 | esac | |
15673 | cat >>confdefs.h <<_ACEOF | |
15674 | #ifndef __cplusplus | |
15675 | #define inline $ac_val | |
15676 | #endif | |
de59c161 | 15677 | _ACEOF |
ac1cb8d3 | 15678 | ;; |
a848cd7e SC |
15679 | esac |
15680 | ||
15681 | ||
15682 | echo "$as_me:$LINENO: checking for char" >&5 | |
15683 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
15684 | if test "${ac_cv_type_char+set}" = set; then | |
15685 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15686 | else | |
15687 | cat >conftest.$ac_ext <<_ACEOF | |
15688 | /* confdefs.h. */ | |
15689 | _ACEOF | |
15690 | cat confdefs.h >>conftest.$ac_ext | |
15691 | cat >>conftest.$ac_ext <<_ACEOF | |
15692 | /* end confdefs.h. */ | |
15693 | $ac_includes_default | |
15694 | int | |
15695 | main () | |
15696 | { | |
15697 | if ((char *) 0) | |
15698 | return 0; | |
15699 | if (sizeof (char)) | |
15700 | return 0; | |
15701 | ; | |
15702 | return 0; | |
15703 | } | |
15704 | _ACEOF | |
15705 | rm -f conftest.$ac_objext | |
15706 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15707 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15708 | ac_status=$? |
ac1cb8d3 VS |
15709 | grep -v '^ *+' conftest.er1 >conftest.err |
15710 | rm -f conftest.er1 | |
15711 | cat conftest.err >&5 | |
a848cd7e SC |
15712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15713 | (exit $ac_status); } && | |
ddd14b14 RR |
15714 | { ac_try='test -z "$ac_c_werror_flag" |
15715 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15717 | (eval $ac_try) 2>&5 | |
15718 | ac_status=$? | |
15719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15720 | (exit $ac_status); }; } && | |
15721 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15723 | (eval $ac_try) 2>&5 | |
15724 | ac_status=$? | |
15725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15726 | (exit $ac_status); }; }; then | |
15727 | ac_cv_type_char=yes | |
15728 | else | |
15729 | echo "$as_me: failed program was:" >&5 | |
15730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15731 | ||
15732 | ac_cv_type_char=no | |
15733 | fi | |
ac1cb8d3 | 15734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15735 | fi |
15736 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
15737 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
15738 | ||
15739 | echo "$as_me:$LINENO: checking size of char" >&5 | |
15740 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
15741 | if test "${ac_cv_sizeof_char+set}" = set; then | |
15742 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15743 | else | |
15744 | if test "$ac_cv_type_char" = yes; then | |
15745 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15746 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15747 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15748 | # This bug is HP SR number 8606223364. | |
15749 | if test "$cross_compiling" = yes; then | |
15750 | # Depending upon the size, compute the lo and hi bounds. | |
15751 | cat >conftest.$ac_ext <<_ACEOF | |
15752 | /* confdefs.h. */ | |
15753 | _ACEOF | |
15754 | cat confdefs.h >>conftest.$ac_ext | |
15755 | cat >>conftest.$ac_ext <<_ACEOF | |
15756 | /* end confdefs.h. */ | |
15757 | $ac_includes_default | |
15758 | int | |
15759 | main () | |
15760 | { | |
15761 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
15762 | test_array [0] = 0 | |
15763 | ||
15764 | ; | |
15765 | return 0; | |
15766 | } | |
15767 | _ACEOF | |
15768 | rm -f conftest.$ac_objext | |
15769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15770 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15771 | ac_status=$? |
ac1cb8d3 VS |
15772 | grep -v '^ *+' conftest.er1 >conftest.err |
15773 | rm -f conftest.er1 | |
15774 | cat conftest.err >&5 | |
a848cd7e SC |
15775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15776 | (exit $ac_status); } && | |
ddd14b14 RR |
15777 | { ac_try='test -z "$ac_c_werror_flag" |
15778 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15780 | (eval $ac_try) 2>&5 | |
15781 | ac_status=$? | |
15782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15783 | (exit $ac_status); }; } && | |
15784 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15786 | (eval $ac_try) 2>&5 | |
15787 | ac_status=$? | |
15788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15789 | (exit $ac_status); }; }; then | |
15790 | ac_lo=0 ac_mid=0 | |
15791 | while :; do | |
15792 | cat >conftest.$ac_ext <<_ACEOF | |
15793 | /* confdefs.h. */ | |
15794 | _ACEOF | |
15795 | cat confdefs.h >>conftest.$ac_ext | |
15796 | cat >>conftest.$ac_ext <<_ACEOF | |
15797 | /* end confdefs.h. */ | |
15798 | $ac_includes_default | |
15799 | int | |
15800 | main () | |
15801 | { | |
15802 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
15803 | test_array [0] = 0 | |
15804 | ||
15805 | ; | |
15806 | return 0; | |
15807 | } | |
15808 | _ACEOF | |
15809 | rm -f conftest.$ac_objext | |
15810 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15811 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15812 | ac_status=$? |
ac1cb8d3 VS |
15813 | grep -v '^ *+' conftest.er1 >conftest.err |
15814 | rm -f conftest.er1 | |
15815 | cat conftest.err >&5 | |
a848cd7e SC |
15816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15817 | (exit $ac_status); } && | |
ddd14b14 RR |
15818 | { ac_try='test -z "$ac_c_werror_flag" |
15819 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15821 | (eval $ac_try) 2>&5 | |
15822 | ac_status=$? | |
15823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15824 | (exit $ac_status); }; } && | |
15825 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15827 | (eval $ac_try) 2>&5 | |
15828 | ac_status=$? | |
15829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15830 | (exit $ac_status); }; }; then | |
15831 | ac_hi=$ac_mid; break | |
15832 | else | |
15833 | echo "$as_me: failed program was:" >&5 | |
15834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15835 | ||
15836 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15837 | if test $ac_lo -le $ac_mid; then |
15838 | ac_lo= ac_hi= | |
15839 | break | |
15840 | fi | |
15841 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15842 | fi |
ac1cb8d3 | 15843 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15844 | done |
15845 | else | |
15846 | echo "$as_me: failed program was:" >&5 | |
15847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15848 | ||
15849 | cat >conftest.$ac_ext <<_ACEOF | |
15850 | /* confdefs.h. */ | |
15851 | _ACEOF | |
15852 | cat confdefs.h >>conftest.$ac_ext | |
15853 | cat >>conftest.$ac_ext <<_ACEOF | |
15854 | /* end confdefs.h. */ | |
15855 | $ac_includes_default | |
15856 | int | |
15857 | main () | |
15858 | { | |
15859 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
15860 | test_array [0] = 0 | |
15861 | ||
15862 | ; | |
15863 | return 0; | |
15864 | } | |
15865 | _ACEOF | |
15866 | rm -f conftest.$ac_objext | |
15867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15868 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15869 | ac_status=$? |
ac1cb8d3 VS |
15870 | grep -v '^ *+' conftest.er1 >conftest.err |
15871 | rm -f conftest.er1 | |
15872 | cat conftest.err >&5 | |
a848cd7e SC |
15873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15874 | (exit $ac_status); } && | |
ddd14b14 RR |
15875 | { ac_try='test -z "$ac_c_werror_flag" |
15876 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15878 | (eval $ac_try) 2>&5 | |
15879 | ac_status=$? | |
15880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15881 | (exit $ac_status); }; } && | |
15882 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15884 | (eval $ac_try) 2>&5 | |
15885 | ac_status=$? | |
15886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15887 | (exit $ac_status); }; }; then | |
15888 | ac_hi=-1 ac_mid=-1 | |
15889 | while :; do | |
15890 | cat >conftest.$ac_ext <<_ACEOF | |
15891 | /* confdefs.h. */ | |
15892 | _ACEOF | |
15893 | cat confdefs.h >>conftest.$ac_ext | |
15894 | cat >>conftest.$ac_ext <<_ACEOF | |
15895 | /* end confdefs.h. */ | |
15896 | $ac_includes_default | |
15897 | int | |
15898 | main () | |
15899 | { | |
15900 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
15901 | test_array [0] = 0 | |
15902 | ||
15903 | ; | |
15904 | return 0; | |
15905 | } | |
15906 | _ACEOF | |
15907 | rm -f conftest.$ac_objext | |
15908 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15909 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15910 | ac_status=$? |
ac1cb8d3 VS |
15911 | grep -v '^ *+' conftest.er1 >conftest.err |
15912 | rm -f conftest.er1 | |
15913 | cat conftest.err >&5 | |
a848cd7e SC |
15914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15915 | (exit $ac_status); } && | |
ddd14b14 RR |
15916 | { ac_try='test -z "$ac_c_werror_flag" |
15917 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15919 | (eval $ac_try) 2>&5 | |
15920 | ac_status=$? | |
15921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15922 | (exit $ac_status); }; } && | |
15923 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15925 | (eval $ac_try) 2>&5 | |
15926 | ac_status=$? | |
15927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15928 | (exit $ac_status); }; }; then | |
15929 | ac_lo=$ac_mid; break | |
15930 | else | |
15931 | echo "$as_me: failed program was:" >&5 | |
15932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15933 | ||
15934 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15935 | if test $ac_mid -le $ac_hi; then |
15936 | ac_lo= ac_hi= | |
15937 | break | |
15938 | fi | |
15939 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15940 | fi |
ac1cb8d3 | 15941 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15942 | done |
15943 | else | |
15944 | echo "$as_me: failed program was:" >&5 | |
15945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15946 | ||
15947 | ac_lo= ac_hi= | |
15948 | fi | |
ac1cb8d3 | 15949 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15950 | fi |
ac1cb8d3 | 15951 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15952 | # Binary search between lo and hi bounds. |
15953 | while test "x$ac_lo" != "x$ac_hi"; do | |
15954 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15955 | cat >conftest.$ac_ext <<_ACEOF | |
15956 | /* confdefs.h. */ | |
15957 | _ACEOF | |
15958 | cat confdefs.h >>conftest.$ac_ext | |
15959 | cat >>conftest.$ac_ext <<_ACEOF | |
15960 | /* end confdefs.h. */ | |
15961 | $ac_includes_default | |
15962 | int | |
15963 | main () | |
15964 | { | |
15965 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
15966 | test_array [0] = 0 | |
15967 | ||
15968 | ; | |
15969 | return 0; | |
15970 | } | |
15971 | _ACEOF | |
15972 | rm -f conftest.$ac_objext | |
15973 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15974 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15975 | ac_status=$? |
ac1cb8d3 VS |
15976 | grep -v '^ *+' conftest.er1 >conftest.err |
15977 | rm -f conftest.er1 | |
15978 | cat conftest.err >&5 | |
a848cd7e SC |
15979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15980 | (exit $ac_status); } && | |
ddd14b14 RR |
15981 | { ac_try='test -z "$ac_c_werror_flag" |
15982 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15984 | (eval $ac_try) 2>&5 | |
15985 | ac_status=$? | |
15986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15987 | (exit $ac_status); }; } && | |
15988 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15990 | (eval $ac_try) 2>&5 | |
15991 | ac_status=$? | |
15992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15993 | (exit $ac_status); }; }; then | |
15994 | ac_hi=$ac_mid | |
15995 | else | |
15996 | echo "$as_me: failed program was:" >&5 | |
15997 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15998 | ||
15999 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16000 | fi | |
ac1cb8d3 | 16001 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16002 | done |
16003 | case $ac_lo in | |
16004 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
16005 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
16006 | See \`config.log' for more details." >&5 | |
16007 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
16008 | See \`config.log' for more details." >&2;} | |
16009 | { (exit 1); exit 1; }; } ;; | |
16010 | esac | |
16011 | else | |
16012 | if test "$cross_compiling" = yes; then | |
ddd14b14 RR |
16013 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
16014 | See \`config.log' for more details." >&5 | |
16015 | echo "$as_me: error: cannot run test program while cross compiling | |
16016 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
16017 | { (exit 1); exit 1; }; } |
16018 | else | |
16019 | cat >conftest.$ac_ext <<_ACEOF | |
16020 | /* confdefs.h. */ | |
16021 | _ACEOF | |
16022 | cat confdefs.h >>conftest.$ac_ext | |
16023 | cat >>conftest.$ac_ext <<_ACEOF | |
16024 | /* end confdefs.h. */ | |
16025 | $ac_includes_default | |
16026 | long longval () { return (long) (sizeof (char)); } | |
16027 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
16028 | #include <stdio.h> | |
16029 | #include <stdlib.h> | |
16030 | int | |
16031 | main () | |
16032 | { | |
16033 | ||
16034 | FILE *f = fopen ("conftest.val", "w"); | |
16035 | if (! f) | |
16036 | exit (1); | |
16037 | if (((long) (sizeof (char))) < 0) | |
16038 | { | |
16039 | long i = longval (); | |
16040 | if (i != ((long) (sizeof (char)))) | |
16041 | exit (1); | |
16042 | fprintf (f, "%ld\n", i); | |
16043 | } | |
16044 | else | |
16045 | { | |
16046 | unsigned long i = ulongval (); | |
16047 | if (i != ((long) (sizeof (char)))) | |
16048 | exit (1); | |
16049 | fprintf (f, "%lu\n", i); | |
16050 | } | |
16051 | exit (ferror (f) || fclose (f) != 0); | |
16052 | ||
16053 | ; | |
16054 | return 0; | |
16055 | } | |
16056 | _ACEOF | |
16057 | rm -f conftest$ac_exeext | |
16058 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16059 | (eval $ac_link) 2>&5 | |
16060 | ac_status=$? | |
16061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16062 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16064 | (eval $ac_try) 2>&5 | |
16065 | ac_status=$? | |
16066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16067 | (exit $ac_status); }; }; then | |
16068 | ac_cv_sizeof_char=`cat conftest.val` | |
16069 | else | |
16070 | echo "$as_me: program exited with status $ac_status" >&5 | |
16071 | echo "$as_me: failed program was:" >&5 | |
16072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16073 | ||
16074 | ( exit $ac_status ) | |
16075 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
16076 | See \`config.log' for more details." >&5 | |
16077 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
16078 | See \`config.log' for more details." >&2;} | |
16079 | { (exit 1); exit 1; }; } | |
16080 | fi | |
ac1cb8d3 | 16081 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16082 | fi |
16083 | fi | |
16084 | rm -f conftest.val | |
16085 | else | |
16086 | ac_cv_sizeof_char=0 | |
16087 | fi | |
16088 | fi | |
16089 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
16090 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
16091 | cat >>confdefs.h <<_ACEOF | |
16092 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
16093 | _ACEOF | |
16094 | ||
16095 | ||
16096 | echo "$as_me:$LINENO: checking for short" >&5 | |
16097 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
16098 | if test "${ac_cv_type_short+set}" = set; then | |
16099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16100 | else | |
16101 | cat >conftest.$ac_ext <<_ACEOF | |
16102 | /* confdefs.h. */ | |
16103 | _ACEOF | |
16104 | cat confdefs.h >>conftest.$ac_ext | |
16105 | cat >>conftest.$ac_ext <<_ACEOF | |
16106 | /* end confdefs.h. */ | |
16107 | $ac_includes_default | |
16108 | int | |
16109 | main () | |
16110 | { | |
16111 | if ((short *) 0) | |
16112 | return 0; | |
16113 | if (sizeof (short)) | |
16114 | return 0; | |
16115 | ; | |
16116 | return 0; | |
16117 | } | |
16118 | _ACEOF | |
16119 | rm -f conftest.$ac_objext | |
16120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16121 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16122 | ac_status=$? |
ac1cb8d3 VS |
16123 | grep -v '^ *+' conftest.er1 >conftest.err |
16124 | rm -f conftest.er1 | |
16125 | cat conftest.err >&5 | |
a848cd7e SC |
16126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16127 | (exit $ac_status); } && | |
ddd14b14 RR |
16128 | { ac_try='test -z "$ac_c_werror_flag" |
16129 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16131 | (eval $ac_try) 2>&5 | |
16132 | ac_status=$? | |
16133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16134 | (exit $ac_status); }; } && | |
16135 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16137 | (eval $ac_try) 2>&5 | |
16138 | ac_status=$? | |
16139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16140 | (exit $ac_status); }; }; then | |
16141 | ac_cv_type_short=yes | |
16142 | else | |
16143 | echo "$as_me: failed program was:" >&5 | |
16144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16145 | ||
16146 | ac_cv_type_short=no | |
16147 | fi | |
ac1cb8d3 | 16148 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16149 | fi |
16150 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
16151 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
16152 | ||
16153 | echo "$as_me:$LINENO: checking size of short" >&5 | |
16154 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
16155 | if test "${ac_cv_sizeof_short+set}" = set; then | |
16156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16157 | else | |
16158 | if test "$ac_cv_type_short" = yes; then | |
16159 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16160 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16161 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16162 | # This bug is HP SR number 8606223364. | |
16163 | if test "$cross_compiling" = yes; then | |
16164 | # Depending upon the size, compute the lo and hi bounds. | |
16165 | cat >conftest.$ac_ext <<_ACEOF | |
16166 | /* confdefs.h. */ | |
16167 | _ACEOF | |
16168 | cat confdefs.h >>conftest.$ac_ext | |
16169 | cat >>conftest.$ac_ext <<_ACEOF | |
16170 | /* end confdefs.h. */ | |
16171 | $ac_includes_default | |
16172 | int | |
16173 | main () | |
16174 | { | |
16175 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
16176 | test_array [0] = 0 | |
16177 | ||
16178 | ; | |
16179 | return 0; | |
16180 | } | |
16181 | _ACEOF | |
16182 | rm -f conftest.$ac_objext | |
16183 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16184 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16185 | ac_status=$? |
ac1cb8d3 VS |
16186 | grep -v '^ *+' conftest.er1 >conftest.err |
16187 | rm -f conftest.er1 | |
16188 | cat conftest.err >&5 | |
a848cd7e SC |
16189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16190 | (exit $ac_status); } && | |
ddd14b14 RR |
16191 | { ac_try='test -z "$ac_c_werror_flag" |
16192 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16194 | (eval $ac_try) 2>&5 | |
16195 | ac_status=$? | |
16196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16197 | (exit $ac_status); }; } && | |
16198 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16200 | (eval $ac_try) 2>&5 | |
16201 | ac_status=$? | |
16202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16203 | (exit $ac_status); }; }; then | |
16204 | ac_lo=0 ac_mid=0 | |
16205 | while :; do | |
16206 | cat >conftest.$ac_ext <<_ACEOF | |
16207 | /* confdefs.h. */ | |
16208 | _ACEOF | |
16209 | cat confdefs.h >>conftest.$ac_ext | |
16210 | cat >>conftest.$ac_ext <<_ACEOF | |
16211 | /* end confdefs.h. */ | |
16212 | $ac_includes_default | |
16213 | int | |
16214 | main () | |
16215 | { | |
16216 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
16217 | test_array [0] = 0 | |
16218 | ||
16219 | ; | |
16220 | return 0; | |
16221 | } | |
16222 | _ACEOF | |
16223 | rm -f conftest.$ac_objext | |
16224 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16225 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16226 | ac_status=$? |
ac1cb8d3 VS |
16227 | grep -v '^ *+' conftest.er1 >conftest.err |
16228 | rm -f conftest.er1 | |
16229 | cat conftest.err >&5 | |
a848cd7e SC |
16230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16231 | (exit $ac_status); } && | |
ddd14b14 RR |
16232 | { ac_try='test -z "$ac_c_werror_flag" |
16233 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16235 | (eval $ac_try) 2>&5 | |
16236 | ac_status=$? | |
16237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16238 | (exit $ac_status); }; } && | |
16239 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16241 | (eval $ac_try) 2>&5 | |
16242 | ac_status=$? | |
16243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16244 | (exit $ac_status); }; }; then | |
16245 | ac_hi=$ac_mid; break | |
16246 | else | |
16247 | echo "$as_me: failed program was:" >&5 | |
16248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16249 | ||
16250 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16251 | if test $ac_lo -le $ac_mid; then |
16252 | ac_lo= ac_hi= | |
16253 | break | |
16254 | fi | |
16255 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16256 | fi |
ac1cb8d3 | 16257 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16258 | done |
16259 | else | |
16260 | echo "$as_me: failed program was:" >&5 | |
16261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16262 | ||
16263 | cat >conftest.$ac_ext <<_ACEOF | |
16264 | /* confdefs.h. */ | |
16265 | _ACEOF | |
16266 | cat confdefs.h >>conftest.$ac_ext | |
16267 | cat >>conftest.$ac_ext <<_ACEOF | |
16268 | /* end confdefs.h. */ | |
16269 | $ac_includes_default | |
16270 | int | |
16271 | main () | |
16272 | { | |
16273 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
16274 | test_array [0] = 0 | |
16275 | ||
16276 | ; | |
16277 | return 0; | |
16278 | } | |
16279 | _ACEOF | |
16280 | rm -f conftest.$ac_objext | |
16281 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16282 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16283 | ac_status=$? |
ac1cb8d3 VS |
16284 | grep -v '^ *+' conftest.er1 >conftest.err |
16285 | rm -f conftest.er1 | |
16286 | cat conftest.err >&5 | |
a848cd7e SC |
16287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16288 | (exit $ac_status); } && | |
ddd14b14 RR |
16289 | { ac_try='test -z "$ac_c_werror_flag" |
16290 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16292 | (eval $ac_try) 2>&5 | |
16293 | ac_status=$? | |
16294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16295 | (exit $ac_status); }; } && | |
16296 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16298 | (eval $ac_try) 2>&5 | |
16299 | ac_status=$? | |
16300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16301 | (exit $ac_status); }; }; then | |
16302 | ac_hi=-1 ac_mid=-1 | |
16303 | while :; do | |
16304 | cat >conftest.$ac_ext <<_ACEOF | |
16305 | /* confdefs.h. */ | |
16306 | _ACEOF | |
16307 | cat confdefs.h >>conftest.$ac_ext | |
16308 | cat >>conftest.$ac_ext <<_ACEOF | |
16309 | /* end confdefs.h. */ | |
16310 | $ac_includes_default | |
16311 | int | |
16312 | main () | |
16313 | { | |
16314 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
16315 | test_array [0] = 0 | |
16316 | ||
16317 | ; | |
16318 | return 0; | |
16319 | } | |
16320 | _ACEOF | |
16321 | rm -f conftest.$ac_objext | |
16322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16323 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16324 | ac_status=$? |
ac1cb8d3 VS |
16325 | grep -v '^ *+' conftest.er1 >conftest.err |
16326 | rm -f conftest.er1 | |
16327 | cat conftest.err >&5 | |
a848cd7e SC |
16328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16329 | (exit $ac_status); } && | |
ddd14b14 RR |
16330 | { ac_try='test -z "$ac_c_werror_flag" |
16331 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16333 | (eval $ac_try) 2>&5 | |
16334 | ac_status=$? | |
16335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16336 | (exit $ac_status); }; } && | |
16337 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16339 | (eval $ac_try) 2>&5 | |
16340 | ac_status=$? | |
16341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16342 | (exit $ac_status); }; }; then | |
16343 | ac_lo=$ac_mid; break | |
16344 | else | |
16345 | echo "$as_me: failed program was:" >&5 | |
16346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16347 | ||
16348 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16349 | if test $ac_mid -le $ac_hi; then |
16350 | ac_lo= ac_hi= | |
16351 | break | |
16352 | fi | |
16353 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16354 | fi |
ac1cb8d3 | 16355 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16356 | done |
16357 | else | |
16358 | echo "$as_me: failed program was:" >&5 | |
16359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16360 | ||
16361 | ac_lo= ac_hi= | |
16362 | fi | |
ac1cb8d3 | 16363 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16364 | fi |
ac1cb8d3 | 16365 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16366 | # Binary search between lo and hi bounds. |
16367 | while test "x$ac_lo" != "x$ac_hi"; do | |
16368 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16369 | cat >conftest.$ac_ext <<_ACEOF | |
16370 | /* confdefs.h. */ | |
16371 | _ACEOF | |
16372 | cat confdefs.h >>conftest.$ac_ext | |
16373 | cat >>conftest.$ac_ext <<_ACEOF | |
16374 | /* end confdefs.h. */ | |
16375 | $ac_includes_default | |
16376 | int | |
16377 | main () | |
16378 | { | |
16379 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
16380 | test_array [0] = 0 | |
16381 | ||
16382 | ; | |
16383 | return 0; | |
16384 | } | |
16385 | _ACEOF | |
16386 | rm -f conftest.$ac_objext | |
16387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16388 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16389 | ac_status=$? |
ac1cb8d3 VS |
16390 | grep -v '^ *+' conftest.er1 >conftest.err |
16391 | rm -f conftest.er1 | |
16392 | cat conftest.err >&5 | |
a848cd7e SC |
16393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16394 | (exit $ac_status); } && | |
ddd14b14 RR |
16395 | { ac_try='test -z "$ac_c_werror_flag" |
16396 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16398 | (eval $ac_try) 2>&5 | |
16399 | ac_status=$? | |
16400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16401 | (exit $ac_status); }; } && | |
16402 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16404 | (eval $ac_try) 2>&5 | |
16405 | ac_status=$? | |
16406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16407 | (exit $ac_status); }; }; then | |
16408 | ac_hi=$ac_mid | |
16409 | else | |
16410 | echo "$as_me: failed program was:" >&5 | |
16411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16412 | ||
16413 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16414 | fi | |
ac1cb8d3 | 16415 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16416 | done |
16417 | case $ac_lo in | |
16418 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
16419 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
16420 | See \`config.log' for more details." >&5 | |
16421 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
16422 | See \`config.log' for more details." >&2;} | |
16423 | { (exit 1); exit 1; }; } ;; | |
16424 | esac | |
16425 | else | |
16426 | if test "$cross_compiling" = yes; then | |
ddd14b14 RR |
16427 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
16428 | See \`config.log' for more details." >&5 | |
16429 | echo "$as_me: error: cannot run test program while cross compiling | |
16430 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
16431 | { (exit 1); exit 1; }; } |
16432 | else | |
16433 | cat >conftest.$ac_ext <<_ACEOF | |
16434 | /* confdefs.h. */ | |
16435 | _ACEOF | |
16436 | cat confdefs.h >>conftest.$ac_ext | |
16437 | cat >>conftest.$ac_ext <<_ACEOF | |
16438 | /* end confdefs.h. */ | |
16439 | $ac_includes_default | |
16440 | long longval () { return (long) (sizeof (short)); } | |
16441 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
16442 | #include <stdio.h> | |
16443 | #include <stdlib.h> | |
16444 | int | |
16445 | main () | |
16446 | { | |
16447 | ||
16448 | FILE *f = fopen ("conftest.val", "w"); | |
16449 | if (! f) | |
16450 | exit (1); | |
16451 | if (((long) (sizeof (short))) < 0) | |
16452 | { | |
16453 | long i = longval (); | |
16454 | if (i != ((long) (sizeof (short)))) | |
16455 | exit (1); | |
16456 | fprintf (f, "%ld\n", i); | |
16457 | } | |
16458 | else | |
16459 | { | |
16460 | unsigned long i = ulongval (); | |
16461 | if (i != ((long) (sizeof (short)))) | |
16462 | exit (1); | |
16463 | fprintf (f, "%lu\n", i); | |
16464 | } | |
16465 | exit (ferror (f) || fclose (f) != 0); | |
16466 | ||
16467 | ; | |
16468 | return 0; | |
16469 | } | |
16470 | _ACEOF | |
16471 | rm -f conftest$ac_exeext | |
16472 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16473 | (eval $ac_link) 2>&5 | |
16474 | ac_status=$? | |
16475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16476 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16478 | (eval $ac_try) 2>&5 | |
16479 | ac_status=$? | |
16480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16481 | (exit $ac_status); }; }; then | |
16482 | ac_cv_sizeof_short=`cat conftest.val` | |
16483 | else | |
16484 | echo "$as_me: program exited with status $ac_status" >&5 | |
16485 | echo "$as_me: failed program was:" >&5 | |
16486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16487 | ||
16488 | ( exit $ac_status ) | |
16489 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
16490 | See \`config.log' for more details." >&5 | |
16491 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
16492 | See \`config.log' for more details." >&2;} | |
16493 | { (exit 1); exit 1; }; } | |
16494 | fi | |
ac1cb8d3 | 16495 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16496 | fi |
16497 | fi | |
16498 | rm -f conftest.val | |
16499 | else | |
16500 | ac_cv_sizeof_short=0 | |
16501 | fi | |
16502 | fi | |
16503 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
16504 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
16505 | cat >>confdefs.h <<_ACEOF | |
16506 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
16507 | _ACEOF | |
16508 | ||
16509 | ||
16510 | echo "$as_me:$LINENO: checking for void *" >&5 | |
16511 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
16512 | if test "${ac_cv_type_void_p+set}" = set; then | |
16513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16514 | else | |
16515 | cat >conftest.$ac_ext <<_ACEOF | |
16516 | /* confdefs.h. */ | |
16517 | _ACEOF | |
16518 | cat confdefs.h >>conftest.$ac_ext | |
16519 | cat >>conftest.$ac_ext <<_ACEOF | |
16520 | /* end confdefs.h. */ | |
16521 | $ac_includes_default | |
16522 | int | |
16523 | main () | |
16524 | { | |
16525 | if ((void * *) 0) | |
16526 | return 0; | |
16527 | if (sizeof (void *)) | |
16528 | return 0; | |
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); } && | |
ddd14b14 RR |
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_cv_type_void_p=yes | |
16556 | else | |
16557 | echo "$as_me: failed program was:" >&5 | |
16558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16559 | ||
16560 | ac_cv_type_void_p=no | |
16561 | fi | |
ac1cb8d3 | 16562 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16563 | fi |
16564 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
16565 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
16566 | ||
16567 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
16568 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
16569 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
16570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16571 | else | |
16572 | if test "$ac_cv_type_void_p" = yes; then | |
16573 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16574 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16575 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16576 | # This bug is HP SR number 8606223364. | |
16577 | if test "$cross_compiling" = yes; then | |
16578 | # Depending upon the size, compute the lo and hi bounds. | |
16579 | cat >conftest.$ac_ext <<_ACEOF | |
16580 | /* confdefs.h. */ | |
16581 | _ACEOF | |
16582 | cat confdefs.h >>conftest.$ac_ext | |
16583 | cat >>conftest.$ac_ext <<_ACEOF | |
16584 | /* end confdefs.h. */ | |
16585 | $ac_includes_default | |
16586 | int | |
16587 | main () | |
16588 | { | |
16589 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
16590 | test_array [0] = 0 | |
16591 | ||
16592 | ; | |
16593 | return 0; | |
16594 | } | |
16595 | _ACEOF | |
16596 | rm -f conftest.$ac_objext | |
16597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16598 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16599 | ac_status=$? |
ac1cb8d3 VS |
16600 | grep -v '^ *+' conftest.er1 >conftest.err |
16601 | rm -f conftest.er1 | |
16602 | cat conftest.err >&5 | |
a848cd7e SC |
16603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16604 | (exit $ac_status); } && | |
ddd14b14 RR |
16605 | { ac_try='test -z "$ac_c_werror_flag" |
16606 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16608 | (eval $ac_try) 2>&5 | |
16609 | ac_status=$? | |
16610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16611 | (exit $ac_status); }; } && | |
16612 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16614 | (eval $ac_try) 2>&5 | |
16615 | ac_status=$? | |
16616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16617 | (exit $ac_status); }; }; then | |
16618 | ac_lo=0 ac_mid=0 | |
16619 | while :; do | |
16620 | cat >conftest.$ac_ext <<_ACEOF | |
16621 | /* confdefs.h. */ | |
16622 | _ACEOF | |
16623 | cat confdefs.h >>conftest.$ac_ext | |
16624 | cat >>conftest.$ac_ext <<_ACEOF | |
16625 | /* end confdefs.h. */ | |
16626 | $ac_includes_default | |
16627 | int | |
16628 | main () | |
16629 | { | |
16630 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
16631 | test_array [0] = 0 | |
16632 | ||
16633 | ; | |
16634 | return 0; | |
16635 | } | |
16636 | _ACEOF | |
16637 | rm -f conftest.$ac_objext | |
16638 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16639 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16640 | ac_status=$? |
ac1cb8d3 VS |
16641 | grep -v '^ *+' conftest.er1 >conftest.err |
16642 | rm -f conftest.er1 | |
16643 | cat conftest.err >&5 | |
a848cd7e SC |
16644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16645 | (exit $ac_status); } && | |
ddd14b14 RR |
16646 | { ac_try='test -z "$ac_c_werror_flag" |
16647 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
16653 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16655 | (eval $ac_try) 2>&5 | |
16656 | ac_status=$? | |
16657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16658 | (exit $ac_status); }; }; then | |
16659 | ac_hi=$ac_mid; break | |
16660 | else | |
16661 | echo "$as_me: failed program was:" >&5 | |
16662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16663 | ||
16664 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16665 | if test $ac_lo -le $ac_mid; then |
16666 | ac_lo= ac_hi= | |
16667 | break | |
16668 | fi | |
16669 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16670 | fi |
ac1cb8d3 | 16671 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16672 | done |
16673 | else | |
16674 | echo "$as_me: failed program was:" >&5 | |
16675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16676 | ||
16677 | cat >conftest.$ac_ext <<_ACEOF | |
16678 | /* confdefs.h. */ | |
16679 | _ACEOF | |
16680 | cat confdefs.h >>conftest.$ac_ext | |
16681 | cat >>conftest.$ac_ext <<_ACEOF | |
16682 | /* end confdefs.h. */ | |
16683 | $ac_includes_default | |
16684 | int | |
16685 | main () | |
16686 | { | |
16687 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
16688 | test_array [0] = 0 | |
16689 | ||
16690 | ; | |
16691 | return 0; | |
16692 | } | |
16693 | _ACEOF | |
16694 | rm -f conftest.$ac_objext | |
16695 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16696 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16697 | ac_status=$? |
ac1cb8d3 VS |
16698 | grep -v '^ *+' conftest.er1 >conftest.err |
16699 | rm -f conftest.er1 | |
16700 | cat conftest.err >&5 | |
a848cd7e SC |
16701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16702 | (exit $ac_status); } && | |
ddd14b14 RR |
16703 | { ac_try='test -z "$ac_c_werror_flag" |
16704 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16706 | (eval $ac_try) 2>&5 | |
16707 | ac_status=$? | |
16708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16709 | (exit $ac_status); }; } && | |
16710 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16712 | (eval $ac_try) 2>&5 | |
16713 | ac_status=$? | |
16714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16715 | (exit $ac_status); }; }; then | |
16716 | ac_hi=-1 ac_mid=-1 | |
16717 | while :; do | |
16718 | cat >conftest.$ac_ext <<_ACEOF | |
16719 | /* confdefs.h. */ | |
16720 | _ACEOF | |
16721 | cat confdefs.h >>conftest.$ac_ext | |
16722 | cat >>conftest.$ac_ext <<_ACEOF | |
16723 | /* end confdefs.h. */ | |
16724 | $ac_includes_default | |
16725 | int | |
16726 | main () | |
16727 | { | |
16728 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
16729 | test_array [0] = 0 | |
16730 | ||
16731 | ; | |
16732 | return 0; | |
16733 | } | |
16734 | _ACEOF | |
16735 | rm -f conftest.$ac_objext | |
16736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16737 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16738 | ac_status=$? |
ac1cb8d3 VS |
16739 | grep -v '^ *+' conftest.er1 >conftest.err |
16740 | rm -f conftest.er1 | |
16741 | cat conftest.err >&5 | |
a848cd7e SC |
16742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16743 | (exit $ac_status); } && | |
ddd14b14 RR |
16744 | { ac_try='test -z "$ac_c_werror_flag" |
16745 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16747 | (eval $ac_try) 2>&5 | |
16748 | ac_status=$? | |
16749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16750 | (exit $ac_status); }; } && | |
16751 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16753 | (eval $ac_try) 2>&5 | |
16754 | ac_status=$? | |
16755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16756 | (exit $ac_status); }; }; then | |
16757 | ac_lo=$ac_mid; break | |
16758 | else | |
16759 | echo "$as_me: failed program was:" >&5 | |
16760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16761 | ||
16762 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16763 | if test $ac_mid -le $ac_hi; then |
16764 | ac_lo= ac_hi= | |
16765 | break | |
16766 | fi | |
16767 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16768 | fi |
ac1cb8d3 | 16769 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16770 | done |
16771 | else | |
16772 | echo "$as_me: failed program was:" >&5 | |
16773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16774 | ||
16775 | ac_lo= ac_hi= | |
16776 | fi | |
ac1cb8d3 | 16777 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16778 | fi |
ac1cb8d3 | 16779 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16780 | # Binary search between lo and hi bounds. |
16781 | while test "x$ac_lo" != "x$ac_hi"; do | |
16782 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16783 | cat >conftest.$ac_ext <<_ACEOF | |
16784 | /* confdefs.h. */ | |
16785 | _ACEOF | |
16786 | cat confdefs.h >>conftest.$ac_ext | |
16787 | cat >>conftest.$ac_ext <<_ACEOF | |
16788 | /* end confdefs.h. */ | |
16789 | $ac_includes_default | |
16790 | int | |
16791 | main () | |
16792 | { | |
16793 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
16794 | test_array [0] = 0 | |
16795 | ||
16796 | ; | |
16797 | return 0; | |
16798 | } | |
16799 | _ACEOF | |
16800 | rm -f conftest.$ac_objext | |
16801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16802 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16803 | ac_status=$? |
ac1cb8d3 VS |
16804 | grep -v '^ *+' conftest.er1 >conftest.err |
16805 | rm -f conftest.er1 | |
16806 | cat conftest.err >&5 | |
a848cd7e SC |
16807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16808 | (exit $ac_status); } && | |
ddd14b14 RR |
16809 | { ac_try='test -z "$ac_c_werror_flag" |
16810 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16812 | (eval $ac_try) 2>&5 | |
16813 | ac_status=$? | |
16814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16815 | (exit $ac_status); }; } && | |
16816 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16818 | (eval $ac_try) 2>&5 | |
16819 | ac_status=$? | |
16820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16821 | (exit $ac_status); }; }; then | |
16822 | ac_hi=$ac_mid | |
16823 | else | |
16824 | echo "$as_me: failed program was:" >&5 | |
16825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16826 | ||
16827 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16828 | fi | |
ac1cb8d3 | 16829 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16830 | done |
16831 | case $ac_lo in | |
16832 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
16833 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
16834 | See \`config.log' for more details." >&5 | |
16835 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
16836 | See \`config.log' for more details." >&2;} | |
16837 | { (exit 1); exit 1; }; } ;; | |
16838 | esac | |
16839 | else | |
16840 | if test "$cross_compiling" = yes; then | |
ddd14b14 RR |
16841 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
16842 | See \`config.log' for more details." >&5 | |
16843 | echo "$as_me: error: cannot run test program while cross compiling | |
16844 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
16845 | { (exit 1); exit 1; }; } |
16846 | else | |
16847 | cat >conftest.$ac_ext <<_ACEOF | |
16848 | /* confdefs.h. */ | |
16849 | _ACEOF | |
16850 | cat confdefs.h >>conftest.$ac_ext | |
16851 | cat >>conftest.$ac_ext <<_ACEOF | |
16852 | /* end confdefs.h. */ | |
16853 | $ac_includes_default | |
16854 | long longval () { return (long) (sizeof (void *)); } | |
16855 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
16856 | #include <stdio.h> | |
16857 | #include <stdlib.h> | |
16858 | int | |
16859 | main () | |
16860 | { | |
16861 | ||
16862 | FILE *f = fopen ("conftest.val", "w"); | |
16863 | if (! f) | |
16864 | exit (1); | |
16865 | if (((long) (sizeof (void *))) < 0) | |
16866 | { | |
16867 | long i = longval (); | |
16868 | if (i != ((long) (sizeof (void *)))) | |
16869 | exit (1); | |
16870 | fprintf (f, "%ld\n", i); | |
16871 | } | |
16872 | else | |
16873 | { | |
16874 | unsigned long i = ulongval (); | |
16875 | if (i != ((long) (sizeof (void *)))) | |
16876 | exit (1); | |
16877 | fprintf (f, "%lu\n", i); | |
16878 | } | |
16879 | exit (ferror (f) || fclose (f) != 0); | |
16880 | ||
16881 | ; | |
16882 | return 0; | |
16883 | } | |
16884 | _ACEOF | |
16885 | rm -f conftest$ac_exeext | |
16886 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16887 | (eval $ac_link) 2>&5 | |
16888 | ac_status=$? | |
16889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16890 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16892 | (eval $ac_try) 2>&5 | |
16893 | ac_status=$? | |
16894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16895 | (exit $ac_status); }; }; then | |
16896 | ac_cv_sizeof_void_p=`cat conftest.val` | |
16897 | else | |
16898 | echo "$as_me: program exited with status $ac_status" >&5 | |
16899 | echo "$as_me: failed program was:" >&5 | |
16900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16901 | ||
16902 | ( exit $ac_status ) | |
16903 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
16904 | See \`config.log' for more details." >&5 | |
16905 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
16906 | See \`config.log' for more details." >&2;} | |
16907 | { (exit 1); exit 1; }; } | |
16908 | fi | |
ac1cb8d3 | 16909 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16910 | fi |
16911 | fi | |
16912 | rm -f conftest.val | |
16913 | else | |
16914 | ac_cv_sizeof_void_p=0 | |
16915 | fi | |
16916 | fi | |
16917 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
16918 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
16919 | cat >>confdefs.h <<_ACEOF | |
16920 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
16921 | _ACEOF | |
16922 | ||
16923 | ||
16924 | echo "$as_me:$LINENO: checking for int" >&5 | |
16925 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
16926 | if test "${ac_cv_type_int+set}" = set; then | |
16927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16928 | else | |
16929 | cat >conftest.$ac_ext <<_ACEOF | |
16930 | /* confdefs.h. */ | |
16931 | _ACEOF | |
16932 | cat confdefs.h >>conftest.$ac_ext | |
16933 | cat >>conftest.$ac_ext <<_ACEOF | |
16934 | /* end confdefs.h. */ | |
16935 | $ac_includes_default | |
16936 | int | |
16937 | main () | |
16938 | { | |
16939 | if ((int *) 0) | |
16940 | return 0; | |
16941 | if (sizeof (int)) | |
16942 | return 0; | |
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); } && | |
ddd14b14 RR |
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_cv_type_int=yes | |
16970 | else | |
16971 | echo "$as_me: failed program was:" >&5 | |
16972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16973 | ||
16974 | ac_cv_type_int=no | |
16975 | fi | |
ac1cb8d3 | 16976 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16977 | fi |
16978 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
16979 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
16980 | ||
16981 | echo "$as_me:$LINENO: checking size of int" >&5 | |
16982 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
16983 | if test "${ac_cv_sizeof_int+set}" = set; then | |
16984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16985 | else | |
16986 | if test "$ac_cv_type_int" = yes; then | |
16987 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16988 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16989 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16990 | # This bug is HP SR number 8606223364. | |
16991 | if test "$cross_compiling" = yes; then | |
16992 | # Depending upon the size, compute the lo and hi bounds. | |
16993 | cat >conftest.$ac_ext <<_ACEOF | |
16994 | /* confdefs.h. */ | |
16995 | _ACEOF | |
16996 | cat confdefs.h >>conftest.$ac_ext | |
16997 | cat >>conftest.$ac_ext <<_ACEOF | |
16998 | /* end confdefs.h. */ | |
16999 | $ac_includes_default | |
17000 | int | |
17001 | main () | |
17002 | { | |
17003 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
17004 | test_array [0] = 0 | |
17005 | ||
17006 | ; | |
17007 | return 0; | |
17008 | } | |
17009 | _ACEOF | |
17010 | rm -f conftest.$ac_objext | |
17011 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17012 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17013 | ac_status=$? |
ac1cb8d3 VS |
17014 | grep -v '^ *+' conftest.er1 >conftest.err |
17015 | rm -f conftest.er1 | |
17016 | cat conftest.err >&5 | |
a848cd7e SC |
17017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17018 | (exit $ac_status); } && | |
ddd14b14 RR |
17019 | { ac_try='test -z "$ac_c_werror_flag" |
17020 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17022 | (eval $ac_try) 2>&5 | |
17023 | ac_status=$? | |
17024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17025 | (exit $ac_status); }; } && | |
17026 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17028 | (eval $ac_try) 2>&5 | |
17029 | ac_status=$? | |
17030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17031 | (exit $ac_status); }; }; then | |
17032 | ac_lo=0 ac_mid=0 | |
17033 | while :; do | |
17034 | cat >conftest.$ac_ext <<_ACEOF | |
17035 | /* confdefs.h. */ | |
17036 | _ACEOF | |
17037 | cat confdefs.h >>conftest.$ac_ext | |
17038 | cat >>conftest.$ac_ext <<_ACEOF | |
17039 | /* end confdefs.h. */ | |
17040 | $ac_includes_default | |
17041 | int | |
17042 | main () | |
17043 | { | |
17044 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
17045 | test_array [0] = 0 | |
17046 | ||
17047 | ; | |
17048 | return 0; | |
17049 | } | |
17050 | _ACEOF | |
17051 | rm -f conftest.$ac_objext | |
17052 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17053 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17054 | ac_status=$? |
ac1cb8d3 VS |
17055 | grep -v '^ *+' conftest.er1 >conftest.err |
17056 | rm -f conftest.er1 | |
17057 | cat conftest.err >&5 | |
a848cd7e SC |
17058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17059 | (exit $ac_status); } && | |
ddd14b14 RR |
17060 | { ac_try='test -z "$ac_c_werror_flag" |
17061 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
17067 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17069 | (eval $ac_try) 2>&5 | |
17070 | ac_status=$? | |
17071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17072 | (exit $ac_status); }; }; then | |
17073 | ac_hi=$ac_mid; break | |
17074 | else | |
17075 | echo "$as_me: failed program was:" >&5 | |
17076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17077 | ||
17078 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17079 | if test $ac_lo -le $ac_mid; then |
17080 | ac_lo= ac_hi= | |
17081 | break | |
17082 | fi | |
17083 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17084 | fi |
ac1cb8d3 | 17085 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17086 | done |
17087 | else | |
17088 | echo "$as_me: failed program was:" >&5 | |
17089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17090 | ||
17091 | cat >conftest.$ac_ext <<_ACEOF | |
17092 | /* confdefs.h. */ | |
17093 | _ACEOF | |
17094 | cat confdefs.h >>conftest.$ac_ext | |
17095 | cat >>conftest.$ac_ext <<_ACEOF | |
17096 | /* end confdefs.h. */ | |
17097 | $ac_includes_default | |
17098 | int | |
17099 | main () | |
17100 | { | |
17101 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
17102 | test_array [0] = 0 | |
17103 | ||
17104 | ; | |
17105 | return 0; | |
17106 | } | |
17107 | _ACEOF | |
17108 | rm -f conftest.$ac_objext | |
17109 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17110 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17111 | ac_status=$? |
ac1cb8d3 VS |
17112 | grep -v '^ *+' conftest.er1 >conftest.err |
17113 | rm -f conftest.er1 | |
17114 | cat conftest.err >&5 | |
a848cd7e SC |
17115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17116 | (exit $ac_status); } && | |
ddd14b14 RR |
17117 | { ac_try='test -z "$ac_c_werror_flag" |
17118 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17120 | (eval $ac_try) 2>&5 | |
17121 | ac_status=$? | |
17122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17123 | (exit $ac_status); }; } && | |
17124 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17126 | (eval $ac_try) 2>&5 | |
17127 | ac_status=$? | |
17128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17129 | (exit $ac_status); }; }; then | |
17130 | ac_hi=-1 ac_mid=-1 | |
17131 | while :; do | |
17132 | cat >conftest.$ac_ext <<_ACEOF | |
17133 | /* confdefs.h. */ | |
17134 | _ACEOF | |
17135 | cat confdefs.h >>conftest.$ac_ext | |
17136 | cat >>conftest.$ac_ext <<_ACEOF | |
17137 | /* end confdefs.h. */ | |
17138 | $ac_includes_default | |
17139 | int | |
17140 | main () | |
17141 | { | |
17142 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
17143 | test_array [0] = 0 | |
17144 | ||
17145 | ; | |
17146 | return 0; | |
17147 | } | |
17148 | _ACEOF | |
17149 | rm -f conftest.$ac_objext | |
17150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17151 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17152 | ac_status=$? |
ac1cb8d3 VS |
17153 | grep -v '^ *+' conftest.er1 >conftest.err |
17154 | rm -f conftest.er1 | |
17155 | cat conftest.err >&5 | |
a848cd7e SC |
17156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17157 | (exit $ac_status); } && | |
ddd14b14 RR |
17158 | { ac_try='test -z "$ac_c_werror_flag" |
17159 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17161 | (eval $ac_try) 2>&5 | |
17162 | ac_status=$? | |
17163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17164 | (exit $ac_status); }; } && | |
17165 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17167 | (eval $ac_try) 2>&5 | |
17168 | ac_status=$? | |
17169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17170 | (exit $ac_status); }; }; then | |
17171 | ac_lo=$ac_mid; break | |
17172 | else | |
17173 | echo "$as_me: failed program was:" >&5 | |
17174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17175 | ||
17176 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17177 | if test $ac_mid -le $ac_hi; then |
17178 | ac_lo= ac_hi= | |
17179 | break | |
17180 | fi | |
17181 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17182 | fi |
ac1cb8d3 | 17183 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17184 | done |
17185 | else | |
17186 | echo "$as_me: failed program was:" >&5 | |
17187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17188 | ||
17189 | ac_lo= ac_hi= | |
17190 | fi | |
ac1cb8d3 | 17191 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17192 | fi |
ac1cb8d3 | 17193 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17194 | # Binary search between lo and hi bounds. |
17195 | while test "x$ac_lo" != "x$ac_hi"; do | |
17196 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17197 | cat >conftest.$ac_ext <<_ACEOF | |
17198 | /* confdefs.h. */ | |
17199 | _ACEOF | |
17200 | cat confdefs.h >>conftest.$ac_ext | |
17201 | cat >>conftest.$ac_ext <<_ACEOF | |
17202 | /* end confdefs.h. */ | |
17203 | $ac_includes_default | |
17204 | int | |
17205 | main () | |
17206 | { | |
17207 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
17208 | test_array [0] = 0 | |
17209 | ||
17210 | ; | |
17211 | return 0; | |
17212 | } | |
17213 | _ACEOF | |
17214 | rm -f conftest.$ac_objext | |
17215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17216 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17217 | ac_status=$? |
ac1cb8d3 VS |
17218 | grep -v '^ *+' conftest.er1 >conftest.err |
17219 | rm -f conftest.er1 | |
17220 | cat conftest.err >&5 | |
a848cd7e SC |
17221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17222 | (exit $ac_status); } && | |
ddd14b14 RR |
17223 | { ac_try='test -z "$ac_c_werror_flag" |
17224 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17226 | (eval $ac_try) 2>&5 | |
17227 | ac_status=$? | |
17228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17229 | (exit $ac_status); }; } && | |
17230 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17232 | (eval $ac_try) 2>&5 | |
17233 | ac_status=$? | |
17234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17235 | (exit $ac_status); }; }; then | |
17236 | ac_hi=$ac_mid | |
17237 | else | |
17238 | echo "$as_me: failed program was:" >&5 | |
17239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17240 | ||
17241 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17242 | fi | |
ac1cb8d3 | 17243 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17244 | done |
17245 | case $ac_lo in | |
17246 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
17247 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
17248 | See \`config.log' for more details." >&5 | |
17249 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
17250 | See \`config.log' for more details." >&2;} | |
17251 | { (exit 1); exit 1; }; } ;; | |
17252 | esac | |
17253 | else | |
17254 | if test "$cross_compiling" = yes; then | |
ddd14b14 RR |
17255 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17256 | See \`config.log' for more details." >&5 | |
17257 | echo "$as_me: error: cannot run test program while cross compiling | |
17258 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17259 | { (exit 1); exit 1; }; } |
17260 | else | |
17261 | cat >conftest.$ac_ext <<_ACEOF | |
17262 | /* confdefs.h. */ | |
17263 | _ACEOF | |
17264 | cat confdefs.h >>conftest.$ac_ext | |
17265 | cat >>conftest.$ac_ext <<_ACEOF | |
17266 | /* end confdefs.h. */ | |
17267 | $ac_includes_default | |
17268 | long longval () { return (long) (sizeof (int)); } | |
17269 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
17270 | #include <stdio.h> | |
17271 | #include <stdlib.h> | |
17272 | int | |
17273 | main () | |
17274 | { | |
17275 | ||
17276 | FILE *f = fopen ("conftest.val", "w"); | |
17277 | if (! f) | |
17278 | exit (1); | |
17279 | if (((long) (sizeof (int))) < 0) | |
17280 | { | |
17281 | long i = longval (); | |
17282 | if (i != ((long) (sizeof (int)))) | |
17283 | exit (1); | |
17284 | fprintf (f, "%ld\n", i); | |
17285 | } | |
17286 | else | |
17287 | { | |
17288 | unsigned long i = ulongval (); | |
17289 | if (i != ((long) (sizeof (int)))) | |
17290 | exit (1); | |
17291 | fprintf (f, "%lu\n", i); | |
17292 | } | |
17293 | exit (ferror (f) || fclose (f) != 0); | |
17294 | ||
17295 | ; | |
17296 | return 0; | |
17297 | } | |
17298 | _ACEOF | |
17299 | rm -f conftest$ac_exeext | |
17300 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17301 | (eval $ac_link) 2>&5 | |
17302 | ac_status=$? | |
17303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17304 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17306 | (eval $ac_try) 2>&5 | |
17307 | ac_status=$? | |
17308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17309 | (exit $ac_status); }; }; then | |
17310 | ac_cv_sizeof_int=`cat conftest.val` | |
17311 | else | |
17312 | echo "$as_me: program exited with status $ac_status" >&5 | |
17313 | echo "$as_me: failed program was:" >&5 | |
17314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17315 | ||
17316 | ( exit $ac_status ) | |
17317 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
17318 | See \`config.log' for more details." >&5 | |
17319 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
17320 | See \`config.log' for more details." >&2;} | |
17321 | { (exit 1); exit 1; }; } | |
17322 | fi | |
ac1cb8d3 | 17323 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17324 | fi |
17325 | fi | |
17326 | rm -f conftest.val | |
17327 | else | |
17328 | ac_cv_sizeof_int=0 | |
17329 | fi | |
17330 | fi | |
17331 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
17332 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
17333 | cat >>confdefs.h <<_ACEOF | |
17334 | #define SIZEOF_INT $ac_cv_sizeof_int | |
17335 | _ACEOF | |
17336 | ||
17337 | ||
17338 | echo "$as_me:$LINENO: checking for long" >&5 | |
17339 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
17340 | if test "${ac_cv_type_long+set}" = set; then | |
17341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17342 | else | |
17343 | cat >conftest.$ac_ext <<_ACEOF | |
17344 | /* confdefs.h. */ | |
17345 | _ACEOF | |
17346 | cat confdefs.h >>conftest.$ac_ext | |
17347 | cat >>conftest.$ac_ext <<_ACEOF | |
17348 | /* end confdefs.h. */ | |
17349 | $ac_includes_default | |
17350 | int | |
17351 | main () | |
17352 | { | |
17353 | if ((long *) 0) | |
17354 | return 0; | |
17355 | if (sizeof (long)) | |
17356 | return 0; | |
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); } && | |
ddd14b14 RR |
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_cv_type_long=yes | |
17384 | else | |
17385 | echo "$as_me: failed program was:" >&5 | |
17386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17387 | ||
17388 | ac_cv_type_long=no | |
17389 | fi | |
ac1cb8d3 | 17390 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17391 | fi |
17392 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
17393 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
17394 | ||
17395 | echo "$as_me:$LINENO: checking size of long" >&5 | |
17396 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
17397 | if test "${ac_cv_sizeof_long+set}" = set; then | |
17398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17399 | else | |
17400 | if test "$ac_cv_type_long" = yes; then | |
17401 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17402 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17403 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17404 | # This bug is HP SR number 8606223364. | |
17405 | if test "$cross_compiling" = yes; then | |
17406 | # Depending upon the size, compute the lo and hi bounds. | |
17407 | cat >conftest.$ac_ext <<_ACEOF | |
17408 | /* confdefs.h. */ | |
17409 | _ACEOF | |
17410 | cat confdefs.h >>conftest.$ac_ext | |
17411 | cat >>conftest.$ac_ext <<_ACEOF | |
17412 | /* end confdefs.h. */ | |
17413 | $ac_includes_default | |
17414 | int | |
17415 | main () | |
17416 | { | |
17417 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
17418 | test_array [0] = 0 | |
17419 | ||
17420 | ; | |
17421 | return 0; | |
17422 | } | |
17423 | _ACEOF | |
17424 | rm -f conftest.$ac_objext | |
17425 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17426 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17427 | ac_status=$? |
ac1cb8d3 VS |
17428 | grep -v '^ *+' conftest.er1 >conftest.err |
17429 | rm -f conftest.er1 | |
17430 | cat conftest.err >&5 | |
a848cd7e SC |
17431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17432 | (exit $ac_status); } && | |
ddd14b14 RR |
17433 | { ac_try='test -z "$ac_c_werror_flag" |
17434 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17436 | (eval $ac_try) 2>&5 | |
17437 | ac_status=$? | |
17438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17439 | (exit $ac_status); }; } && | |
17440 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17442 | (eval $ac_try) 2>&5 | |
17443 | ac_status=$? | |
17444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17445 | (exit $ac_status); }; }; then | |
17446 | ac_lo=0 ac_mid=0 | |
17447 | while :; do | |
17448 | cat >conftest.$ac_ext <<_ACEOF | |
17449 | /* confdefs.h. */ | |
17450 | _ACEOF | |
17451 | cat confdefs.h >>conftest.$ac_ext | |
17452 | cat >>conftest.$ac_ext <<_ACEOF | |
17453 | /* end confdefs.h. */ | |
17454 | $ac_includes_default | |
17455 | int | |
17456 | main () | |
17457 | { | |
17458 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
17459 | test_array [0] = 0 | |
17460 | ||
17461 | ; | |
17462 | return 0; | |
17463 | } | |
17464 | _ACEOF | |
17465 | rm -f conftest.$ac_objext | |
17466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17467 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17468 | ac_status=$? |
ac1cb8d3 VS |
17469 | grep -v '^ *+' conftest.er1 >conftest.err |
17470 | rm -f conftest.er1 | |
17471 | cat conftest.err >&5 | |
a848cd7e SC |
17472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17473 | (exit $ac_status); } && | |
ddd14b14 RR |
17474 | { ac_try='test -z "$ac_c_werror_flag" |
17475 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
17481 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17483 | (eval $ac_try) 2>&5 | |
17484 | ac_status=$? | |
17485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17486 | (exit $ac_status); }; }; then | |
17487 | ac_hi=$ac_mid; break | |
17488 | else | |
17489 | echo "$as_me: failed program was:" >&5 | |
17490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17491 | ||
17492 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17493 | if test $ac_lo -le $ac_mid; then |
17494 | ac_lo= ac_hi= | |
17495 | break | |
17496 | fi | |
17497 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17498 | fi |
ac1cb8d3 | 17499 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17500 | done |
17501 | else | |
17502 | echo "$as_me: failed program was:" >&5 | |
17503 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17504 | ||
17505 | cat >conftest.$ac_ext <<_ACEOF | |
17506 | /* confdefs.h. */ | |
17507 | _ACEOF | |
17508 | cat confdefs.h >>conftest.$ac_ext | |
17509 | cat >>conftest.$ac_ext <<_ACEOF | |
17510 | /* end confdefs.h. */ | |
17511 | $ac_includes_default | |
17512 | int | |
17513 | main () | |
17514 | { | |
17515 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
17516 | test_array [0] = 0 | |
17517 | ||
17518 | ; | |
17519 | return 0; | |
17520 | } | |
17521 | _ACEOF | |
17522 | rm -f conftest.$ac_objext | |
17523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17524 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17525 | ac_status=$? |
ac1cb8d3 VS |
17526 | grep -v '^ *+' conftest.er1 >conftest.err |
17527 | rm -f conftest.er1 | |
17528 | cat conftest.err >&5 | |
a848cd7e SC |
17529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17530 | (exit $ac_status); } && | |
ddd14b14 RR |
17531 | { ac_try='test -z "$ac_c_werror_flag" |
17532 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17534 | (eval $ac_try) 2>&5 | |
17535 | ac_status=$? | |
17536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17537 | (exit $ac_status); }; } && | |
17538 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17540 | (eval $ac_try) 2>&5 | |
17541 | ac_status=$? | |
17542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17543 | (exit $ac_status); }; }; then | |
17544 | ac_hi=-1 ac_mid=-1 | |
17545 | while :; do | |
17546 | cat >conftest.$ac_ext <<_ACEOF | |
17547 | /* confdefs.h. */ | |
17548 | _ACEOF | |
17549 | cat confdefs.h >>conftest.$ac_ext | |
17550 | cat >>conftest.$ac_ext <<_ACEOF | |
17551 | /* end confdefs.h. */ | |
17552 | $ac_includes_default | |
17553 | int | |
17554 | main () | |
17555 | { | |
17556 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
17557 | test_array [0] = 0 | |
17558 | ||
17559 | ; | |
17560 | return 0; | |
17561 | } | |
17562 | _ACEOF | |
17563 | rm -f conftest.$ac_objext | |
17564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17565 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17566 | ac_status=$? |
ac1cb8d3 VS |
17567 | grep -v '^ *+' conftest.er1 >conftest.err |
17568 | rm -f conftest.er1 | |
17569 | cat conftest.err >&5 | |
a848cd7e SC |
17570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17571 | (exit $ac_status); } && | |
ddd14b14 RR |
17572 | { ac_try='test -z "$ac_c_werror_flag" |
17573 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17575 | (eval $ac_try) 2>&5 | |
17576 | ac_status=$? | |
17577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17578 | (exit $ac_status); }; } && | |
17579 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17581 | (eval $ac_try) 2>&5 | |
17582 | ac_status=$? | |
17583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17584 | (exit $ac_status); }; }; then | |
17585 | ac_lo=$ac_mid; break | |
17586 | else | |
17587 | echo "$as_me: failed program was:" >&5 | |
17588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17589 | ||
17590 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17591 | if test $ac_mid -le $ac_hi; then |
17592 | ac_lo= ac_hi= | |
17593 | break | |
17594 | fi | |
17595 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17596 | fi |
ac1cb8d3 | 17597 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17598 | done |
17599 | else | |
17600 | echo "$as_me: failed program was:" >&5 | |
17601 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17602 | ||
17603 | ac_lo= ac_hi= | |
17604 | fi | |
ac1cb8d3 | 17605 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17606 | fi |
ac1cb8d3 | 17607 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17608 | # Binary search between lo and hi bounds. |
17609 | while test "x$ac_lo" != "x$ac_hi"; do | |
17610 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17611 | cat >conftest.$ac_ext <<_ACEOF | |
17612 | /* confdefs.h. */ | |
17613 | _ACEOF | |
17614 | cat confdefs.h >>conftest.$ac_ext | |
17615 | cat >>conftest.$ac_ext <<_ACEOF | |
17616 | /* end confdefs.h. */ | |
17617 | $ac_includes_default | |
17618 | int | |
17619 | main () | |
17620 | { | |
17621 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
17622 | test_array [0] = 0 | |
17623 | ||
17624 | ; | |
17625 | return 0; | |
17626 | } | |
17627 | _ACEOF | |
17628 | rm -f conftest.$ac_objext | |
17629 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17630 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17631 | ac_status=$? |
ac1cb8d3 VS |
17632 | grep -v '^ *+' conftest.er1 >conftest.err |
17633 | rm -f conftest.er1 | |
17634 | cat conftest.err >&5 | |
a848cd7e SC |
17635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17636 | (exit $ac_status); } && | |
ddd14b14 RR |
17637 | { ac_try='test -z "$ac_c_werror_flag" |
17638 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17640 | (eval $ac_try) 2>&5 | |
17641 | ac_status=$? | |
17642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17643 | (exit $ac_status); }; } && | |
17644 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17646 | (eval $ac_try) 2>&5 | |
17647 | ac_status=$? | |
17648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17649 | (exit $ac_status); }; }; then | |
17650 | ac_hi=$ac_mid | |
17651 | else | |
17652 | echo "$as_me: failed program was:" >&5 | |
17653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17654 | ||
17655 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17656 | fi | |
ac1cb8d3 | 17657 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17658 | done |
17659 | case $ac_lo in | |
17660 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
17661 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
17662 | See \`config.log' for more details." >&5 | |
17663 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
17664 | See \`config.log' for more details." >&2;} | |
17665 | { (exit 1); exit 1; }; } ;; | |
17666 | esac | |
17667 | else | |
17668 | if test "$cross_compiling" = yes; then | |
ddd14b14 RR |
17669 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17670 | See \`config.log' for more details." >&5 | |
17671 | echo "$as_me: error: cannot run test program while cross compiling | |
17672 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17673 | { (exit 1); exit 1; }; } |
17674 | else | |
17675 | cat >conftest.$ac_ext <<_ACEOF | |
17676 | /* confdefs.h. */ | |
17677 | _ACEOF | |
17678 | cat confdefs.h >>conftest.$ac_ext | |
17679 | cat >>conftest.$ac_ext <<_ACEOF | |
17680 | /* end confdefs.h. */ | |
17681 | $ac_includes_default | |
17682 | long longval () { return (long) (sizeof (long)); } | |
17683 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
17684 | #include <stdio.h> | |
17685 | #include <stdlib.h> | |
17686 | int | |
17687 | main () | |
17688 | { | |
17689 | ||
17690 | FILE *f = fopen ("conftest.val", "w"); | |
17691 | if (! f) | |
17692 | exit (1); | |
17693 | if (((long) (sizeof (long))) < 0) | |
17694 | { | |
17695 | long i = longval (); | |
17696 | if (i != ((long) (sizeof (long)))) | |
17697 | exit (1); | |
17698 | fprintf (f, "%ld\n", i); | |
17699 | } | |
17700 | else | |
17701 | { | |
17702 | unsigned long i = ulongval (); | |
17703 | if (i != ((long) (sizeof (long)))) | |
17704 | exit (1); | |
17705 | fprintf (f, "%lu\n", i); | |
17706 | } | |
17707 | exit (ferror (f) || fclose (f) != 0); | |
17708 | ||
17709 | ; | |
17710 | return 0; | |
17711 | } | |
17712 | _ACEOF | |
17713 | rm -f conftest$ac_exeext | |
17714 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17715 | (eval $ac_link) 2>&5 | |
17716 | ac_status=$? | |
17717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17718 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17720 | (eval $ac_try) 2>&5 | |
17721 | ac_status=$? | |
17722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17723 | (exit $ac_status); }; }; then | |
17724 | ac_cv_sizeof_long=`cat conftest.val` | |
17725 | else | |
17726 | echo "$as_me: program exited with status $ac_status" >&5 | |
17727 | echo "$as_me: failed program was:" >&5 | |
17728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17729 | ||
17730 | ( exit $ac_status ) | |
17731 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
17732 | See \`config.log' for more details." >&5 | |
17733 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
17734 | See \`config.log' for more details." >&2;} | |
17735 | { (exit 1); exit 1; }; } | |
17736 | fi | |
ac1cb8d3 | 17737 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17738 | fi |
17739 | fi | |
17740 | rm -f conftest.val | |
17741 | else | |
17742 | ac_cv_sizeof_long=0 | |
17743 | fi | |
17744 | fi | |
17745 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
17746 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
17747 | cat >>confdefs.h <<_ACEOF | |
17748 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
17749 | _ACEOF | |
17750 | ||
17751 | ||
17752 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
17753 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
17754 | if test "${ac_cv_type_size_t+set}" = set; then | |
17755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17756 | else | |
17757 | cat >conftest.$ac_ext <<_ACEOF | |
17758 | /* confdefs.h. */ | |
17759 | _ACEOF | |
17760 | cat confdefs.h >>conftest.$ac_ext | |
17761 | cat >>conftest.$ac_ext <<_ACEOF | |
17762 | /* end confdefs.h. */ | |
17763 | $ac_includes_default | |
17764 | int | |
17765 | main () | |
17766 | { | |
17767 | if ((size_t *) 0) | |
17768 | return 0; | |
17769 | if (sizeof (size_t)) | |
17770 | return 0; | |
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); } && | |
ddd14b14 RR |
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_cv_type_size_t=yes | |
17798 | else | |
17799 | echo "$as_me: failed program was:" >&5 | |
17800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17801 | ||
17802 | ac_cv_type_size_t=no | |
17803 | fi | |
ac1cb8d3 | 17804 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17805 | fi |
17806 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
17807 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
17808 | ||
17809 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
17810 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
17811 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
17812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17813 | else | |
17814 | if test "$ac_cv_type_size_t" = yes; then | |
17815 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17816 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17817 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17818 | # This bug is HP SR number 8606223364. | |
17819 | if test "$cross_compiling" = yes; then | |
17820 | # Depending upon the size, compute the lo and hi bounds. | |
17821 | cat >conftest.$ac_ext <<_ACEOF | |
17822 | /* confdefs.h. */ | |
17823 | _ACEOF | |
17824 | cat confdefs.h >>conftest.$ac_ext | |
17825 | cat >>conftest.$ac_ext <<_ACEOF | |
17826 | /* end confdefs.h. */ | |
17827 | $ac_includes_default | |
17828 | int | |
17829 | main () | |
17830 | { | |
17831 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
17832 | test_array [0] = 0 | |
17833 | ||
17834 | ; | |
17835 | return 0; | |
17836 | } | |
17837 | _ACEOF | |
17838 | rm -f conftest.$ac_objext | |
17839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17840 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17841 | ac_status=$? |
ac1cb8d3 VS |
17842 | grep -v '^ *+' conftest.er1 >conftest.err |
17843 | rm -f conftest.er1 | |
17844 | cat conftest.err >&5 | |
a848cd7e SC |
17845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17846 | (exit $ac_status); } && | |
ddd14b14 RR |
17847 | { ac_try='test -z "$ac_c_werror_flag" |
17848 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17850 | (eval $ac_try) 2>&5 | |
17851 | ac_status=$? | |
17852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17853 | (exit $ac_status); }; } && | |
17854 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17856 | (eval $ac_try) 2>&5 | |
17857 | ac_status=$? | |
17858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17859 | (exit $ac_status); }; }; then | |
17860 | ac_lo=0 ac_mid=0 | |
17861 | while :; do | |
17862 | cat >conftest.$ac_ext <<_ACEOF | |
17863 | /* confdefs.h. */ | |
17864 | _ACEOF | |
17865 | cat confdefs.h >>conftest.$ac_ext | |
17866 | cat >>conftest.$ac_ext <<_ACEOF | |
17867 | /* end confdefs.h. */ | |
17868 | $ac_includes_default | |
17869 | int | |
17870 | main () | |
17871 | { | |
17872 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
17873 | test_array [0] = 0 | |
17874 | ||
17875 | ; | |
17876 | return 0; | |
17877 | } | |
17878 | _ACEOF | |
17879 | rm -f conftest.$ac_objext | |
17880 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17881 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17882 | ac_status=$? |
ac1cb8d3 VS |
17883 | grep -v '^ *+' conftest.er1 >conftest.err |
17884 | rm -f conftest.er1 | |
17885 | cat conftest.err >&5 | |
a848cd7e SC |
17886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17887 | (exit $ac_status); } && | |
ddd14b14 RR |
17888 | { ac_try='test -z "$ac_c_werror_flag" |
17889 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
17895 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17897 | (eval $ac_try) 2>&5 | |
17898 | ac_status=$? | |
17899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17900 | (exit $ac_status); }; }; then | |
17901 | ac_hi=$ac_mid; break | |
17902 | else | |
17903 | echo "$as_me: failed program was:" >&5 | |
17904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17905 | ||
17906 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17907 | if test $ac_lo -le $ac_mid; then |
17908 | ac_lo= ac_hi= | |
17909 | break | |
17910 | fi | |
17911 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17912 | fi |
ac1cb8d3 | 17913 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17914 | done |
17915 | else | |
17916 | echo "$as_me: failed program was:" >&5 | |
17917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17918 | ||
17919 | cat >conftest.$ac_ext <<_ACEOF | |
17920 | /* confdefs.h. */ | |
17921 | _ACEOF | |
17922 | cat confdefs.h >>conftest.$ac_ext | |
17923 | cat >>conftest.$ac_ext <<_ACEOF | |
17924 | /* end confdefs.h. */ | |
17925 | $ac_includes_default | |
17926 | int | |
17927 | main () | |
17928 | { | |
17929 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
17930 | test_array [0] = 0 | |
17931 | ||
17932 | ; | |
17933 | return 0; | |
17934 | } | |
17935 | _ACEOF | |
17936 | rm -f conftest.$ac_objext | |
17937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17938 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17939 | ac_status=$? |
ac1cb8d3 VS |
17940 | grep -v '^ *+' conftest.er1 >conftest.err |
17941 | rm -f conftest.er1 | |
17942 | cat conftest.err >&5 | |
a848cd7e SC |
17943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17944 | (exit $ac_status); } && | |
ddd14b14 RR |
17945 | { ac_try='test -z "$ac_c_werror_flag" |
17946 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17948 | (eval $ac_try) 2>&5 | |
17949 | ac_status=$? | |
17950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17951 | (exit $ac_status); }; } && | |
17952 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17954 | (eval $ac_try) 2>&5 | |
17955 | ac_status=$? | |
17956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17957 | (exit $ac_status); }; }; then | |
17958 | ac_hi=-1 ac_mid=-1 | |
17959 | while :; do | |
17960 | cat >conftest.$ac_ext <<_ACEOF | |
17961 | /* confdefs.h. */ | |
17962 | _ACEOF | |
17963 | cat confdefs.h >>conftest.$ac_ext | |
17964 | cat >>conftest.$ac_ext <<_ACEOF | |
17965 | /* end confdefs.h. */ | |
17966 | $ac_includes_default | |
17967 | int | |
17968 | main () | |
17969 | { | |
17970 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
17971 | test_array [0] = 0 | |
17972 | ||
17973 | ; | |
17974 | return 0; | |
17975 | } | |
17976 | _ACEOF | |
17977 | rm -f conftest.$ac_objext | |
17978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17979 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17980 | ac_status=$? |
ac1cb8d3 VS |
17981 | grep -v '^ *+' conftest.er1 >conftest.err |
17982 | rm -f conftest.er1 | |
17983 | cat conftest.err >&5 | |
a848cd7e SC |
17984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17985 | (exit $ac_status); } && | |
ddd14b14 RR |
17986 | { ac_try='test -z "$ac_c_werror_flag" |
17987 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17989 | (eval $ac_try) 2>&5 | |
17990 | ac_status=$? | |
17991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17992 | (exit $ac_status); }; } && | |
17993 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17995 | (eval $ac_try) 2>&5 | |
17996 | ac_status=$? | |
17997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17998 | (exit $ac_status); }; }; then | |
17999 | ac_lo=$ac_mid; break | |
18000 | else | |
18001 | echo "$as_me: failed program was:" >&5 | |
18002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18003 | ||
18004 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18005 | if test $ac_mid -le $ac_hi; then |
18006 | ac_lo= ac_hi= | |
18007 | break | |
18008 | fi | |
18009 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18010 | fi |
ac1cb8d3 | 18011 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18012 | done |
18013 | else | |
18014 | echo "$as_me: failed program was:" >&5 | |
18015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18016 | ||
18017 | ac_lo= ac_hi= | |
18018 | fi | |
ac1cb8d3 | 18019 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18020 | fi |
ac1cb8d3 | 18021 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18022 | # Binary search between lo and hi bounds. |
18023 | while test "x$ac_lo" != "x$ac_hi"; do | |
18024 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18025 | cat >conftest.$ac_ext <<_ACEOF | |
18026 | /* confdefs.h. */ | |
18027 | _ACEOF | |
18028 | cat confdefs.h >>conftest.$ac_ext | |
18029 | cat >>conftest.$ac_ext <<_ACEOF | |
18030 | /* end confdefs.h. */ | |
18031 | $ac_includes_default | |
18032 | int | |
18033 | main () | |
18034 | { | |
18035 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
18036 | test_array [0] = 0 | |
18037 | ||
18038 | ; | |
18039 | return 0; | |
18040 | } | |
18041 | _ACEOF | |
18042 | rm -f conftest.$ac_objext | |
18043 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18044 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18045 | ac_status=$? |
ac1cb8d3 VS |
18046 | grep -v '^ *+' conftest.er1 >conftest.err |
18047 | rm -f conftest.er1 | |
18048 | cat conftest.err >&5 | |
a848cd7e SC |
18049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18050 | (exit $ac_status); } && | |
ddd14b14 RR |
18051 | { ac_try='test -z "$ac_c_werror_flag" |
18052 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18054 | (eval $ac_try) 2>&5 | |
18055 | ac_status=$? | |
18056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18057 | (exit $ac_status); }; } && | |
18058 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18060 | (eval $ac_try) 2>&5 | |
18061 | ac_status=$? | |
18062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18063 | (exit $ac_status); }; }; then | |
18064 | ac_hi=$ac_mid | |
18065 | else | |
18066 | echo "$as_me: failed program was:" >&5 | |
18067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18068 | ||
18069 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18070 | fi | |
ac1cb8d3 | 18071 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18072 | done |
18073 | case $ac_lo in | |
18074 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
18075 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
18076 | See \`config.log' for more details." >&5 | |
18077 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
18078 | See \`config.log' for more details." >&2;} | |
18079 | { (exit 1); exit 1; }; } ;; | |
18080 | esac | |
18081 | else | |
18082 | if test "$cross_compiling" = yes; then | |
ddd14b14 RR |
18083 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18084 | See \`config.log' for more details." >&5 | |
18085 | echo "$as_me: error: cannot run test program while cross compiling | |
18086 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18087 | { (exit 1); exit 1; }; } |
18088 | else | |
18089 | cat >conftest.$ac_ext <<_ACEOF | |
18090 | /* confdefs.h. */ | |
18091 | _ACEOF | |
18092 | cat confdefs.h >>conftest.$ac_ext | |
18093 | cat >>conftest.$ac_ext <<_ACEOF | |
18094 | /* end confdefs.h. */ | |
18095 | $ac_includes_default | |
18096 | long longval () { return (long) (sizeof (size_t)); } | |
18097 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
18098 | #include <stdio.h> | |
18099 | #include <stdlib.h> | |
18100 | int | |
18101 | main () | |
18102 | { | |
18103 | ||
18104 | FILE *f = fopen ("conftest.val", "w"); | |
18105 | if (! f) | |
18106 | exit (1); | |
18107 | if (((long) (sizeof (size_t))) < 0) | |
18108 | { | |
18109 | long i = longval (); | |
18110 | if (i != ((long) (sizeof (size_t)))) | |
18111 | exit (1); | |
18112 | fprintf (f, "%ld\n", i); | |
18113 | } | |
18114 | else | |
18115 | { | |
18116 | unsigned long i = ulongval (); | |
18117 | if (i != ((long) (sizeof (size_t)))) | |
18118 | exit (1); | |
18119 | fprintf (f, "%lu\n", i); | |
18120 | } | |
18121 | exit (ferror (f) || fclose (f) != 0); | |
18122 | ||
18123 | ; | |
18124 | return 0; | |
18125 | } | |
18126 | _ACEOF | |
18127 | rm -f conftest$ac_exeext | |
18128 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18129 | (eval $ac_link) 2>&5 | |
18130 | ac_status=$? | |
18131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18132 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18134 | (eval $ac_try) 2>&5 | |
18135 | ac_status=$? | |
18136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18137 | (exit $ac_status); }; }; then | |
18138 | ac_cv_sizeof_size_t=`cat conftest.val` | |
18139 | else | |
18140 | echo "$as_me: program exited with status $ac_status" >&5 | |
18141 | echo "$as_me: failed program was:" >&5 | |
18142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18143 | ||
18144 | ( exit $ac_status ) | |
18145 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
18146 | See \`config.log' for more details." >&5 | |
18147 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
18148 | See \`config.log' for more details." >&2;} | |
18149 | { (exit 1); exit 1; }; } | |
18150 | fi | |
ac1cb8d3 | 18151 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18152 | fi |
18153 | fi | |
18154 | rm -f conftest.val | |
18155 | else | |
18156 | ac_cv_sizeof_size_t=0 | |
18157 | fi | |
18158 | fi | |
18159 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
18160 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
18161 | cat >>confdefs.h <<_ACEOF | |
18162 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
18163 | _ACEOF | |
18164 | ||
18165 | ||
18166 | ||
18167 | case "${host}" in | |
18168 | arm-*-linux* ) | |
18169 | echo "$as_me:$LINENO: checking for long long" >&5 | |
18170 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
18171 | if test "${ac_cv_type_long_long+set}" = set; then | |
18172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18173 | else | |
18174 | cat >conftest.$ac_ext <<_ACEOF | |
18175 | /* confdefs.h. */ | |
18176 | _ACEOF | |
18177 | cat confdefs.h >>conftest.$ac_ext | |
18178 | cat >>conftest.$ac_ext <<_ACEOF | |
18179 | /* end confdefs.h. */ | |
18180 | $ac_includes_default | |
18181 | int | |
18182 | main () | |
18183 | { | |
18184 | if ((long long *) 0) | |
18185 | return 0; | |
18186 | if (sizeof (long long)) | |
18187 | return 0; | |
18188 | ; | |
18189 | return 0; | |
18190 | } | |
18191 | _ACEOF | |
18192 | rm -f conftest.$ac_objext | |
18193 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18194 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18195 | ac_status=$? |
ac1cb8d3 VS |
18196 | grep -v '^ *+' conftest.er1 >conftest.err |
18197 | rm -f conftest.er1 | |
18198 | cat conftest.err >&5 | |
a848cd7e SC |
18199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18200 | (exit $ac_status); } && | |
ddd14b14 RR |
18201 | { ac_try='test -z "$ac_c_werror_flag" |
18202 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18204 | (eval $ac_try) 2>&5 | |
18205 | ac_status=$? | |
18206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18207 | (exit $ac_status); }; } && | |
18208 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18210 | (eval $ac_try) 2>&5 | |
18211 | ac_status=$? | |
18212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18213 | (exit $ac_status); }; }; then | |
18214 | ac_cv_type_long_long=yes | |
18215 | else | |
18216 | echo "$as_me: failed program was:" >&5 | |
18217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18218 | ||
18219 | ac_cv_type_long_long=no | |
18220 | fi | |
ac1cb8d3 | 18221 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18222 | fi |
18223 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
18224 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
18225 | ||
18226 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
18227 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
18228 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
18229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18230 | else | |
18231 | if test "$ac_cv_type_long_long" = yes; then | |
18232 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18233 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18234 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18235 | # This bug is HP SR number 8606223364. | |
18236 | if test "$cross_compiling" = yes; then | |
18237 | # Depending upon the size, compute the lo and hi bounds. | |
18238 | cat >conftest.$ac_ext <<_ACEOF | |
18239 | /* confdefs.h. */ | |
18240 | _ACEOF | |
18241 | cat confdefs.h >>conftest.$ac_ext | |
18242 | cat >>conftest.$ac_ext <<_ACEOF | |
18243 | /* end confdefs.h. */ | |
18244 | $ac_includes_default | |
18245 | int | |
18246 | main () | |
18247 | { | |
18248 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
18249 | test_array [0] = 0 | |
18250 | ||
18251 | ; | |
18252 | return 0; | |
18253 | } | |
18254 | _ACEOF | |
18255 | rm -f conftest.$ac_objext | |
18256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18257 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18258 | ac_status=$? |
ac1cb8d3 VS |
18259 | grep -v '^ *+' conftest.er1 >conftest.err |
18260 | rm -f conftest.er1 | |
18261 | cat conftest.err >&5 | |
a848cd7e SC |
18262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18263 | (exit $ac_status); } && | |
ddd14b14 RR |
18264 | { ac_try='test -z "$ac_c_werror_flag" |
18265 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18267 | (eval $ac_try) 2>&5 | |
18268 | ac_status=$? | |
18269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18270 | (exit $ac_status); }; } && | |
18271 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18273 | (eval $ac_try) 2>&5 | |
18274 | ac_status=$? | |
18275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18276 | (exit $ac_status); }; }; then | |
18277 | ac_lo=0 ac_mid=0 | |
18278 | while :; do | |
18279 | cat >conftest.$ac_ext <<_ACEOF | |
18280 | /* confdefs.h. */ | |
18281 | _ACEOF | |
18282 | cat confdefs.h >>conftest.$ac_ext | |
18283 | cat >>conftest.$ac_ext <<_ACEOF | |
18284 | /* end confdefs.h. */ | |
18285 | $ac_includes_default | |
18286 | int | |
18287 | main () | |
18288 | { | |
18289 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18290 | test_array [0] = 0 | |
18291 | ||
18292 | ; | |
18293 | return 0; | |
18294 | } | |
18295 | _ACEOF | |
18296 | rm -f conftest.$ac_objext | |
18297 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18298 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18299 | ac_status=$? |
ac1cb8d3 VS |
18300 | grep -v '^ *+' conftest.er1 >conftest.err |
18301 | rm -f conftest.er1 | |
18302 | cat conftest.err >&5 | |
a848cd7e SC |
18303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18304 | (exit $ac_status); } && | |
ddd14b14 RR |
18305 | { ac_try='test -z "$ac_c_werror_flag" |
18306 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18308 | (eval $ac_try) 2>&5 | |
18309 | ac_status=$? | |
18310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18311 | (exit $ac_status); }; } && | |
18312 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18314 | (eval $ac_try) 2>&5 | |
18315 | ac_status=$? | |
18316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18317 | (exit $ac_status); }; }; then | |
18318 | ac_hi=$ac_mid; break | |
18319 | else | |
18320 | echo "$as_me: failed program was:" >&5 | |
18321 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18322 | ||
18323 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18324 | if test $ac_lo -le $ac_mid; then |
18325 | ac_lo= ac_hi= | |
18326 | break | |
18327 | fi | |
18328 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18329 | fi |
ac1cb8d3 | 18330 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18331 | done |
18332 | else | |
18333 | echo "$as_me: failed program was:" >&5 | |
18334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18335 | ||
18336 | cat >conftest.$ac_ext <<_ACEOF | |
18337 | /* confdefs.h. */ | |
18338 | _ACEOF | |
18339 | cat confdefs.h >>conftest.$ac_ext | |
18340 | cat >>conftest.$ac_ext <<_ACEOF | |
18341 | /* end confdefs.h. */ | |
18342 | $ac_includes_default | |
18343 | int | |
18344 | main () | |
18345 | { | |
18346 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
18347 | test_array [0] = 0 | |
18348 | ||
18349 | ; | |
18350 | return 0; | |
18351 | } | |
18352 | _ACEOF | |
18353 | rm -f conftest.$ac_objext | |
18354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18355 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18356 | ac_status=$? |
ac1cb8d3 VS |
18357 | grep -v '^ *+' conftest.er1 >conftest.err |
18358 | rm -f conftest.er1 | |
18359 | cat conftest.err >&5 | |
a848cd7e SC |
18360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18361 | (exit $ac_status); } && | |
ddd14b14 RR |
18362 | { ac_try='test -z "$ac_c_werror_flag" |
18363 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18365 | (eval $ac_try) 2>&5 | |
18366 | ac_status=$? | |
18367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18368 | (exit $ac_status); }; } && | |
18369 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18371 | (eval $ac_try) 2>&5 | |
18372 | ac_status=$? | |
18373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18374 | (exit $ac_status); }; }; then | |
18375 | ac_hi=-1 ac_mid=-1 | |
18376 | while :; do | |
18377 | cat >conftest.$ac_ext <<_ACEOF | |
18378 | /* confdefs.h. */ | |
18379 | _ACEOF | |
18380 | cat confdefs.h >>conftest.$ac_ext | |
18381 | cat >>conftest.$ac_ext <<_ACEOF | |
18382 | /* end confdefs.h. */ | |
18383 | $ac_includes_default | |
18384 | int | |
18385 | main () | |
18386 | { | |
18387 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
18388 | test_array [0] = 0 | |
18389 | ||
18390 | ; | |
18391 | return 0; | |
18392 | } | |
18393 | _ACEOF | |
18394 | rm -f conftest.$ac_objext | |
18395 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18396 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18397 | ac_status=$? |
ac1cb8d3 VS |
18398 | grep -v '^ *+' conftest.er1 >conftest.err |
18399 | rm -f conftest.er1 | |
18400 | cat conftest.err >&5 | |
a848cd7e SC |
18401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18402 | (exit $ac_status); } && | |
ddd14b14 RR |
18403 | { ac_try='test -z "$ac_c_werror_flag" |
18404 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18406 | (eval $ac_try) 2>&5 | |
18407 | ac_status=$? | |
18408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18409 | (exit $ac_status); }; } && | |
18410 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18412 | (eval $ac_try) 2>&5 | |
18413 | ac_status=$? | |
18414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18415 | (exit $ac_status); }; }; then | |
18416 | ac_lo=$ac_mid; break | |
18417 | else | |
18418 | echo "$as_me: failed program was:" >&5 | |
18419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18420 | ||
18421 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18422 | if test $ac_mid -le $ac_hi; then |
18423 | ac_lo= ac_hi= | |
18424 | break | |
18425 | fi | |
18426 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18427 | fi |
ac1cb8d3 | 18428 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18429 | done |
18430 | else | |
18431 | echo "$as_me: failed program was:" >&5 | |
18432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18433 | ||
18434 | ac_lo= ac_hi= | |
18435 | fi | |
ac1cb8d3 | 18436 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18437 | fi |
ac1cb8d3 | 18438 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18439 | # Binary search between lo and hi bounds. |
18440 | while test "x$ac_lo" != "x$ac_hi"; do | |
18441 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18442 | cat >conftest.$ac_ext <<_ACEOF | |
18443 | /* confdefs.h. */ | |
18444 | _ACEOF | |
18445 | cat confdefs.h >>conftest.$ac_ext | |
18446 | cat >>conftest.$ac_ext <<_ACEOF | |
18447 | /* end confdefs.h. */ | |
18448 | $ac_includes_default | |
18449 | int | |
18450 | main () | |
18451 | { | |
18452 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18453 | test_array [0] = 0 | |
18454 | ||
18455 | ; | |
18456 | return 0; | |
18457 | } | |
18458 | _ACEOF | |
18459 | rm -f conftest.$ac_objext | |
18460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18461 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18462 | ac_status=$? |
ac1cb8d3 VS |
18463 | grep -v '^ *+' conftest.er1 >conftest.err |
18464 | rm -f conftest.er1 | |
18465 | cat conftest.err >&5 | |
a848cd7e SC |
18466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18467 | (exit $ac_status); } && | |
ddd14b14 RR |
18468 | { ac_try='test -z "$ac_c_werror_flag" |
18469 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18471 | (eval $ac_try) 2>&5 | |
18472 | ac_status=$? | |
18473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18474 | (exit $ac_status); }; } && | |
18475 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18477 | (eval $ac_try) 2>&5 | |
18478 | ac_status=$? | |
18479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18480 | (exit $ac_status); }; }; then | |
18481 | ac_hi=$ac_mid | |
18482 | else | |
18483 | echo "$as_me: failed program was:" >&5 | |
18484 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18485 | ||
18486 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18487 | fi | |
ac1cb8d3 | 18488 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18489 | done |
18490 | case $ac_lo in | |
18491 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18492 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18493 | See \`config.log' for more details." >&5 | |
18494 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18495 | See \`config.log' for more details." >&2;} | |
18496 | { (exit 1); exit 1; }; } ;; | |
18497 | esac | |
18498 | else | |
18499 | if test "$cross_compiling" = yes; then | |
ddd14b14 RR |
18500 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18501 | See \`config.log' for more details." >&5 | |
18502 | echo "$as_me: error: cannot run test program while cross compiling | |
18503 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18504 | { (exit 1); exit 1; }; } |
18505 | else | |
18506 | cat >conftest.$ac_ext <<_ACEOF | |
18507 | /* confdefs.h. */ | |
18508 | _ACEOF | |
18509 | cat confdefs.h >>conftest.$ac_ext | |
18510 | cat >>conftest.$ac_ext <<_ACEOF | |
18511 | /* end confdefs.h. */ | |
18512 | $ac_includes_default | |
18513 | long longval () { return (long) (sizeof (long long)); } | |
18514 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18515 | #include <stdio.h> | |
18516 | #include <stdlib.h> | |
18517 | int | |
18518 | main () | |
18519 | { | |
18520 | ||
18521 | FILE *f = fopen ("conftest.val", "w"); | |
18522 | if (! f) | |
18523 | exit (1); | |
18524 | if (((long) (sizeof (long long))) < 0) | |
18525 | { | |
18526 | long i = longval (); | |
18527 | if (i != ((long) (sizeof (long long)))) | |
18528 | exit (1); | |
18529 | fprintf (f, "%ld\n", i); | |
18530 | } | |
18531 | else | |
18532 | { | |
18533 | unsigned long i = ulongval (); | |
18534 | if (i != ((long) (sizeof (long long)))) | |
18535 | exit (1); | |
18536 | fprintf (f, "%lu\n", i); | |
18537 | } | |
18538 | exit (ferror (f) || fclose (f) != 0); | |
18539 | ||
18540 | ; | |
18541 | return 0; | |
18542 | } | |
18543 | _ACEOF | |
18544 | rm -f conftest$ac_exeext | |
18545 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18546 | (eval $ac_link) 2>&5 | |
18547 | ac_status=$? | |
18548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18549 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18551 | (eval $ac_try) 2>&5 | |
18552 | ac_status=$? | |
18553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18554 | (exit $ac_status); }; }; then | |
18555 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18556 | else | |
18557 | echo "$as_me: program exited with status $ac_status" >&5 | |
18558 | echo "$as_me: failed program was:" >&5 | |
18559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18560 | ||
18561 | ( exit $ac_status ) | |
18562 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18563 | See \`config.log' for more details." >&5 | |
18564 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18565 | See \`config.log' for more details." >&2;} | |
18566 | { (exit 1); exit 1; }; } | |
18567 | fi | |
ac1cb8d3 | 18568 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18569 | fi |
18570 | fi | |
18571 | rm -f conftest.val | |
18572 | else | |
18573 | ac_cv_sizeof_long_long=0 | |
18574 | fi | |
18575 | fi | |
18576 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18577 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18578 | cat >>confdefs.h <<_ACEOF | |
18579 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18580 | _ACEOF | |
18581 | ||
18582 | ||
18583 | ;; | |
18584 | *-hp-hpux* ) | |
18585 | echo "$as_me:$LINENO: checking for long long" >&5 | |
18586 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
18587 | if test "${ac_cv_type_long_long+set}" = set; then | |
18588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18589 | else | |
18590 | cat >conftest.$ac_ext <<_ACEOF | |
18591 | /* confdefs.h. */ | |
18592 | _ACEOF | |
18593 | cat confdefs.h >>conftest.$ac_ext | |
18594 | cat >>conftest.$ac_ext <<_ACEOF | |
18595 | /* end confdefs.h. */ | |
18596 | $ac_includes_default | |
18597 | int | |
18598 | main () | |
18599 | { | |
18600 | if ((long long *) 0) | |
18601 | return 0; | |
18602 | if (sizeof (long long)) | |
18603 | return 0; | |
18604 | ; | |
18605 | return 0; | |
18606 | } | |
18607 | _ACEOF | |
18608 | rm -f conftest.$ac_objext | |
18609 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18610 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18611 | ac_status=$? |
ac1cb8d3 VS |
18612 | grep -v '^ *+' conftest.er1 >conftest.err |
18613 | rm -f conftest.er1 | |
18614 | cat conftest.err >&5 | |
a848cd7e SC |
18615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18616 | (exit $ac_status); } && | |
ddd14b14 RR |
18617 | { ac_try='test -z "$ac_c_werror_flag" |
18618 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18620 | (eval $ac_try) 2>&5 | |
18621 | ac_status=$? | |
18622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18623 | (exit $ac_status); }; } && | |
18624 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18626 | (eval $ac_try) 2>&5 | |
18627 | ac_status=$? | |
18628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18629 | (exit $ac_status); }; }; then | |
18630 | ac_cv_type_long_long=yes | |
18631 | else | |
18632 | echo "$as_me: failed program was:" >&5 | |
18633 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18634 | ||
18635 | ac_cv_type_long_long=no | |
18636 | fi | |
ac1cb8d3 | 18637 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18638 | fi |
18639 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
18640 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
18641 | ||
18642 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
18643 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
18644 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
18645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18646 | else | |
18647 | if test "$ac_cv_type_long_long" = yes; then | |
18648 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18649 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18650 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18651 | # This bug is HP SR number 8606223364. | |
18652 | if test "$cross_compiling" = yes; then | |
18653 | # Depending upon the size, compute the lo and hi bounds. | |
18654 | cat >conftest.$ac_ext <<_ACEOF | |
18655 | /* confdefs.h. */ | |
18656 | _ACEOF | |
18657 | cat confdefs.h >>conftest.$ac_ext | |
18658 | cat >>conftest.$ac_ext <<_ACEOF | |
18659 | /* end confdefs.h. */ | |
18660 | $ac_includes_default | |
18661 | int | |
18662 | main () | |
18663 | { | |
18664 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
18665 | test_array [0] = 0 | |
18666 | ||
18667 | ; | |
18668 | return 0; | |
18669 | } | |
18670 | _ACEOF | |
18671 | rm -f conftest.$ac_objext | |
18672 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18673 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18674 | ac_status=$? |
ac1cb8d3 VS |
18675 | grep -v '^ *+' conftest.er1 >conftest.err |
18676 | rm -f conftest.er1 | |
18677 | cat conftest.err >&5 | |
a848cd7e SC |
18678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18679 | (exit $ac_status); } && | |
ddd14b14 RR |
18680 | { ac_try='test -z "$ac_c_werror_flag" |
18681 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18683 | (eval $ac_try) 2>&5 | |
18684 | ac_status=$? | |
18685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18686 | (exit $ac_status); }; } && | |
18687 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18689 | (eval $ac_try) 2>&5 | |
18690 | ac_status=$? | |
18691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18692 | (exit $ac_status); }; }; then | |
18693 | ac_lo=0 ac_mid=0 | |
18694 | while :; do | |
18695 | cat >conftest.$ac_ext <<_ACEOF | |
18696 | /* confdefs.h. */ | |
18697 | _ACEOF | |
18698 | cat confdefs.h >>conftest.$ac_ext | |
18699 | cat >>conftest.$ac_ext <<_ACEOF | |
18700 | /* end confdefs.h. */ | |
18701 | $ac_includes_default | |
18702 | int | |
18703 | main () | |
18704 | { | |
18705 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18706 | test_array [0] = 0 | |
18707 | ||
18708 | ; | |
18709 | return 0; | |
18710 | } | |
18711 | _ACEOF | |
18712 | rm -f conftest.$ac_objext | |
18713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18714 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18715 | ac_status=$? |
ac1cb8d3 VS |
18716 | grep -v '^ *+' conftest.er1 >conftest.err |
18717 | rm -f conftest.er1 | |
18718 | cat conftest.err >&5 | |
a848cd7e SC |
18719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18720 | (exit $ac_status); } && | |
ddd14b14 RR |
18721 | { ac_try='test -z "$ac_c_werror_flag" |
18722 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18724 | (eval $ac_try) 2>&5 | |
18725 | ac_status=$? | |
18726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18727 | (exit $ac_status); }; } && | |
18728 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18730 | (eval $ac_try) 2>&5 | |
18731 | ac_status=$? | |
18732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18733 | (exit $ac_status); }; }; then | |
18734 | ac_hi=$ac_mid; break | |
18735 | else | |
18736 | echo "$as_me: failed program was:" >&5 | |
18737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18738 | ||
18739 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18740 | if test $ac_lo -le $ac_mid; then |
18741 | ac_lo= ac_hi= | |
18742 | break | |
18743 | fi | |
18744 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18745 | fi |
ac1cb8d3 | 18746 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18747 | done |
18748 | else | |
18749 | echo "$as_me: failed program was:" >&5 | |
18750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18751 | ||
18752 | cat >conftest.$ac_ext <<_ACEOF | |
18753 | /* confdefs.h. */ | |
18754 | _ACEOF | |
18755 | cat confdefs.h >>conftest.$ac_ext | |
18756 | cat >>conftest.$ac_ext <<_ACEOF | |
18757 | /* end confdefs.h. */ | |
18758 | $ac_includes_default | |
18759 | int | |
18760 | main () | |
18761 | { | |
18762 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
18763 | test_array [0] = 0 | |
18764 | ||
18765 | ; | |
18766 | return 0; | |
18767 | } | |
18768 | _ACEOF | |
18769 | rm -f conftest.$ac_objext | |
18770 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18771 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18772 | ac_status=$? |
ac1cb8d3 VS |
18773 | grep -v '^ *+' conftest.er1 >conftest.err |
18774 | rm -f conftest.er1 | |
18775 | cat conftest.err >&5 | |
a848cd7e SC |
18776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18777 | (exit $ac_status); } && | |
ddd14b14 RR |
18778 | { ac_try='test -z "$ac_c_werror_flag" |
18779 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18781 | (eval $ac_try) 2>&5 | |
18782 | ac_status=$? | |
18783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18784 | (exit $ac_status); }; } && | |
18785 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18787 | (eval $ac_try) 2>&5 | |
18788 | ac_status=$? | |
18789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18790 | (exit $ac_status); }; }; then | |
18791 | ac_hi=-1 ac_mid=-1 | |
18792 | while :; do | |
18793 | cat >conftest.$ac_ext <<_ACEOF | |
18794 | /* confdefs.h. */ | |
18795 | _ACEOF | |
18796 | cat confdefs.h >>conftest.$ac_ext | |
18797 | cat >>conftest.$ac_ext <<_ACEOF | |
18798 | /* end confdefs.h. */ | |
18799 | $ac_includes_default | |
18800 | int | |
18801 | main () | |
18802 | { | |
18803 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
18804 | test_array [0] = 0 | |
18805 | ||
18806 | ; | |
18807 | return 0; | |
18808 | } | |
18809 | _ACEOF | |
18810 | rm -f conftest.$ac_objext | |
18811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18812 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18813 | ac_status=$? |
ac1cb8d3 VS |
18814 | grep -v '^ *+' conftest.er1 >conftest.err |
18815 | rm -f conftest.er1 | |
18816 | cat conftest.err >&5 | |
a848cd7e SC |
18817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18818 | (exit $ac_status); } && | |
ddd14b14 RR |
18819 | { ac_try='test -z "$ac_c_werror_flag" |
18820 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18822 | (eval $ac_try) 2>&5 | |
18823 | ac_status=$? | |
18824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18825 | (exit $ac_status); }; } && | |
18826 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18828 | (eval $ac_try) 2>&5 | |
18829 | ac_status=$? | |
18830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18831 | (exit $ac_status); }; }; then | |
18832 | ac_lo=$ac_mid; break | |
18833 | else | |
18834 | echo "$as_me: failed program was:" >&5 | |
18835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18836 | ||
18837 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18838 | if test $ac_mid -le $ac_hi; then |
18839 | ac_lo= ac_hi= | |
18840 | break | |
18841 | fi | |
18842 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18843 | fi |
ac1cb8d3 | 18844 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18845 | done |
18846 | else | |
18847 | echo "$as_me: failed program was:" >&5 | |
18848 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18849 | ||
18850 | ac_lo= ac_hi= | |
18851 | fi | |
ac1cb8d3 | 18852 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18853 | fi |
ac1cb8d3 | 18854 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18855 | # Binary search between lo and hi bounds. |
18856 | while test "x$ac_lo" != "x$ac_hi"; do | |
18857 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18858 | cat >conftest.$ac_ext <<_ACEOF | |
18859 | /* confdefs.h. */ | |
18860 | _ACEOF | |
18861 | cat confdefs.h >>conftest.$ac_ext | |
18862 | cat >>conftest.$ac_ext <<_ACEOF | |
18863 | /* end confdefs.h. */ | |
18864 | $ac_includes_default | |
18865 | int | |
18866 | main () | |
18867 | { | |
18868 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18869 | test_array [0] = 0 | |
18870 | ||
18871 | ; | |
18872 | return 0; | |
18873 | } | |
18874 | _ACEOF | |
18875 | rm -f conftest.$ac_objext | |
18876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18877 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18878 | ac_status=$? |
ac1cb8d3 VS |
18879 | grep -v '^ *+' conftest.er1 >conftest.err |
18880 | rm -f conftest.er1 | |
18881 | cat conftest.err >&5 | |
a848cd7e SC |
18882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18883 | (exit $ac_status); } && | |
ddd14b14 RR |
18884 | { ac_try='test -z "$ac_c_werror_flag" |
18885 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18887 | (eval $ac_try) 2>&5 | |
18888 | ac_status=$? | |
18889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18890 | (exit $ac_status); }; } && | |
18891 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18893 | (eval $ac_try) 2>&5 | |
18894 | ac_status=$? | |
18895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18896 | (exit $ac_status); }; }; then | |
18897 | ac_hi=$ac_mid | |
18898 | else | |
18899 | echo "$as_me: failed program was:" >&5 | |
18900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18901 | ||
18902 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18903 | fi | |
ac1cb8d3 | 18904 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18905 | done |
18906 | case $ac_lo in | |
18907 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18908 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18909 | See \`config.log' for more details." >&5 | |
18910 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18911 | See \`config.log' for more details." >&2;} | |
18912 | { (exit 1); exit 1; }; } ;; | |
18913 | esac | |
18914 | else | |
18915 | if test "$cross_compiling" = yes; then | |
ddd14b14 RR |
18916 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18917 | See \`config.log' for more details." >&5 | |
18918 | echo "$as_me: error: cannot run test program while cross compiling | |
18919 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18920 | { (exit 1); exit 1; }; } |
18921 | else | |
18922 | cat >conftest.$ac_ext <<_ACEOF | |
18923 | /* confdefs.h. */ | |
18924 | _ACEOF | |
18925 | cat confdefs.h >>conftest.$ac_ext | |
18926 | cat >>conftest.$ac_ext <<_ACEOF | |
18927 | /* end confdefs.h. */ | |
18928 | $ac_includes_default | |
18929 | long longval () { return (long) (sizeof (long long)); } | |
18930 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18931 | #include <stdio.h> | |
18932 | #include <stdlib.h> | |
18933 | int | |
18934 | main () | |
18935 | { | |
18936 | ||
18937 | FILE *f = fopen ("conftest.val", "w"); | |
18938 | if (! f) | |
18939 | exit (1); | |
18940 | if (((long) (sizeof (long long))) < 0) | |
18941 | { | |
18942 | long i = longval (); | |
18943 | if (i != ((long) (sizeof (long long)))) | |
18944 | exit (1); | |
18945 | fprintf (f, "%ld\n", i); | |
18946 | } | |
18947 | else | |
18948 | { | |
18949 | unsigned long i = ulongval (); | |
18950 | if (i != ((long) (sizeof (long long)))) | |
18951 | exit (1); | |
18952 | fprintf (f, "%lu\n", i); | |
18953 | } | |
18954 | exit (ferror (f) || fclose (f) != 0); | |
18955 | ||
18956 | ; | |
18957 | return 0; | |
18958 | } | |
18959 | _ACEOF | |
18960 | rm -f conftest$ac_exeext | |
18961 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18962 | (eval $ac_link) 2>&5 | |
18963 | ac_status=$? | |
18964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18965 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18967 | (eval $ac_try) 2>&5 | |
18968 | ac_status=$? | |
18969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18970 | (exit $ac_status); }; }; then | |
18971 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18972 | else | |
18973 | echo "$as_me: program exited with status $ac_status" >&5 | |
18974 | echo "$as_me: failed program was:" >&5 | |
18975 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18976 | ||
18977 | ( exit $ac_status ) | |
18978 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18979 | See \`config.log' for more details." >&5 | |
18980 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18981 | See \`config.log' for more details." >&2;} | |
18982 | { (exit 1); exit 1; }; } | |
18983 | fi | |
ac1cb8d3 | 18984 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18985 | fi |
18986 | fi | |
18987 | rm -f conftest.val | |
18988 | else | |
18989 | ac_cv_sizeof_long_long=0 | |
18990 | fi | |
18991 | fi | |
18992 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18993 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18994 | cat >>confdefs.h <<_ACEOF | |
18995 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18996 | _ACEOF | |
18997 | ||
18998 | ||
18999 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
19000 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
19001 | fi | |
19002 | ;; | |
19003 | * ) | |
19004 | echo "$as_me:$LINENO: checking for long long" >&5 | |
19005 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
19006 | if test "${ac_cv_type_long_long+set}" = set; then | |
19007 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19008 | else | |
19009 | cat >conftest.$ac_ext <<_ACEOF | |
19010 | /* confdefs.h. */ | |
19011 | _ACEOF | |
19012 | cat confdefs.h >>conftest.$ac_ext | |
19013 | cat >>conftest.$ac_ext <<_ACEOF | |
19014 | /* end confdefs.h. */ | |
19015 | $ac_includes_default | |
19016 | int | |
19017 | main () | |
19018 | { | |
19019 | if ((long long *) 0) | |
19020 | return 0; | |
19021 | if (sizeof (long long)) | |
19022 | return 0; | |
19023 | ; | |
19024 | return 0; | |
19025 | } | |
19026 | _ACEOF | |
19027 | rm -f conftest.$ac_objext | |
19028 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19029 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19030 | ac_status=$? |
ac1cb8d3 VS |
19031 | grep -v '^ *+' conftest.er1 >conftest.err |
19032 | rm -f conftest.er1 | |
19033 | cat conftest.err >&5 | |
a848cd7e SC |
19034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19035 | (exit $ac_status); } && | |
ddd14b14 RR |
19036 | { ac_try='test -z "$ac_c_werror_flag" |
19037 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19039 | (eval $ac_try) 2>&5 | |
19040 | ac_status=$? | |
19041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19042 | (exit $ac_status); }; } && | |
19043 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19045 | (eval $ac_try) 2>&5 | |
19046 | ac_status=$? | |
19047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19048 | (exit $ac_status); }; }; then | |
19049 | ac_cv_type_long_long=yes | |
19050 | else | |
19051 | echo "$as_me: failed program was:" >&5 | |
19052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19053 | ||
19054 | ac_cv_type_long_long=no | |
19055 | fi | |
ac1cb8d3 | 19056 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19057 | fi |
19058 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
19059 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
19060 | ||
19061 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
19062 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
19063 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
19064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19065 | else | |
19066 | if test "$ac_cv_type_long_long" = yes; then | |
19067 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19068 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19069 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19070 | # This bug is HP SR number 8606223364. | |
19071 | if test "$cross_compiling" = yes; then | |
19072 | # Depending upon the size, compute the lo and hi bounds. | |
19073 | cat >conftest.$ac_ext <<_ACEOF | |
19074 | /* confdefs.h. */ | |
19075 | _ACEOF | |
19076 | cat confdefs.h >>conftest.$ac_ext | |
19077 | cat >>conftest.$ac_ext <<_ACEOF | |
19078 | /* end confdefs.h. */ | |
19079 | $ac_includes_default | |
19080 | int | |
19081 | main () | |
19082 | { | |
19083 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
19084 | test_array [0] = 0 | |
19085 | ||
19086 | ; | |
19087 | return 0; | |
19088 | } | |
19089 | _ACEOF | |
19090 | rm -f conftest.$ac_objext | |
19091 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19092 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19093 | ac_status=$? |
ac1cb8d3 VS |
19094 | grep -v '^ *+' conftest.er1 >conftest.err |
19095 | rm -f conftest.er1 | |
19096 | cat conftest.err >&5 | |
a848cd7e SC |
19097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19098 | (exit $ac_status); } && | |
ddd14b14 RR |
19099 | { ac_try='test -z "$ac_c_werror_flag" |
19100 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19102 | (eval $ac_try) 2>&5 | |
19103 | ac_status=$? | |
19104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19105 | (exit $ac_status); }; } && | |
19106 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19108 | (eval $ac_try) 2>&5 | |
19109 | ac_status=$? | |
19110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19111 | (exit $ac_status); }; }; then | |
19112 | ac_lo=0 ac_mid=0 | |
19113 | while :; do | |
19114 | cat >conftest.$ac_ext <<_ACEOF | |
19115 | /* confdefs.h. */ | |
19116 | _ACEOF | |
19117 | cat confdefs.h >>conftest.$ac_ext | |
19118 | cat >>conftest.$ac_ext <<_ACEOF | |
19119 | /* end confdefs.h. */ | |
19120 | $ac_includes_default | |
19121 | int | |
19122 | main () | |
19123 | { | |
19124 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19125 | test_array [0] = 0 | |
19126 | ||
19127 | ; | |
19128 | return 0; | |
19129 | } | |
19130 | _ACEOF | |
19131 | rm -f conftest.$ac_objext | |
19132 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19133 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19134 | ac_status=$? |
ac1cb8d3 VS |
19135 | grep -v '^ *+' conftest.er1 >conftest.err |
19136 | rm -f conftest.er1 | |
19137 | cat conftest.err >&5 | |
a848cd7e SC |
19138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19139 | (exit $ac_status); } && | |
ddd14b14 RR |
19140 | { ac_try='test -z "$ac_c_werror_flag" |
19141 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19143 | (eval $ac_try) 2>&5 | |
19144 | ac_status=$? | |
19145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19146 | (exit $ac_status); }; } && | |
19147 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19149 | (eval $ac_try) 2>&5 | |
19150 | ac_status=$? | |
19151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19152 | (exit $ac_status); }; }; then | |
19153 | ac_hi=$ac_mid; break | |
19154 | else | |
19155 | echo "$as_me: failed program was:" >&5 | |
19156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19157 | ||
19158 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19159 | if test $ac_lo -le $ac_mid; then |
19160 | ac_lo= ac_hi= | |
19161 | break | |
19162 | fi | |
19163 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19164 | fi |
ac1cb8d3 | 19165 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19166 | done |
19167 | else | |
19168 | echo "$as_me: failed program was:" >&5 | |
19169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19170 | ||
19171 | cat >conftest.$ac_ext <<_ACEOF | |
19172 | /* confdefs.h. */ | |
19173 | _ACEOF | |
19174 | cat confdefs.h >>conftest.$ac_ext | |
19175 | cat >>conftest.$ac_ext <<_ACEOF | |
19176 | /* end confdefs.h. */ | |
19177 | $ac_includes_default | |
19178 | int | |
19179 | main () | |
19180 | { | |
19181 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
19182 | test_array [0] = 0 | |
19183 | ||
19184 | ; | |
19185 | return 0; | |
19186 | } | |
19187 | _ACEOF | |
19188 | rm -f conftest.$ac_objext | |
19189 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19190 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19191 | ac_status=$? |
ac1cb8d3 VS |
19192 | grep -v '^ *+' conftest.er1 >conftest.err |
19193 | rm -f conftest.er1 | |
19194 | cat conftest.err >&5 | |
a848cd7e SC |
19195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19196 | (exit $ac_status); } && | |
ddd14b14 RR |
19197 | { ac_try='test -z "$ac_c_werror_flag" |
19198 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19200 | (eval $ac_try) 2>&5 | |
19201 | ac_status=$? | |
19202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19203 | (exit $ac_status); }; } && | |
19204 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19206 | (eval $ac_try) 2>&5 | |
19207 | ac_status=$? | |
19208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19209 | (exit $ac_status); }; }; then | |
19210 | ac_hi=-1 ac_mid=-1 | |
19211 | while :; do | |
19212 | cat >conftest.$ac_ext <<_ACEOF | |
19213 | /* confdefs.h. */ | |
19214 | _ACEOF | |
19215 | cat confdefs.h >>conftest.$ac_ext | |
19216 | cat >>conftest.$ac_ext <<_ACEOF | |
19217 | /* end confdefs.h. */ | |
19218 | $ac_includes_default | |
19219 | int | |
19220 | main () | |
19221 | { | |
19222 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
19223 | test_array [0] = 0 | |
19224 | ||
19225 | ; | |
19226 | return 0; | |
19227 | } | |
19228 | _ACEOF | |
19229 | rm -f conftest.$ac_objext | |
19230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19231 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19232 | ac_status=$? |
ac1cb8d3 VS |
19233 | grep -v '^ *+' conftest.er1 >conftest.err |
19234 | rm -f conftest.er1 | |
19235 | cat conftest.err >&5 | |
a848cd7e SC |
19236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19237 | (exit $ac_status); } && | |
ddd14b14 RR |
19238 | { ac_try='test -z "$ac_c_werror_flag" |
19239 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19241 | (eval $ac_try) 2>&5 | |
19242 | ac_status=$? | |
19243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19244 | (exit $ac_status); }; } && | |
19245 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19247 | (eval $ac_try) 2>&5 | |
19248 | ac_status=$? | |
19249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19250 | (exit $ac_status); }; }; then | |
19251 | ac_lo=$ac_mid; break | |
19252 | else | |
19253 | echo "$as_me: failed program was:" >&5 | |
19254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19255 | ||
19256 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19257 | if test $ac_mid -le $ac_hi; then |
19258 | ac_lo= ac_hi= | |
19259 | break | |
19260 | fi | |
19261 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19262 | fi |
ac1cb8d3 | 19263 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19264 | done |
19265 | else | |
19266 | echo "$as_me: failed program was:" >&5 | |
19267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19268 | ||
19269 | ac_lo= ac_hi= | |
19270 | fi | |
ac1cb8d3 | 19271 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19272 | fi |
ac1cb8d3 | 19273 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19274 | # Binary search between lo and hi bounds. |
19275 | while test "x$ac_lo" != "x$ac_hi"; do | |
19276 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19277 | cat >conftest.$ac_ext <<_ACEOF | |
19278 | /* confdefs.h. */ | |
19279 | _ACEOF | |
19280 | cat confdefs.h >>conftest.$ac_ext | |
19281 | cat >>conftest.$ac_ext <<_ACEOF | |
19282 | /* end confdefs.h. */ | |
19283 | $ac_includes_default | |
19284 | int | |
19285 | main () | |
19286 | { | |
19287 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19288 | test_array [0] = 0 | |
19289 | ||
19290 | ; | |
19291 | return 0; | |
19292 | } | |
19293 | _ACEOF | |
19294 | rm -f conftest.$ac_objext | |
19295 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19296 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19297 | ac_status=$? |
ac1cb8d3 VS |
19298 | grep -v '^ *+' conftest.er1 >conftest.err |
19299 | rm -f conftest.er1 | |
19300 | cat conftest.err >&5 | |
a848cd7e SC |
19301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19302 | (exit $ac_status); } && | |
ddd14b14 RR |
19303 | { ac_try='test -z "$ac_c_werror_flag" |
19304 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19306 | (eval $ac_try) 2>&5 | |
19307 | ac_status=$? | |
19308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19309 | (exit $ac_status); }; } && | |
19310 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19312 | (eval $ac_try) 2>&5 | |
19313 | ac_status=$? | |
19314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19315 | (exit $ac_status); }; }; then | |
19316 | ac_hi=$ac_mid | |
19317 | else | |
19318 | echo "$as_me: failed program was:" >&5 | |
19319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19320 | ||
19321 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19322 | fi | |
ac1cb8d3 | 19323 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19324 | done |
19325 | case $ac_lo in | |
19326 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
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 | esac | |
19333 | else | |
19334 | if test "$cross_compiling" = yes; then | |
ddd14b14 RR |
19335 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
19336 | See \`config.log' for more details." >&5 | |
19337 | echo "$as_me: error: cannot run test program while cross compiling | |
19338 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
19339 | { (exit 1); exit 1; }; } |
19340 | else | |
19341 | cat >conftest.$ac_ext <<_ACEOF | |
19342 | /* confdefs.h. */ | |
19343 | _ACEOF | |
19344 | cat confdefs.h >>conftest.$ac_ext | |
19345 | cat >>conftest.$ac_ext <<_ACEOF | |
19346 | /* end confdefs.h. */ | |
19347 | $ac_includes_default | |
19348 | long longval () { return (long) (sizeof (long long)); } | |
19349 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
19350 | #include <stdio.h> | |
19351 | #include <stdlib.h> | |
19352 | int | |
19353 | main () | |
19354 | { | |
19355 | ||
19356 | FILE *f = fopen ("conftest.val", "w"); | |
19357 | if (! f) | |
19358 | exit (1); | |
19359 | if (((long) (sizeof (long long))) < 0) | |
19360 | { | |
19361 | long i = longval (); | |
19362 | if (i != ((long) (sizeof (long long)))) | |
19363 | exit (1); | |
19364 | fprintf (f, "%ld\n", i); | |
19365 | } | |
19366 | else | |
19367 | { | |
19368 | unsigned long i = ulongval (); | |
19369 | if (i != ((long) (sizeof (long long)))) | |
19370 | exit (1); | |
19371 | fprintf (f, "%lu\n", i); | |
19372 | } | |
19373 | exit (ferror (f) || fclose (f) != 0); | |
19374 | ||
19375 | ; | |
19376 | return 0; | |
19377 | } | |
19378 | _ACEOF | |
19379 | rm -f conftest$ac_exeext | |
19380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19381 | (eval $ac_link) 2>&5 | |
19382 | ac_status=$? | |
19383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19384 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19386 | (eval $ac_try) 2>&5 | |
19387 | ac_status=$? | |
19388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19389 | (exit $ac_status); }; }; then | |
19390 | ac_cv_sizeof_long_long=`cat conftest.val` | |
19391 | else | |
19392 | echo "$as_me: program exited with status $ac_status" >&5 | |
19393 | echo "$as_me: failed program was:" >&5 | |
19394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19395 | ||
19396 | ( exit $ac_status ) | |
19397 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19398 | See \`config.log' for more details." >&5 | |
19399 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19400 | See \`config.log' for more details." >&2;} | |
19401 | { (exit 1); exit 1; }; } | |
19402 | fi | |
ac1cb8d3 | 19403 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19404 | fi |
19405 | fi | |
19406 | rm -f conftest.val | |
19407 | else | |
19408 | ac_cv_sizeof_long_long=0 | |
19409 | fi | |
19410 | fi | |
19411 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
19412 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
19413 | cat >>confdefs.h <<_ACEOF | |
19414 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
19415 | _ACEOF | |
19416 | ||
19417 | ||
19418 | esac | |
19419 | ||
238ecede MW |
19420 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
19421 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 | |
19422 | if test "${ac_cv_type_wchar_t+set}" = set; then | |
19423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19424 | else | |
19425 | cat >conftest.$ac_ext <<_ACEOF | |
19426 | /* confdefs.h. */ | |
19427 | _ACEOF | |
19428 | cat confdefs.h >>conftest.$ac_ext | |
19429 | cat >>conftest.$ac_ext <<_ACEOF | |
19430 | /* end confdefs.h. */ | |
19431 | ||
83d8eb47 MW |
19432 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19433 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19434 | # error "fake wchar_t" |
19435 | #endif | |
19436 | #ifdef HAVE_WCHAR_H | |
19437 | # ifdef __CYGWIN__ | |
19438 | # include <stddef.h> | |
19439 | # endif | |
19440 | # include <wchar.h> | |
19441 | #endif | |
19442 | #ifdef HAVE_STDLIB_H | |
19443 | # include <stdlib.h> | |
19444 | #endif | |
19445 | #include <stdio.h> | |
19446 | ||
19447 | ||
19448 | ||
19449 | int | |
19450 | main () | |
19451 | { | |
19452 | if ((wchar_t *) 0) | |
19453 | return 0; | |
19454 | if (sizeof (wchar_t)) | |
19455 | return 0; | |
19456 | ; | |
19457 | return 0; | |
19458 | } | |
19459 | _ACEOF | |
19460 | rm -f conftest.$ac_objext | |
19461 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19462 | (eval $ac_compile) 2>conftest.er1 | |
19463 | ac_status=$? | |
19464 | grep -v '^ *+' conftest.er1 >conftest.err | |
19465 | rm -f conftest.er1 | |
19466 | cat conftest.err >&5 | |
19467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19468 | (exit $ac_status); } && | |
ddd14b14 RR |
19469 | { ac_try='test -z "$ac_c_werror_flag" |
19470 | || test ! -s conftest.err' | |
238ecede MW |
19471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19472 | (eval $ac_try) 2>&5 | |
19473 | ac_status=$? | |
19474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19475 | (exit $ac_status); }; } && | |
19476 | { ac_try='test -s conftest.$ac_objext' | |
19477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19478 | (eval $ac_try) 2>&5 | |
19479 | ac_status=$? | |
19480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19481 | (exit $ac_status); }; }; then | |
19482 | ac_cv_type_wchar_t=yes | |
19483 | else | |
19484 | echo "$as_me: failed program was:" >&5 | |
19485 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19486 | ||
19487 | ac_cv_type_wchar_t=no | |
19488 | fi | |
19489 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19490 | fi | |
19491 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 | |
19492 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 | |
19493 | ||
a848cd7e SC |
19494 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
19495 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
238ecede | 19496 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
a848cd7e SC |
19497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19498 | else | |
238ecede MW |
19499 | if test "$ac_cv_type_wchar_t" = yes; then |
19500 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19501 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19502 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19503 | # This bug is HP SR number 8606223364. | |
19504 | if test "$cross_compiling" = yes; then | |
19505 | # Depending upon the size, compute the lo and hi bounds. | |
19506 | cat >conftest.$ac_ext <<_ACEOF | |
19507 | /* confdefs.h. */ | |
19508 | _ACEOF | |
19509 | cat confdefs.h >>conftest.$ac_ext | |
19510 | cat >>conftest.$ac_ext <<_ACEOF | |
19511 | /* end confdefs.h. */ | |
19512 | ||
83d8eb47 MW |
19513 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19514 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19515 | # error "fake wchar_t" |
19516 | #endif | |
19517 | #ifdef HAVE_WCHAR_H | |
19518 | # ifdef __CYGWIN__ | |
19519 | # include <stddef.h> | |
19520 | # endif | |
19521 | # include <wchar.h> | |
19522 | #endif | |
19523 | #ifdef HAVE_STDLIB_H | |
19524 | # include <stdlib.h> | |
19525 | #endif | |
19526 | #include <stdio.h> | |
19527 | ||
19528 | ||
19529 | ||
19530 | int | |
19531 | main () | |
19532 | { | |
19533 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; | |
19534 | test_array [0] = 0 | |
19535 | ||
19536 | ; | |
19537 | return 0; | |
19538 | } | |
19539 | _ACEOF | |
19540 | rm -f conftest.$ac_objext | |
19541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19542 | (eval $ac_compile) 2>conftest.er1 | |
19543 | ac_status=$? | |
19544 | grep -v '^ *+' conftest.er1 >conftest.err | |
19545 | rm -f conftest.er1 | |
19546 | cat conftest.err >&5 | |
19547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19548 | (exit $ac_status); } && | |
ddd14b14 RR |
19549 | { ac_try='test -z "$ac_c_werror_flag" |
19550 | || test ! -s conftest.err' | |
238ecede MW |
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); }; } && | |
19556 | { ac_try='test -s conftest.$ac_objext' | |
19557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19558 | (eval $ac_try) 2>&5 | |
19559 | ac_status=$? | |
19560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19561 | (exit $ac_status); }; }; then | |
19562 | ac_lo=0 ac_mid=0 | |
19563 | while :; do | |
19564 | cat >conftest.$ac_ext <<_ACEOF | |
19565 | /* confdefs.h. */ | |
19566 | _ACEOF | |
19567 | cat confdefs.h >>conftest.$ac_ext | |
19568 | cat >>conftest.$ac_ext <<_ACEOF | |
19569 | /* end confdefs.h. */ | |
19570 | ||
83d8eb47 MW |
19571 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19572 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19573 | # error "fake wchar_t" |
19574 | #endif | |
19575 | #ifdef HAVE_WCHAR_H | |
19576 | # ifdef __CYGWIN__ | |
19577 | # include <stddef.h> | |
19578 | # endif | |
19579 | # include <wchar.h> | |
19580 | #endif | |
19581 | #ifdef HAVE_STDLIB_H | |
19582 | # include <stdlib.h> | |
19583 | #endif | |
19584 | #include <stdio.h> | |
19585 | ||
19586 | ||
19587 | ||
19588 | int | |
19589 | main () | |
19590 | { | |
19591 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
19592 | test_array [0] = 0 | |
19593 | ||
19594 | ; | |
19595 | return 0; | |
19596 | } | |
19597 | _ACEOF | |
19598 | rm -f conftest.$ac_objext | |
19599 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19600 | (eval $ac_compile) 2>conftest.er1 | |
19601 | ac_status=$? | |
19602 | grep -v '^ *+' conftest.er1 >conftest.err | |
19603 | rm -f conftest.er1 | |
19604 | cat conftest.err >&5 | |
19605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19606 | (exit $ac_status); } && | |
ddd14b14 RR |
19607 | { ac_try='test -z "$ac_c_werror_flag" |
19608 | || test ! -s conftest.err' | |
238ecede MW |
19609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19610 | (eval $ac_try) 2>&5 | |
19611 | ac_status=$? | |
19612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19613 | (exit $ac_status); }; } && | |
19614 | { ac_try='test -s conftest.$ac_objext' | |
19615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19616 | (eval $ac_try) 2>&5 | |
19617 | ac_status=$? | |
19618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19619 | (exit $ac_status); }; }; then | |
19620 | ac_hi=$ac_mid; break | |
19621 | else | |
19622 | echo "$as_me: failed program was:" >&5 | |
19623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19624 | ||
19625 | ac_lo=`expr $ac_mid + 1` | |
19626 | if test $ac_lo -le $ac_mid; then | |
19627 | ac_lo= ac_hi= | |
19628 | break | |
19629 | fi | |
19630 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
19631 | fi | |
19632 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19633 | done | |
19634 | else | |
19635 | echo "$as_me: failed program was:" >&5 | |
19636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19637 | ||
19638 | cat >conftest.$ac_ext <<_ACEOF | |
19639 | /* confdefs.h. */ | |
19640 | _ACEOF | |
19641 | cat confdefs.h >>conftest.$ac_ext | |
19642 | cat >>conftest.$ac_ext <<_ACEOF | |
19643 | /* end confdefs.h. */ | |
19644 | ||
83d8eb47 MW |
19645 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19646 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19647 | # error "fake wchar_t" |
19648 | #endif | |
19649 | #ifdef HAVE_WCHAR_H | |
19650 | # ifdef __CYGWIN__ | |
19651 | # include <stddef.h> | |
19652 | # endif | |
19653 | # include <wchar.h> | |
19654 | #endif | |
19655 | #ifdef HAVE_STDLIB_H | |
19656 | # include <stdlib.h> | |
19657 | #endif | |
19658 | #include <stdio.h> | |
19659 | ||
19660 | ||
19661 | ||
19662 | int | |
19663 | main () | |
19664 | { | |
19665 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; | |
19666 | test_array [0] = 0 | |
19667 | ||
19668 | ; | |
19669 | return 0; | |
19670 | } | |
19671 | _ACEOF | |
19672 | rm -f conftest.$ac_objext | |
19673 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19674 | (eval $ac_compile) 2>conftest.er1 | |
19675 | ac_status=$? | |
19676 | grep -v '^ *+' conftest.er1 >conftest.err | |
19677 | rm -f conftest.er1 | |
19678 | cat conftest.err >&5 | |
19679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19680 | (exit $ac_status); } && | |
ddd14b14 RR |
19681 | { ac_try='test -z "$ac_c_werror_flag" |
19682 | || test ! -s conftest.err' | |
238ecede MW |
19683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19684 | (eval $ac_try) 2>&5 | |
19685 | ac_status=$? | |
19686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19687 | (exit $ac_status); }; } && | |
19688 | { ac_try='test -s conftest.$ac_objext' | |
19689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19690 | (eval $ac_try) 2>&5 | |
19691 | ac_status=$? | |
19692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19693 | (exit $ac_status); }; }; then | |
19694 | ac_hi=-1 ac_mid=-1 | |
19695 | while :; do | |
19696 | cat >conftest.$ac_ext <<_ACEOF | |
19697 | /* confdefs.h. */ | |
19698 | _ACEOF | |
19699 | cat confdefs.h >>conftest.$ac_ext | |
19700 | cat >>conftest.$ac_ext <<_ACEOF | |
19701 | /* end confdefs.h. */ | |
19702 | ||
83d8eb47 MW |
19703 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19704 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19705 | # error "fake wchar_t" |
19706 | #endif | |
19707 | #ifdef HAVE_WCHAR_H | |
19708 | # ifdef __CYGWIN__ | |
19709 | # include <stddef.h> | |
19710 | # endif | |
19711 | # include <wchar.h> | |
19712 | #endif | |
19713 | #ifdef HAVE_STDLIB_H | |
19714 | # include <stdlib.h> | |
19715 | #endif | |
19716 | #include <stdio.h> | |
19717 | ||
19718 | ||
19719 | ||
19720 | int | |
19721 | main () | |
19722 | { | |
19723 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; | |
19724 | test_array [0] = 0 | |
19725 | ||
19726 | ; | |
19727 | return 0; | |
19728 | } | |
19729 | _ACEOF | |
19730 | rm -f conftest.$ac_objext | |
19731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19732 | (eval $ac_compile) 2>conftest.er1 | |
19733 | ac_status=$? | |
19734 | grep -v '^ *+' conftest.er1 >conftest.err | |
19735 | rm -f conftest.er1 | |
19736 | cat conftest.err >&5 | |
19737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19738 | (exit $ac_status); } && | |
ddd14b14 RR |
19739 | { ac_try='test -z "$ac_c_werror_flag" |
19740 | || test ! -s conftest.err' | |
238ecede MW |
19741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19742 | (eval $ac_try) 2>&5 | |
19743 | ac_status=$? | |
19744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19745 | (exit $ac_status); }; } && | |
19746 | { ac_try='test -s conftest.$ac_objext' | |
19747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19748 | (eval $ac_try) 2>&5 | |
19749 | ac_status=$? | |
19750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19751 | (exit $ac_status); }; }; then | |
19752 | ac_lo=$ac_mid; break | |
19753 | else | |
19754 | echo "$as_me: failed program was:" >&5 | |
19755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19756 | ||
19757 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
19758 | if test $ac_mid -le $ac_hi; then | |
19759 | ac_lo= ac_hi= | |
19760 | break | |
19761 | fi | |
19762 | ac_mid=`expr 2 '*' $ac_mid` | |
19763 | fi | |
19764 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19765 | done | |
19766 | else | |
19767 | echo "$as_me: failed program was:" >&5 | |
19768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19769 | ||
19770 | ac_lo= ac_hi= | |
19771 | fi | |
19772 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19773 | fi | |
19774 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19775 | # Binary search between lo and hi bounds. | |
19776 | while test "x$ac_lo" != "x$ac_hi"; do | |
19777 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19778 | cat >conftest.$ac_ext <<_ACEOF | |
19779 | /* confdefs.h. */ | |
19780 | _ACEOF | |
19781 | cat confdefs.h >>conftest.$ac_ext | |
19782 | cat >>conftest.$ac_ext <<_ACEOF | |
19783 | /* end confdefs.h. */ | |
19784 | ||
83d8eb47 MW |
19785 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19786 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19787 | # error "fake wchar_t" |
19788 | #endif | |
19789 | #ifdef HAVE_WCHAR_H | |
19790 | # ifdef __CYGWIN__ | |
19791 | # include <stddef.h> | |
19792 | # endif | |
19793 | # include <wchar.h> | |
19794 | #endif | |
19795 | #ifdef HAVE_STDLIB_H | |
19796 | # include <stdlib.h> | |
19797 | #endif | |
19798 | #include <stdio.h> | |
a848cd7e | 19799 | |
a848cd7e | 19800 | |
a848cd7e | 19801 | |
238ecede MW |
19802 | int |
19803 | main () | |
19804 | { | |
19805 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
19806 | test_array [0] = 0 | |
a848cd7e | 19807 | |
238ecede MW |
19808 | ; |
19809 | return 0; | |
19810 | } | |
19811 | _ACEOF | |
19812 | rm -f conftest.$ac_objext | |
19813 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19814 | (eval $ac_compile) 2>conftest.er1 | |
19815 | ac_status=$? | |
19816 | grep -v '^ *+' conftest.er1 >conftest.err | |
19817 | rm -f conftest.er1 | |
19818 | cat conftest.err >&5 | |
19819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19820 | (exit $ac_status); } && | |
ddd14b14 RR |
19821 | { ac_try='test -z "$ac_c_werror_flag" |
19822 | || test ! -s conftest.err' | |
238ecede MW |
19823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19824 | (eval $ac_try) 2>&5 | |
19825 | ac_status=$? | |
19826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19827 | (exit $ac_status); }; } && | |
19828 | { ac_try='test -s conftest.$ac_objext' | |
19829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19830 | (eval $ac_try) 2>&5 | |
19831 | ac_status=$? | |
19832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19833 | (exit $ac_status); }; }; then | |
19834 | ac_hi=$ac_mid | |
19835 | else | |
19836 | echo "$as_me: failed program was:" >&5 | |
19837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19838 | ||
19839 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19840 | fi | |
19841 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19842 | done | |
19843 | case $ac_lo in | |
19844 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; | |
19845 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 | |
19846 | See \`config.log' for more details." >&5 | |
19847 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
19848 | See \`config.log' for more details." >&2;} | |
19849 | { (exit 1); exit 1; }; } ;; | |
19850 | esac | |
19851 | else | |
19852 | if test "$cross_compiling" = yes; then | |
ddd14b14 RR |
19853 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
19854 | See \`config.log' for more details." >&5 | |
19855 | echo "$as_me: error: cannot run test program while cross compiling | |
19856 | See \`config.log' for more details." >&2;} | |
238ecede | 19857 | { (exit 1); exit 1; }; } |
a848cd7e SC |
19858 | else |
19859 | cat >conftest.$ac_ext <<_ACEOF | |
19860 | /* confdefs.h. */ | |
19861 | _ACEOF | |
19862 | cat confdefs.h >>conftest.$ac_ext | |
19863 | cat >>conftest.$ac_ext <<_ACEOF | |
19864 | /* end confdefs.h. */ | |
19865 | ||
83d8eb47 MW |
19866 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19867 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19868 | # error "fake wchar_t" |
19869 | #endif | |
19870 | #ifdef HAVE_WCHAR_H | |
19871 | # ifdef __CYGWIN__ | |
19872 | # include <stddef.h> | |
19873 | # endif | |
19874 | # include <wchar.h> | |
19875 | #endif | |
19876 | #ifdef HAVE_STDLIB_H | |
19877 | # include <stdlib.h> | |
19878 | #endif | |
19879 | #include <stdio.h> | |
19880 | ||
19881 | ||
19882 | ||
19883 | long longval () { return (long) (sizeof (wchar_t)); } | |
19884 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } | |
19885 | #include <stdio.h> | |
19886 | #include <stdlib.h> | |
19887 | int | |
19888 | main () | |
19889 | { | |
a848cd7e | 19890 | |
238ecede MW |
19891 | FILE *f = fopen ("conftest.val", "w"); |
19892 | if (! f) | |
19893 | exit (1); | |
19894 | if (((long) (sizeof (wchar_t))) < 0) | |
19895 | { | |
19896 | long i = longval (); | |
19897 | if (i != ((long) (sizeof (wchar_t)))) | |
19898 | exit (1); | |
19899 | fprintf (f, "%ld\n", i); | |
19900 | } | |
19901 | else | |
19902 | { | |
19903 | unsigned long i = ulongval (); | |
19904 | if (i != ((long) (sizeof (wchar_t)))) | |
19905 | exit (1); | |
19906 | fprintf (f, "%lu\n", i); | |
19907 | } | |
19908 | exit (ferror (f) || fclose (f) != 0); | |
19909 | ||
19910 | ; | |
19911 | return 0; | |
19912 | } | |
a848cd7e SC |
19913 | _ACEOF |
19914 | rm -f conftest$ac_exeext | |
19915 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19916 | (eval $ac_link) 2>&5 | |
19917 | ac_status=$? | |
19918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19919 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19921 | (eval $ac_try) 2>&5 | |
19922 | ac_status=$? | |
19923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19924 | (exit $ac_status); }; }; then | |
238ecede | 19925 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
a848cd7e SC |
19926 | else |
19927 | echo "$as_me: program exited with status $ac_status" >&5 | |
19928 | echo "$as_me: failed program was:" >&5 | |
19929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19930 | ||
19931 | ( exit $ac_status ) | |
238ecede MW |
19932 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
19933 | See \`config.log' for more details." >&5 | |
19934 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
19935 | See \`config.log' for more details." >&2;} | |
19936 | { (exit 1); exit 1; }; } | |
a848cd7e | 19937 | fi |
ac1cb8d3 | 19938 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19939 | fi |
a848cd7e | 19940 | fi |
238ecede MW |
19941 | rm -f conftest.val |
19942 | else | |
19943 | ac_cv_sizeof_wchar_t=0 | |
19944 | fi | |
19945 | fi | |
19946 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 | |
19947 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 | |
a848cd7e | 19948 | cat >>confdefs.h <<_ACEOF |
238ecede | 19949 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
a848cd7e SC |
19950 | _ACEOF |
19951 | ||
19952 | ||
47a7e797 MW |
19953 | if test "$ac_cv_sizeof_wchar_t" != "0"; then |
19954 | wxUSE_WCHAR_T=yes | |
19955 | else | |
19956 | wxUSE_WCHAR_T=no | |
19957 | fi | |
238ecede | 19958 | |
ba3d13e1 VZ |
19959 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
19960 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
19961 | if test "${wx_cv_func_va_copy+set}" = set; then | |
19962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19963 | else | |
19964 | ||
19965 | cat >conftest.$ac_ext <<_ACEOF | |
19966 | ||
19967 | #include <stdarg.h> | |
19968 | void foo(char *f, ...) | |
19969 | { | |
19970 | va_list ap1, ap2; | |
19971 | va_start(ap1, f); | |
19972 | va_copy(ap2, ap1); | |
19973 | va_end(ap2); | |
19974 | va_end(ap1); | |
19975 | } | |
5886b072 VZ |
19976 | int main() |
19977 | { | |
b902e639 VZ |
19978 | foo("hi", 17); |
19979 | return 0; | |
5886b072 | 19980 | } |
ba3d13e1 VZ |
19981 | _ACEOF |
19982 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19983 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19984 | (eval $ac_link) 2>conftest.er1 | |
19985 | ac_status=$? | |
19986 | grep -v '^ *+' conftest.er1 >conftest.err | |
19987 | rm -f conftest.er1 | |
19988 | cat conftest.err >&5 | |
19989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19990 | (exit $ac_status); } && | |
ddd14b14 RR |
19991 | { ac_try='test -z "$ac_c_werror_flag" |
19992 | || test ! -s conftest.err' | |
ba3d13e1 VZ |
19993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19994 | (eval $ac_try) 2>&5 | |
19995 | ac_status=$? | |
19996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19997 | (exit $ac_status); }; } && | |
19998 | { ac_try='test -s conftest$ac_exeext' | |
19999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20000 | (eval $ac_try) 2>&5 | |
20001 | ac_status=$? | |
20002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20003 | (exit $ac_status); }; }; then | |
20004 | wx_cv_func_va_copy=yes | |
20005 | else | |
20006 | echo "$as_me: failed program was:" >&5 | |
20007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20008 | ||
20009 | wx_cv_func_va_copy=no | |
20010 | ||
20011 | fi | |
20012 | rm -f conftest.err conftest.$ac_objext \ | |
20013 | conftest$ac_exeext conftest.$ac_ext | |
20014 | ||
20015 | ||
20016 | fi | |
20017 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
20018 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
20019 | ||
20020 | if test $wx_cv_func_va_copy = "yes"; then | |
20021 | cat >>confdefs.h <<\_ACEOF | |
20022 | #define HAVE_VA_COPY 1 | |
20023 | _ACEOF | |
20024 | ||
20025 | else | |
20026 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
20027 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
20028 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
20029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20030 | else | |
20031 | ||
20032 | if test "$cross_compiling" = yes; then | |
20033 | wx_cv_type_va_list_lvalue=yes | |
20034 | ||
20035 | else | |
20036 | cat >conftest.$ac_ext <<_ACEOF | |
20037 | ||
20038 | #include <stdarg.h> | |
20039 | int foo(char *f, ...) | |
20040 | { | |
20041 | va_list ap1, ap2; | |
20042 | va_start(ap1, f); | |
20043 | ap2 = ap1; | |
20044 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
20045 | return 1; | |
20046 | va_end(ap2); | |
20047 | va_end(ap1); | |
20048 | return 0; | |
20049 | } | |
20050 | int main() | |
20051 | { | |
20052 | return foo("hi", 17); | |
20053 | } | |
20054 | _ACEOF | |
20055 | rm -f conftest$ac_exeext | |
20056 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20057 | (eval $ac_link) 2>&5 | |
20058 | ac_status=$? | |
20059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20060 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20062 | (eval $ac_try) 2>&5 | |
20063 | ac_status=$? | |
20064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20065 | (exit $ac_status); }; }; then | |
20066 | wx_cv_type_va_list_lvalue=yes | |
20067 | else | |
20068 | echo "$as_me: program exited with status $ac_status" >&5 | |
20069 | echo "$as_me: failed program was:" >&5 | |
20070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20071 | ||
20072 | ( exit $ac_status ) | |
20073 | wx_cv_type_va_list_lvalue=no | |
20074 | fi | |
20075 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
20076 | fi | |
20077 | ||
20078 | ||
20079 | fi | |
20080 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
20081 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
20082 | ||
20083 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
20084 | cat >>confdefs.h <<\_ACEOF | |
20085 | #define VA_LIST_IS_ARRAY 1 | |
20086 | _ACEOF | |
20087 | ||
20088 | fi | |
20089 | fi | |
20090 | ||
a848cd7e SC |
20091 | # Check whether --enable-largefile or --disable-largefile was given. |
20092 | if test "${enable_largefile+set}" = set; then | |
20093 | enableval="$enable_largefile" | |
20094 | ||
20095 | fi; | |
20096 | if test "$enable_largefile" != no; then | |
20097 | wx_largefile=no | |
20098 | ||
20099 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
20100 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
20101 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
20102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20103 | else | |
20104 | ||
20105 | cat >conftest.$ac_ext <<_ACEOF | |
20106 | /* confdefs.h. */ | |
20107 | _ACEOF | |
20108 | cat confdefs.h >>conftest.$ac_ext | |
20109 | cat >>conftest.$ac_ext <<_ACEOF | |
20110 | /* end confdefs.h. */ | |
20111 | #define _FILE_OFFSET_BITS 64 | |
20112 | #include <sys/types.h> | |
20113 | int | |
20114 | main () | |
20115 | { | |
20116 | typedef struct { | |
20117 | unsigned int field: sizeof(off_t) == 8; | |
20118 | } wxlf; | |
20119 | ||
20120 | ; | |
20121 | return 0; | |
20122 | } | |
20123 | _ACEOF | |
20124 | rm -f conftest.$ac_objext | |
20125 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20126 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20127 | ac_status=$? |
ac1cb8d3 VS |
20128 | grep -v '^ *+' conftest.er1 >conftest.err |
20129 | rm -f conftest.er1 | |
20130 | cat conftest.err >&5 | |
a848cd7e SC |
20131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20132 | (exit $ac_status); } && | |
ddd14b14 RR |
20133 | { ac_try='test -z "$ac_c_werror_flag" |
20134 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20136 | (eval $ac_try) 2>&5 | |
20137 | ac_status=$? | |
20138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20139 | (exit $ac_status); }; } && | |
20140 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20142 | (eval $ac_try) 2>&5 | |
20143 | ac_status=$? | |
20144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20145 | (exit $ac_status); }; }; then | |
20146 | ac_cv_sys_file_offset_bits=64 | |
20147 | else | |
20148 | echo "$as_me: failed program was:" >&5 | |
20149 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20150 | ||
20151 | ac_cv_sys_file_offset_bits=no | |
20152 | fi | |
ac1cb8d3 | 20153 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20154 | |
20155 | ||
20156 | fi | |
20157 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
20158 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
20159 | ||
20160 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
20161 | wx_largefile=yes | |
20162 | cat >>confdefs.h <<_ACEOF | |
20163 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
20164 | _ACEOF | |
20165 | ||
20166 | fi | |
20167 | ||
20168 | if test "x$wx_largefile" != "xyes"; then | |
20169 | ||
20170 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
20171 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
20172 | if test "${ac_cv_sys_large_files+set}" = set; then | |
20173 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20174 | else | |
20175 | ||
20176 | cat >conftest.$ac_ext <<_ACEOF | |
20177 | /* confdefs.h. */ | |
20178 | _ACEOF | |
20179 | cat confdefs.h >>conftest.$ac_ext | |
20180 | cat >>conftest.$ac_ext <<_ACEOF | |
20181 | /* end confdefs.h. */ | |
20182 | #define _LARGE_FILES 1 | |
20183 | #include <sys/types.h> | |
20184 | int | |
20185 | main () | |
20186 | { | |
20187 | typedef struct { | |
20188 | unsigned int field: sizeof(off_t) == 8; | |
20189 | } wxlf; | |
20190 | ||
20191 | ; | |
20192 | return 0; | |
20193 | } | |
20194 | _ACEOF | |
20195 | rm -f conftest.$ac_objext | |
20196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20197 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20198 | ac_status=$? |
ac1cb8d3 VS |
20199 | grep -v '^ *+' conftest.er1 >conftest.err |
20200 | rm -f conftest.er1 | |
20201 | cat conftest.err >&5 | |
a848cd7e SC |
20202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20203 | (exit $ac_status); } && | |
ddd14b14 RR |
20204 | { ac_try='test -z "$ac_c_werror_flag" |
20205 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20207 | (eval $ac_try) 2>&5 | |
20208 | ac_status=$? | |
20209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20210 | (exit $ac_status); }; } && | |
20211 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20213 | (eval $ac_try) 2>&5 | |
20214 | ac_status=$? | |
20215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20216 | (exit $ac_status); }; }; then | |
20217 | ac_cv_sys_large_files=1 | |
20218 | else | |
20219 | echo "$as_me: failed program was:" >&5 | |
20220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20221 | ||
20222 | ac_cv_sys_large_files=no | |
20223 | fi | |
ac1cb8d3 | 20224 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20225 | |
20226 | ||
20227 | fi | |
20228 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
20229 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
20230 | ||
20231 | if test "$ac_cv_sys_large_files" != no; then | |
20232 | wx_largefile=yes | |
20233 | cat >>confdefs.h <<_ACEOF | |
20234 | #define _LARGE_FILES $ac_cv_sys_large_files | |
20235 | _ACEOF | |
20236 | ||
20237 | fi | |
20238 | ||
20239 | fi | |
20240 | ||
20241 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
20242 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
20243 | if test "x$wx_largefile" = "xyes"; then | |
20244 | cat >>confdefs.h <<\_ACEOF | |
20245 | #define HAVE_LARGEFILE_SUPPORT 1 | |
20246 | _ACEOF | |
20247 | ||
20248 | fi | |
20249 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
20250 | echo "${ECHO_T}$wx_largefile" >&6 | |
20251 | fi | |
20252 | ||
5b674b9d DE |
20253 | |
20254 | if test "x$wx_largefile" = "xyes"; then | |
20255 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
20256 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
20257 | else | |
20258 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" | |
20259 | fi | |
20260 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
5294a27e VZ |
20261 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
20262 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
20263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20264 | else | |
20265 | while :; do | |
20266 | ac_cv_sys_largefile_source=no | |
20267 | cat >conftest.$ac_ext <<_ACEOF | |
20268 | /* confdefs.h. */ | |
20269 | _ACEOF | |
20270 | cat confdefs.h >>conftest.$ac_ext | |
20271 | cat >>conftest.$ac_ext <<_ACEOF | |
20272 | /* end confdefs.h. */ | |
20273 | #include <stdio.h> | |
20274 | int | |
20275 | main () | |
20276 | { | |
20277 | return !fseeko; | |
20278 | ; | |
20279 | return 0; | |
20280 | } | |
20281 | _ACEOF | |
20282 | rm -f conftest.$ac_objext | |
20283 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20284 | (eval $ac_compile) 2>conftest.er1 | |
20285 | ac_status=$? | |
20286 | grep -v '^ *+' conftest.er1 >conftest.err | |
20287 | rm -f conftest.er1 | |
20288 | cat conftest.err >&5 | |
20289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20290 | (exit $ac_status); } && | |
ddd14b14 RR |
20291 | { ac_try='test -z "$ac_c_werror_flag" |
20292 | || test ! -s conftest.err' | |
5294a27e VZ |
20293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20294 | (eval $ac_try) 2>&5 | |
20295 | ac_status=$? | |
20296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20297 | (exit $ac_status); }; } && | |
20298 | { ac_try='test -s conftest.$ac_objext' | |
20299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20300 | (eval $ac_try) 2>&5 | |
20301 | ac_status=$? | |
20302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20303 | (exit $ac_status); }; }; then | |
20304 | break | |
20305 | else | |
20306 | echo "$as_me: failed program was:" >&5 | |
20307 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20308 | ||
20309 | fi | |
20310 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20311 | cat >conftest.$ac_ext <<_ACEOF | |
20312 | /* confdefs.h. */ | |
20313 | _ACEOF | |
20314 | cat confdefs.h >>conftest.$ac_ext | |
20315 | cat >>conftest.$ac_ext <<_ACEOF | |
20316 | /* end confdefs.h. */ | |
20317 | #define _LARGEFILE_SOURCE 1 | |
20318 | #include <stdio.h> | |
20319 | int | |
20320 | main () | |
20321 | { | |
20322 | return !fseeko; | |
20323 | ; | |
20324 | return 0; | |
20325 | } | |
20326 | _ACEOF | |
20327 | rm -f conftest.$ac_objext | |
20328 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20329 | (eval $ac_compile) 2>conftest.er1 | |
20330 | ac_status=$? | |
20331 | grep -v '^ *+' conftest.er1 >conftest.err | |
20332 | rm -f conftest.er1 | |
20333 | cat conftest.err >&5 | |
20334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20335 | (exit $ac_status); } && | |
ddd14b14 RR |
20336 | { ac_try='test -z "$ac_c_werror_flag" |
20337 | || test ! -s conftest.err' | |
5294a27e VZ |
20338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20339 | (eval $ac_try) 2>&5 | |
20340 | ac_status=$? | |
20341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20342 | (exit $ac_status); }; } && | |
20343 | { ac_try='test -s conftest.$ac_objext' | |
20344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20345 | (eval $ac_try) 2>&5 | |
20346 | ac_status=$? | |
20347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20348 | (exit $ac_status); }; }; then | |
20349 | ac_cv_sys_largefile_source=1; break | |
20350 | else | |
20351 | echo "$as_me: failed program was:" >&5 | |
20352 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20353 | ||
20354 | fi | |
20355 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20356 | break | |
20357 | done | |
20358 | fi | |
20359 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
20360 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
20361 | if test "$ac_cv_sys_largefile_source" != no; then | |
20362 | ||
20363 | cat >>confdefs.h <<_ACEOF | |
20364 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
20365 | _ACEOF | |
20366 | ||
20367 | fi | |
20368 | rm -f conftest* | |
20369 | ||
20370 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
20371 | # in glibc 2.1.3, but that breaks too many other things. | |
20372 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
20373 | echo "$as_me:$LINENO: checking for fseeko" >&5 | |
20374 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
20375 | if test "${ac_cv_func_fseeko+set}" = set; then | |
20376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20377 | else | |
20378 | cat >conftest.$ac_ext <<_ACEOF | |
20379 | /* confdefs.h. */ | |
20380 | _ACEOF | |
20381 | cat confdefs.h >>conftest.$ac_ext | |
20382 | cat >>conftest.$ac_ext <<_ACEOF | |
20383 | /* end confdefs.h. */ | |
20384 | #include <stdio.h> | |
20385 | int | |
20386 | main () | |
20387 | { | |
20388 | return fseeko && fseeko (stdin, 0, 0); | |
20389 | ; | |
20390 | return 0; | |
20391 | } | |
20392 | _ACEOF | |
20393 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20394 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20395 | (eval $ac_link) 2>conftest.er1 | |
20396 | ac_status=$? | |
20397 | grep -v '^ *+' conftest.er1 >conftest.err | |
20398 | rm -f conftest.er1 | |
20399 | cat conftest.err >&5 | |
20400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20401 | (exit $ac_status); } && | |
ddd14b14 RR |
20402 | { ac_try='test -z "$ac_c_werror_flag" |
20403 | || test ! -s conftest.err' | |
5294a27e VZ |
20404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20405 | (eval $ac_try) 2>&5 | |
20406 | ac_status=$? | |
20407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20408 | (exit $ac_status); }; } && | |
20409 | { ac_try='test -s conftest$ac_exeext' | |
20410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20411 | (eval $ac_try) 2>&5 | |
20412 | ac_status=$? | |
20413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20414 | (exit $ac_status); }; }; then | |
20415 | ac_cv_func_fseeko=yes | |
20416 | else | |
20417 | echo "$as_me: failed program was:" >&5 | |
20418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20419 | ||
20420 | ac_cv_func_fseeko=no | |
20421 | fi | |
20422 | rm -f conftest.err conftest.$ac_objext \ | |
20423 | conftest$ac_exeext conftest.$ac_ext | |
20424 | fi | |
20425 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
20426 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
20427 | if test $ac_cv_func_fseeko = yes; then | |
20428 | ||
20429 | cat >>confdefs.h <<\_ACEOF | |
20430 | #define HAVE_FSEEKO 1 | |
20431 | _ACEOF | |
20432 | ||
20433 | fi | |
20434 | ||
5b674b9d DE |
20435 | if test "$ac_cv_sys_largefile_source" != no; then |
20436 | WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" | |
a848cd7e SC |
20437 | fi |
20438 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" | |
20439 | fi | |
20440 | ||
20441 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
20442 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
20443 | if test "${ac_cv_c_bigendian+set}" = set; then | |
20444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20445 | else | |
20446 | ac_cv_c_bigendian=unknown | |
20447 | # See if sys/param.h defines the BYTE_ORDER macro. | |
20448 | cat >conftest.$ac_ext <<_ACEOF | |
20449 | /* confdefs.h. */ | |
20450 | _ACEOF | |
20451 | cat confdefs.h >>conftest.$ac_ext | |
20452 | cat >>conftest.$ac_ext <<_ACEOF | |
20453 | /* end confdefs.h. */ | |
20454 | #include <sys/types.h> | |
20455 | #include <sys/param.h> | |
20456 | int | |
20457 | main () | |
20458 | { | |
20459 | ||
20460 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
20461 | bogus endian macros | |
20462 | #endif | |
20463 | ; | |
20464 | return 0; | |
20465 | } | |
20466 | _ACEOF | |
20467 | rm -f conftest.$ac_objext | |
20468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20469 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20470 | ac_status=$? |
ac1cb8d3 VS |
20471 | grep -v '^ *+' conftest.er1 >conftest.err |
20472 | rm -f conftest.er1 | |
20473 | cat conftest.err >&5 | |
a848cd7e SC |
20474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20475 | (exit $ac_status); } && | |
ddd14b14 RR |
20476 | { ac_try='test -z "$ac_c_werror_flag" |
20477 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20479 | (eval $ac_try) 2>&5 | |
20480 | ac_status=$? | |
20481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20482 | (exit $ac_status); }; } && | |
20483 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20485 | (eval $ac_try) 2>&5 | |
20486 | ac_status=$? | |
20487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20488 | (exit $ac_status); }; }; then | |
20489 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
20490 | cat >conftest.$ac_ext <<_ACEOF | |
20491 | /* confdefs.h. */ | |
20492 | _ACEOF | |
20493 | cat confdefs.h >>conftest.$ac_ext | |
20494 | cat >>conftest.$ac_ext <<_ACEOF | |
20495 | /* end confdefs.h. */ | |
20496 | #include <sys/types.h> | |
20497 | #include <sys/param.h> | |
20498 | int | |
20499 | main () | |
20500 | { | |
20501 | ||
20502 | #if BYTE_ORDER != BIG_ENDIAN | |
20503 | not big endian | |
20504 | #endif | |
20505 | ; | |
20506 | return 0; | |
20507 | } | |
20508 | _ACEOF | |
20509 | rm -f conftest.$ac_objext | |
20510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20511 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20512 | ac_status=$? |
ac1cb8d3 VS |
20513 | grep -v '^ *+' conftest.er1 >conftest.err |
20514 | rm -f conftest.er1 | |
20515 | cat conftest.err >&5 | |
a848cd7e SC |
20516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20517 | (exit $ac_status); } && | |
ddd14b14 RR |
20518 | { ac_try='test -z "$ac_c_werror_flag" |
20519 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20521 | (eval $ac_try) 2>&5 | |
20522 | ac_status=$? | |
20523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20524 | (exit $ac_status); }; } && | |
20525 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20527 | (eval $ac_try) 2>&5 | |
20528 | ac_status=$? | |
20529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20530 | (exit $ac_status); }; }; then | |
20531 | ac_cv_c_bigendian=yes | |
20532 | else | |
20533 | echo "$as_me: failed program was:" >&5 | |
20534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20535 | ||
20536 | ac_cv_c_bigendian=no | |
20537 | fi | |
ac1cb8d3 | 20538 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20539 | else |
20540 | echo "$as_me: failed program was:" >&5 | |
20541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20542 | ||
20543 | fi | |
ac1cb8d3 | 20544 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20545 | if test $ac_cv_c_bigendian = unknown; then |
20546 | if test "$cross_compiling" = yes; then | |
20547 | ac_cv_c_bigendian=unknown | |
20548 | else | |
20549 | cat >conftest.$ac_ext <<_ACEOF | |
20550 | /* confdefs.h. */ | |
20551 | _ACEOF | |
20552 | cat confdefs.h >>conftest.$ac_ext | |
20553 | cat >>conftest.$ac_ext <<_ACEOF | |
20554 | /* end confdefs.h. */ | |
20555 | main () { | |
20556 | /* Are we little or big endian? From Harbison&Steele. */ | |
20557 | union | |
20558 | { | |
20559 | long l; | |
20560 | char c[sizeof (long)]; | |
20561 | } u; | |
20562 | u.l = 1; | |
20563 | exit (u.c[sizeof (long) - 1] == 1); | |
20564 | } | |
20565 | _ACEOF | |
20566 | rm -f conftest$ac_exeext | |
20567 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20568 | (eval $ac_link) 2>&5 | |
20569 | ac_status=$? | |
20570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20571 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20573 | (eval $ac_try) 2>&5 | |
20574 | ac_status=$? | |
20575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20576 | (exit $ac_status); }; }; then | |
20577 | ac_cv_c_bigendian=no | |
20578 | else | |
20579 | echo "$as_me: program exited with status $ac_status" >&5 | |
20580 | echo "$as_me: failed program was:" >&5 | |
20581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20582 | ||
20583 | ( exit $ac_status ) | |
20584 | ac_cv_c_bigendian=yes | |
20585 | fi | |
ac1cb8d3 | 20586 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20587 | fi |
20588 | fi | |
20589 | fi | |
20590 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
20591 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
20592 | if test $ac_cv_c_bigendian = unknown; then | |
20593 | { 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 | |
20594 | 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;} | |
20595 | fi | |
20596 | if test $ac_cv_c_bigendian = yes; then | |
20597 | cat >>confdefs.h <<\_ACEOF | |
20598 | #define WORDS_BIGENDIAN 1 | |
20599 | _ACEOF | |
20600 | ||
20601 | fi | |
20602 | ||
20603 | ||
20604 | ac_ext=cc | |
20605 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20606 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20607 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20608 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20609 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
20610 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
20611 | if test -z "$CXXCPP"; then | |
20612 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
20613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20614 | else | |
20615 | # Double quotes because CXXCPP needs to be expanded | |
20616 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
20617 | do | |
20618 | ac_preproc_ok=false | |
20619 | for ac_cxx_preproc_warn_flag in '' yes | |
20620 | do | |
20621 | # Use a header file that comes with gcc, so configuring glibc | |
20622 | # with a fresh cross-compiler works. | |
20623 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20624 | # <limits.h> exists even on freestanding compilers. | |
20625 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
20626 | # not just through cpp. "Syntax error" is here to catch this case. | |
20627 | cat >conftest.$ac_ext <<_ACEOF | |
20628 | /* confdefs.h. */ | |
20629 | _ACEOF | |
20630 | cat confdefs.h >>conftest.$ac_ext | |
20631 | cat >>conftest.$ac_ext <<_ACEOF | |
20632 | /* end confdefs.h. */ | |
20633 | #ifdef __STDC__ | |
20634 | # include <limits.h> | |
20635 | #else | |
20636 | # include <assert.h> | |
20637 | #endif | |
ac1cb8d3 | 20638 | Syntax error |
a848cd7e SC |
20639 | _ACEOF |
20640 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20641 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20642 | ac_status=$? | |
20643 | grep -v '^ *+' conftest.er1 >conftest.err | |
20644 | rm -f conftest.er1 | |
20645 | cat conftest.err >&5 | |
20646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20647 | (exit $ac_status); } >/dev/null; then | |
20648 | if test -s conftest.err; then | |
20649 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20650 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20651 | else |
20652 | ac_cpp_err= | |
20653 | fi | |
20654 | else | |
20655 | ac_cpp_err=yes | |
20656 | fi | |
20657 | if test -z "$ac_cpp_err"; then | |
20658 | : | |
20659 | else | |
20660 | echo "$as_me: failed program was:" >&5 | |
20661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20662 | ||
20663 | # Broken: fails on valid input. | |
20664 | continue | |
20665 | fi | |
20666 | rm -f conftest.err conftest.$ac_ext | |
20667 | ||
20668 | # OK, works on sane cases. Now check whether non-existent headers | |
20669 | # can be detected and how. | |
20670 | cat >conftest.$ac_ext <<_ACEOF | |
20671 | /* confdefs.h. */ | |
20672 | _ACEOF | |
20673 | cat confdefs.h >>conftest.$ac_ext | |
20674 | cat >>conftest.$ac_ext <<_ACEOF | |
20675 | /* end confdefs.h. */ | |
20676 | #include <ac_nonexistent.h> | |
20677 | _ACEOF | |
20678 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20679 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20680 | ac_status=$? | |
20681 | grep -v '^ *+' conftest.er1 >conftest.err | |
20682 | rm -f conftest.er1 | |
20683 | cat conftest.err >&5 | |
20684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20685 | (exit $ac_status); } >/dev/null; then | |
20686 | if test -s conftest.err; then | |
20687 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20688 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20689 | else |
20690 | ac_cpp_err= | |
20691 | fi | |
20692 | else | |
20693 | ac_cpp_err=yes | |
20694 | fi | |
20695 | if test -z "$ac_cpp_err"; then | |
20696 | # Broken: success on invalid input. | |
20697 | continue | |
20698 | else | |
20699 | echo "$as_me: failed program was:" >&5 | |
20700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20701 | ||
20702 | # Passes both tests. | |
20703 | ac_preproc_ok=: | |
20704 | break | |
20705 | fi | |
20706 | rm -f conftest.err conftest.$ac_ext | |
20707 | ||
20708 | done | |
20709 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
20710 | rm -f conftest.err conftest.$ac_ext | |
20711 | if $ac_preproc_ok; then | |
20712 | break | |
20713 | fi | |
20714 | ||
20715 | done | |
20716 | ac_cv_prog_CXXCPP=$CXXCPP | |
20717 | ||
20718 | fi | |
20719 | CXXCPP=$ac_cv_prog_CXXCPP | |
20720 | else | |
20721 | ac_cv_prog_CXXCPP=$CXXCPP | |
20722 | fi | |
20723 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
20724 | echo "${ECHO_T}$CXXCPP" >&6 | |
20725 | ac_preproc_ok=false | |
20726 | for ac_cxx_preproc_warn_flag in '' yes | |
20727 | do | |
20728 | # Use a header file that comes with gcc, so configuring glibc | |
20729 | # with a fresh cross-compiler works. | |
20730 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20731 | # <limits.h> exists even on freestanding compilers. | |
20732 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
20733 | # not just through cpp. "Syntax error" is here to catch this case. | |
20734 | cat >conftest.$ac_ext <<_ACEOF | |
20735 | /* confdefs.h. */ | |
20736 | _ACEOF | |
20737 | cat confdefs.h >>conftest.$ac_ext | |
20738 | cat >>conftest.$ac_ext <<_ACEOF | |
20739 | /* end confdefs.h. */ | |
20740 | #ifdef __STDC__ | |
20741 | # include <limits.h> | |
20742 | #else | |
20743 | # include <assert.h> | |
20744 | #endif | |
ac1cb8d3 | 20745 | Syntax error |
a848cd7e SC |
20746 | _ACEOF |
20747 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20748 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20749 | ac_status=$? | |
20750 | grep -v '^ *+' conftest.er1 >conftest.err | |
20751 | rm -f conftest.er1 | |
20752 | cat conftest.err >&5 | |
20753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20754 | (exit $ac_status); } >/dev/null; then | |
20755 | if test -s conftest.err; then | |
20756 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20757 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20758 | else |
20759 | ac_cpp_err= | |
20760 | fi | |
20761 | else | |
20762 | ac_cpp_err=yes | |
20763 | fi | |
20764 | if test -z "$ac_cpp_err"; then | |
20765 | : | |
20766 | else | |
20767 | echo "$as_me: failed program was:" >&5 | |
20768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20769 | ||
20770 | # Broken: fails on valid input. | |
20771 | continue | |
20772 | fi | |
20773 | rm -f conftest.err conftest.$ac_ext | |
20774 | ||
20775 | # OK, works on sane cases. Now check whether non-existent headers | |
20776 | # can be detected and how. | |
20777 | cat >conftest.$ac_ext <<_ACEOF | |
20778 | /* confdefs.h. */ | |
20779 | _ACEOF | |
20780 | cat confdefs.h >>conftest.$ac_ext | |
20781 | cat >>conftest.$ac_ext <<_ACEOF | |
20782 | /* end confdefs.h. */ | |
20783 | #include <ac_nonexistent.h> | |
20784 | _ACEOF | |
20785 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20786 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20787 | ac_status=$? | |
20788 | grep -v '^ *+' conftest.er1 >conftest.err | |
20789 | rm -f conftest.er1 | |
20790 | cat conftest.err >&5 | |
20791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20792 | (exit $ac_status); } >/dev/null; then | |
20793 | if test -s conftest.err; then | |
20794 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20795 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20796 | else |
20797 | ac_cpp_err= | |
20798 | fi | |
20799 | else | |
20800 | ac_cpp_err=yes | |
20801 | fi | |
20802 | if test -z "$ac_cpp_err"; then | |
20803 | # Broken: success on invalid input. | |
20804 | continue | |
20805 | else | |
20806 | echo "$as_me: failed program was:" >&5 | |
20807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20808 | ||
20809 | # Passes both tests. | |
20810 | ac_preproc_ok=: | |
20811 | break | |
20812 | fi | |
20813 | rm -f conftest.err conftest.$ac_ext | |
20814 | ||
20815 | done | |
20816 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
20817 | rm -f conftest.err conftest.$ac_ext | |
20818 | if $ac_preproc_ok; then | |
20819 | : | |
20820 | else | |
20821 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
20822 | See \`config.log' for more details." >&5 | |
20823 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
20824 | See \`config.log' for more details." >&2;} | |
20825 | { (exit 1); exit 1; }; } | |
20826 | fi | |
20827 | ||
20828 | ac_ext=cc | |
20829 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20830 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20831 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20832 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20833 | ||
20834 | ||
20835 | ||
20836 | ||
20837 | ||
20838 | ac_ext=cc | |
20839 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20840 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20841 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20842 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20843 | ||
20844 | ||
20845 | ||
20846 | for ac_header in iostream | |
20847 | do | |
20848 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
20849 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20850 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20851 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20852 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20854 | fi | |
20855 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20856 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20857 | else | |
20858 | # Is the header compilable? | |
20859 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
20860 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
20861 | cat >conftest.$ac_ext <<_ACEOF | |
20862 | /* confdefs.h. */ | |
20863 | _ACEOF | |
20864 | cat confdefs.h >>conftest.$ac_ext | |
20865 | cat >>conftest.$ac_ext <<_ACEOF | |
20866 | /* end confdefs.h. */ | |
20867 | $ac_includes_default | |
20868 | #include <$ac_header> | |
20869 | _ACEOF | |
20870 | rm -f conftest.$ac_objext | |
20871 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20872 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20873 | ac_status=$? |
ac1cb8d3 VS |
20874 | grep -v '^ *+' conftest.er1 >conftest.err |
20875 | rm -f conftest.er1 | |
20876 | cat conftest.err >&5 | |
a848cd7e SC |
20877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20878 | (exit $ac_status); } && | |
ddd14b14 RR |
20879 | { ac_try='test -z "$ac_cxx_werror_flag" |
20880 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20882 | (eval $ac_try) 2>&5 | |
20883 | ac_status=$? | |
20884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20885 | (exit $ac_status); }; } && | |
20886 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20888 | (eval $ac_try) 2>&5 | |
20889 | ac_status=$? | |
20890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20891 | (exit $ac_status); }; }; then | |
20892 | ac_header_compiler=yes | |
20893 | else | |
20894 | echo "$as_me: failed program was:" >&5 | |
20895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20896 | ||
20897 | ac_header_compiler=no | |
20898 | fi | |
ac1cb8d3 | 20899 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20900 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20901 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20902 | ||
20903 | # Is the header present? | |
20904 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
20905 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
20906 | cat >conftest.$ac_ext <<_ACEOF | |
20907 | /* confdefs.h. */ | |
20908 | _ACEOF | |
20909 | cat confdefs.h >>conftest.$ac_ext | |
20910 | cat >>conftest.$ac_ext <<_ACEOF | |
20911 | /* end confdefs.h. */ | |
20912 | #include <$ac_header> | |
20913 | _ACEOF | |
20914 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20915 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20916 | ac_status=$? | |
20917 | grep -v '^ *+' conftest.er1 >conftest.err | |
20918 | rm -f conftest.er1 | |
20919 | cat conftest.err >&5 | |
20920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20921 | (exit $ac_status); } >/dev/null; then | |
20922 | if test -s conftest.err; then | |
20923 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20924 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20925 | else |
20926 | ac_cpp_err= | |
20927 | fi | |
20928 | else | |
20929 | ac_cpp_err=yes | |
20930 | fi | |
20931 | if test -z "$ac_cpp_err"; then | |
20932 | ac_header_preproc=yes | |
20933 | else | |
20934 | echo "$as_me: failed program was:" >&5 | |
20935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20936 | ||
20937 | ac_header_preproc=no | |
20938 | fi | |
20939 | rm -f conftest.err conftest.$ac_ext | |
20940 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20941 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20942 | ||
20943 | # So? What about this header? | |
ac1cb8d3 VS |
20944 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
20945 | yes:no: ) | |
a848cd7e SC |
20946 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20947 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20948 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20949 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20950 | ac_header_preproc=yes | |
a848cd7e | 20951 | ;; |
ac1cb8d3 | 20952 | no:yes:* ) |
a848cd7e SC |
20953 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20954 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20955 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20956 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20957 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20958 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20959 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20960 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20961 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
20962 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20963 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20964 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20965 | ( |
20966 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20967 | ## ----------------------------------------- ## |
20968 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20969 | ## ----------------------------------------- ## | |
a848cd7e SC |
20970 | _ASBOX |
20971 | ) | | |
20972 | sed "s/^/$as_me: WARNING: /" >&2 | |
20973 | ;; | |
20974 | esac | |
20975 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20976 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20977 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20979 | else | |
ac1cb8d3 | 20980 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
20981 | fi |
20982 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20983 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20984 | ||
20985 | fi | |
20986 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
20987 | cat >>confdefs.h <<_ACEOF | |
20988 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
20989 | _ACEOF | |
20990 | ||
20991 | fi | |
20992 | ||
20993 | done | |
20994 | ||
20995 | ||
20996 | if test "$ac_cv_header_iostream" = "yes" ; then | |
20997 | : | |
20998 | else | |
20999 | cat >>confdefs.h <<\_ACEOF | |
21000 | #define wxUSE_IOSTREAMH 1 | |
21001 | _ACEOF | |
21002 | ||
21003 | fi | |
21004 | ||
21005 | ac_ext=c | |
21006 | ac_cpp='$CPP $CPPFLAGS' | |
21007 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21008 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21009 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21010 | ||
21011 | ||
21012 | ||
21013 | ||
21014 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
21015 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
21016 | if test "${wx_cv_cpp_bool+set}" = set; then | |
21017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21018 | else | |
21019 | ||
21020 | ||
21021 | ||
21022 | ac_ext=cc | |
21023 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21024 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21025 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21026 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21027 | ||
21028 | ||
21029 | cat >conftest.$ac_ext <<_ACEOF | |
21030 | /* confdefs.h. */ | |
21031 | _ACEOF | |
21032 | cat confdefs.h >>conftest.$ac_ext | |
21033 | cat >>conftest.$ac_ext <<_ACEOF | |
21034 | /* end confdefs.h. */ | |
21035 | ||
21036 | ||
21037 | int | |
21038 | main () | |
21039 | { | |
21040 | ||
21041 | bool b = true; | |
21042 | ||
21043 | return 0; | |
21044 | ||
21045 | ; | |
21046 | return 0; | |
21047 | } | |
21048 | _ACEOF | |
21049 | rm -f conftest.$ac_objext | |
21050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21051 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21052 | ac_status=$? |
ac1cb8d3 VS |
21053 | grep -v '^ *+' conftest.er1 >conftest.err |
21054 | rm -f conftest.er1 | |
21055 | cat conftest.err >&5 | |
a848cd7e SC |
21056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21057 | (exit $ac_status); } && | |
ddd14b14 RR |
21058 | { ac_try='test -z "$ac_cxx_werror_flag" |
21059 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21061 | (eval $ac_try) 2>&5 | |
21062 | ac_status=$? | |
21063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21064 | (exit $ac_status); }; } && | |
21065 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21067 | (eval $ac_try) 2>&5 | |
21068 | ac_status=$? | |
21069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21070 | (exit $ac_status); }; }; then | |
21071 | ||
21072 | wx_cv_cpp_bool=yes | |
21073 | ||
21074 | else | |
21075 | echo "$as_me: failed program was:" >&5 | |
21076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21077 | ||
21078 | ||
21079 | wx_cv_cpp_bool=no | |
21080 | ||
21081 | ||
21082 | fi | |
ac1cb8d3 | 21083 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21084 | |
21085 | ac_ext=c | |
21086 | ac_cpp='$CPP $CPPFLAGS' | |
21087 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21088 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21089 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21090 | ||
21091 | ||
21092 | fi | |
21093 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
21094 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
21095 | ||
21096 | if test "$wx_cv_cpp_bool" = "yes"; then | |
21097 | cat >>confdefs.h <<\_ACEOF | |
21098 | #define HAVE_BOOL 1 | |
21099 | _ACEOF | |
21100 | ||
21101 | fi | |
21102 | ||
21103 | ||
21104 | ||
21105 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
21106 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
21107 | if test "${wx_cv_explicit+set}" = set; then | |
21108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21109 | else | |
21110 | ||
21111 | ||
21112 | ||
21113 | ac_ext=cc | |
21114 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21115 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21116 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21117 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21118 | ||
21119 | ||
21120 | cat >conftest.$ac_ext <<_ACEOF | |
21121 | /* confdefs.h. */ | |
21122 | _ACEOF | |
21123 | cat confdefs.h >>conftest.$ac_ext | |
21124 | cat >>conftest.$ac_ext <<_ACEOF | |
21125 | /* end confdefs.h. */ | |
21126 | ||
21127 | class Foo { public: explicit Foo(int) {} }; | |
21128 | ||
21129 | int | |
21130 | main () | |
21131 | { | |
21132 | ||
21133 | return 0; | |
21134 | ||
21135 | ; | |
21136 | return 0; | |
21137 | } | |
21138 | _ACEOF | |
21139 | rm -f conftest.$ac_objext | |
21140 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21141 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21142 | ac_status=$? |
ac1cb8d3 VS |
21143 | grep -v '^ *+' conftest.er1 >conftest.err |
21144 | rm -f conftest.er1 | |
21145 | cat conftest.err >&5 | |
a848cd7e SC |
21146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21147 | (exit $ac_status); } && | |
ddd14b14 RR |
21148 | { ac_try='test -z "$ac_cxx_werror_flag" |
21149 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21151 | (eval $ac_try) 2>&5 | |
21152 | ac_status=$? | |
21153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21154 | (exit $ac_status); }; } && | |
21155 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21157 | (eval $ac_try) 2>&5 | |
21158 | ac_status=$? | |
21159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21160 | (exit $ac_status); }; }; then | |
21161 | ||
21162 | cat >conftest.$ac_ext <<_ACEOF | |
21163 | /* confdefs.h. */ | |
21164 | _ACEOF | |
21165 | cat confdefs.h >>conftest.$ac_ext | |
21166 | cat >>conftest.$ac_ext <<_ACEOF | |
21167 | /* end confdefs.h. */ | |
21168 | ||
21169 | class Foo { public: explicit Foo(int) {} }; | |
21170 | static void TakeFoo(const Foo& foo) { } | |
21171 | ||
21172 | int | |
21173 | main () | |
21174 | { | |
21175 | ||
21176 | TakeFoo(17); | |
21177 | return 0; | |
21178 | ||
21179 | ; | |
21180 | return 0; | |
21181 | } | |
21182 | _ACEOF | |
21183 | rm -f conftest.$ac_objext | |
21184 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21185 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21186 | ac_status=$? |
ac1cb8d3 VS |
21187 | grep -v '^ *+' conftest.er1 >conftest.err |
21188 | rm -f conftest.er1 | |
21189 | cat conftest.err >&5 | |
a848cd7e SC |
21190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21191 | (exit $ac_status); } && | |
ddd14b14 RR |
21192 | { ac_try='test -z "$ac_cxx_werror_flag" |
21193 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21195 | (eval $ac_try) 2>&5 | |
21196 | ac_status=$? | |
21197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21198 | (exit $ac_status); }; } && | |
21199 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21201 | (eval $ac_try) 2>&5 | |
21202 | ac_status=$? | |
21203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21204 | (exit $ac_status); }; }; then | |
21205 | wx_cv_explicit=no | |
21206 | else | |
21207 | echo "$as_me: failed program was:" >&5 | |
21208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21209 | ||
21210 | wx_cv_explicit=yes | |
21211 | ||
21212 | fi | |
ac1cb8d3 | 21213 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21214 | |
21215 | else | |
21216 | echo "$as_me: failed program was:" >&5 | |
21217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21218 | ||
21219 | wx_cv_explicit=no | |
21220 | ||
21221 | fi | |
ac1cb8d3 | 21222 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21223 | |
21224 | ac_ext=c | |
21225 | ac_cpp='$CPP $CPPFLAGS' | |
21226 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21227 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21228 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21229 | ||
21230 | ||
21231 | fi | |
21232 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
21233 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
21234 | ||
21235 | if test "$wx_cv_explicit" = "yes"; then | |
21236 | cat >>confdefs.h <<\_ACEOF | |
21237 | #define HAVE_EXPLICIT 1 | |
21238 | _ACEOF | |
21239 | ||
21240 | fi | |
21241 | ||
21242 | ||
21243 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
21244 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
21245 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
21246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21247 | else | |
21248 | ||
21249 | ||
21250 | ac_ext=cc | |
21251 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21252 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21253 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21254 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21255 | ||
21256 | cat >conftest.$ac_ext <<_ACEOF | |
21257 | /* confdefs.h. */ | |
21258 | _ACEOF | |
21259 | cat confdefs.h >>conftest.$ac_ext | |
21260 | cat >>conftest.$ac_ext <<_ACEOF | |
21261 | /* end confdefs.h. */ | |
21262 | ||
21263 | int | |
21264 | main () | |
21265 | { | |
21266 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
21267 | ; | |
21268 | return 0; | |
21269 | } | |
21270 | _ACEOF | |
21271 | rm -f conftest.$ac_objext | |
21272 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21273 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21274 | ac_status=$? |
ac1cb8d3 VS |
21275 | grep -v '^ *+' conftest.er1 >conftest.err |
21276 | rm -f conftest.er1 | |
21277 | cat conftest.err >&5 | |
a848cd7e SC |
21278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21279 | (exit $ac_status); } && | |
ddd14b14 RR |
21280 | { ac_try='test -z "$ac_cxx_werror_flag" |
21281 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21283 | (eval $ac_try) 2>&5 | |
21284 | ac_status=$? | |
21285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21286 | (exit $ac_status); }; } && | |
21287 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21289 | (eval $ac_try) 2>&5 | |
21290 | ac_status=$? | |
21291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21292 | (exit $ac_status); }; }; then | |
21293 | ac_cv_cxx_const_cast=yes | |
21294 | else | |
21295 | echo "$as_me: failed program was:" >&5 | |
21296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21297 | ||
21298 | ac_cv_cxx_const_cast=no | |
21299 | fi | |
ac1cb8d3 | 21300 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21301 | ac_ext=c |
21302 | ac_cpp='$CPP $CPPFLAGS' | |
21303 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21304 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21305 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21306 | ||
21307 | ||
21308 | fi | |
21309 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
21310 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
21311 | if test "$ac_cv_cxx_const_cast" = yes; then | |
21312 | ||
21313 | cat >>confdefs.h <<\_ACEOF | |
21314 | #define HAVE_CONST_CAST | |
21315 | _ACEOF | |
21316 | ||
21317 | fi | |
21318 | ||
7714864e RL |
21319 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
21320 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
21321 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
21322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21323 | else | |
21324 | ||
21325 | ||
21326 | ac_ext=cc | |
21327 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21328 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21329 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21330 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21331 | ||
21332 | cat >conftest.$ac_ext <<_ACEOF | |
21333 | /* confdefs.h. */ | |
21334 | _ACEOF | |
21335 | cat confdefs.h >>conftest.$ac_ext | |
21336 | cat >>conftest.$ac_ext <<_ACEOF | |
21337 | /* end confdefs.h. */ | |
21338 | #include <typeinfo> | |
21339 | class Base { public : Base () {} virtual void f () = 0;}; | |
21340 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
21341 | class Unrelated { public : Unrelated () {} }; | |
21342 | int g (Unrelated&) { return 0; } | |
21343 | int | |
21344 | main () | |
21345 | { | |
21346 | ||
21347 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
21348 | ; | |
21349 | return 0; | |
21350 | } | |
21351 | _ACEOF | |
21352 | rm -f conftest.$ac_objext | |
21353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21354 | (eval $ac_compile) 2>conftest.er1 | |
21355 | ac_status=$? | |
21356 | grep -v '^ *+' conftest.er1 >conftest.err | |
21357 | rm -f conftest.er1 | |
21358 | cat conftest.err >&5 | |
21359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21360 | (exit $ac_status); } && | |
ddd14b14 RR |
21361 | { ac_try='test -z "$ac_cxx_werror_flag" |
21362 | || test ! -s conftest.err' | |
7714864e RL |
21363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21364 | (eval $ac_try) 2>&5 | |
21365 | ac_status=$? | |
21366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21367 | (exit $ac_status); }; } && | |
21368 | { ac_try='test -s conftest.$ac_objext' | |
21369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21370 | (eval $ac_try) 2>&5 | |
21371 | ac_status=$? | |
21372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21373 | (exit $ac_status); }; }; then | |
21374 | ac_cv_cxx_reinterpret_cast=yes | |
21375 | else | |
21376 | echo "$as_me: failed program was:" >&5 | |
21377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21378 | ||
21379 | ac_cv_cxx_reinterpret_cast=no | |
21380 | fi | |
21381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21382 | ac_ext=c | |
21383 | ac_cpp='$CPP $CPPFLAGS' | |
21384 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21385 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21386 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21387 | ||
21388 | ||
21389 | fi | |
21390 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
21391 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
21392 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
21393 | ||
21394 | cat >>confdefs.h <<\_ACEOF | |
21395 | #define HAVE_REINTERPRET_CAST | |
21396 | _ACEOF | |
21397 | ||
21398 | fi | |
21399 | ||
a848cd7e SC |
21400 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
21401 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
21402 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
21403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21404 | else | |
21405 | ||
21406 | ||
21407 | ac_ext=cc | |
21408 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21409 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21410 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21411 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21412 | ||
21413 | cat >conftest.$ac_ext <<_ACEOF | |
21414 | /* confdefs.h. */ | |
21415 | _ACEOF | |
21416 | cat confdefs.h >>conftest.$ac_ext | |
21417 | cat >>conftest.$ac_ext <<_ACEOF | |
21418 | /* end confdefs.h. */ | |
21419 | #include <typeinfo> | |
21420 | class Base { public : Base () {} virtual void f () = 0; }; | |
21421 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
21422 | int g (Derived&) { return 0; } | |
21423 | int | |
21424 | main () | |
21425 | { | |
21426 | ||
21427 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
21428 | ; | |
21429 | return 0; | |
21430 | } | |
21431 | _ACEOF | |
21432 | rm -f conftest.$ac_objext | |
21433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21434 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21435 | ac_status=$? |
ac1cb8d3 VS |
21436 | grep -v '^ *+' conftest.er1 >conftest.err |
21437 | rm -f conftest.er1 | |
21438 | cat conftest.err >&5 | |
a848cd7e SC |
21439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21440 | (exit $ac_status); } && | |
ddd14b14 RR |
21441 | { ac_try='test -z "$ac_cxx_werror_flag" |
21442 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21444 | (eval $ac_try) 2>&5 | |
21445 | ac_status=$? | |
21446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21447 | (exit $ac_status); }; } && | |
21448 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21450 | (eval $ac_try) 2>&5 | |
21451 | ac_status=$? | |
21452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21453 | (exit $ac_status); }; }; then | |
21454 | ac_cv_cxx_static_cast=yes | |
21455 | else | |
21456 | echo "$as_me: failed program was:" >&5 | |
21457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21458 | ||
21459 | ac_cv_cxx_static_cast=no | |
21460 | fi | |
ac1cb8d3 | 21461 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21462 | ac_ext=c |
21463 | ac_cpp='$CPP $CPPFLAGS' | |
21464 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21465 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21466 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21467 | ||
21468 | ||
21469 | fi | |
21470 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
21471 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
21472 | if test "$ac_cv_cxx_static_cast" = yes; then | |
21473 | ||
21474 | cat >>confdefs.h <<\_ACEOF | |
21475 | #define HAVE_STATIC_CAST | |
21476 | _ACEOF | |
21477 | ||
21478 | fi | |
21479 | ||
21480 | ||
f56c22b4 | 21481 | if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then |
a848cd7e SC |
21482 | ac_ext=cc |
21483 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21484 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21485 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21486 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21487 | ||
21488 | ||
f56c22b4 MW |
21489 | if test "$wxUSE_UNICODE" = "yes"; then |
21490 | std_string="std::wstring" | |
21491 | char_type="wchar_t" | |
21492 | else | |
21493 | std_string="std::string" | |
21494 | char_type="char" | |
21495 | fi | |
21496 | ||
21497 | echo "$as_me:$LINENO: checking for $std_string in <string>" >&5 | |
21498 | echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6 | |
a848cd7e SC |
21499 | cat >conftest.$ac_ext <<_ACEOF |
21500 | /* confdefs.h. */ | |
21501 | _ACEOF | |
21502 | cat confdefs.h >>conftest.$ac_ext | |
21503 | cat >>conftest.$ac_ext <<_ACEOF | |
21504 | /* end confdefs.h. */ | |
21505 | #include <string> | |
a848cd7e SC |
21506 | int |
21507 | main () | |
21508 | { | |
f56c22b4 | 21509 | $std_string foo; |
a848cd7e SC |
21510 | ; |
21511 | return 0; | |
21512 | } | |
21513 | _ACEOF | |
21514 | rm -f conftest.$ac_objext | |
21515 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21516 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21517 | ac_status=$? |
ac1cb8d3 VS |
21518 | grep -v '^ *+' conftest.er1 >conftest.err |
21519 | rm -f conftest.er1 | |
21520 | cat conftest.err >&5 | |
a848cd7e SC |
21521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21522 | (exit $ac_status); } && | |
ddd14b14 RR |
21523 | { ac_try='test -z "$ac_cxx_werror_flag" |
21524 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21526 | (eval $ac_try) 2>&5 | |
21527 | ac_status=$? | |
21528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21529 | (exit $ac_status); }; } && | |
21530 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21532 | (eval $ac_try) 2>&5 | |
21533 | ac_status=$? | |
21534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21535 | (exit $ac_status); }; }; then | |
21536 | echo "$as_me:$LINENO: result: yes" >&5 | |
21537 | echo "${ECHO_T}yes" >&6 | |
0a08f02a MB |
21538 | cat >>confdefs.h <<\_ACEOF |
21539 | #define HAVE_STD_WSTRING 1 | |
21540 | _ACEOF | |
21541 | ||
a848cd7e SC |
21542 | else |
21543 | echo "$as_me: failed program was:" >&5 | |
21544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21545 | ||
21546 | echo "$as_me:$LINENO: result: no" >&5 | |
21547 | echo "${ECHO_T}no" >&6 | |
f56c22b4 MW |
21548 | echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5 |
21549 | echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6 | |
0a08f02a MB |
21550 | cat >conftest.$ac_ext <<_ACEOF |
21551 | /* confdefs.h. */ | |
21552 | _ACEOF | |
21553 | cat confdefs.h >>conftest.$ac_ext | |
21554 | cat >>conftest.$ac_ext <<_ACEOF | |
21555 | /* end confdefs.h. */ | |
21556 | ||
21557 | #ifdef HAVE_WCHAR_H | |
21558 | # ifdef __CYGWIN__ | |
21559 | # include <stddef.h> | |
21560 | # endif | |
21561 | # include <wchar.h> | |
21562 | #endif | |
21563 | #ifdef HAVE_STDLIB_H | |
21564 | # include <stdlib.h> | |
21565 | #endif | |
21566 | #include <stdio.h> | |
21567 | #include <string> | |
21568 | ||
21569 | int | |
21570 | main () | |
21571 | { | |
f56c22b4 MW |
21572 | std::basic_string<$char_type> foo; |
21573 | const $char_type* dummy = foo.c_str(); | |
0a08f02a MB |
21574 | ; |
21575 | return 0; | |
21576 | } | |
21577 | _ACEOF | |
21578 | rm -f conftest.$ac_objext | |
21579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21580 | (eval $ac_compile) 2>conftest.er1 | |
21581 | ac_status=$? | |
21582 | grep -v '^ *+' conftest.er1 >conftest.err | |
21583 | rm -f conftest.er1 | |
21584 | cat conftest.err >&5 | |
21585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21586 | (exit $ac_status); } && | |
ddd14b14 RR |
21587 | { ac_try='test -z "$ac_cxx_werror_flag" |
21588 | || test ! -s conftest.err' | |
0a08f02a MB |
21589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21590 | (eval $ac_try) 2>&5 | |
21591 | ac_status=$? | |
21592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21593 | (exit $ac_status); }; } && | |
21594 | { ac_try='test -s conftest.$ac_objext' | |
21595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21596 | (eval $ac_try) 2>&5 | |
21597 | ac_status=$? | |
21598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21599 | (exit $ac_status); }; }; then | |
21600 | echo "$as_me:$LINENO: result: yes" >&5 | |
21601 | echo "${ECHO_T}yes" >&6 | |
21602 | else | |
21603 | echo "$as_me: failed program was:" >&5 | |
21604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21605 | ||
21606 | echo "$as_me:$LINENO: result: no" >&5 | |
21607 | echo "${ECHO_T}no" >&6 | |
f56c22b4 | 21608 | if test "$wxUSE_STL" = "yes"; then |
4b9918c5 MW |
21609 | { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5 |
21610 | echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;} | |
21611 | { (exit 1); exit 1; }; } | |
21612 | elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then | |
21613 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5 | |
21614 | echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;} | |
a848cd7e | 21615 | { (exit 1); exit 1; }; } |
f56c22b4 MW |
21616 | else |
21617 | { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5 | |
21618 | echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;} | |
21619 | wxUSE_STD_STRING=no | |
21620 | fi | |
21621 | ||
0a08f02a | 21622 | |
a848cd7e | 21623 | fi |
ac1cb8d3 | 21624 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 21625 | |
0a08f02a MB |
21626 | fi |
21627 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21628 | ||
21629 | ac_ext=c | |
21630 | ac_cpp='$CPP $CPPFLAGS' | |
21631 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21632 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
f56c22b4 MW |
21633 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
21634 | ||
21635 | fi | |
21636 | ||
21637 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
21638 | ac_ext=cc | |
21639 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21640 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21641 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21642 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21643 | ||
21644 | ||
21645 | echo "$as_me:$LINENO: checking for std::istream" >&5 | |
21646 | echo $ECHO_N "checking for std::istream... $ECHO_C" >&6 | |
21647 | if test "${ac_cv_type_std__istream+set}" = set; then | |
21648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21649 | else | |
21650 | cat >conftest.$ac_ext <<_ACEOF | |
21651 | /* confdefs.h. */ | |
21652 | _ACEOF | |
21653 | cat confdefs.h >>conftest.$ac_ext | |
21654 | cat >>conftest.$ac_ext <<_ACEOF | |
21655 | /* end confdefs.h. */ | |
21656 | #include <iostream> | |
21657 | ||
21658 | int | |
21659 | main () | |
21660 | { | |
21661 | if ((std::istream *) 0) | |
21662 | return 0; | |
21663 | if (sizeof (std::istream)) | |
21664 | return 0; | |
21665 | ; | |
21666 | return 0; | |
21667 | } | |
21668 | _ACEOF | |
21669 | rm -f conftest.$ac_objext | |
21670 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21671 | (eval $ac_compile) 2>conftest.er1 | |
21672 | ac_status=$? | |
21673 | grep -v '^ *+' conftest.er1 >conftest.err | |
21674 | rm -f conftest.er1 | |
21675 | cat conftest.err >&5 | |
21676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21677 | (exit $ac_status); } && | |
ddd14b14 RR |
21678 | { ac_try='test -z "$ac_cxx_werror_flag" |
21679 | || test ! -s conftest.err' | |
f56c22b4 MW |
21680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21681 | (eval $ac_try) 2>&5 | |
21682 | ac_status=$? | |
21683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21684 | (exit $ac_status); }; } && | |
21685 | { ac_try='test -s conftest.$ac_objext' | |
21686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21687 | (eval $ac_try) 2>&5 | |
21688 | ac_status=$? | |
21689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21690 | (exit $ac_status); }; }; then | |
21691 | ac_cv_type_std__istream=yes | |
21692 | else | |
21693 | echo "$as_me: failed program was:" >&5 | |
21694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21695 | ||
21696 | ac_cv_type_std__istream=no | |
21697 | fi | |
21698 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21699 | fi | |
21700 | echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5 | |
21701 | echo "${ECHO_T}$ac_cv_type_std__istream" >&6 | |
21702 | if test $ac_cv_type_std__istream = yes; then | |
21703 | ||
21704 | cat >>confdefs.h <<_ACEOF | |
21705 | #define HAVE_STD__ISTREAM 1 | |
21706 | _ACEOF | |
21707 | ||
21708 | ||
21709 | else | |
21710 | wxUSE_STD_IOSTREAM=no | |
21711 | fi | |
21712 | echo "$as_me:$LINENO: checking for std::ostream" >&5 | |
21713 | echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6 | |
21714 | if test "${ac_cv_type_std__ostream+set}" = set; then | |
21715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21716 | else | |
21717 | cat >conftest.$ac_ext <<_ACEOF | |
21718 | /* confdefs.h. */ | |
21719 | _ACEOF | |
21720 | cat confdefs.h >>conftest.$ac_ext | |
21721 | cat >>conftest.$ac_ext <<_ACEOF | |
21722 | /* end confdefs.h. */ | |
21723 | #include <iostream> | |
21724 | ||
21725 | int | |
21726 | main () | |
21727 | { | |
21728 | if ((std::ostream *) 0) | |
21729 | return 0; | |
21730 | if (sizeof (std::ostream)) | |
21731 | return 0; | |
21732 | ; | |
21733 | return 0; | |
21734 | } | |
21735 | _ACEOF | |
21736 | rm -f conftest.$ac_objext | |
21737 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21738 | (eval $ac_compile) 2>conftest.er1 | |
21739 | ac_status=$? | |
21740 | grep -v '^ *+' conftest.er1 >conftest.err | |
21741 | rm -f conftest.er1 | |
21742 | cat conftest.err >&5 | |
21743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21744 | (exit $ac_status); } && | |
ddd14b14 RR |
21745 | { ac_try='test -z "$ac_cxx_werror_flag" |
21746 | || test ! -s conftest.err' | |
f56c22b4 MW |
21747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21748 | (eval $ac_try) 2>&5 | |
21749 | ac_status=$? | |
21750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21751 | (exit $ac_status); }; } && | |
21752 | { ac_try='test -s conftest.$ac_objext' | |
21753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21754 | (eval $ac_try) 2>&5 | |
21755 | ac_status=$? | |
21756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21757 | (exit $ac_status); }; }; then | |
21758 | ac_cv_type_std__ostream=yes | |
21759 | else | |
21760 | echo "$as_me: failed program was:" >&5 | |
21761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21762 | ||
21763 | ac_cv_type_std__ostream=no | |
21764 | fi | |
21765 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21766 | fi | |
21767 | echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5 | |
21768 | echo "${ECHO_T}$ac_cv_type_std__ostream" >&6 | |
21769 | if test $ac_cv_type_std__ostream = yes; then | |
21770 | ||
21771 | cat >>confdefs.h <<_ACEOF | |
21772 | #define HAVE_STD__OSTREAM 1 | |
21773 | _ACEOF | |
21774 | ||
21775 | ||
21776 | else | |
21777 | wxUSE_STD_IOSTREAM=no | |
21778 | fi | |
21779 | ||
21780 | ||
21781 | if test "$wxUSE_STD_IOSTREAM" != "yes"; then | |
4b9918c5 MW |
21782 | if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then |
21783 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5 | |
21784 | echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;} | |
21785 | { (exit 1); exit 1; }; } | |
21786 | else | |
21787 | { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5 | |
f56c22b4 | 21788 | echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;} |
4b9918c5 | 21789 | fi |
f56c22b4 MW |
21790 | fi |
21791 | ||
21792 | ac_ext=c | |
21793 | ac_cpp='$CPP $CPPFLAGS' | |
21794 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21795 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
0a08f02a MB |
21796 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
21797 | ||
21798 | fi | |
21799 | ||
21800 | if test "$wxUSE_STL" = "yes"; then | |
21801 | ac_ext=cc | |
21802 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21803 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21804 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21805 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21806 | ||
21807 | ||
21808 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
21809 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
a848cd7e SC |
21810 | cat >conftest.$ac_ext <<_ACEOF |
21811 | /* confdefs.h. */ | |
21812 | _ACEOF | |
21813 | cat confdefs.h >>conftest.$ac_ext | |
21814 | cat >>conftest.$ac_ext <<_ACEOF | |
21815 | /* end confdefs.h. */ | |
21816 | #include <string> | |
0a08f02a MB |
21817 | #include <functional> |
21818 | #include <algorithm> | |
21819 | #include <vector> | |
21820 | #include <list> | |
a848cd7e SC |
21821 | int |
21822 | main () | |
21823 | { | |
0a08f02a MB |
21824 | std::vector<int> moo; |
21825 | std::list<int> foo; | |
21826 | std::vector<int>::iterator it = | |
21827 | std::find_if(moo.begin(), moo.end(), | |
21828 | std::bind2nd(std::less<int>(), 3)); | |
a848cd7e SC |
21829 | ; |
21830 | return 0; | |
21831 | } | |
21832 | _ACEOF | |
21833 | rm -f conftest.$ac_objext | |
21834 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21835 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21836 | ac_status=$? |
ac1cb8d3 VS |
21837 | grep -v '^ *+' conftest.er1 >conftest.err |
21838 | rm -f conftest.er1 | |
21839 | cat conftest.err >&5 | |
a848cd7e SC |
21840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21841 | (exit $ac_status); } && | |
ddd14b14 RR |
21842 | { ac_try='test -z "$ac_cxx_werror_flag" |
21843 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21845 | (eval $ac_try) 2>&5 | |
21846 | ac_status=$? | |
21847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21848 | (exit $ac_status); }; } && | |
21849 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21851 | (eval $ac_try) 2>&5 | |
21852 | ac_status=$? | |
21853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21854 | (exit $ac_status); }; }; then | |
21855 | echo "$as_me:$LINENO: result: yes" >&5 | |
21856 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
21857 | else |
21858 | echo "$as_me: failed program was:" >&5 | |
21859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21860 | ||
21861 | echo "$as_me:$LINENO: result: no" >&5 | |
21862 | echo "${ECHO_T}no" >&6 | |
0a08f02a MB |
21863 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 |
21864 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
21865 | { (exit 1); exit 1; }; } | |
a848cd7e | 21866 | fi |
ac1cb8d3 | 21867 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21868 | |
21869 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
21870 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
21871 | cat >conftest.$ac_ext <<_ACEOF | |
21872 | /* confdefs.h. */ | |
21873 | _ACEOF | |
21874 | cat confdefs.h >>conftest.$ac_ext | |
21875 | cat >>conftest.$ac_ext <<_ACEOF | |
21876 | /* end confdefs.h. */ | |
21877 | #include <string> | |
21878 | int | |
21879 | main () | |
21880 | { | |
21881 | std::string foo, bar; | |
21882 | foo.compare(bar); | |
21883 | foo.compare(1, 1, bar); | |
21884 | foo.compare(1, 1, bar, 1, 1); | |
21885 | foo.compare(""); | |
21886 | foo.compare(1, 1, ""); | |
21887 | foo.compare(1, 1, "", 2); | |
21888 | ; | |
21889 | return 0; | |
21890 | } | |
21891 | _ACEOF | |
21892 | rm -f conftest.$ac_objext | |
21893 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21894 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21895 | ac_status=$? |
ac1cb8d3 VS |
21896 | grep -v '^ *+' conftest.er1 >conftest.err |
21897 | rm -f conftest.er1 | |
21898 | cat conftest.err >&5 | |
a848cd7e SC |
21899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21900 | (exit $ac_status); } && | |
ddd14b14 RR |
21901 | { ac_try='test -z "$ac_cxx_werror_flag" |
21902 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21904 | (eval $ac_try) 2>&5 | |
21905 | ac_status=$? | |
21906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21907 | (exit $ac_status); }; } && | |
21908 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21910 | (eval $ac_try) 2>&5 | |
21911 | ac_status=$? | |
21912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21913 | (exit $ac_status); }; }; then | |
21914 | echo "$as_me:$LINENO: result: yes" >&5 | |
21915 | echo "${ECHO_T}yes" >&6 | |
21916 | cat >>confdefs.h <<\_ACEOF | |
21917 | #define HAVE_STD_STRING_COMPARE 1 | |
21918 | _ACEOF | |
21919 | ||
21920 | else | |
21921 | echo "$as_me: failed program was:" >&5 | |
21922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21923 | ||
21924 | echo "$as_me:$LINENO: result: no" >&5 | |
21925 | echo "${ECHO_T}no" >&6 | |
21926 | fi | |
ac1cb8d3 | 21927 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
21928 | |
21929 | if test "${ac_cv_header_hash_map+set}" = set; then | |
21930 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
21931 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
21932 | if test "${ac_cv_header_hash_map+set}" = set; then | |
21933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21934 | fi | |
21935 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
21936 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
21937 | else | |
21938 | # Is the header compilable? | |
21939 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
21940 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
21941 | cat >conftest.$ac_ext <<_ACEOF | |
21942 | /* confdefs.h. */ | |
21943 | _ACEOF | |
21944 | cat confdefs.h >>conftest.$ac_ext | |
21945 | cat >>conftest.$ac_ext <<_ACEOF | |
21946 | /* end confdefs.h. */ | |
21947 | $ac_includes_default | |
21948 | #include <hash_map> | |
21949 | _ACEOF | |
21950 | rm -f conftest.$ac_objext | |
21951 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21952 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 21953 | ac_status=$? |
ac1cb8d3 VS |
21954 | grep -v '^ *+' conftest.er1 >conftest.err |
21955 | rm -f conftest.er1 | |
21956 | cat conftest.err >&5 | |
bdcade0a MB |
21957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21958 | (exit $ac_status); } && | |
ddd14b14 RR |
21959 | { ac_try='test -z "$ac_cxx_werror_flag" |
21960 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21962 | (eval $ac_try) 2>&5 | |
21963 | ac_status=$? | |
21964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21965 | (exit $ac_status); }; } && | |
21966 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
21967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21968 | (eval $ac_try) 2>&5 | |
21969 | ac_status=$? | |
21970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21971 | (exit $ac_status); }; }; then | |
21972 | ac_header_compiler=yes | |
21973 | else | |
21974 | echo "$as_me: failed program was:" >&5 | |
21975 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21976 | ||
21977 | ac_header_compiler=no | |
21978 | fi | |
ac1cb8d3 | 21979 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
21980 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21981 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21982 | ||
21983 | # Is the header present? | |
21984 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
21985 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
21986 | cat >conftest.$ac_ext <<_ACEOF | |
21987 | /* confdefs.h. */ | |
21988 | _ACEOF | |
21989 | cat confdefs.h >>conftest.$ac_ext | |
21990 | cat >>conftest.$ac_ext <<_ACEOF | |
21991 | /* end confdefs.h. */ | |
21992 | #include <hash_map> | |
21993 | _ACEOF | |
21994 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21995 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21996 | ac_status=$? | |
21997 | grep -v '^ *+' conftest.er1 >conftest.err | |
21998 | rm -f conftest.er1 | |
21999 | cat conftest.err >&5 | |
22000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22001 | (exit $ac_status); } >/dev/null; then | |
22002 | if test -s conftest.err; then | |
22003 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 22004 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
22005 | else |
22006 | ac_cpp_err= | |
22007 | fi | |
22008 | else | |
22009 | ac_cpp_err=yes | |
22010 | fi | |
22011 | if test -z "$ac_cpp_err"; then | |
22012 | ac_header_preproc=yes | |
22013 | else | |
22014 | echo "$as_me: failed program was:" >&5 | |
22015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22016 | ||
22017 | ac_header_preproc=no | |
22018 | fi | |
22019 | rm -f conftest.err conftest.$ac_ext | |
22020 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22021 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22022 | ||
22023 | # So? What about this header? | |
ac1cb8d3 VS |
22024 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
22025 | yes:no: ) | |
bdcade0a MB |
22026 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
22027 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22028 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
22029 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
22030 | ac_header_preproc=yes | |
bdcade0a | 22031 | ;; |
ac1cb8d3 | 22032 | no:yes:* ) |
bdcade0a MB |
22033 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
22034 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22035 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
22036 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
22037 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
22038 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
22039 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
22040 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
22041 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
22042 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22043 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
22044 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
22045 | ( |
22046 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22047 | ## ----------------------------------------- ## |
22048 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22049 | ## ----------------------------------------- ## | |
bdcade0a MB |
22050 | _ASBOX |
22051 | ) | | |
22052 | sed "s/^/$as_me: WARNING: /" >&2 | |
22053 | ;; | |
22054 | esac | |
22055 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
22056 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
22057 | if test "${ac_cv_header_hash_map+set}" = set; then | |
22058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22059 | else | |
22060 | ac_cv_header_hash_map=$ac_header_preproc | |
22061 | fi | |
22062 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
22063 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
22064 | ||
22065 | fi | |
22066 | if test $ac_cv_header_hash_map = yes; then | |
22067 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
22068 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
22069 | cat >conftest.$ac_ext <<_ACEOF | |
22070 | /* confdefs.h. */ | |
22071 | _ACEOF | |
22072 | cat confdefs.h >>conftest.$ac_ext | |
22073 | cat >>conftest.$ac_ext <<_ACEOF | |
22074 | /* end confdefs.h. */ | |
22075 | #include <hash_map> | |
22076 | #include <hash_set> | |
22077 | int | |
22078 | main () | |
22079 | { | |
22080 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
22081 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
22082 | ; | |
22083 | return 0; | |
22084 | } | |
22085 | _ACEOF | |
22086 | rm -f conftest.$ac_objext | |
22087 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22088 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 22089 | ac_status=$? |
ac1cb8d3 VS |
22090 | grep -v '^ *+' conftest.er1 >conftest.err |
22091 | rm -f conftest.er1 | |
22092 | cat conftest.err >&5 | |
bdcade0a MB |
22093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22094 | (exit $ac_status); } && | |
ddd14b14 RR |
22095 | { ac_try='test -z "$ac_cxx_werror_flag" |
22096 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22098 | (eval $ac_try) 2>&5 | |
22099 | ac_status=$? | |
22100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22101 | (exit $ac_status); }; } && | |
22102 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
22103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22104 | (eval $ac_try) 2>&5 | |
22105 | ac_status=$? | |
22106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22107 | (exit $ac_status); }; }; then | |
22108 | echo "$as_me:$LINENO: result: yes" >&5 | |
22109 | echo "${ECHO_T}yes" >&6 | |
22110 | cat >>confdefs.h <<\_ACEOF | |
22111 | #define HAVE_HASH_MAP 1 | |
22112 | _ACEOF | |
22113 | ||
22114 | cat >>confdefs.h <<\_ACEOF | |
22115 | #define HAVE_STD_HASH_MAP 1 | |
22116 | _ACEOF | |
22117 | ||
22118 | else | |
22119 | echo "$as_me: failed program was:" >&5 | |
22120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22121 | ||
22122 | echo "$as_me:$LINENO: result: no" >&5 | |
22123 | echo "${ECHO_T}no" >&6 | |
22124 | fi | |
ac1cb8d3 | 22125 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
22126 | |
22127 | fi | |
22128 | ||
22129 | ||
22130 | ||
22131 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
22132 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
22133 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
22134 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
22135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22136 | fi | |
22137 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
22138 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
22139 | else | |
22140 | # Is the header compilable? | |
22141 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
22142 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
22143 | cat >conftest.$ac_ext <<_ACEOF | |
22144 | /* confdefs.h. */ | |
22145 | _ACEOF | |
22146 | cat confdefs.h >>conftest.$ac_ext | |
22147 | cat >>conftest.$ac_ext <<_ACEOF | |
22148 | /* end confdefs.h. */ | |
22149 | $ac_includes_default | |
22150 | #include <ext/hash_map> | |
22151 | _ACEOF | |
22152 | rm -f conftest.$ac_objext | |
22153 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22154 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 22155 | ac_status=$? |
ac1cb8d3 VS |
22156 | grep -v '^ *+' conftest.er1 >conftest.err |
22157 | rm -f conftest.er1 | |
22158 | cat conftest.err >&5 | |
bdcade0a MB |
22159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22160 | (exit $ac_status); } && | |
ddd14b14 RR |
22161 | { ac_try='test -z "$ac_cxx_werror_flag" |
22162 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22164 | (eval $ac_try) 2>&5 | |
22165 | ac_status=$? | |
22166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22167 | (exit $ac_status); }; } && | |
22168 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
22169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22170 | (eval $ac_try) 2>&5 | |
22171 | ac_status=$? | |
22172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22173 | (exit $ac_status); }; }; then | |
22174 | ac_header_compiler=yes | |
22175 | else | |
22176 | echo "$as_me: failed program was:" >&5 | |
22177 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22178 | ||
22179 | ac_header_compiler=no | |
22180 | fi | |
ac1cb8d3 | 22181 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
22182 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22183 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22184 | ||
22185 | # Is the header present? | |
22186 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
22187 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
22188 | cat >conftest.$ac_ext <<_ACEOF | |
22189 | /* confdefs.h. */ | |
22190 | _ACEOF | |
22191 | cat confdefs.h >>conftest.$ac_ext | |
22192 | cat >>conftest.$ac_ext <<_ACEOF | |
22193 | /* end confdefs.h. */ | |
22194 | #include <ext/hash_map> | |
22195 | _ACEOF | |
22196 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22197 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22198 | ac_status=$? | |
22199 | grep -v '^ *+' conftest.er1 >conftest.err | |
22200 | rm -f conftest.er1 | |
22201 | cat conftest.err >&5 | |
22202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22203 | (exit $ac_status); } >/dev/null; then | |
22204 | if test -s conftest.err; then | |
22205 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 22206 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
22207 | else |
22208 | ac_cpp_err= | |
22209 | fi | |
22210 | else | |
22211 | ac_cpp_err=yes | |
22212 | fi | |
22213 | if test -z "$ac_cpp_err"; then | |
22214 | ac_header_preproc=yes | |
22215 | else | |
22216 | echo "$as_me: failed program was:" >&5 | |
22217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22218 | ||
22219 | ac_header_preproc=no | |
22220 | fi | |
22221 | rm -f conftest.err conftest.$ac_ext | |
22222 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22223 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22224 | ||
22225 | # So? What about this header? | |
ac1cb8d3 VS |
22226 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
22227 | yes:no: ) | |
bdcade0a MB |
22228 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
22229 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22230 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
22231 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
22232 | ac_header_preproc=yes | |
bdcade0a | 22233 | ;; |
ac1cb8d3 | 22234 | no:yes:* ) |
bdcade0a MB |
22235 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
22236 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22237 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
22238 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
22239 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
22240 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
22241 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
22242 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
22243 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
22244 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22245 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
22246 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
22247 | ( |
22248 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22249 | ## ----------------------------------------- ## |
22250 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22251 | ## ----------------------------------------- ## | |
bdcade0a MB |
22252 | _ASBOX |
22253 | ) | | |
22254 | sed "s/^/$as_me: WARNING: /" >&2 | |
22255 | ;; | |
22256 | esac | |
22257 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
22258 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
22259 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
22260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22261 | else | |
22262 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
22263 | fi | |
22264 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
22265 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
22266 | ||
22267 | fi | |
22268 | if test $ac_cv_header_ext_hash_map = yes; then | |
22269 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
22270 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
22271 | cat >conftest.$ac_ext <<_ACEOF | |
22272 | /* confdefs.h. */ | |
22273 | _ACEOF | |
22274 | cat confdefs.h >>conftest.$ac_ext | |
22275 | cat >>conftest.$ac_ext <<_ACEOF | |
22276 | /* end confdefs.h. */ | |
22277 | #include <ext/hash_map> | |
22278 | #include <ext/hash_set> | |
22279 | int | |
22280 | main () | |
22281 | { | |
22282 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
22283 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
22284 | ; | |
22285 | return 0; | |
22286 | } | |
22287 | _ACEOF | |
22288 | rm -f conftest.$ac_objext | |
22289 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22290 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 22291 | ac_status=$? |
ac1cb8d3 VS |
22292 | grep -v '^ *+' conftest.er1 >conftest.err |
22293 | rm -f conftest.er1 | |
22294 | cat conftest.err >&5 | |
bdcade0a MB |
22295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22296 | (exit $ac_status); } && | |
ddd14b14 RR |
22297 | { ac_try='test -z "$ac_cxx_werror_flag" |
22298 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22300 | (eval $ac_try) 2>&5 | |
22301 | ac_status=$? | |
22302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22303 | (exit $ac_status); }; } && | |
22304 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
22305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22306 | (eval $ac_try) 2>&5 | |
22307 | ac_status=$? | |
22308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22309 | (exit $ac_status); }; }; then | |
22310 | echo "$as_me:$LINENO: result: yes" >&5 | |
22311 | echo "${ECHO_T}yes" >&6 | |
22312 | cat >>confdefs.h <<\_ACEOF | |
22313 | #define HAVE_EXT_HASH_MAP 1 | |
22314 | _ACEOF | |
22315 | ||
22316 | cat >>confdefs.h <<\_ACEOF | |
22317 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
22318 | _ACEOF | |
22319 | ||
22320 | else | |
22321 | echo "$as_me: failed program was:" >&5 | |
22322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22323 | ||
22324 | echo "$as_me:$LINENO: result: no" >&5 | |
22325 | echo "${ECHO_T}no" >&6 | |
22326 | fi | |
ac1cb8d3 | 22327 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
22328 | |
22329 | fi | |
22330 | ||
22331 | ||
a848cd7e SC |
22332 | |
22333 | ac_ext=c | |
22334 | ac_cpp='$CPP $CPPFLAGS' | |
22335 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22336 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22337 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22338 | ||
22339 | fi | |
22340 | ||
22341 | ||
22342 | SEARCH_INCLUDE="\ | |
22343 | /usr/local/include \ | |
22344 | \ | |
22345 | /usr/Motif-2.1/include \ | |
22346 | /usr/Motif-1.2/include \ | |
22347 | /usr/include/Motif1.2 \ | |
22348 | /opt/xpm/include/X11 \ | |
22349 | /opt/GBxpm/include/ \ | |
22350 | /opt/GBxpm/X11/include/ \ | |
22351 | \ | |
22352 | /usr/dt/include \ | |
22353 | /usr/openwin/include \ | |
22354 | \ | |
22355 | /usr/include/Xm \ | |
22356 | \ | |
22357 | /usr/X11R6/include \ | |
22358 | /usr/X11R6.4/include \ | |
22359 | /usr/X11R5/include \ | |
22360 | /usr/X11R4/include \ | |
22361 | \ | |
22362 | /usr/include/X11R6 \ | |
22363 | /usr/include/X11R5 \ | |
22364 | /usr/include/X11R4 \ | |
22365 | \ | |
22366 | /usr/local/X11R6/include \ | |
22367 | /usr/local/X11R5/include \ | |
22368 | /usr/local/X11R4/include \ | |
22369 | \ | |
22370 | /usr/local/include/X11R6 \ | |
22371 | /usr/local/include/X11R5 \ | |
22372 | /usr/local/include/X11R4 \ | |
22373 | \ | |
22374 | /usr/X11/include \ | |
22375 | /usr/include/X11 \ | |
22376 | /usr/local/X11/include \ | |
22377 | /usr/local/include/X11 \ | |
22378 | \ | |
22379 | /usr/X386/include \ | |
22380 | /usr/x386/include \ | |
22381 | /usr/XFree86/include/X11 \ | |
22382 | \ | |
22383 | X:/XFree86/include \ | |
22384 | X:/XFree86/include/X11 \ | |
22385 | \ | |
22386 | /usr/include/gtk \ | |
22387 | /usr/local/include/gtk \ | |
22388 | /usr/include/glib \ | |
22389 | /usr/local/include/glib \ | |
22390 | \ | |
22391 | /usr/include/qt \ | |
22392 | /usr/local/include/qt \ | |
22393 | \ | |
22394 | /usr/local/arm/3.3.2/include \ | |
22395 | \ | |
22396 | /usr/include/windows \ | |
22397 | /usr/include/wine \ | |
22398 | /usr/local/include/wine \ | |
22399 | \ | |
22400 | /usr/unsupported/include \ | |
22401 | /usr/athena/include \ | |
22402 | /usr/local/x11r5/include \ | |
22403 | /usr/lpp/Xamples/include \ | |
22404 | \ | |
22405 | /usr/openwin/share/include" | |
22406 | ||
07158944 | 22407 | SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`" |
a848cd7e SC |
22408 | |
22409 | ||
22410 | cat >confcache <<\_ACEOF | |
22411 | # This file is a shell script that caches the results of configure | |
22412 | # tests run on this system so they can be shared between configure | |
22413 | # scripts and configure runs, see configure's option --config-cache. | |
22414 | # It is not useful on other systems. If it contains results you don't | |
22415 | # want to keep, you may remove or edit it. | |
22416 | # | |
22417 | # config.status only pays attention to the cache file if you give it | |
22418 | # the --recheck option to rerun configure. | |
22419 | # | |
22420 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
22421 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
22422 | # following values. | |
22423 | ||
22424 | _ACEOF | |
22425 | ||
22426 | # The following way of writing the cache mishandles newlines in values, | |
22427 | # but we know of no workaround that is simple, portable, and efficient. | |
22428 | # So, don't put newlines in cache variables' values. | |
22429 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
22430 | # and sets the high bit in the cache file unless we assign to the vars. | |
22431 | { | |
22432 | (set) 2>&1 | | |
22433 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
22434 | *ac_space=\ *) | |
22435 | # `set' does not quote correctly, so add quotes (double-quote | |
22436 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
22437 | sed -n \ | |
ac1cb8d3 VS |
22438 | "s/'/'\\\\''/g; |
22439 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
22440 | ;; |
22441 | *) | |
22442 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
22443 | sed -n \ | |
ac1cb8d3 | 22444 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
22445 | ;; |
22446 | esac; | |
22447 | } | | |
22448 | sed ' | |
22449 | t clear | |
22450 | : clear | |
22451 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
22452 | t end | |
22453 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
22454 | : end' >>confcache | |
22455 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
22456 | if test -w $cache_file; then | |
22457 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
22458 | cat confcache >$cache_file | |
22459 | else | |
22460 | echo "not updating unwritable cache $cache_file" | |
22461 | fi | |
22462 | fi | |
22463 | rm -f confcache | |
22464 | ||
22465 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
22466 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
22467 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
22468 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
22469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22470 | else | |
22471 | ||
22472 | cat >conftest.$ac_ext <<_ACEOF | |
22473 | /* confdefs.h. */ | |
22474 | _ACEOF | |
22475 | cat confdefs.h >>conftest.$ac_ext | |
22476 | cat >>conftest.$ac_ext <<_ACEOF | |
22477 | /* end confdefs.h. */ | |
22478 | #include <features.h> | |
22479 | int | |
22480 | main () | |
22481 | { | |
22482 | ||
22483 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
22484 | #error not glibc2.1 | |
22485 | #endif | |
22486 | ||
22487 | ; | |
22488 | return 0; | |
22489 | } | |
22490 | _ACEOF | |
22491 | rm -f conftest.$ac_objext | |
22492 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22493 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22494 | ac_status=$? |
ac1cb8d3 VS |
22495 | grep -v '^ *+' conftest.er1 >conftest.err |
22496 | rm -f conftest.er1 | |
22497 | cat conftest.err >&5 | |
a848cd7e SC |
22498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22499 | (exit $ac_status); } && | |
ddd14b14 RR |
22500 | { ac_try='test -z "$ac_c_werror_flag" |
22501 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22503 | (eval $ac_try) 2>&5 | |
22504 | ac_status=$? | |
22505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22506 | (exit $ac_status); }; } && | |
22507 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22509 | (eval $ac_try) 2>&5 | |
22510 | ac_status=$? | |
22511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22512 | (exit $ac_status); }; }; then | |
22513 | ||
22514 | wx_cv_lib_glibc21=yes | |
22515 | ||
22516 | else | |
22517 | echo "$as_me: failed program was:" >&5 | |
22518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22519 | ||
22520 | ||
22521 | wx_cv_lib_glibc21=no | |
22522 | ||
22523 | ||
22524 | fi | |
ac1cb8d3 | 22525 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22526 | |
22527 | fi | |
22528 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
22529 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
22530 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
22531 | cat >>confdefs.h <<\_ACEOF | |
22532 | #define wxHAVE_GLIBC2 1 | |
22533 | _ACEOF | |
22534 | ||
22535 | fi | |
22536 | fi | |
22537 | ||
22538 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
22539 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
22540 | cat >>confdefs.h <<\_ACEOF | |
22541 | #define _GNU_SOURCE 1 | |
22542 | _ACEOF | |
22543 | ||
22544 | fi | |
22545 | fi | |
22546 | ||
22547 | ||
22548 | ||
22549 | if test "$wxUSE_REGEX" != "no"; then | |
22550 | cat >>confdefs.h <<\_ACEOF | |
22551 | #define wxUSE_REGEX 1 | |
22552 | _ACEOF | |
22553 | ||
22554 | ||
22555 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
22556 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
22557 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
22558 | wxUSE_REGEX=builtin | |
22559 | fi | |
22560 | ||
22561 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
22562 | if test "${ac_cv_header_regex_h+set}" = set; then | |
22563 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
22564 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
22565 | if test "${ac_cv_header_regex_h+set}" = set; then | |
22566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22567 | fi | |
22568 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
22569 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
22570 | else | |
22571 | # Is the header compilable? | |
22572 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
22573 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
22574 | cat >conftest.$ac_ext <<_ACEOF | |
22575 | /* confdefs.h. */ | |
22576 | _ACEOF | |
22577 | cat confdefs.h >>conftest.$ac_ext | |
22578 | cat >>conftest.$ac_ext <<_ACEOF | |
22579 | /* end confdefs.h. */ | |
22580 | $ac_includes_default | |
22581 | #include <regex.h> | |
22582 | _ACEOF | |
22583 | rm -f conftest.$ac_objext | |
22584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22585 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22586 | ac_status=$? |
ac1cb8d3 VS |
22587 | grep -v '^ *+' conftest.er1 >conftest.err |
22588 | rm -f conftest.er1 | |
22589 | cat conftest.err >&5 | |
a848cd7e SC |
22590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22591 | (exit $ac_status); } && | |
ddd14b14 RR |
22592 | { ac_try='test -z "$ac_c_werror_flag" |
22593 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22595 | (eval $ac_try) 2>&5 | |
22596 | ac_status=$? | |
22597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22598 | (exit $ac_status); }; } && | |
22599 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22601 | (eval $ac_try) 2>&5 | |
22602 | ac_status=$? | |
22603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22604 | (exit $ac_status); }; }; then | |
22605 | ac_header_compiler=yes | |
22606 | else | |
22607 | echo "$as_me: failed program was:" >&5 | |
22608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22609 | ||
22610 | ac_header_compiler=no | |
22611 | fi | |
ac1cb8d3 | 22612 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22613 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22614 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22615 | ||
22616 | # Is the header present? | |
22617 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
22618 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
22619 | cat >conftest.$ac_ext <<_ACEOF | |
22620 | /* confdefs.h. */ | |
22621 | _ACEOF | |
22622 | cat confdefs.h >>conftest.$ac_ext | |
22623 | cat >>conftest.$ac_ext <<_ACEOF | |
22624 | /* end confdefs.h. */ | |
22625 | #include <regex.h> | |
22626 | _ACEOF | |
22627 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22628 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22629 | ac_status=$? | |
22630 | grep -v '^ *+' conftest.er1 >conftest.err | |
22631 | rm -f conftest.er1 | |
22632 | cat conftest.err >&5 | |
22633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22634 | (exit $ac_status); } >/dev/null; then | |
22635 | if test -s conftest.err; then | |
22636 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22637 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22638 | else |
22639 | ac_cpp_err= | |
22640 | fi | |
22641 | else | |
22642 | ac_cpp_err=yes | |
22643 | fi | |
22644 | if test -z "$ac_cpp_err"; then | |
22645 | ac_header_preproc=yes | |
22646 | else | |
22647 | echo "$as_me: failed program was:" >&5 | |
22648 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22649 | ||
22650 | ac_header_preproc=no | |
22651 | fi | |
22652 | rm -f conftest.err conftest.$ac_ext | |
22653 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22654 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22655 | ||
22656 | # So? What about this header? | |
ac1cb8d3 VS |
22657 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22658 | yes:no: ) | |
a848cd7e SC |
22659 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22660 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22661 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
22662 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
22663 | ac_header_preproc=yes | |
a848cd7e | 22664 | ;; |
ac1cb8d3 | 22665 | no:yes:* ) |
a848cd7e SC |
22666 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
22667 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22668 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
22669 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
22670 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
22671 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
22672 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22673 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22674 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
22675 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22676 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
22677 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22678 | ( |
22679 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22680 | ## ----------------------------------------- ## |
22681 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22682 | ## ----------------------------------------- ## | |
a848cd7e SC |
22683 | _ASBOX |
22684 | ) | | |
22685 | sed "s/^/$as_me: WARNING: /" >&2 | |
22686 | ;; | |
22687 | esac | |
22688 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
22689 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
22690 | if test "${ac_cv_header_regex_h+set}" = set; then | |
22691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22692 | else | |
22693 | ac_cv_header_regex_h=$ac_header_preproc | |
22694 | fi | |
22695 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
22696 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
22697 | ||
22698 | fi | |
22699 | if test $ac_cv_header_regex_h = yes; then | |
22700 | ||
22701 | for ac_func in regcomp | |
22702 | do | |
22703 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
22704 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
22705 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
22706 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
22707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22708 | else | |
22709 | cat >conftest.$ac_ext <<_ACEOF | |
22710 | /* confdefs.h. */ | |
22711 | _ACEOF | |
22712 | cat confdefs.h >>conftest.$ac_ext | |
22713 | cat >>conftest.$ac_ext <<_ACEOF | |
22714 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
22715 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
22716 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22717 | #define $ac_func innocuous_$ac_func | |
22718 | ||
a848cd7e SC |
22719 | /* System header to define __stub macros and hopefully few prototypes, |
22720 | which can conflict with char $ac_func (); below. | |
22721 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22722 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 22723 | |
a848cd7e SC |
22724 | #ifdef __STDC__ |
22725 | # include <limits.h> | |
22726 | #else | |
22727 | # include <assert.h> | |
22728 | #endif | |
ac1cb8d3 VS |
22729 | |
22730 | #undef $ac_func | |
22731 | ||
a848cd7e SC |
22732 | /* Override any gcc2 internal prototype to avoid an error. */ |
22733 | #ifdef __cplusplus | |
22734 | extern "C" | |
22735 | { | |
22736 | #endif | |
22737 | /* We use char because int might match the return type of a gcc2 | |
22738 | builtin and then its argument prototype would still apply. */ | |
22739 | char $ac_func (); | |
22740 | /* The GNU C library defines this for functions which it implements | |
22741 | to always fail with ENOSYS. Some functions are actually named | |
22742 | something starting with __ and the normal name is an alias. */ | |
22743 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22744 | choke me | |
22745 | #else | |
22746 | char (*f) () = $ac_func; | |
22747 | #endif | |
22748 | #ifdef __cplusplus | |
22749 | } | |
22750 | #endif | |
22751 | ||
22752 | int | |
22753 | main () | |
22754 | { | |
22755 | return f != $ac_func; | |
22756 | ; | |
22757 | return 0; | |
22758 | } | |
22759 | _ACEOF | |
22760 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22761 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22762 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22763 | ac_status=$? |
ac1cb8d3 VS |
22764 | grep -v '^ *+' conftest.er1 >conftest.err |
22765 | rm -f conftest.er1 | |
22766 | cat conftest.err >&5 | |
a848cd7e SC |
22767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22768 | (exit $ac_status); } && | |
ddd14b14 RR |
22769 | { ac_try='test -z "$ac_c_werror_flag" |
22770 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22772 | (eval $ac_try) 2>&5 | |
22773 | ac_status=$? | |
22774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22775 | (exit $ac_status); }; } && | |
22776 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22778 | (eval $ac_try) 2>&5 | |
22779 | ac_status=$? | |
22780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22781 | (exit $ac_status); }; }; then | |
22782 | eval "$as_ac_var=yes" | |
22783 | else | |
22784 | echo "$as_me: failed program was:" >&5 | |
22785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22786 | ||
22787 | eval "$as_ac_var=no" | |
22788 | fi | |
ac1cb8d3 VS |
22789 | rm -f conftest.err conftest.$ac_objext \ |
22790 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22791 | fi |
22792 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
22793 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
22794 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
22795 | cat >>confdefs.h <<_ACEOF | |
22796 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
22797 | _ACEOF | |
22798 | ||
22799 | fi | |
22800 | done | |
22801 | ||
22802 | fi | |
22803 | ||
22804 | ||
22805 | ||
22806 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
22807 | if test "$wxUSE_REGEX" = "sys" ; then | |
22808 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
22809 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
22810 | { (exit 1); exit 1; }; } | |
22811 | else | |
22812 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
22813 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
22814 | wxUSE_REGEX=builtin | |
22815 | fi | |
22816 | else | |
22817 | wxUSE_REGEX=sys | |
22818 | cat >>confdefs.h <<\_ACEOF | |
22819 | #define WX_NO_REGEX_ADVANCED 1 | |
22820 | _ACEOF | |
22821 | ||
22822 | fi | |
22823 | fi | |
22824 | fi | |
22825 | ||
22826 | ||
22827 | ZLIB_LINK= | |
22828 | if test "$wxUSE_ZLIB" != "no" ; then | |
22829 | cat >>confdefs.h <<\_ACEOF | |
22830 | #define wxUSE_ZLIB 1 | |
22831 | _ACEOF | |
22832 | ||
22833 | ||
22834 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
22835 | if test "$USE_DARWIN" = 1; then | |
22836 | system_zlib_h_ok="yes" | |
22837 | else | |
22838 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
22839 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
22840 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
22841 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22842 | else | |
22843 | if test "$cross_compiling" = yes; then | |
22844 | unset ac_cv_header_zlib_h | |
22845 | ||
22846 | else | |
22847 | cat >conftest.$ac_ext <<_ACEOF | |
22848 | /* confdefs.h. */ | |
22849 | _ACEOF | |
22850 | cat confdefs.h >>conftest.$ac_ext | |
22851 | cat >>conftest.$ac_ext <<_ACEOF | |
22852 | /* end confdefs.h. */ | |
22853 | ||
22854 | #include <zlib.h> | |
22855 | #include <stdio.h> | |
22856 | ||
22857 | int main() | |
22858 | { | |
22859 | FILE *f=fopen("conftestval", "w"); | |
22860 | if (!f) exit(1); | |
22861 | fprintf(f, "%s", | |
22862 | ZLIB_VERSION[0] == '1' && | |
22863 | (ZLIB_VERSION[2] > '1' || | |
22864 | (ZLIB_VERSION[2] == '1' && | |
22865 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
22866 | exit(0); | |
22867 | } | |
22868 | ||
22869 | _ACEOF | |
22870 | rm -f conftest$ac_exeext | |
22871 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22872 | (eval $ac_link) 2>&5 | |
22873 | ac_status=$? | |
22874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22875 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22877 | (eval $ac_try) 2>&5 | |
22878 | ac_status=$? | |
22879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22880 | (exit $ac_status); }; }; then | |
22881 | ac_cv_header_zlib_h=`cat conftestval` | |
22882 | else | |
22883 | echo "$as_me: program exited with status $ac_status" >&5 | |
22884 | echo "$as_me: failed program was:" >&5 | |
22885 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22886 | ||
22887 | ( exit $ac_status ) | |
22888 | ac_cv_header_zlib_h=no | |
22889 | fi | |
ac1cb8d3 | 22890 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22891 | fi |
22892 | ||
22893 | fi | |
22894 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
22895 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
22896 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
22897 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
22898 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
22899 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
22900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22901 | fi | |
22902 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
22903 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
22904 | else | |
22905 | # Is the header compilable? | |
22906 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
22907 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
22908 | cat >conftest.$ac_ext <<_ACEOF | |
22909 | /* confdefs.h. */ | |
22910 | _ACEOF | |
22911 | cat confdefs.h >>conftest.$ac_ext | |
22912 | cat >>conftest.$ac_ext <<_ACEOF | |
22913 | /* end confdefs.h. */ | |
22914 | $ac_includes_default | |
22915 | #include <zlib.h> | |
22916 | _ACEOF | |
22917 | rm -f conftest.$ac_objext | |
22918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22919 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22920 | ac_status=$? |
ac1cb8d3 VS |
22921 | grep -v '^ *+' conftest.er1 >conftest.err |
22922 | rm -f conftest.er1 | |
22923 | cat conftest.err >&5 | |
a848cd7e SC |
22924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22925 | (exit $ac_status); } && | |
ddd14b14 RR |
22926 | { ac_try='test -z "$ac_c_werror_flag" |
22927 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22929 | (eval $ac_try) 2>&5 | |
22930 | ac_status=$? | |
22931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22932 | (exit $ac_status); }; } && | |
22933 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22935 | (eval $ac_try) 2>&5 | |
22936 | ac_status=$? | |
22937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22938 | (exit $ac_status); }; }; then | |
22939 | ac_header_compiler=yes | |
22940 | else | |
22941 | echo "$as_me: failed program was:" >&5 | |
22942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22943 | ||
22944 | ac_header_compiler=no | |
22945 | fi | |
ac1cb8d3 | 22946 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22947 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22948 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22949 | ||
22950 | # Is the header present? | |
22951 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
22952 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
22953 | cat >conftest.$ac_ext <<_ACEOF | |
22954 | /* confdefs.h. */ | |
22955 | _ACEOF | |
22956 | cat confdefs.h >>conftest.$ac_ext | |
22957 | cat >>conftest.$ac_ext <<_ACEOF | |
22958 | /* end confdefs.h. */ | |
22959 | #include <zlib.h> | |
22960 | _ACEOF | |
22961 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22962 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22963 | ac_status=$? | |
22964 | grep -v '^ *+' conftest.er1 >conftest.err | |
22965 | rm -f conftest.er1 | |
22966 | cat conftest.err >&5 | |
22967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22968 | (exit $ac_status); } >/dev/null; then | |
22969 | if test -s conftest.err; then | |
22970 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22971 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22972 | else |
22973 | ac_cpp_err= | |
22974 | fi | |
22975 | else | |
22976 | ac_cpp_err=yes | |
22977 | fi | |
22978 | if test -z "$ac_cpp_err"; then | |
22979 | ac_header_preproc=yes | |
22980 | else | |
22981 | echo "$as_me: failed program was:" >&5 | |
22982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22983 | ||
22984 | ac_header_preproc=no | |
22985 | fi | |
22986 | rm -f conftest.err conftest.$ac_ext | |
22987 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22988 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22989 | ||
22990 | # So? What about this header? | |
ac1cb8d3 VS |
22991 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22992 | yes:no: ) | |
a848cd7e SC |
22993 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22994 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22995 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
22996 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
22997 | ac_header_preproc=yes | |
a848cd7e | 22998 | ;; |
ac1cb8d3 | 22999 | no:yes:* ) |
a848cd7e SC |
23000 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
23001 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23002 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
23003 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
23004 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
23005 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
23006 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23007 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23008 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
23009 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23010 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
23011 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23012 | ( |
23013 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23014 | ## ----------------------------------------- ## |
23015 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23016 | ## ----------------------------------------- ## | |
a848cd7e SC |
23017 | _ASBOX |
23018 | ) | | |
23019 | sed "s/^/$as_me: WARNING: /" >&2 | |
23020 | ;; | |
23021 | esac | |
23022 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
23023 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
23024 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
23025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23026 | else | |
23027 | ac_cv_header_zlib_h=$ac_header_preproc | |
23028 | fi | |
23029 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
23030 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
23031 | ||
23032 | fi | |
23033 | ||
23034 | ||
23035 | ||
23036 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
23037 | fi | |
23038 | ||
23039 | if test "$system_zlib_h_ok" = "yes"; then | |
23040 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
23041 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
23042 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
23043 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23044 | else | |
23045 | ac_check_lib_save_LIBS=$LIBS | |
23046 | LIBS="-lz $LIBS" | |
23047 | cat >conftest.$ac_ext <<_ACEOF | |
23048 | /* confdefs.h. */ | |
23049 | _ACEOF | |
23050 | cat confdefs.h >>conftest.$ac_ext | |
23051 | cat >>conftest.$ac_ext <<_ACEOF | |
23052 | /* end confdefs.h. */ | |
23053 | ||
23054 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23055 | #ifdef __cplusplus | |
23056 | extern "C" | |
23057 | #endif | |
23058 | /* We use char because int might match the return type of a gcc2 | |
23059 | builtin and then its argument prototype would still apply. */ | |
23060 | char deflate (); | |
23061 | int | |
23062 | main () | |
23063 | { | |
23064 | deflate (); | |
23065 | ; | |
23066 | return 0; | |
23067 | } | |
23068 | _ACEOF | |
23069 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23070 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23071 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23072 | ac_status=$? |
ac1cb8d3 VS |
23073 | grep -v '^ *+' conftest.er1 >conftest.err |
23074 | rm -f conftest.er1 | |
23075 | cat conftest.err >&5 | |
a848cd7e SC |
23076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23077 | (exit $ac_status); } && | |
ddd14b14 RR |
23078 | { ac_try='test -z "$ac_c_werror_flag" |
23079 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23081 | (eval $ac_try) 2>&5 | |
23082 | ac_status=$? | |
23083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23084 | (exit $ac_status); }; } && | |
23085 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23087 | (eval $ac_try) 2>&5 | |
23088 | ac_status=$? | |
23089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23090 | (exit $ac_status); }; }; then | |
23091 | ac_cv_lib_z_deflate=yes | |
23092 | else | |
23093 | echo "$as_me: failed program was:" >&5 | |
23094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23095 | ||
23096 | ac_cv_lib_z_deflate=no | |
23097 | fi | |
ac1cb8d3 VS |
23098 | rm -f conftest.err conftest.$ac_objext \ |
23099 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23100 | LIBS=$ac_check_lib_save_LIBS |
23101 | fi | |
23102 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
23103 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
23104 | if test $ac_cv_lib_z_deflate = yes; then | |
23105 | ZLIB_LINK=" -lz" | |
23106 | fi | |
23107 | ||
23108 | fi | |
23109 | ||
23110 | if test "x$ZLIB_LINK" = "x" ; then | |
23111 | if test "$wxUSE_ZLIB" = "sys" ; then | |
23112 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
23113 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
23114 | { (exit 1); exit 1; }; } | |
23115 | else | |
23116 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
23117 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
23118 | wxUSE_ZLIB=builtin | |
23119 | fi | |
23120 | else | |
23121 | wxUSE_ZLIB=sys | |
23122 | fi | |
23123 | fi | |
23124 | fi | |
23125 | ||
23126 | ||
23127 | PNG_LINK= | |
23128 | if test "$wxUSE_LIBPNG" != "no" ; then | |
23129 | cat >>confdefs.h <<\_ACEOF | |
23130 | #define wxUSE_LIBPNG 1 | |
23131 | _ACEOF | |
23132 | ||
23133 | ||
23134 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
23135 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
23136 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
23137 | wxUSE_LIBPNG=sys | |
23138 | fi | |
23139 | ||
23140 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
23141 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
23142 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
23143 | wxUSE_LIBPNG=builtin | |
23144 | fi | |
23145 | ||
23146 | if test "$wxUSE_MGL" != 1 ; then | |
23147 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
23148 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
23149 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
23150 | if test "${ac_cv_header_png_h+set}" = set; then | |
23151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23152 | else | |
23153 | if test "$cross_compiling" = yes; then | |
23154 | unset ac_cv_header_png_h | |
23155 | ||
23156 | else | |
23157 | cat >conftest.$ac_ext <<_ACEOF | |
23158 | /* confdefs.h. */ | |
23159 | _ACEOF | |
23160 | cat confdefs.h >>conftest.$ac_ext | |
23161 | cat >>conftest.$ac_ext <<_ACEOF | |
23162 | /* end confdefs.h. */ | |
23163 | ||
23164 | #include <png.h> | |
23165 | #include <stdio.h> | |
23166 | ||
23167 | int main() | |
23168 | { | |
23169 | FILE *f=fopen("conftestval", "w"); | |
23170 | if (!f) exit(1); | |
23171 | fprintf(f, "%s", | |
23172 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
23173 | exit(0); | |
23174 | } | |
23175 | ||
23176 | _ACEOF | |
23177 | rm -f conftest$ac_exeext | |
23178 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23179 | (eval $ac_link) 2>&5 | |
23180 | ac_status=$? | |
23181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23182 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23184 | (eval $ac_try) 2>&5 | |
23185 | ac_status=$? | |
23186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23187 | (exit $ac_status); }; }; then | |
23188 | ac_cv_header_png_h=`cat conftestval` | |
23189 | else | |
23190 | echo "$as_me: program exited with status $ac_status" >&5 | |
23191 | echo "$as_me: failed program was:" >&5 | |
23192 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23193 | ||
23194 | ( exit $ac_status ) | |
23195 | ac_cv_header_png_h=no | |
23196 | fi | |
ac1cb8d3 | 23197 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23198 | fi |
23199 | ||
23200 | fi | |
23201 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
23202 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
23203 | if test "${ac_cv_header_png_h+set}" = set; then | |
23204 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
23205 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
23206 | if test "${ac_cv_header_png_h+set}" = set; then | |
23207 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23208 | fi | |
23209 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
23210 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
23211 | else | |
23212 | # Is the header compilable? | |
23213 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
23214 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
23215 | cat >conftest.$ac_ext <<_ACEOF | |
23216 | /* confdefs.h. */ | |
23217 | _ACEOF | |
23218 | cat confdefs.h >>conftest.$ac_ext | |
23219 | cat >>conftest.$ac_ext <<_ACEOF | |
23220 | /* end confdefs.h. */ | |
23221 | $ac_includes_default | |
23222 | #include <png.h> | |
23223 | _ACEOF | |
23224 | rm -f conftest.$ac_objext | |
23225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23226 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23227 | ac_status=$? |
ac1cb8d3 VS |
23228 | grep -v '^ *+' conftest.er1 >conftest.err |
23229 | rm -f conftest.er1 | |
23230 | cat conftest.err >&5 | |
a848cd7e SC |
23231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23232 | (exit $ac_status); } && | |
ddd14b14 RR |
23233 | { ac_try='test -z "$ac_c_werror_flag" |
23234 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23236 | (eval $ac_try) 2>&5 | |
23237 | ac_status=$? | |
23238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23239 | (exit $ac_status); }; } && | |
23240 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23242 | (eval $ac_try) 2>&5 | |
23243 | ac_status=$? | |
23244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23245 | (exit $ac_status); }; }; then | |
23246 | ac_header_compiler=yes | |
23247 | else | |
23248 | echo "$as_me: failed program was:" >&5 | |
23249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23250 | ||
23251 | ac_header_compiler=no | |
23252 | fi | |
ac1cb8d3 | 23253 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23254 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23255 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23256 | ||
23257 | # Is the header present? | |
23258 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
23259 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
23260 | cat >conftest.$ac_ext <<_ACEOF | |
23261 | /* confdefs.h. */ | |
23262 | _ACEOF | |
23263 | cat confdefs.h >>conftest.$ac_ext | |
23264 | cat >>conftest.$ac_ext <<_ACEOF | |
23265 | /* end confdefs.h. */ | |
23266 | #include <png.h> | |
23267 | _ACEOF | |
23268 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23269 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23270 | ac_status=$? | |
23271 | grep -v '^ *+' conftest.er1 >conftest.err | |
23272 | rm -f conftest.er1 | |
23273 | cat conftest.err >&5 | |
23274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23275 | (exit $ac_status); } >/dev/null; then | |
23276 | if test -s conftest.err; then | |
23277 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23278 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23279 | else |
23280 | ac_cpp_err= | |
23281 | fi | |
23282 | else | |
23283 | ac_cpp_err=yes | |
23284 | fi | |
23285 | if test -z "$ac_cpp_err"; then | |
23286 | ac_header_preproc=yes | |
23287 | else | |
23288 | echo "$as_me: failed program was:" >&5 | |
23289 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23290 | ||
23291 | ac_header_preproc=no | |
23292 | fi | |
23293 | rm -f conftest.err conftest.$ac_ext | |
23294 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23295 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23296 | ||
23297 | # So? What about this header? | |
ac1cb8d3 VS |
23298 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23299 | yes:no: ) | |
a848cd7e SC |
23300 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23301 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23302 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
23303 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
23304 | ac_header_preproc=yes | |
a848cd7e | 23305 | ;; |
ac1cb8d3 | 23306 | no:yes:* ) |
a848cd7e SC |
23307 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
23308 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23309 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
23310 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
23311 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
23312 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
23313 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23314 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23315 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
23316 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23317 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
23318 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23319 | ( |
23320 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23321 | ## ----------------------------------------- ## |
23322 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23323 | ## ----------------------------------------- ## | |
a848cd7e SC |
23324 | _ASBOX |
23325 | ) | | |
23326 | sed "s/^/$as_me: WARNING: /" >&2 | |
23327 | ;; | |
23328 | esac | |
23329 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
23330 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
23331 | if test "${ac_cv_header_png_h+set}" = set; then | |
23332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23333 | else | |
23334 | ac_cv_header_png_h=$ac_header_preproc | |
23335 | fi | |
23336 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
23337 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
23338 | ||
23339 | fi | |
23340 | ||
23341 | ||
23342 | ||
23343 | if test "$ac_cv_header_png_h" = "yes"; then | |
23344 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
23345 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
23346 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
23347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23348 | else | |
23349 | ac_check_lib_save_LIBS=$LIBS | |
23350 | LIBS="-lpng -lz -lm $LIBS" | |
23351 | cat >conftest.$ac_ext <<_ACEOF | |
23352 | /* confdefs.h. */ | |
23353 | _ACEOF | |
23354 | cat confdefs.h >>conftest.$ac_ext | |
23355 | cat >>conftest.$ac_ext <<_ACEOF | |
23356 | /* end confdefs.h. */ | |
23357 | ||
23358 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23359 | #ifdef __cplusplus | |
23360 | extern "C" | |
23361 | #endif | |
23362 | /* We use char because int might match the return type of a gcc2 | |
23363 | builtin and then its argument prototype would still apply. */ | |
23364 | char png_check_sig (); | |
23365 | int | |
23366 | main () | |
23367 | { | |
23368 | png_check_sig (); | |
23369 | ; | |
23370 | return 0; | |
23371 | } | |
23372 | _ACEOF | |
23373 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23374 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23375 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23376 | ac_status=$? |
ac1cb8d3 VS |
23377 | grep -v '^ *+' conftest.er1 >conftest.err |
23378 | rm -f conftest.er1 | |
23379 | cat conftest.err >&5 | |
a848cd7e SC |
23380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23381 | (exit $ac_status); } && | |
ddd14b14 RR |
23382 | { ac_try='test -z "$ac_c_werror_flag" |
23383 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23385 | (eval $ac_try) 2>&5 | |
23386 | ac_status=$? | |
23387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23388 | (exit $ac_status); }; } && | |
23389 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23391 | (eval $ac_try) 2>&5 | |
23392 | ac_status=$? | |
23393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23394 | (exit $ac_status); }; }; then | |
23395 | ac_cv_lib_png_png_check_sig=yes | |
23396 | else | |
23397 | echo "$as_me: failed program was:" >&5 | |
23398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23399 | ||
23400 | ac_cv_lib_png_png_check_sig=no | |
23401 | fi | |
ac1cb8d3 VS |
23402 | rm -f conftest.err conftest.$ac_objext \ |
23403 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23404 | LIBS=$ac_check_lib_save_LIBS |
23405 | fi | |
23406 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
23407 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
23408 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
23409 | PNG_LINK=" -lpng -lz" | |
23410 | fi | |
23411 | ||
23412 | fi | |
23413 | ||
23414 | if test "x$PNG_LINK" = "x" ; then | |
23415 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
23416 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
23417 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
23418 | { (exit 1); exit 1; }; } | |
23419 | else | |
23420 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
23421 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
23422 | wxUSE_LIBPNG=builtin | |
23423 | fi | |
23424 | else | |
23425 | wxUSE_LIBPNG=sys | |
23426 | fi | |
23427 | fi | |
23428 | fi | |
23429 | ||
23430 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
23431 | fi | |
23432 | ||
23433 | ||
23434 | JPEG_LINK= | |
23435 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
23436 | cat >>confdefs.h <<\_ACEOF | |
23437 | #define wxUSE_LIBJPEG 1 | |
23438 | _ACEOF | |
23439 | ||
23440 | ||
23441 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
23442 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
23443 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
23444 | wxUSE_LIBJPEG=sys | |
23445 | fi | |
23446 | ||
23447 | if test "$wxUSE_MGL" != 1 ; then | |
23448 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
23449 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
23450 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
23451 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
23452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23453 | else | |
23454 | cat >conftest.$ac_ext <<_ACEOF | |
23455 | /* confdefs.h. */ | |
23456 | _ACEOF | |
23457 | cat confdefs.h >>conftest.$ac_ext | |
23458 | cat >>conftest.$ac_ext <<_ACEOF | |
23459 | /* end confdefs.h. */ | |
23460 | ||
23461 | #undef HAVE_STDLIB_H | |
23462 | #include <stdio.h> | |
23463 | #include <jpeglib.h> | |
23464 | ||
23465 | int | |
23466 | main () | |
23467 | { | |
23468 | ||
23469 | ||
23470 | ; | |
23471 | return 0; | |
23472 | } | |
23473 | _ACEOF | |
23474 | rm -f conftest.$ac_objext | |
23475 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23476 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23477 | ac_status=$? |
ac1cb8d3 VS |
23478 | grep -v '^ *+' conftest.er1 >conftest.err |
23479 | rm -f conftest.er1 | |
23480 | cat conftest.err >&5 | |
a848cd7e SC |
23481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23482 | (exit $ac_status); } && | |
ddd14b14 RR |
23483 | { ac_try='test -z "$ac_c_werror_flag" |
23484 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23486 | (eval $ac_try) 2>&5 | |
23487 | ac_status=$? | |
23488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23489 | (exit $ac_status); }; } && | |
23490 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23492 | (eval $ac_try) 2>&5 | |
23493 | ac_status=$? | |
23494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23495 | (exit $ac_status); }; }; then | |
23496 | ac_cv_header_jpeglib_h=yes | |
23497 | else | |
23498 | echo "$as_me: failed program was:" >&5 | |
23499 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23500 | ||
23501 | ac_cv_header_jpeglib_h=no | |
23502 | ||
23503 | fi | |
ac1cb8d3 | 23504 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23505 | |
23506 | fi | |
23507 | ||
23508 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
23509 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
23510 | ||
23511 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
23512 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
23513 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
23514 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
23515 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23516 | else | |
23517 | ac_check_lib_save_LIBS=$LIBS | |
23518 | LIBS="-ljpeg $LIBS" | |
23519 | cat >conftest.$ac_ext <<_ACEOF | |
23520 | /* confdefs.h. */ | |
23521 | _ACEOF | |
23522 | cat confdefs.h >>conftest.$ac_ext | |
23523 | cat >>conftest.$ac_ext <<_ACEOF | |
23524 | /* end confdefs.h. */ | |
23525 | ||
23526 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23527 | #ifdef __cplusplus | |
23528 | extern "C" | |
23529 | #endif | |
23530 | /* We use char because int might match the return type of a gcc2 | |
23531 | builtin and then its argument prototype would still apply. */ | |
23532 | char jpeg_read_header (); | |
23533 | int | |
23534 | main () | |
23535 | { | |
23536 | jpeg_read_header (); | |
23537 | ; | |
23538 | return 0; | |
23539 | } | |
23540 | _ACEOF | |
23541 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23542 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23543 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23544 | ac_status=$? |
ac1cb8d3 VS |
23545 | grep -v '^ *+' conftest.er1 >conftest.err |
23546 | rm -f conftest.er1 | |
23547 | cat conftest.err >&5 | |
a848cd7e SC |
23548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23549 | (exit $ac_status); } && | |
ddd14b14 RR |
23550 | { ac_try='test -z "$ac_c_werror_flag" |
23551 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23553 | (eval $ac_try) 2>&5 | |
23554 | ac_status=$? | |
23555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23556 | (exit $ac_status); }; } && | |
23557 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23559 | (eval $ac_try) 2>&5 | |
23560 | ac_status=$? | |
23561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23562 | (exit $ac_status); }; }; then | |
23563 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
23564 | else | |
23565 | echo "$as_me: failed program was:" >&5 | |
23566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23567 | ||
23568 | ac_cv_lib_jpeg_jpeg_read_header=no | |
23569 | fi | |
ac1cb8d3 VS |
23570 | rm -f conftest.err conftest.$ac_objext \ |
23571 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23572 | LIBS=$ac_check_lib_save_LIBS |
23573 | fi | |
23574 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
23575 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
23576 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
23577 | JPEG_LINK=" -ljpeg" | |
23578 | fi | |
23579 | ||
23580 | fi | |
23581 | ||
23582 | if test "x$JPEG_LINK" = "x" ; then | |
23583 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
23584 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
23585 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
23586 | { (exit 1); exit 1; }; } | |
23587 | else | |
23588 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
23589 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
23590 | wxUSE_LIBJPEG=builtin | |
23591 | fi | |
23592 | else | |
23593 | wxUSE_LIBJPEG=sys | |
23594 | fi | |
23595 | fi | |
23596 | fi | |
23597 | fi | |
23598 | ||
23599 | ||
23600 | TIFF_LINK= | |
23601 | TIFF_PREREQ_LINKS=-lm | |
23602 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
23603 | cat >>confdefs.h <<\_ACEOF | |
23604 | #define wxUSE_LIBTIFF 1 | |
23605 | _ACEOF | |
23606 | ||
23607 | ||
23608 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
23609 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
23610 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
23611 | fi | |
23612 | if test "$wxUSE_ZLIB" = "sys"; then | |
23613 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
23614 | fi | |
23615 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
23616 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
23617 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
23618 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
23619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23620 | fi | |
23621 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
23622 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
23623 | else | |
23624 | # Is the header compilable? | |
23625 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
23626 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
23627 | cat >conftest.$ac_ext <<_ACEOF | |
23628 | /* confdefs.h. */ | |
23629 | _ACEOF | |
23630 | cat confdefs.h >>conftest.$ac_ext | |
23631 | cat >>conftest.$ac_ext <<_ACEOF | |
23632 | /* end confdefs.h. */ | |
23633 | $ac_includes_default | |
23634 | #include <tiffio.h> | |
23635 | _ACEOF | |
23636 | rm -f conftest.$ac_objext | |
23637 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23638 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23639 | ac_status=$? |
ac1cb8d3 VS |
23640 | grep -v '^ *+' conftest.er1 >conftest.err |
23641 | rm -f conftest.er1 | |
23642 | cat conftest.err >&5 | |
a848cd7e SC |
23643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23644 | (exit $ac_status); } && | |
ddd14b14 RR |
23645 | { ac_try='test -z "$ac_c_werror_flag" |
23646 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23648 | (eval $ac_try) 2>&5 | |
23649 | ac_status=$? | |
23650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23651 | (exit $ac_status); }; } && | |
23652 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23654 | (eval $ac_try) 2>&5 | |
23655 | ac_status=$? | |
23656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23657 | (exit $ac_status); }; }; then | |
23658 | ac_header_compiler=yes | |
23659 | else | |
23660 | echo "$as_me: failed program was:" >&5 | |
23661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23662 | ||
23663 | ac_header_compiler=no | |
23664 | fi | |
ac1cb8d3 | 23665 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23666 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23667 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23668 | ||
23669 | # Is the header present? | |
23670 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
23671 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
23672 | cat >conftest.$ac_ext <<_ACEOF | |
23673 | /* confdefs.h. */ | |
23674 | _ACEOF | |
23675 | cat confdefs.h >>conftest.$ac_ext | |
23676 | cat >>conftest.$ac_ext <<_ACEOF | |
23677 | /* end confdefs.h. */ | |
23678 | #include <tiffio.h> | |
23679 | _ACEOF | |
23680 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23681 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23682 | ac_status=$? | |
23683 | grep -v '^ *+' conftest.er1 >conftest.err | |
23684 | rm -f conftest.er1 | |
23685 | cat conftest.err >&5 | |
23686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23687 | (exit $ac_status); } >/dev/null; then | |
23688 | if test -s conftest.err; then | |
23689 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23690 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23691 | else |
23692 | ac_cpp_err= | |
23693 | fi | |
23694 | else | |
23695 | ac_cpp_err=yes | |
23696 | fi | |
23697 | if test -z "$ac_cpp_err"; then | |
23698 | ac_header_preproc=yes | |
23699 | else | |
23700 | echo "$as_me: failed program was:" >&5 | |
23701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23702 | ||
23703 | ac_header_preproc=no | |
23704 | fi | |
23705 | rm -f conftest.err conftest.$ac_ext | |
23706 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23707 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23708 | ||
23709 | # So? What about this header? | |
ac1cb8d3 VS |
23710 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23711 | yes:no: ) | |
a848cd7e SC |
23712 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23713 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23714 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
23715 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
23716 | ac_header_preproc=yes | |
a848cd7e | 23717 | ;; |
ac1cb8d3 | 23718 | no:yes:* ) |
a848cd7e SC |
23719 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
23720 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23721 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
23722 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
23723 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
23724 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
23725 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23726 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23727 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
23728 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23729 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
23730 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23731 | ( |
23732 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23733 | ## ----------------------------------------- ## |
23734 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23735 | ## ----------------------------------------- ## | |
a848cd7e SC |
23736 | _ASBOX |
23737 | ) | | |
23738 | sed "s/^/$as_me: WARNING: /" >&2 | |
23739 | ;; | |
23740 | esac | |
23741 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
23742 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
23743 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
23744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23745 | else | |
23746 | ac_cv_header_tiffio_h=$ac_header_preproc | |
23747 | fi | |
23748 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
23749 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
23750 | ||
23751 | fi | |
23752 | if test $ac_cv_header_tiffio_h = yes; then | |
23753 | ||
23754 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
23755 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
23756 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
23757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23758 | else | |
23759 | ac_check_lib_save_LIBS=$LIBS | |
23760 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
23761 | cat >conftest.$ac_ext <<_ACEOF | |
23762 | /* confdefs.h. */ | |
23763 | _ACEOF | |
23764 | cat confdefs.h >>conftest.$ac_ext | |
23765 | cat >>conftest.$ac_ext <<_ACEOF | |
23766 | /* end confdefs.h. */ | |
23767 | ||
23768 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23769 | #ifdef __cplusplus | |
23770 | extern "C" | |
23771 | #endif | |
23772 | /* We use char because int might match the return type of a gcc2 | |
23773 | builtin and then its argument prototype would still apply. */ | |
23774 | char TIFFError (); | |
23775 | int | |
23776 | main () | |
23777 | { | |
23778 | TIFFError (); | |
23779 | ; | |
23780 | return 0; | |
23781 | } | |
23782 | _ACEOF | |
23783 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23784 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23785 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23786 | ac_status=$? |
ac1cb8d3 VS |
23787 | grep -v '^ *+' conftest.er1 >conftest.err |
23788 | rm -f conftest.er1 | |
23789 | cat conftest.err >&5 | |
a848cd7e SC |
23790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23791 | (exit $ac_status); } && | |
ddd14b14 RR |
23792 | { ac_try='test -z "$ac_c_werror_flag" |
23793 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23795 | (eval $ac_try) 2>&5 | |
23796 | ac_status=$? | |
23797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23798 | (exit $ac_status); }; } && | |
23799 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23801 | (eval $ac_try) 2>&5 | |
23802 | ac_status=$? | |
23803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23804 | (exit $ac_status); }; }; then | |
23805 | ac_cv_lib_tiff_TIFFError=yes | |
23806 | else | |
23807 | echo "$as_me: failed program was:" >&5 | |
23808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23809 | ||
23810 | ac_cv_lib_tiff_TIFFError=no | |
23811 | fi | |
ac1cb8d3 VS |
23812 | rm -f conftest.err conftest.$ac_objext \ |
23813 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23814 | LIBS=$ac_check_lib_save_LIBS |
23815 | fi | |
23816 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
23817 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
23818 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
23819 | TIFF_LINK=" -ltiff" | |
23820 | fi | |
23821 | ||
23822 | ||
23823 | ||
23824 | fi | |
23825 | ||
23826 | ||
23827 | ||
23828 | if test "x$TIFF_LINK" = "x" ; then | |
23829 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
23830 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
23831 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
23832 | { (exit 1); exit 1; }; } | |
23833 | else | |
23834 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
23835 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
23836 | wxUSE_LIBTIFF=builtin | |
23837 | fi | |
23838 | else | |
23839 | wxUSE_LIBTIFF=sys | |
23840 | fi | |
23841 | fi | |
23842 | fi | |
23843 | ||
23844 | ||
47a7e797 MW |
23845 | if test "$wxUSE_WCHAR_T" != "yes"; then |
23846 | if test "$wxUSE_EXPAT" != "no"; then | |
23847 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5 | |
23848 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;} | |
23849 | wxUSE_EXPAT=no | |
23850 | fi | |
23851 | if test "$wxUSE_XML" != "no"; then | |
23852 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5 | |
23853 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;} | |
23854 | wxUSE_XML=no | |
23855 | fi | |
23856 | fi | |
23857 | ||
a848cd7e SC |
23858 | if test "$wxUSE_EXPAT" != "no"; then |
23859 | wxUSE_XML=yes | |
23860 | cat >>confdefs.h <<\_ACEOF | |
23861 | #define wxUSE_EXPAT 1 | |
23862 | _ACEOF | |
23863 | ||
23864 | cat >>confdefs.h <<\_ACEOF | |
23865 | #define wxUSE_XML 1 | |
23866 | _ACEOF | |
23867 | ||
23868 | ||
23869 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
23870 | if test "${ac_cv_header_expat_h+set}" = set; then | |
23871 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
23872 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
23873 | if test "${ac_cv_header_expat_h+set}" = set; then | |
23874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23875 | fi | |
23876 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
23877 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
23878 | else | |
23879 | # Is the header compilable? | |
23880 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
23881 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
23882 | cat >conftest.$ac_ext <<_ACEOF | |
23883 | /* confdefs.h. */ | |
23884 | _ACEOF | |
23885 | cat confdefs.h >>conftest.$ac_ext | |
23886 | cat >>conftest.$ac_ext <<_ACEOF | |
23887 | /* end confdefs.h. */ | |
23888 | $ac_includes_default | |
23889 | #include <expat.h> | |
23890 | _ACEOF | |
23891 | rm -f conftest.$ac_objext | |
23892 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23893 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23894 | ac_status=$? |
ac1cb8d3 VS |
23895 | grep -v '^ *+' conftest.er1 >conftest.err |
23896 | rm -f conftest.er1 | |
23897 | cat conftest.err >&5 | |
a848cd7e SC |
23898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23899 | (exit $ac_status); } && | |
ddd14b14 RR |
23900 | { ac_try='test -z "$ac_c_werror_flag" |
23901 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23903 | (eval $ac_try) 2>&5 | |
23904 | ac_status=$? | |
23905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23906 | (exit $ac_status); }; } && | |
23907 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23909 | (eval $ac_try) 2>&5 | |
23910 | ac_status=$? | |
23911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23912 | (exit $ac_status); }; }; then | |
23913 | ac_header_compiler=yes | |
23914 | else | |
23915 | echo "$as_me: failed program was:" >&5 | |
23916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23917 | ||
23918 | ac_header_compiler=no | |
23919 | fi | |
ac1cb8d3 | 23920 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23921 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23922 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23923 | ||
23924 | # Is the header present? | |
23925 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
23926 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
23927 | cat >conftest.$ac_ext <<_ACEOF | |
23928 | /* confdefs.h. */ | |
23929 | _ACEOF | |
23930 | cat confdefs.h >>conftest.$ac_ext | |
23931 | cat >>conftest.$ac_ext <<_ACEOF | |
23932 | /* end confdefs.h. */ | |
23933 | #include <expat.h> | |
23934 | _ACEOF | |
23935 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23936 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23937 | ac_status=$? | |
23938 | grep -v '^ *+' conftest.er1 >conftest.err | |
23939 | rm -f conftest.er1 | |
23940 | cat conftest.err >&5 | |
23941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23942 | (exit $ac_status); } >/dev/null; then | |
23943 | if test -s conftest.err; then | |
23944 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23945 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23946 | else |
23947 | ac_cpp_err= | |
23948 | fi | |
23949 | else | |
23950 | ac_cpp_err=yes | |
23951 | fi | |
23952 | if test -z "$ac_cpp_err"; then | |
23953 | ac_header_preproc=yes | |
23954 | else | |
23955 | echo "$as_me: failed program was:" >&5 | |
23956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23957 | ||
23958 | ac_header_preproc=no | |
23959 | fi | |
23960 | rm -f conftest.err conftest.$ac_ext | |
23961 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23962 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23963 | ||
23964 | # So? What about this header? | |
ac1cb8d3 VS |
23965 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23966 | yes:no: ) | |
a848cd7e SC |
23967 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23968 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23969 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
23970 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
23971 | ac_header_preproc=yes | |
a848cd7e | 23972 | ;; |
ac1cb8d3 | 23973 | no:yes:* ) |
a848cd7e SC |
23974 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
23975 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23976 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
23977 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
23978 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
23979 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
23980 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23981 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23982 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
23983 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23984 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
23985 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23986 | ( |
23987 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23988 | ## ----------------------------------------- ## |
23989 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23990 | ## ----------------------------------------- ## | |
a848cd7e SC |
23991 | _ASBOX |
23992 | ) | | |
23993 | sed "s/^/$as_me: WARNING: /" >&2 | |
23994 | ;; | |
23995 | esac | |
23996 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
23997 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
23998 | if test "${ac_cv_header_expat_h+set}" = set; then | |
23999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24000 | else | |
24001 | ac_cv_header_expat_h=$ac_header_preproc | |
24002 | fi | |
24003 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
24004 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
24005 | ||
24006 | fi | |
24007 | if test $ac_cv_header_expat_h = yes; then | |
24008 | found_expat_h=1 | |
24009 | fi | |
24010 | ||
24011 | ||
24012 | if test "x$found_expat_h" = "x1"; then | |
24013 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
24014 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
24015 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
24016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24017 | else | |
24018 | ||
24019 | ||
24020 | ||
24021 | ac_ext=cc | |
24022 | ac_cpp='$CXXCPP $CPPFLAGS' | |
24023 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
24024 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
24025 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
24026 | ||
24027 | cat >conftest.$ac_ext <<_ACEOF | |
24028 | /* confdefs.h. */ | |
24029 | _ACEOF | |
24030 | cat confdefs.h >>conftest.$ac_ext | |
24031 | cat >>conftest.$ac_ext <<_ACEOF | |
24032 | /* end confdefs.h. */ | |
24033 | #include <expat.h> | |
24034 | int | |
24035 | main () | |
24036 | { | |
24037 | ||
24038 | ; | |
24039 | return 0; | |
24040 | } | |
24041 | _ACEOF | |
24042 | rm -f conftest.$ac_objext | |
24043 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24044 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24045 | ac_status=$? |
ac1cb8d3 VS |
24046 | grep -v '^ *+' conftest.er1 >conftest.err |
24047 | rm -f conftest.er1 | |
24048 | cat conftest.err >&5 | |
a848cd7e SC |
24049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24050 | (exit $ac_status); } && | |
ddd14b14 RR |
24051 | { ac_try='test -z "$ac_cxx_werror_flag" |
24052 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24054 | (eval $ac_try) 2>&5 | |
24055 | ac_status=$? | |
24056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24057 | (exit $ac_status); }; } && | |
24058 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
24064 | wx_cv_expat_is_not_broken=yes | |
24065 | else | |
24066 | echo "$as_me: failed program was:" >&5 | |
24067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24068 | ||
24069 | wx_cv_expat_is_not_broken=no | |
24070 | ||
24071 | fi | |
ac1cb8d3 | 24072 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24073 | ac_ext=c |
24074 | ac_cpp='$CPP $CPPFLAGS' | |
24075 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
24076 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
24077 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
24078 | ||
24079 | ||
24080 | ||
24081 | fi | |
24082 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
24083 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
24084 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
24085 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
24086 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
24087 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
24088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24089 | else | |
24090 | ac_check_lib_save_LIBS=$LIBS | |
24091 | LIBS="-lexpat $LIBS" | |
24092 | cat >conftest.$ac_ext <<_ACEOF | |
24093 | /* confdefs.h. */ | |
24094 | _ACEOF | |
24095 | cat confdefs.h >>conftest.$ac_ext | |
24096 | cat >>conftest.$ac_ext <<_ACEOF | |
24097 | /* end confdefs.h. */ | |
24098 | ||
24099 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24100 | #ifdef __cplusplus | |
24101 | extern "C" | |
24102 | #endif | |
24103 | /* We use char because int might match the return type of a gcc2 | |
24104 | builtin and then its argument prototype would still apply. */ | |
24105 | char XML_ParserCreate (); | |
24106 | int | |
24107 | main () | |
24108 | { | |
24109 | XML_ParserCreate (); | |
24110 | ; | |
24111 | return 0; | |
24112 | } | |
24113 | _ACEOF | |
24114 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24115 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24116 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24117 | ac_status=$? |
ac1cb8d3 VS |
24118 | grep -v '^ *+' conftest.er1 >conftest.err |
24119 | rm -f conftest.er1 | |
24120 | cat conftest.err >&5 | |
a848cd7e SC |
24121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24122 | (exit $ac_status); } && | |
ddd14b14 RR |
24123 | { ac_try='test -z "$ac_c_werror_flag" |
24124 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24126 | (eval $ac_try) 2>&5 | |
24127 | ac_status=$? | |
24128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24129 | (exit $ac_status); }; } && | |
24130 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24132 | (eval $ac_try) 2>&5 | |
24133 | ac_status=$? | |
24134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24135 | (exit $ac_status); }; }; then | |
24136 | ac_cv_lib_expat_XML_ParserCreate=yes | |
24137 | else | |
24138 | echo "$as_me: failed program was:" >&5 | |
24139 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24140 | ||
24141 | ac_cv_lib_expat_XML_ParserCreate=no | |
24142 | fi | |
ac1cb8d3 VS |
24143 | rm -f conftest.err conftest.$ac_objext \ |
24144 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24145 | LIBS=$ac_check_lib_save_LIBS |
24146 | fi | |
24147 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
24148 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
24149 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
24150 | EXPAT_LINK=" -lexpat" | |
24151 | fi | |
24152 | ||
24153 | fi | |
24154 | fi | |
24155 | if test "x$EXPAT_LINK" = "x" ; then | |
24156 | if test "$wxUSE_EXPAT" = "sys" ; then | |
24157 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
24158 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
24159 | { (exit 1); exit 1; }; } | |
24160 | else | |
24161 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
24162 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
24163 | wxUSE_EXPAT=builtin | |
24164 | fi | |
24165 | else | |
24166 | wxUSE_EXPAT=sys | |
24167 | fi | |
24168 | fi | |
24169 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
24170 | ||
24171 | ||
24172 | subdirs="$subdirs src/expat" | |
24173 | ||
24174 | fi | |
24175 | fi | |
24176 | ||
24177 | ||
24178 | ||
24179 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
a848cd7e SC |
24180 | if test "${ac_cv_header_mspack_h+set}" = set; then |
24181 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
24182 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
24183 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
24184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24185 | fi | |
24186 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
24187 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
24188 | else | |
24189 | # Is the header compilable? | |
24190 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
24191 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
24192 | cat >conftest.$ac_ext <<_ACEOF | |
24193 | /* confdefs.h. */ | |
24194 | _ACEOF | |
24195 | cat confdefs.h >>conftest.$ac_ext | |
24196 | cat >>conftest.$ac_ext <<_ACEOF | |
24197 | /* end confdefs.h. */ | |
24198 | $ac_includes_default | |
24199 | #include <mspack.h> | |
24200 | _ACEOF | |
24201 | rm -f conftest.$ac_objext | |
24202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24203 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24204 | ac_status=$? |
ac1cb8d3 VS |
24205 | grep -v '^ *+' conftest.er1 >conftest.err |
24206 | rm -f conftest.er1 | |
24207 | cat conftest.err >&5 | |
a848cd7e SC |
24208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24209 | (exit $ac_status); } && | |
ddd14b14 RR |
24210 | { ac_try='test -z "$ac_c_werror_flag" |
24211 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24213 | (eval $ac_try) 2>&5 | |
24214 | ac_status=$? | |
24215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24216 | (exit $ac_status); }; } && | |
24217 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24219 | (eval $ac_try) 2>&5 | |
24220 | ac_status=$? | |
24221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24222 | (exit $ac_status); }; }; then | |
24223 | ac_header_compiler=yes | |
24224 | else | |
24225 | echo "$as_me: failed program was:" >&5 | |
24226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24227 | ||
24228 | ac_header_compiler=no | |
24229 | fi | |
ac1cb8d3 | 24230 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24231 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24232 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24233 | ||
24234 | # Is the header present? | |
24235 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
24236 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
24237 | cat >conftest.$ac_ext <<_ACEOF | |
24238 | /* confdefs.h. */ | |
24239 | _ACEOF | |
24240 | cat confdefs.h >>conftest.$ac_ext | |
24241 | cat >>conftest.$ac_ext <<_ACEOF | |
24242 | /* end confdefs.h. */ | |
24243 | #include <mspack.h> | |
24244 | _ACEOF | |
24245 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24246 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24247 | ac_status=$? | |
24248 | grep -v '^ *+' conftest.er1 >conftest.err | |
24249 | rm -f conftest.er1 | |
24250 | cat conftest.err >&5 | |
24251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24252 | (exit $ac_status); } >/dev/null; then | |
24253 | if test -s conftest.err; then | |
24254 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24255 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24256 | else |
24257 | ac_cpp_err= | |
24258 | fi | |
24259 | else | |
24260 | ac_cpp_err=yes | |
24261 | fi | |
24262 | if test -z "$ac_cpp_err"; then | |
24263 | ac_header_preproc=yes | |
24264 | else | |
24265 | echo "$as_me: failed program was:" >&5 | |
24266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24267 | ||
24268 | ac_header_preproc=no | |
24269 | fi | |
24270 | rm -f conftest.err conftest.$ac_ext | |
24271 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24272 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24273 | ||
24274 | # So? What about this header? | |
ac1cb8d3 VS |
24275 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24276 | yes:no: ) | |
a848cd7e SC |
24277 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24278 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24279 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
24280 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
24281 | ac_header_preproc=yes | |
a848cd7e | 24282 | ;; |
ac1cb8d3 | 24283 | no:yes:* ) |
a848cd7e SC |
24284 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
24285 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24286 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
24287 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
24288 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
24289 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
24290 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24291 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24292 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
24293 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24294 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
24295 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24296 | ( |
24297 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24298 | ## ----------------------------------------- ## |
24299 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24300 | ## ----------------------------------------- ## | |
a848cd7e SC |
24301 | _ASBOX |
24302 | ) | | |
24303 | sed "s/^/$as_me: WARNING: /" >&2 | |
24304 | ;; | |
24305 | esac | |
24306 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
24307 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
24308 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
24309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24310 | else | |
24311 | ac_cv_header_mspack_h=$ac_header_preproc | |
24312 | fi | |
24313 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
24314 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
24315 | ||
24316 | fi | |
24317 | if test $ac_cv_header_mspack_h = yes; then | |
24318 | found_mspack_h=1 | |
24319 | fi | |
24320 | ||
24321 | ||
24322 | if test "x$found_mspack_h" = "x1"; then | |
24323 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
24324 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
24325 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
24326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24327 | else | |
24328 | ac_check_lib_save_LIBS=$LIBS | |
24329 | LIBS="-lmspack $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 mspack_create_chm_decompressor (); | |
24344 | int | |
24345 | main () | |
24346 | { | |
24347 | mspack_create_chm_decompressor (); | |
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); } && | |
ddd14b14 RR |
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_mspack_mspack_create_chm_decompressor=yes | |
24375 | else | |
24376 | echo "$as_me: failed program was:" >&5 | |
24377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24378 | ||
24379 | ac_cv_lib_mspack_mspack_create_chm_decompressor=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_mspack_mspack_create_chm_decompressor" >&5 | |
24386 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
24387 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
24388 | MSPACK_LINK=" -lmspack" | |
24389 | fi | |
24390 | ||
24391 | fi | |
24392 | if test "x$MSPACK_LINK" = "x" ; then | |
24393 | wxUSE_LIBMSPACK=no | |
dd3a2d96 VZ |
24394 | fi |
24395 | fi | |
24396 | ||
24397 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
24398 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
24399 | #define wxUSE_LIBMSPACK 1 |
24400 | _ACEOF | |
24401 | ||
a848cd7e SC |
24402 | fi |
24403 | ||
24404 | ||
24405 | ||
24406 | AFMINSTALL= | |
24407 | WIN32INSTALL= | |
24408 | ||
24409 | TOOLKIT= | |
24410 | TOOLKIT_INCLUDE= | |
24411 | WIDGET_SET= | |
24412 | ||
24413 | if test "$USE_WIN32" = 1 ; then | |
24414 | ||
24415 | for ac_header in w32api.h | |
24416 | do | |
24417 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
24418 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
24419 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24420 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
24421 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
24422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24423 | fi | |
24424 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
24425 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
24426 | else | |
24427 | # Is the header compilable? | |
24428 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
24429 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
24430 | cat >conftest.$ac_ext <<_ACEOF | |
24431 | /* confdefs.h. */ | |
24432 | _ACEOF | |
24433 | cat confdefs.h >>conftest.$ac_ext | |
24434 | cat >>conftest.$ac_ext <<_ACEOF | |
24435 | /* end confdefs.h. */ | |
24436 | $ac_includes_default | |
24437 | #include <$ac_header> | |
24438 | _ACEOF | |
24439 | rm -f conftest.$ac_objext | |
24440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24441 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24442 | ac_status=$? |
ac1cb8d3 VS |
24443 | grep -v '^ *+' conftest.er1 >conftest.err |
24444 | rm -f conftest.er1 | |
24445 | cat conftest.err >&5 | |
a848cd7e SC |
24446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24447 | (exit $ac_status); } && | |
ddd14b14 RR |
24448 | { ac_try='test -z "$ac_c_werror_flag" |
24449 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24451 | (eval $ac_try) 2>&5 | |
24452 | ac_status=$? | |
24453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24454 | (exit $ac_status); }; } && | |
24455 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24457 | (eval $ac_try) 2>&5 | |
24458 | ac_status=$? | |
24459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24460 | (exit $ac_status); }; }; then | |
24461 | ac_header_compiler=yes | |
24462 | else | |
24463 | echo "$as_me: failed program was:" >&5 | |
24464 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24465 | ||
24466 | ac_header_compiler=no | |
24467 | fi | |
ac1cb8d3 | 24468 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24469 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24470 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24471 | ||
24472 | # Is the header present? | |
24473 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
24474 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
24475 | cat >conftest.$ac_ext <<_ACEOF | |
24476 | /* confdefs.h. */ | |
24477 | _ACEOF | |
24478 | cat confdefs.h >>conftest.$ac_ext | |
24479 | cat >>conftest.$ac_ext <<_ACEOF | |
24480 | /* end confdefs.h. */ | |
24481 | #include <$ac_header> | |
24482 | _ACEOF | |
24483 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24484 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24485 | ac_status=$? | |
24486 | grep -v '^ *+' conftest.er1 >conftest.err | |
24487 | rm -f conftest.er1 | |
24488 | cat conftest.err >&5 | |
24489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24490 | (exit $ac_status); } >/dev/null; then | |
24491 | if test -s conftest.err; then | |
24492 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24493 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24494 | else |
24495 | ac_cpp_err= | |
24496 | fi | |
24497 | else | |
24498 | ac_cpp_err=yes | |
24499 | fi | |
24500 | if test -z "$ac_cpp_err"; then | |
24501 | ac_header_preproc=yes | |
24502 | else | |
24503 | echo "$as_me: failed program was:" >&5 | |
24504 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24505 | ||
24506 | ac_header_preproc=no | |
24507 | fi | |
24508 | rm -f conftest.err conftest.$ac_ext | |
24509 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24510 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24511 | ||
24512 | # So? What about this header? | |
ac1cb8d3 VS |
24513 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24514 | yes:no: ) | |
a848cd7e SC |
24515 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
24516 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24517 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
24518 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
24519 | ac_header_preproc=yes | |
a848cd7e | 24520 | ;; |
ac1cb8d3 | 24521 | no:yes:* ) |
a848cd7e SC |
24522 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
24523 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24524 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
24525 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
24526 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
24527 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
24528 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
24529 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24530 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
24531 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24532 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
24533 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24534 | ( |
24535 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24536 | ## ----------------------------------------- ## |
24537 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24538 | ## ----------------------------------------- ## | |
a848cd7e SC |
24539 | _ASBOX |
24540 | ) | | |
24541 | sed "s/^/$as_me: WARNING: /" >&2 | |
24542 | ;; | |
24543 | esac | |
24544 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24545 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
24546 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
24547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24548 | else | |
ac1cb8d3 | 24549 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
24550 | fi |
24551 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
24552 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
24553 | ||
24554 | fi | |
24555 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
24556 | cat >>confdefs.h <<_ACEOF | |
24557 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
24558 | _ACEOF | |
24559 | ||
24560 | fi | |
24561 | ||
24562 | done | |
24563 | ||
24564 | if test "${ac_cv_header_windows_h+set}" = set; then | |
24565 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
24566 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
24567 | if test "${ac_cv_header_windows_h+set}" = set; then | |
24568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24569 | fi | |
24570 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
24571 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
24572 | else | |
24573 | # Is the header compilable? | |
24574 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
24575 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
24576 | cat >conftest.$ac_ext <<_ACEOF | |
24577 | /* confdefs.h. */ | |
24578 | _ACEOF | |
24579 | cat confdefs.h >>conftest.$ac_ext | |
24580 | cat >>conftest.$ac_ext <<_ACEOF | |
24581 | /* end confdefs.h. */ | |
24582 | $ac_includes_default | |
24583 | #include <windows.h> | |
24584 | _ACEOF | |
24585 | rm -f conftest.$ac_objext | |
24586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24587 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24588 | ac_status=$? |
ac1cb8d3 VS |
24589 | grep -v '^ *+' conftest.er1 >conftest.err |
24590 | rm -f conftest.er1 | |
24591 | cat conftest.err >&5 | |
a848cd7e SC |
24592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24593 | (exit $ac_status); } && | |
ddd14b14 RR |
24594 | { ac_try='test -z "$ac_c_werror_flag" |
24595 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24597 | (eval $ac_try) 2>&5 | |
24598 | ac_status=$? | |
24599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24600 | (exit $ac_status); }; } && | |
24601 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24603 | (eval $ac_try) 2>&5 | |
24604 | ac_status=$? | |
24605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24606 | (exit $ac_status); }; }; then | |
24607 | ac_header_compiler=yes | |
24608 | else | |
24609 | echo "$as_me: failed program was:" >&5 | |
24610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24611 | ||
24612 | ac_header_compiler=no | |
24613 | fi | |
ac1cb8d3 | 24614 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24615 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24616 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24617 | ||
24618 | # Is the header present? | |
24619 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
24620 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
24621 | cat >conftest.$ac_ext <<_ACEOF | |
24622 | /* confdefs.h. */ | |
24623 | _ACEOF | |
24624 | cat confdefs.h >>conftest.$ac_ext | |
24625 | cat >>conftest.$ac_ext <<_ACEOF | |
24626 | /* end confdefs.h. */ | |
24627 | #include <windows.h> | |
24628 | _ACEOF | |
24629 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24630 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24631 | ac_status=$? | |
24632 | grep -v '^ *+' conftest.er1 >conftest.err | |
24633 | rm -f conftest.er1 | |
24634 | cat conftest.err >&5 | |
24635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24636 | (exit $ac_status); } >/dev/null; then | |
24637 | if test -s conftest.err; then | |
24638 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24639 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24640 | else |
24641 | ac_cpp_err= | |
24642 | fi | |
24643 | else | |
24644 | ac_cpp_err=yes | |
24645 | fi | |
24646 | if test -z "$ac_cpp_err"; then | |
24647 | ac_header_preproc=yes | |
24648 | else | |
24649 | echo "$as_me: failed program was:" >&5 | |
24650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24651 | ||
24652 | ac_header_preproc=no | |
24653 | fi | |
24654 | rm -f conftest.err conftest.$ac_ext | |
24655 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24656 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24657 | ||
24658 | # So? What about this header? | |
ac1cb8d3 VS |
24659 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24660 | yes:no: ) | |
a848cd7e SC |
24661 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24662 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24663 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
24664 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
24665 | ac_header_preproc=yes | |
a848cd7e | 24666 | ;; |
ac1cb8d3 | 24667 | no:yes:* ) |
a848cd7e SC |
24668 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
24669 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24670 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
24671 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
24672 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
24673 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
24674 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24675 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24676 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
24677 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24678 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
24679 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24680 | ( |
24681 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24682 | ## ----------------------------------------- ## |
24683 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24684 | ## ----------------------------------------- ## | |
a848cd7e SC |
24685 | _ASBOX |
24686 | ) | | |
24687 | sed "s/^/$as_me: WARNING: /" >&2 | |
24688 | ;; | |
24689 | esac | |
24690 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
24691 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
24692 | if test "${ac_cv_header_windows_h+set}" = set; then | |
24693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24694 | else | |
24695 | ac_cv_header_windows_h=$ac_header_preproc | |
24696 | fi | |
24697 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
24698 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
24699 | ||
24700 | fi | |
24701 | if test $ac_cv_header_windows_h = yes; then | |
24702 | : | |
24703 | else | |
24704 | ||
24705 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
24706 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
24707 | { (exit 1); exit 1; }; } | |
24708 | ||
24709 | fi | |
24710 | ||
24711 | ||
24712 | ||
24713 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
24714 | ||
24715 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
24716 | LIBS="$LIBS -loleacc" | |
24717 | fi | |
24718 | ||
24719 | case "${host}" in | |
24720 | *-*-cygwin* ) | |
24721 | LIBS="$LIBS -lkernel32 -luser32" | |
24722 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
24723 | esac | |
24724 | ||
24725 | if test "$wxUSE_ODBC" = "sys" ; then | |
24726 | wxUSE_ODBC = "yes" | |
24727 | fi | |
24728 | if test "$wxUSE_ODBC" = "yes" ; then | |
24729 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
24730 | cat >>confdefs.h <<\_ACEOF | |
24731 | #define wxUSE_ODBC 1 | |
24732 | _ACEOF | |
24733 | ||
24734 | fi | |
24735 | ||
24736 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
24737 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
24738 | ||
24739 | WIN32INSTALL=win32install | |
24740 | fi | |
24741 | ||
24742 | if test "$wxUSE_GUI" = "yes"; then | |
24743 | USE_GUI=1 | |
24744 | ||
24745 | GUI_TK_LIBRARY= | |
24746 | ||
24747 | WXGTK12= | |
24748 | WXGTK127= | |
24749 | WXGTK20= | |
24750 | WXGPE= | |
24751 | ||
207bc66c RN |
24752 | if test "$wxUSE_COCOA" = 1 ; then |
24753 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
24754 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
24755 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
24756 | wxUSE_PRINTING_ARCHITECTURE=no | |
24757 | fi | |
24758 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
24759 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
24760 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
24761 | wxUSE_DRAG_AND_DROP=no | |
24762 | fi | |
24763 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
24764 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
24765 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
24766 | wxUSE_DRAGIMAGE=no | |
24767 | fi | |
24768 | fi | |
24769 | ||
a848cd7e SC |
24770 | if test "$wxUSE_MSW" = 1 ; then |
24771 | TOOLKIT=MSW | |
24772 | GUIDIST=MSW_DIST | |
24773 | ||
ceec2216 | 24774 | case "${host}" in |
a848cd7e SC |
24775 | *-*-mingw32* ) |
24776 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
24777 | esac | |
24778 | fi | |
24779 | ||
24780 | if test "$wxUSE_GTK" = 1; then | |
24781 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
24782 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
24783 | ||
24784 | gtk_version_cached=1 | |
24785 | if test "${wx_cv_lib_gtk+set}" = set; then | |
24786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24787 | else | |
24788 | ||
24789 | gtk_version_cached=0 | |
24790 | echo "$as_me:$LINENO: result: " >&5 | |
24791 | echo "${ECHO_T}" >&6 | |
24792 | ||
24793 | GTK_MODULES= | |
24794 | if test "$wxUSE_THREADS" = "yes"; then | |
24795 | GTK_MODULES=gthread | |
24796 | fi | |
24797 | ||
f597b41c | 24798 | wx_cv_lib_gtk= |
f34ca037 | 24799 | if test "x$wxGTK_VERSION" != "x1"; then |
a848cd7e SC |
24800 | # Check whether --enable-gtktest or --disable-gtktest was given. |
24801 | if test "${enable_gtktest+set}" = set; then | |
24802 | enableval="$enable_gtktest" | |
24803 | ||
24804 | else | |
24805 | enable_gtktest=yes | |
24806 | fi; | |
24807 | ||
24808 | pkg_config_args=gtk+-2.0 | |
24809 | for module in . $GTK_MODULES | |
24810 | do | |
24811 | case "$module" in | |
24812 | gthread) | |
24813 | pkg_config_args="$pkg_config_args gthread-2.0" | |
24814 | ;; | |
24815 | esac | |
24816 | done | |
24817 | ||
24818 | no_gtk="" | |
24819 | ||
24820 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
24821 | set dummy pkg-config; ac_word=$2 | |
24822 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
24823 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24824 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
24825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24826 | else | |
24827 | case $PKG_CONFIG in | |
24828 | [\\/]* | ?:[\\/]*) | |
24829 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
24830 | ;; | |
24831 | *) | |
24832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24833 | for as_dir in $PATH | |
24834 | do | |
24835 | IFS=$as_save_IFS | |
24836 | test -z "$as_dir" && as_dir=. | |
24837 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24838 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24839 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24840 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24841 | break 2 | |
24842 | fi | |
24843 | done | |
24844 | done | |
24845 | ||
24846 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
24847 | ;; | |
24848 | esac | |
24849 | fi | |
24850 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
24851 | ||
24852 | if test -n "$PKG_CONFIG"; then | |
24853 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
24854 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
24855 | else | |
24856 | echo "$as_me:$LINENO: result: no" >&5 | |
24857 | echo "${ECHO_T}no" >&6 | |
24858 | fi | |
24859 | ||
24860 | ||
24861 | if test x$PKG_CONFIG != xno ; then | |
24862 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
24863 | : | |
24864 | else | |
c2218763 | 24865 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
24866 | no_gtk=yes |
24867 | PKG_CONFIG=no | |
24868 | fi | |
24869 | else | |
24870 | no_gtk=yes | |
24871 | fi | |
24872 | ||
24873 | min_gtk_version=2.0.0 | |
24874 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
24875 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
24876 | ||
24877 | if test x$PKG_CONFIG != xno ; then | |
24878 | ## don't try to run the test against uninstalled libtool libs | |
24879 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
24880 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
24881 | enable_gtktest=no | |
24882 | fi | |
24883 | ||
24884 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
24885 | : | |
24886 | else | |
24887 | no_gtk=yes | |
24888 | fi | |
24889 | fi | |
24890 | ||
24891 | if test x"$no_gtk" = x ; then | |
24892 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
24893 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
24894 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
24895 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
24896 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
24897 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
24898 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
24899 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
24900 | if test "x$enable_gtktest" = "xyes" ; then | |
24901 | ac_save_CFLAGS="$CFLAGS" | |
24902 | ac_save_LIBS="$LIBS" | |
24903 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24904 | LIBS="$GTK_LIBS $LIBS" | |
24905 | rm -f conf.gtktest | |
24906 | if test "$cross_compiling" = yes; then | |
24907 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
24908 | else | |
24909 | cat >conftest.$ac_ext <<_ACEOF | |
24910 | /* confdefs.h. */ | |
24911 | _ACEOF | |
24912 | cat confdefs.h >>conftest.$ac_ext | |
24913 | cat >>conftest.$ac_ext <<_ACEOF | |
24914 | /* end confdefs.h. */ | |
24915 | ||
24916 | #include <gtk/gtk.h> | |
24917 | #include <stdio.h> | |
24918 | #include <stdlib.h> | |
24919 | ||
24920 | int | |
24921 | main () | |
24922 | { | |
24923 | int major, minor, micro; | |
24924 | char *tmp_version; | |
24925 | ||
24926 | system ("touch conf.gtktest"); | |
24927 | ||
24928 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
24929 | tmp_version = g_strdup("$min_gtk_version"); | |
24930 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
24931 | printf("%s, bad version string\n", "$min_gtk_version"); | |
24932 | exit(1); | |
24933 | } | |
24934 | ||
24935 | if ((gtk_major_version != $gtk_config_major_version) || | |
24936 | (gtk_minor_version != $gtk_config_minor_version) || | |
24937 | (gtk_micro_version != $gtk_config_micro_version)) | |
24938 | { | |
24939 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
24940 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
24941 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24942 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
24943 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
24944 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
24945 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
24946 | printf("*** required on your system.\n"); | |
24947 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
24948 | printf("*** to point to the correct configuration files\n"); | |
24949 | } | |
24950 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
24951 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
24952 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
24953 | { | |
24954 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
24955 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
24956 | printf("*** library (version %d.%d.%d)\n", | |
24957 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24958 | } | |
24959 | else | |
24960 | { | |
24961 | if ((gtk_major_version > major) || | |
24962 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
24963 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
24964 | { | |
24965 | return 0; | |
24966 | } | |
24967 | else | |
24968 | { | |
24969 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
24970 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24971 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
24972 | major, minor, micro); | |
24973 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
24974 | printf("***\n"); | |
24975 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
24976 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
24977 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
24978 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
24979 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
24980 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
24981 | printf("*** so that the correct libraries are found at run-time))\n"); | |
24982 | } | |
24983 | } | |
24984 | return 1; | |
24985 | } | |
24986 | ||
24987 | _ACEOF | |
24988 | rm -f conftest$ac_exeext | |
24989 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24990 | (eval $ac_link) 2>&5 | |
24991 | ac_status=$? | |
24992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24993 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24995 | (eval $ac_try) 2>&5 | |
24996 | ac_status=$? | |
24997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24998 | (exit $ac_status); }; }; then | |
24999 | : | |
25000 | else | |
25001 | echo "$as_me: program exited with status $ac_status" >&5 | |
25002 | echo "$as_me: failed program was:" >&5 | |
25003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25004 | ||
25005 | ( exit $ac_status ) | |
25006 | no_gtk=yes | |
25007 | fi | |
ac1cb8d3 | 25008 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25009 | fi |
25010 | CFLAGS="$ac_save_CFLAGS" | |
25011 | LIBS="$ac_save_LIBS" | |
25012 | fi | |
25013 | fi | |
25014 | if test "x$no_gtk" = x ; then | |
25015 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
25016 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
25017 | wx_cv_lib_gtk=2.0 | |
25018 | else | |
25019 | echo "$as_me:$LINENO: result: no" >&5 | |
25020 | echo "${ECHO_T}no" >&6 | |
25021 | if test "$PKG_CONFIG" = "no" ; then | |
25022 | echo "*** A new enough version of pkg-config was not found." | |
25023 | echo "*** See http://pkgconfig.sourceforge.net" | |
25024 | else | |
25025 | if test -f conf.gtktest ; then | |
25026 | : | |
25027 | else | |
25028 | echo "*** Could not run GTK+ test program, checking why..." | |
25029 | ac_save_CFLAGS="$CFLAGS" | |
25030 | ac_save_LIBS="$LIBS" | |
25031 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25032 | LIBS="$LIBS $GTK_LIBS" | |
25033 | cat >conftest.$ac_ext <<_ACEOF | |
25034 | /* confdefs.h. */ | |
25035 | _ACEOF | |
25036 | cat confdefs.h >>conftest.$ac_ext | |
25037 | cat >>conftest.$ac_ext <<_ACEOF | |
25038 | /* end confdefs.h. */ | |
25039 | ||
25040 | #include <gtk/gtk.h> | |
25041 | #include <stdio.h> | |
25042 | ||
25043 | int | |
25044 | main () | |
25045 | { | |
25046 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
25047 | ; | |
25048 | return 0; | |
25049 | } | |
25050 | _ACEOF | |
25051 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25052 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25053 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25054 | ac_status=$? |
ac1cb8d3 VS |
25055 | grep -v '^ *+' conftest.er1 >conftest.err |
25056 | rm -f conftest.er1 | |
25057 | cat conftest.err >&5 | |
a848cd7e SC |
25058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25059 | (exit $ac_status); } && | |
ddd14b14 RR |
25060 | { ac_try='test -z "$ac_c_werror_flag" |
25061 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25063 | (eval $ac_try) 2>&5 | |
25064 | ac_status=$? | |
25065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25066 | (exit $ac_status); }; } && | |
25067 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25069 | (eval $ac_try) 2>&5 | |
25070 | ac_status=$? | |
25071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25072 | (exit $ac_status); }; }; then | |
25073 | echo "*** The test program compiled, but did not run. This usually means" | |
25074 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
25075 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
25076 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
25077 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
25078 | echo "*** is required on your system" | |
25079 | echo "***" | |
25080 | echo "*** If you have an old version installed, it is best to remove it, although" | |
25081 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
25082 | else | |
25083 | echo "$as_me: failed program was:" >&5 | |
25084 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25085 | ||
25086 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
25087 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
25088 | fi | |
ac1cb8d3 VS |
25089 | rm -f conftest.err conftest.$ac_objext \ |
25090 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25091 | CFLAGS="$ac_save_CFLAGS" |
25092 | LIBS="$ac_save_LIBS" | |
25093 | fi | |
25094 | fi | |
25095 | GTK_CFLAGS="" | |
25096 | GTK_LIBS="" | |
25097 | : | |
25098 | fi | |
25099 | ||
25100 | ||
25101 | rm -f conf.gtktest | |
25102 | ||
f597b41c MW |
25103 | fi |
25104 | ||
f34ca037 MW |
25105 | if test -z "$wx_cv_lib_gtk"; then |
25106 | if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then | |
a848cd7e SC |
25107 | |
25108 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
25109 | if test "${with_gtk_prefix+set}" = set; then | |
25110 | withval="$with_gtk_prefix" | |
25111 | gtk_config_prefix="$withval" | |
25112 | else | |
25113 | gtk_config_prefix="" | |
25114 | fi; | |
25115 | ||
25116 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
25117 | if test "${with_gtk_exec_prefix+set}" = set; then | |
25118 | withval="$with_gtk_exec_prefix" | |
25119 | gtk_config_exec_prefix="$withval" | |
25120 | else | |
25121 | gtk_config_exec_prefix="" | |
25122 | fi; | |
25123 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
25124 | if test "${enable_gtktest+set}" = set; then | |
25125 | enableval="$enable_gtktest" | |
25126 | ||
25127 | else | |
25128 | enable_gtktest=yes | |
25129 | fi; | |
25130 | ||
25131 | for module in . $GTK_MODULES | |
25132 | do | |
25133 | case "$module" in | |
25134 | gthread) | |
25135 | gtk_config_args="$gtk_config_args gthread" | |
25136 | ;; | |
25137 | esac | |
25138 | done | |
25139 | ||
25140 | if test x$gtk_config_exec_prefix != x ; then | |
25141 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
25142 | if test x${GTK_CONFIG+set} != xset ; then | |
25143 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
25144 | fi | |
25145 | fi | |
25146 | if test x$gtk_config_prefix != x ; then | |
25147 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
25148 | if test x${GTK_CONFIG+set} != xset ; then | |
25149 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
25150 | fi | |
25151 | fi | |
25152 | ||
25153 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
25154 | set dummy gtk-config; ac_word=$2 | |
25155 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25156 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25157 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
25158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25159 | else | |
25160 | case $GTK_CONFIG in | |
25161 | [\\/]* | ?:[\\/]*) | |
25162 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
25163 | ;; | |
25164 | *) | |
25165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25166 | for as_dir in $PATH | |
25167 | do | |
25168 | IFS=$as_save_IFS | |
25169 | test -z "$as_dir" && as_dir=. | |
25170 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25171 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25172 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25173 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25174 | break 2 | |
25175 | fi | |
25176 | done | |
25177 | done | |
25178 | ||
25179 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
25180 | ;; | |
25181 | esac | |
25182 | fi | |
25183 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
25184 | ||
25185 | if test -n "$GTK_CONFIG"; then | |
25186 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
25187 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
25188 | else | |
25189 | echo "$as_me:$LINENO: result: no" >&5 | |
25190 | echo "${ECHO_T}no" >&6 | |
25191 | fi | |
25192 | ||
25193 | min_gtk_version=1.2.7 | |
25194 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
25195 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
25196 | no_gtk="" | |
25197 | if test "$GTK_CONFIG" = "no" ; then | |
25198 | no_gtk=yes | |
25199 | else | |
25200 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
25201 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
25202 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25203 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
25204 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25205 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
25206 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25207 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
25208 | if test "x$enable_gtktest" = "xyes" ; then | |
25209 | ac_save_CFLAGS="$CFLAGS" | |
25210 | ac_save_LIBS="$LIBS" | |
25211 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25212 | LIBS="$GTK_LIBS $LIBS" | |
25213 | rm -f conf.gtktest | |
25214 | if test "$cross_compiling" = yes; then | |
25215 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
25216 | else | |
25217 | cat >conftest.$ac_ext <<_ACEOF | |
25218 | /* confdefs.h. */ | |
25219 | _ACEOF | |
25220 | cat confdefs.h >>conftest.$ac_ext | |
25221 | cat >>conftest.$ac_ext <<_ACEOF | |
25222 | /* end confdefs.h. */ | |
25223 | ||
25224 | #include <gtk/gtk.h> | |
25225 | #include <stdio.h> | |
25226 | #include <stdlib.h> | |
25227 | ||
25228 | int | |
25229 | main () | |
25230 | { | |
25231 | int major, minor, micro; | |
25232 | char *tmp_version; | |
25233 | ||
25234 | system ("touch conf.gtktest"); | |
25235 | ||
25236 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
25237 | tmp_version = g_strdup("$min_gtk_version"); | |
25238 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
25239 | printf("%s, bad version string\n", "$min_gtk_version"); | |
25240 | exit(1); | |
25241 | } | |
25242 | ||
25243 | if ((gtk_major_version != $gtk_config_major_version) || | |
25244 | (gtk_minor_version != $gtk_config_minor_version) || | |
25245 | (gtk_micro_version != $gtk_config_micro_version)) | |
25246 | { | |
25247 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
25248 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
25249 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25250 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
25251 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
25252 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
25253 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
25254 | printf("*** required on your system.\n"); | |
25255 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
25256 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
25257 | printf("*** before re-running configure\n"); | |
25258 | } | |
25259 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
25260 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
25261 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
25262 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
25263 | { | |
25264 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
25265 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
25266 | printf("*** library (version %d.%d.%d)\n", | |
25267 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25268 | } | |
25269 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
25270 | else | |
25271 | { | |
25272 | if ((gtk_major_version > major) || | |
25273 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
25274 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
25275 | { | |
25276 | return 0; | |
25277 | } | |
25278 | else | |
25279 | { | |
25280 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
25281 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25282 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
25283 | major, minor, micro); | |
25284 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
25285 | printf("***\n"); | |
25286 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
25287 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
25288 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
25289 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
25290 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
25291 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
25292 | printf("*** so that the correct libraries are found at run-time))\n"); | |
25293 | } | |
25294 | } | |
25295 | return 1; | |
25296 | } | |
25297 | ||
25298 | _ACEOF | |
25299 | rm -f conftest$ac_exeext | |
25300 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25301 | (eval $ac_link) 2>&5 | |
25302 | ac_status=$? | |
25303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25304 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25306 | (eval $ac_try) 2>&5 | |
25307 | ac_status=$? | |
25308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25309 | (exit $ac_status); }; }; then | |
25310 | : | |
25311 | else | |
25312 | echo "$as_me: program exited with status $ac_status" >&5 | |
25313 | echo "$as_me: failed program was:" >&5 | |
25314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25315 | ||
25316 | ( exit $ac_status ) | |
25317 | no_gtk=yes | |
25318 | fi | |
ac1cb8d3 | 25319 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25320 | fi |
25321 | CFLAGS="$ac_save_CFLAGS" | |
25322 | LIBS="$ac_save_LIBS" | |
25323 | fi | |
25324 | fi | |
25325 | if test "x$no_gtk" = x ; then | |
25326 | echo "$as_me:$LINENO: result: yes" >&5 | |
25327 | echo "${ECHO_T}yes" >&6 | |
25328 | wx_cv_lib_gtk=1.2.7 | |
25329 | else | |
25330 | echo "$as_me:$LINENO: result: no" >&5 | |
25331 | echo "${ECHO_T}no" >&6 | |
25332 | if test "$GTK_CONFIG" = "no" ; then | |
25333 | echo "*** The gtk-config script installed by GTK could not be found" | |
25334 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
25335 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
25336 | echo "*** full path to gtk-config." | |
25337 | else | |
25338 | if test -f conf.gtktest ; then | |
25339 | : | |
25340 | else | |
25341 | echo "*** Could not run GTK test program, checking why..." | |
25342 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25343 | LIBS="$LIBS $GTK_LIBS" | |
25344 | cat >conftest.$ac_ext <<_ACEOF | |
25345 | /* confdefs.h. */ | |
25346 | _ACEOF | |
25347 | cat confdefs.h >>conftest.$ac_ext | |
25348 | cat >>conftest.$ac_ext <<_ACEOF | |
25349 | /* end confdefs.h. */ | |
25350 | ||
25351 | #include <gtk/gtk.h> | |
25352 | #include <stdio.h> | |
25353 | ||
25354 | int | |
25355 | main () | |
25356 | { | |
25357 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
25358 | ; | |
25359 | return 0; | |
25360 | } | |
25361 | _ACEOF | |
25362 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25363 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25364 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25365 | ac_status=$? |
ac1cb8d3 VS |
25366 | grep -v '^ *+' conftest.er1 >conftest.err |
25367 | rm -f conftest.er1 | |
25368 | cat conftest.err >&5 | |
a848cd7e SC |
25369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25370 | (exit $ac_status); } && | |
ddd14b14 RR |
25371 | { ac_try='test -z "$ac_c_werror_flag" |
25372 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25374 | (eval $ac_try) 2>&5 | |
25375 | ac_status=$? | |
25376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25377 | (exit $ac_status); }; } && | |
25378 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25380 | (eval $ac_try) 2>&5 | |
25381 | ac_status=$? | |
25382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25383 | (exit $ac_status); }; }; then | |
25384 | echo "*** The test program compiled, but did not run. This usually means" | |
25385 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
25386 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
25387 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
25388 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
25389 | echo "*** is required on your system" | |
25390 | echo "***" | |
25391 | echo "*** If you have an old version installed, it is best to remove it, although" | |
25392 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
25393 | echo "***" | |
25394 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
25395 | echo "*** came with the system with the command" | |
25396 | echo "***" | |
25397 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
25398 | else | |
25399 | echo "$as_me: failed program was:" >&5 | |
25400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25401 | ||
25402 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
25403 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
25404 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
25405 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
25406 | fi | |
ac1cb8d3 VS |
25407 | rm -f conftest.err conftest.$ac_objext \ |
25408 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25409 | CFLAGS="$ac_save_CFLAGS" |
25410 | LIBS="$ac_save_LIBS" | |
25411 | fi | |
25412 | fi | |
25413 | GTK_CFLAGS="" | |
25414 | GTK_LIBS="" | |
25415 | : | |
25416 | fi | |
25417 | ||
25418 | ||
25419 | rm -f conf.gtktest | |
25420 | ||
25421 | ||
f34ca037 | 25422 | if test -z "$wx_cv_lib_gtk"; then |
a848cd7e SC |
25423 | |
25424 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
25425 | if test "${with_gtk_prefix+set}" = set; then | |
25426 | withval="$with_gtk_prefix" | |
25427 | gtk_config_prefix="$withval" | |
25428 | else | |
25429 | gtk_config_prefix="" | |
25430 | fi; | |
25431 | ||
25432 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
25433 | if test "${with_gtk_exec_prefix+set}" = set; then | |
25434 | withval="$with_gtk_exec_prefix" | |
25435 | gtk_config_exec_prefix="$withval" | |
25436 | else | |
25437 | gtk_config_exec_prefix="" | |
25438 | fi; | |
25439 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
25440 | if test "${enable_gtktest+set}" = set; then | |
25441 | enableval="$enable_gtktest" | |
25442 | ||
25443 | else | |
25444 | enable_gtktest=yes | |
25445 | fi; | |
25446 | ||
25447 | for module in . $GTK_MODULES | |
25448 | do | |
25449 | case "$module" in | |
25450 | gthread) | |
25451 | gtk_config_args="$gtk_config_args gthread" | |
25452 | ;; | |
25453 | esac | |
25454 | done | |
25455 | ||
25456 | if test x$gtk_config_exec_prefix != x ; then | |
25457 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
25458 | if test x${GTK_CONFIG+set} != xset ; then | |
25459 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
25460 | fi | |
25461 | fi | |
25462 | if test x$gtk_config_prefix != x ; then | |
25463 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
25464 | if test x${GTK_CONFIG+set} != xset ; then | |
25465 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
25466 | fi | |
25467 | fi | |
25468 | ||
25469 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
25470 | set dummy gtk-config; ac_word=$2 | |
25471 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25472 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25473 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
25474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25475 | else | |
25476 | case $GTK_CONFIG in | |
25477 | [\\/]* | ?:[\\/]*) | |
25478 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
25479 | ;; | |
25480 | *) | |
25481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25482 | for as_dir in $PATH | |
25483 | do | |
25484 | IFS=$as_save_IFS | |
25485 | test -z "$as_dir" && as_dir=. | |
25486 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25487 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25488 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25489 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25490 | break 2 | |
25491 | fi | |
25492 | done | |
25493 | done | |
25494 | ||
25495 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
25496 | ;; | |
25497 | esac | |
25498 | fi | |
25499 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
25500 | ||
25501 | if test -n "$GTK_CONFIG"; then | |
25502 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
25503 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
25504 | else | |
25505 | echo "$as_me:$LINENO: result: no" >&5 | |
25506 | echo "${ECHO_T}no" >&6 | |
25507 | fi | |
25508 | ||
25509 | min_gtk_version=1.2.3 | |
25510 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
25511 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
25512 | no_gtk="" | |
25513 | if test "$GTK_CONFIG" = "no" ; then | |
25514 | no_gtk=yes | |
25515 | else | |
25516 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
25517 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
25518 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25519 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
25520 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25521 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
25522 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25523 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
25524 | if test "x$enable_gtktest" = "xyes" ; then | |
25525 | ac_save_CFLAGS="$CFLAGS" | |
25526 | ac_save_LIBS="$LIBS" | |
25527 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25528 | LIBS="$GTK_LIBS $LIBS" | |
25529 | rm -f conf.gtktest | |
25530 | if test "$cross_compiling" = yes; then | |
25531 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
25532 | else | |
25533 | cat >conftest.$ac_ext <<_ACEOF | |
25534 | /* confdefs.h. */ | |
25535 | _ACEOF | |
25536 | cat confdefs.h >>conftest.$ac_ext | |
25537 | cat >>conftest.$ac_ext <<_ACEOF | |
25538 | /* end confdefs.h. */ | |
25539 | ||
25540 | #include <gtk/gtk.h> | |
25541 | #include <stdio.h> | |
25542 | #include <stdlib.h> | |
25543 | ||
25544 | int | |
25545 | main () | |
25546 | { | |
25547 | int major, minor, micro; | |
25548 | char *tmp_version; | |
25549 | ||
25550 | system ("touch conf.gtktest"); | |
25551 | ||
25552 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
25553 | tmp_version = g_strdup("$min_gtk_version"); | |
25554 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
25555 | printf("%s, bad version string\n", "$min_gtk_version"); | |
25556 | exit(1); | |
25557 | } | |
25558 | ||
25559 | if ((gtk_major_version != $gtk_config_major_version) || | |
25560 | (gtk_minor_version != $gtk_config_minor_version) || | |
25561 | (gtk_micro_version != $gtk_config_micro_version)) | |
25562 | { | |
25563 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
25564 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
25565 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25566 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
25567 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
25568 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
25569 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
25570 | printf("*** required on your system.\n"); | |
25571 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
25572 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
25573 | printf("*** before re-running configure\n"); | |
25574 | } | |
25575 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
25576 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
25577 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
25578 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
25579 | { | |
25580 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
25581 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
25582 | printf("*** library (version %d.%d.%d)\n", | |
25583 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25584 | } | |
25585 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
25586 | else | |
25587 | { | |
25588 | if ((gtk_major_version > major) || | |
25589 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
25590 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
25591 | { | |
25592 | return 0; | |
25593 | } | |
25594 | else | |
25595 | { | |
25596 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
25597 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25598 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
25599 | major, minor, micro); | |
25600 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
25601 | printf("***\n"); | |
25602 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
25603 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
25604 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
25605 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
25606 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
25607 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
25608 | printf("*** so that the correct libraries are found at run-time))\n"); | |
25609 | } | |
25610 | } | |
25611 | return 1; | |
25612 | } | |
25613 | ||
25614 | _ACEOF | |
25615 | rm -f conftest$ac_exeext | |
25616 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25617 | (eval $ac_link) 2>&5 | |
25618 | ac_status=$? | |
25619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25620 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25622 | (eval $ac_try) 2>&5 | |
25623 | ac_status=$? | |
25624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25625 | (exit $ac_status); }; }; then | |
25626 | : | |
25627 | else | |
25628 | echo "$as_me: program exited with status $ac_status" >&5 | |
25629 | echo "$as_me: failed program was:" >&5 | |
25630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25631 | ||
25632 | ( exit $ac_status ) | |
25633 | no_gtk=yes | |
25634 | fi | |
ac1cb8d3 | 25635 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25636 | fi |
25637 | CFLAGS="$ac_save_CFLAGS" | |
25638 | LIBS="$ac_save_LIBS" | |
25639 | fi | |
25640 | fi | |
25641 | if test "x$no_gtk" = x ; then | |
25642 | echo "$as_me:$LINENO: result: yes" >&5 | |
25643 | echo "${ECHO_T}yes" >&6 | |
25644 | wx_cv_lib_gtk=1.2.3 | |
25645 | else | |
25646 | echo "$as_me:$LINENO: result: no" >&5 | |
25647 | echo "${ECHO_T}no" >&6 | |
25648 | if test "$GTK_CONFIG" = "no" ; then | |
25649 | echo "*** The gtk-config script installed by GTK could not be found" | |
25650 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
25651 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
25652 | echo "*** full path to gtk-config." | |
25653 | else | |
25654 | if test -f conf.gtktest ; then | |
25655 | : | |
25656 | else | |
25657 | echo "*** Could not run GTK test program, checking why..." | |
25658 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25659 | LIBS="$LIBS $GTK_LIBS" | |
25660 | cat >conftest.$ac_ext <<_ACEOF | |
25661 | /* confdefs.h. */ | |
25662 | _ACEOF | |
25663 | cat confdefs.h >>conftest.$ac_ext | |
25664 | cat >>conftest.$ac_ext <<_ACEOF | |
25665 | /* end confdefs.h. */ | |
25666 | ||
25667 | #include <gtk/gtk.h> | |
25668 | #include <stdio.h> | |
25669 | ||
25670 | int | |
25671 | main () | |
25672 | { | |
25673 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
25674 | ; | |
25675 | return 0; | |
25676 | } | |
25677 | _ACEOF | |
25678 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25679 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25680 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25681 | ac_status=$? |
ac1cb8d3 VS |
25682 | grep -v '^ *+' conftest.er1 >conftest.err |
25683 | rm -f conftest.er1 | |
25684 | cat conftest.err >&5 | |
a848cd7e SC |
25685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25686 | (exit $ac_status); } && | |
ddd14b14 RR |
25687 | { ac_try='test -z "$ac_c_werror_flag" |
25688 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25690 | (eval $ac_try) 2>&5 | |
25691 | ac_status=$? | |
25692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25693 | (exit $ac_status); }; } && | |
25694 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25696 | (eval $ac_try) 2>&5 | |
25697 | ac_status=$? | |
25698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25699 | (exit $ac_status); }; }; then | |
25700 | echo "*** The test program compiled, but did not run. This usually means" | |
25701 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
25702 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
25703 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
25704 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
25705 | echo "*** is required on your system" | |
25706 | echo "***" | |
25707 | echo "*** If you have an old version installed, it is best to remove it, although" | |
25708 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
25709 | echo "***" | |
25710 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
25711 | echo "*** came with the system with the command" | |
25712 | echo "***" | |
25713 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
25714 | else | |
25715 | echo "$as_me: failed program was:" >&5 | |
25716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25717 | ||
25718 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
25719 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
25720 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
25721 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
25722 | fi | |
ac1cb8d3 VS |
25723 | rm -f conftest.err conftest.$ac_objext \ |
25724 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25725 | CFLAGS="$ac_save_CFLAGS" |
25726 | LIBS="$ac_save_LIBS" | |
25727 | fi | |
25728 | fi | |
25729 | GTK_CFLAGS="" | |
25730 | GTK_LIBS="" | |
25731 | : | |
25732 | fi | |
25733 | ||
25734 | ||
25735 | rm -f conf.gtktest | |
25736 | ||
f34ca037 | 25737 | fi |
a848cd7e SC |
25738 | fi |
25739 | fi | |
25740 | ||
25741 | if test -z "$wx_cv_lib_gtk"; then | |
25742 | wx_cv_lib_gtk=none | |
25743 | else | |
25744 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
25745 | wx_cv_libs_gtk=$GTK_LIBS | |
25746 | fi | |
25747 | ||
25748 | ||
25749 | fi | |
25750 | ||
25751 | ||
25752 | if test "$gtk_version_cached" = 1; then | |
25753 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
25754 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
25755 | fi | |
25756 | ||
25757 | case "$wx_cv_lib_gtk" in | |
25758 | 2.0) WXGTK20=1 | |
25759 | TOOLKIT_VERSION=2 | |
25760 | ;; | |
25761 | 1.2.7) WXGTK127=1 | |
25762 | WXGTK12=1 | |
25763 | ;; | |
25764 | 1.2.3) WXGTK12=1 | |
25765 | ;; | |
25766 | *) { { echo "$as_me:$LINENO: error: | |
f597b41c MW |
25767 | The development files for GTK+ were not found. For GTK+ 2, please |
25768 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
25769 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
25770 | and that the version is 1.2.3 or above. Also check that the | |
25771 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
25772 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
25773 | " >&5 |
25774 | echo "$as_me: error: | |
f597b41c MW |
25775 | The development files for GTK+ were not found. For GTK+ 2, please |
25776 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
25777 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
25778 | and that the version is 1.2.3 or above. Also check that the | |
25779 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
25780 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
25781 | " >&2;} |
25782 | { (exit 1); exit 1; }; } | |
25783 | ;; | |
25784 | esac | |
25785 | ||
25786 | if test "$WXGTK20" = 1; then | |
304205f1 VS |
25787 | save_CFLAGS="$CFLAGS" |
25788 | save_LIBS="$LIBS" | |
9d271838 | 25789 | CFLAGS="$CFLAGS $wx_cv_cflags_gtk" |
abc736fd | 25790 | LIBS="$LIBS $wx_cv_libs_gtk" |
304205f1 | 25791 | |
9755e73b | 25792 | |
304205f1 VS |
25793 | for ac_func in pango_font_family_is_monospace |
25794 | do | |
25795 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25796 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25797 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25798 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25800 | else | |
25801 | cat >conftest.$ac_ext <<_ACEOF | |
25802 | /* confdefs.h. */ | |
25803 | _ACEOF | |
25804 | cat confdefs.h >>conftest.$ac_ext | |
25805 | cat >>conftest.$ac_ext <<_ACEOF | |
25806 | /* end confdefs.h. */ | |
25807 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
25808 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25809 | #define $ac_func innocuous_$ac_func | |
25810 | ||
25811 | /* System header to define __stub macros and hopefully few prototypes, | |
25812 | which can conflict with char $ac_func (); below. | |
25813 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25814 | <limits.h> exists even on freestanding compilers. */ | |
25815 | ||
25816 | #ifdef __STDC__ | |
25817 | # include <limits.h> | |
25818 | #else | |
25819 | # include <assert.h> | |
25820 | #endif | |
25821 | ||
25822 | #undef $ac_func | |
25823 | ||
25824 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25825 | #ifdef __cplusplus | |
25826 | extern "C" | |
25827 | { | |
25828 | #endif | |
25829 | /* We use char because int might match the return type of a gcc2 | |
25830 | builtin and then its argument prototype would still apply. */ | |
25831 | char $ac_func (); | |
25832 | /* The GNU C library defines this for functions which it implements | |
25833 | to always fail with ENOSYS. Some functions are actually named | |
25834 | something starting with __ and the normal name is an alias. */ | |
25835 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25836 | choke me | |
25837 | #else | |
25838 | char (*f) () = $ac_func; | |
25839 | #endif | |
25840 | #ifdef __cplusplus | |
25841 | } | |
25842 | #endif | |
25843 | ||
25844 | int | |
25845 | main () | |
25846 | { | |
25847 | return f != $ac_func; | |
25848 | ; | |
25849 | return 0; | |
25850 | } | |
25851 | _ACEOF | |
25852 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25853 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25854 | (eval $ac_link) 2>conftest.er1 | |
25855 | ac_status=$? | |
25856 | grep -v '^ *+' conftest.er1 >conftest.err | |
25857 | rm -f conftest.er1 | |
25858 | cat conftest.err >&5 | |
25859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25860 | (exit $ac_status); } && | |
ddd14b14 RR |
25861 | { ac_try='test -z "$ac_c_werror_flag" |
25862 | || test ! -s conftest.err' | |
304205f1 VS |
25863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25864 | (eval $ac_try) 2>&5 | |
25865 | ac_status=$? | |
25866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25867 | (exit $ac_status); }; } && | |
25868 | { ac_try='test -s conftest$ac_exeext' | |
25869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25870 | (eval $ac_try) 2>&5 | |
25871 | ac_status=$? | |
25872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25873 | (exit $ac_status); }; }; then | |
25874 | eval "$as_ac_var=yes" | |
25875 | else | |
25876 | echo "$as_me: failed program was:" >&5 | |
25877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25878 | ||
25879 | eval "$as_ac_var=no" | |
25880 | fi | |
25881 | rm -f conftest.err conftest.$ac_objext \ | |
25882 | conftest$ac_exeext conftest.$ac_ext | |
25883 | fi | |
25884 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25885 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25886 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25887 | cat >>confdefs.h <<_ACEOF | |
25888 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25889 | _ACEOF | |
25890 | ||
25891 | fi | |
25892 | done | |
25893 | ||
9755e73b | 25894 | |
abc736fd MW |
25895 | echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5 |
25896 | echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6 | |
25897 | cat >conftest.$ac_ext <<_ACEOF | |
25898 | /* confdefs.h. */ | |
25899 | _ACEOF | |
25900 | cat confdefs.h >>conftest.$ac_ext | |
25901 | cat >>conftest.$ac_ext <<_ACEOF | |
25902 | /* end confdefs.h. */ | |
25903 | ||
25904 | #include <gtk/gtk.h> | |
25905 | ||
25906 | int | |
25907 | main () | |
25908 | { | |
25909 | ||
25910 | void *f = gtk_icon_size_lookup; | |
25911 | ||
25912 | ; | |
25913 | return 0; | |
25914 | } | |
25915 | _ACEOF | |
25916 | rm -f conftest.$ac_objext | |
25917 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25918 | (eval $ac_compile) 2>conftest.er1 | |
25919 | ac_status=$? | |
25920 | grep -v '^ *+' conftest.er1 >conftest.err | |
25921 | rm -f conftest.er1 | |
25922 | cat conftest.err >&5 | |
25923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25924 | (exit $ac_status); } && | |
ddd14b14 RR |
25925 | { ac_try='test -z "$ac_c_werror_flag" |
25926 | || test ! -s conftest.err' | |
abc736fd MW |
25927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25928 | (eval $ac_try) 2>&5 | |
25929 | ac_status=$? | |
25930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25931 | (exit $ac_status); }; } && | |
25932 | { ac_try='test -s conftest.$ac_objext' | |
25933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25934 | (eval $ac_try) 2>&5 | |
25935 | ac_status=$? | |
25936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25937 | (exit $ac_status); }; }; then | |
25938 | ||
25939 | echo "$as_me:$LINENO: result: no" >&5 | |
25940 | echo "${ECHO_T}no" >&6 | |
25941 | ||
25942 | else | |
25943 | echo "$as_me: failed program was:" >&5 | |
25944 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25945 | ||
25946 | ||
25947 | cat >>confdefs.h <<\_ACEOF | |
25948 | #define NEED_GTK_ICON_SIZE_LOOKUP 1 | |
25949 | _ACEOF | |
25950 | ||
25951 | echo "$as_me:$LINENO: result: yes" >&5 | |
25952 | echo "${ECHO_T}yes" >&6 | |
25953 | ||
25954 | fi | |
25955 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
25956 | ||
9755e73b VS |
25957 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5 |
25958 | echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6 | |
25959 | cat >conftest.$ac_ext <<_ACEOF | |
25960 | /* confdefs.h. */ | |
25961 | _ACEOF | |
25962 | cat confdefs.h >>conftest.$ac_ext | |
25963 | cat >>conftest.$ac_ext <<_ACEOF | |
25964 | /* end confdefs.h. */ | |
25965 | ||
25966 | #include <gtk/gtk.h> | |
25967 | ||
25968 | int | |
25969 | main () | |
25970 | { | |
25971 | ||
25972 | #if !GTK_CHECK_VERSION(2,4,0) | |
25973 | #error "Not GTK+ 2.4" | |
25974 | #endif | |
25975 | ||
25976 | ; | |
25977 | return 0; | |
25978 | } | |
25979 | _ACEOF | |
25980 | rm -f conftest.$ac_objext | |
25981 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25982 | (eval $ac_compile) 2>conftest.er1 | |
25983 | ac_status=$? | |
25984 | grep -v '^ *+' conftest.er1 >conftest.err | |
25985 | rm -f conftest.er1 | |
25986 | cat conftest.err >&5 | |
25987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25988 | (exit $ac_status); } && | |
ddd14b14 RR |
25989 | { ac_try='test -z "$ac_c_werror_flag" |
25990 | || test ! -s conftest.err' | |
9755e73b VS |
25991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25992 | (eval $ac_try) 2>&5 | |
25993 | ac_status=$? | |
25994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25995 | (exit $ac_status); }; } && | |
25996 | { ac_try='test -s conftest.$ac_objext' | |
25997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25998 | (eval $ac_try) 2>&5 | |
25999 | ac_status=$? | |
26000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26001 | (exit $ac_status); }; }; then | |
26002 | ||
26003 | cat >>confdefs.h <<\_ACEOF | |
26004 | #define __WXGTK24__ 1 | |
26005 | _ACEOF | |
26006 | ||
26007 | echo "$as_me:$LINENO: result: yes" >&5 | |
26008 | echo "${ECHO_T}yes" >&6 | |
26009 | ||
26010 | else | |
26011 | echo "$as_me: failed program was:" >&5 | |
26012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26013 | ||
26014 | ||
26015 | echo "$as_me:$LINENO: result: no" >&5 | |
26016 | echo "${ECHO_T}no" >&6 | |
26017 | ||
26018 | fi | |
26019 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26020 | ||
304205f1 VS |
26021 | CFLAGS="$save_CFLAGS" |
26022 | LIBS="$save_LIBS" | |
a848cd7e SC |
26023 | else |
26024 | if test "$wxUSE_UNICODE" = "yes"; then | |
26025 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
26026 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
26027 | wxUSE_UNICODE=no | |
26028 | fi | |
26029 | fi | |
26030 | ||
26031 | if test "$USE_DARWIN" != 1; then | |
26032 | ||
26033 | for ac_func in poll | |
26034 | do | |
26035 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
26036 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26037 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26038 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26040 | else | |
26041 | cat >conftest.$ac_ext <<_ACEOF | |
26042 | /* confdefs.h. */ | |
26043 | _ACEOF | |
26044 | cat confdefs.h >>conftest.$ac_ext | |
26045 | cat >>conftest.$ac_ext <<_ACEOF | |
26046 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26047 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
26048 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26049 | #define $ac_func innocuous_$ac_func | |
26050 | ||
a848cd7e SC |
26051 | /* System header to define __stub macros and hopefully few prototypes, |
26052 | which can conflict with char $ac_func (); below. | |
26053 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26054 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26055 | |
a848cd7e SC |
26056 | #ifdef __STDC__ |
26057 | # include <limits.h> | |
26058 | #else | |
26059 | # include <assert.h> | |
26060 | #endif | |
ac1cb8d3 VS |
26061 | |
26062 | #undef $ac_func | |
26063 | ||
a848cd7e SC |
26064 | /* Override any gcc2 internal prototype to avoid an error. */ |
26065 | #ifdef __cplusplus | |
26066 | extern "C" | |
26067 | { | |
26068 | #endif | |
26069 | /* We use char because int might match the return type of a gcc2 | |
26070 | builtin and then its argument prototype would still apply. */ | |
26071 | char $ac_func (); | |
26072 | /* The GNU C library defines this for functions which it implements | |
26073 | to always fail with ENOSYS. Some functions are actually named | |
26074 | something starting with __ and the normal name is an alias. */ | |
26075 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26076 | choke me | |
26077 | #else | |
26078 | char (*f) () = $ac_func; | |
26079 | #endif | |
26080 | #ifdef __cplusplus | |
26081 | } | |
26082 | #endif | |
26083 | ||
26084 | int | |
26085 | main () | |
26086 | { | |
26087 | return f != $ac_func; | |
26088 | ; | |
26089 | return 0; | |
26090 | } | |
26091 | _ACEOF | |
26092 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26093 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26094 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26095 | ac_status=$? |
ac1cb8d3 VS |
26096 | grep -v '^ *+' conftest.er1 >conftest.err |
26097 | rm -f conftest.er1 | |
26098 | cat conftest.err >&5 | |
a848cd7e SC |
26099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26100 | (exit $ac_status); } && | |
ddd14b14 RR |
26101 | { ac_try='test -z "$ac_c_werror_flag" |
26102 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26104 | (eval $ac_try) 2>&5 | |
26105 | ac_status=$? | |
26106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26107 | (exit $ac_status); }; } && | |
26108 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26110 | (eval $ac_try) 2>&5 | |
26111 | ac_status=$? | |
26112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26113 | (exit $ac_status); }; }; then | |
26114 | eval "$as_ac_var=yes" | |
26115 | else | |
26116 | echo "$as_me: failed program was:" >&5 | |
26117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26118 | ||
26119 | eval "$as_ac_var=no" | |
26120 | fi | |
ac1cb8d3 VS |
26121 | rm -f conftest.err conftest.$ac_objext \ |
26122 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26123 | fi |
26124 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26125 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26126 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26127 | cat >>confdefs.h <<_ACEOF | |
26128 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26129 | _ACEOF | |
26130 | ||
26131 | fi | |
26132 | done | |
26133 | ||
26134 | fi | |
26135 | ||
26136 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
26137 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
26138 | ||
26139 | AFMINSTALL=afminstall | |
26140 | TOOLKIT=GTK | |
26141 | GUIDIST=GTK_DIST | |
26142 | ||
26143 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
26144 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
26145 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
26146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26147 | else | |
26148 | ac_check_lib_save_LIBS=$LIBS | |
26149 | LIBS="-lgdk $LIBS" | |
26150 | cat >conftest.$ac_ext <<_ACEOF | |
26151 | /* confdefs.h. */ | |
26152 | _ACEOF | |
26153 | cat confdefs.h >>conftest.$ac_ext | |
26154 | cat >>conftest.$ac_ext <<_ACEOF | |
26155 | /* end confdefs.h. */ | |
26156 | ||
26157 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26158 | #ifdef __cplusplus | |
26159 | extern "C" | |
26160 | #endif | |
26161 | /* We use char because int might match the return type of a gcc2 | |
26162 | builtin and then its argument prototype would still apply. */ | |
26163 | char gdk_im_open (); | |
26164 | int | |
26165 | main () | |
26166 | { | |
26167 | gdk_im_open (); | |
26168 | ; | |
26169 | return 0; | |
26170 | } | |
26171 | _ACEOF | |
26172 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26173 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26174 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26175 | ac_status=$? |
ac1cb8d3 VS |
26176 | grep -v '^ *+' conftest.er1 >conftest.err |
26177 | rm -f conftest.er1 | |
26178 | cat conftest.err >&5 | |
a848cd7e SC |
26179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26180 | (exit $ac_status); } && | |
ddd14b14 RR |
26181 | { ac_try='test -z "$ac_c_werror_flag" |
26182 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26184 | (eval $ac_try) 2>&5 | |
26185 | ac_status=$? | |
26186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26187 | (exit $ac_status); }; } && | |
26188 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26190 | (eval $ac_try) 2>&5 | |
26191 | ac_status=$? | |
26192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26193 | (exit $ac_status); }; }; then | |
26194 | ac_cv_lib_gdk_gdk_im_open=yes | |
26195 | else | |
26196 | echo "$as_me: failed program was:" >&5 | |
26197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26198 | ||
26199 | ac_cv_lib_gdk_gdk_im_open=no | |
26200 | fi | |
ac1cb8d3 VS |
26201 | rm -f conftest.err conftest.$ac_objext \ |
26202 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26203 | LIBS=$ac_check_lib_save_LIBS |
26204 | fi | |
26205 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
26206 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
26207 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
26208 | cat >>confdefs.h <<\_ACEOF | |
26209 | #define HAVE_XIM 1 | |
26210 | _ACEOF | |
26211 | ||
26212 | fi | |
26213 | ||
26214 | ||
26215 | ||
26216 | if test "$wxUSE_GPE" = "yes"; then | |
26217 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
26218 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
26219 | ||
26220 | ac_find_libraries= | |
26221 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26222 | do | |
26223 | for ac_extension in a so sl dylib; do | |
26224 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then | |
26225 | ac_find_libraries=$ac_dir | |
26226 | break 2 | |
26227 | fi | |
26228 | done | |
26229 | done | |
26230 | ||
26231 | if test "$ac_find_libraries" != "" ; then | |
26232 | ||
26233 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
26234 | result=$? | |
26235 | if test $result = 0; then | |
26236 | ac_path_to_link="" | |
26237 | else | |
26238 | ac_path_to_link=" -L$ac_find_libraries" | |
26239 | fi | |
26240 | ||
26241 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
26242 | WXGPE=1 | |
26243 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
26244 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
26245 | else | |
26246 | echo "$as_me:$LINENO: result: not found" >&5 | |
26247 | echo "${ECHO_T}not found" >&6 | |
26248 | fi | |
26249 | ||
26250 | fi | |
26251 | fi | |
26252 | ||
26253 | if test "$wxUSE_MGL" = 1; then | |
26254 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
26255 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
26256 | if test "x$MGL_ROOT" = x ; then | |
26257 | echo "$as_me:$LINENO: result: not found" >&5 | |
26258 | echo "${ECHO_T}not found" >&6 | |
26259 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
26260 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
26261 | { (exit 1); exit 1; }; } | |
26262 | else | |
26263 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
26264 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
26265 | fi | |
26266 | ||
26267 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
26268 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
26269 | case "${host}" in | |
26270 | *-*-linux* ) | |
26271 | if test "x$wxUSE_SHARED" = xyes ; then | |
26272 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
26273 | else | |
26274 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
26275 | fi | |
26276 | ;; | |
26277 | *-pc-msdosdjgpp ) | |
26278 | mgl_os_candidates="dos32/dj2" | |
26279 | ;; | |
26280 | *) | |
26281 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
26282 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
26283 | { (exit 1); exit 1; }; } | |
26284 | esac | |
26285 | ||
26286 | mgl_lib_type="" | |
26287 | mgl_os="" | |
26288 | ||
26289 | for mgl_os_i in $mgl_os_candidates ; do | |
26290 | if test "x$mgl_os" = x ; then | |
26291 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
26292 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
26293 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
26294 | mgl_lib_type=debug | |
26295 | mgl_os=$mgl_os_i | |
26296 | fi | |
26297 | fi | |
26298 | if test "x$mgl_lib_type" = x ; then | |
26299 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
26300 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
26301 | mgl_lib_type=release | |
26302 | mgl_os=$mgl_os_i | |
26303 | fi | |
26304 | fi | |
26305 | fi | |
26306 | done | |
26307 | ||
26308 | if test "x$mgl_os" = x ; then | |
26309 | echo "$as_me:$LINENO: result: not found" >&5 | |
26310 | echo "${ECHO_T}not found" >&6 | |
26311 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
26312 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
26313 | { (exit 1); exit 1; }; } | |
26314 | fi | |
26315 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
26316 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
26317 | ||
26318 | wxUSE_UNIVERSAL="yes" | |
26319 | ||
26320 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
26321 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
26322 | ||
26323 | AFMINSTALL=afminstall | |
26324 | TOOLKIT=MGL | |
26325 | GUIDIST=MGL_DIST | |
26326 | fi | |
26327 | ||
26328 | if test "$wxUSE_MICROWIN" = 1; then | |
26329 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
26330 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
26331 | if test "x$MICROWINDOWS" = x ; then | |
26332 | echo "$as_me:$LINENO: result: not found" >&5 | |
26333 | echo "${ECHO_T}not found" >&6 | |
26334 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
26335 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
26336 | { (exit 1); exit 1; }; } | |
26337 | else | |
26338 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
26339 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
26340 | fi | |
26341 | ||
26342 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
26343 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
26344 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
26345 | else | |
26346 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
26347 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
26348 | { (exit 1); exit 1; }; } | |
26349 | fi | |
26350 | ||
26351 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
26352 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
26353 | ||
26354 | wxUSE_UNIVERSAL="yes" | |
26355 | ||
26356 | AFMINSTALL=afminstall | |
26357 | TOOLKIT=MICROWIN | |
26358 | GUIDIST=MICROWIN_DIST | |
26359 | ||
26360 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
26361 | fi | |
26362 | ||
74b84332 | 26363 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
ddd14b14 | 26364 | echo "$as_me:$LINENO: checking for X" >&5 |
a848cd7e SC |
26365 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
26366 | ||
26367 | ||
26368 | # Check whether --with-x or --without-x was given. | |
26369 | if test "${with_x+set}" = set; then | |
26370 | withval="$with_x" | |
26371 | ||
26372 | fi; | |
26373 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
26374 | if test "x$with_x" = xno; then | |
26375 | # The user explicitly disabled X. | |
26376 | have_x=disabled | |
26377 | else | |
26378 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
26379 | # Both variables are already set. | |
26380 | have_x=yes | |
26381 | else | |
26382 | if test "${ac_cv_have_x+set}" = set; then | |
26383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26384 | else | |
26385 | # One or both of the vars are not set, and there is no cached value. | |
26386 | ac_x_includes=no ac_x_libraries=no | |
26387 | rm -fr conftest.dir | |
26388 | if mkdir conftest.dir; then | |
26389 | cd conftest.dir | |
26390 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
26391 | cat >Imakefile <<'_ACEOF' | |
26392 | acfindx: | |
26393 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
26394 | _ACEOF | |
26395 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
26396 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
26397 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
26398 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
26399 | for ac_extension in a so sl; do | |
26400 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
26401 | test -f $ac_im_libdir/libX11.$ac_extension; then |
26402 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
26403 | fi |
26404 | done | |
26405 | # Screen out bogus values from the imake configuration. They are | |
26406 | # bogus both because they are the default anyway, and because | |
26407 | # using them would break gcc on systems where it needs fixed includes. | |
26408 | case $ac_im_incroot in | |
26409 | /usr/include) ;; | |
26410 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
26411 | esac | |
26412 | case $ac_im_usrlibdir in | |
26413 | /usr/lib | /lib) ;; | |
26414 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
26415 | esac | |
26416 | fi | |
26417 | cd .. | |
26418 | rm -fr conftest.dir | |
26419 | fi | |
26420 | ||
26421 | # Standard set of common directories for X headers. | |
26422 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
26423 | ac_x_header_dirs=' | |
26424 | /usr/X11/include | |
26425 | /usr/X11R6/include | |
26426 | /usr/X11R5/include | |
26427 | /usr/X11R4/include | |
26428 | ||
26429 | /usr/include/X11 | |
26430 | /usr/include/X11R6 | |
26431 | /usr/include/X11R5 | |
26432 | /usr/include/X11R4 | |
26433 | ||
26434 | /usr/local/X11/include | |
26435 | /usr/local/X11R6/include | |
26436 | /usr/local/X11R5/include | |
26437 | /usr/local/X11R4/include | |
26438 | ||
26439 | /usr/local/include/X11 | |
26440 | /usr/local/include/X11R6 | |
26441 | /usr/local/include/X11R5 | |
26442 | /usr/local/include/X11R4 | |
26443 | ||
26444 | /usr/X386/include | |
26445 | /usr/x386/include | |
26446 | /usr/XFree86/include/X11 | |
26447 | ||
26448 | /usr/include | |
26449 | /usr/local/include | |
26450 | /usr/unsupported/include | |
26451 | /usr/athena/include | |
26452 | /usr/local/x11r5/include | |
26453 | /usr/lpp/Xamples/include | |
26454 | ||
26455 | /usr/openwin/include | |
26456 | /usr/openwin/share/include' | |
26457 | ||
26458 | if test "$ac_x_includes" = no; then | |
ddd14b14 | 26459 | # Guess where to find include files, by looking for Intrinsic.h. |
a848cd7e SC |
26460 | # First, try using that file with no special directory specified. |
26461 | cat >conftest.$ac_ext <<_ACEOF | |
26462 | /* confdefs.h. */ | |
26463 | _ACEOF | |
26464 | cat confdefs.h >>conftest.$ac_ext | |
26465 | cat >>conftest.$ac_ext <<_ACEOF | |
26466 | /* end confdefs.h. */ | |
26467 | #include <X11/Intrinsic.h> | |
26468 | _ACEOF | |
26469 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26470 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26471 | ac_status=$? | |
26472 | grep -v '^ *+' conftest.er1 >conftest.err | |
26473 | rm -f conftest.er1 | |
26474 | cat conftest.err >&5 | |
26475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26476 | (exit $ac_status); } >/dev/null; then | |
26477 | if test -s conftest.err; then | |
26478 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 26479 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
26480 | else |
26481 | ac_cpp_err= | |
26482 | fi | |
26483 | else | |
26484 | ac_cpp_err=yes | |
26485 | fi | |
26486 | if test -z "$ac_cpp_err"; then | |
26487 | # We can compile using X headers with no special include directory. | |
26488 | ac_x_includes= | |
26489 | else | |
26490 | echo "$as_me: failed program was:" >&5 | |
26491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26492 | ||
26493 | for ac_dir in $ac_x_header_dirs; do | |
26494 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
26495 | ac_x_includes=$ac_dir | |
26496 | break | |
26497 | fi | |
26498 | done | |
26499 | fi | |
26500 | rm -f conftest.err conftest.$ac_ext | |
26501 | fi # $ac_x_includes = no | |
26502 | ||
26503 | if test "$ac_x_libraries" = no; then | |
26504 | # Check for the libraries. | |
26505 | # See if we find them without any special options. | |
26506 | # Don't add to $LIBS permanently. | |
26507 | ac_save_LIBS=$LIBS | |
26508 | LIBS="-lXt $LIBS" | |
26509 | cat >conftest.$ac_ext <<_ACEOF | |
26510 | /* confdefs.h. */ | |
26511 | _ACEOF | |
26512 | cat confdefs.h >>conftest.$ac_ext | |
26513 | cat >>conftest.$ac_ext <<_ACEOF | |
26514 | /* end confdefs.h. */ | |
26515 | #include <X11/Intrinsic.h> | |
26516 | int | |
26517 | main () | |
26518 | { | |
26519 | XtMalloc (0) | |
26520 | ; | |
26521 | return 0; | |
26522 | } | |
26523 | _ACEOF | |
26524 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26525 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26526 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26527 | ac_status=$? |
ac1cb8d3 VS |
26528 | grep -v '^ *+' conftest.er1 >conftest.err |
26529 | rm -f conftest.er1 | |
26530 | cat conftest.err >&5 | |
a848cd7e SC |
26531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26532 | (exit $ac_status); } && | |
ddd14b14 RR |
26533 | { ac_try='test -z "$ac_c_werror_flag" |
26534 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26536 | (eval $ac_try) 2>&5 | |
26537 | ac_status=$? | |
26538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26539 | (exit $ac_status); }; } && | |
26540 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26542 | (eval $ac_try) 2>&5 | |
26543 | ac_status=$? | |
26544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26545 | (exit $ac_status); }; }; then | |
26546 | LIBS=$ac_save_LIBS | |
26547 | # We can link X programs with no special library path. | |
26548 | ac_x_libraries= | |
26549 | else | |
26550 | echo "$as_me: failed program was:" >&5 | |
26551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26552 | ||
26553 | LIBS=$ac_save_LIBS | |
26554 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
26555 | do | |
26556 | # Don't even attempt the hair of trying to link an X program! | |
26557 | for ac_extension in a so sl; do | |
26558 | if test -r $ac_dir/libXt.$ac_extension; then | |
26559 | ac_x_libraries=$ac_dir | |
26560 | break 2 | |
26561 | fi | |
26562 | done | |
26563 | done | |
26564 | fi | |
ac1cb8d3 VS |
26565 | rm -f conftest.err conftest.$ac_objext \ |
26566 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26567 | fi # $ac_x_libraries = no |
26568 | ||
26569 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
26570 | # Didn't find X anywhere. Cache the known absence of X. | |
26571 | ac_cv_have_x="have_x=no" | |
26572 | else | |
26573 | # Record where we found X for the cache. | |
26574 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 26575 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
26576 | fi |
26577 | fi | |
26578 | ||
26579 | fi | |
26580 | eval "$ac_cv_have_x" | |
26581 | fi # $with_x != no | |
26582 | ||
26583 | if test "$have_x" != yes; then | |
26584 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
26585 | echo "${ECHO_T}$have_x" >&6 | |
26586 | no_x=yes | |
26587 | else | |
26588 | # If each of the values was on the command line, it overrides each guess. | |
26589 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
26590 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
26591 | # Update the cache value to reflect the command line values. | |
26592 | ac_cv_have_x="have_x=yes \ | |
26593 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
ddd14b14 RR |
26594 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
26595 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
a848cd7e SC |
26596 | fi |
26597 | ||
26598 | if test "$no_x" = yes; then | |
26599 | # Not all programs may use this symbol, but it does not hurt to define it. | |
26600 | ||
26601 | cat >>confdefs.h <<\_ACEOF | |
26602 | #define X_DISPLAY_MISSING 1 | |
26603 | _ACEOF | |
26604 | ||
26605 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
26606 | else | |
26607 | if test -n "$x_includes"; then | |
26608 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
26609 | fi | |
26610 | ||
26611 | # It would also be nice to do this for all -L options, not just this one. | |
26612 | if test -n "$x_libraries"; then | |
26613 | X_LIBS="$X_LIBS -L$x_libraries" | |
26614 | # For Solaris; some versions of Sun CC require a space after -R and | |
26615 | # others require no space. Words are not sufficient . . . . | |
26616 | case `(uname -sr) 2>/dev/null` in | |
26617 | "SunOS 5"*) | |
26618 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
26619 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
26620 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
26621 | cat >conftest.$ac_ext <<_ACEOF | |
26622 | /* confdefs.h. */ | |
26623 | _ACEOF | |
26624 | cat confdefs.h >>conftest.$ac_ext | |
26625 | cat >>conftest.$ac_ext <<_ACEOF | |
26626 | /* end confdefs.h. */ | |
26627 | ||
26628 | int | |
26629 | main () | |
26630 | { | |
26631 | ||
26632 | ; | |
26633 | return 0; | |
26634 | } | |
26635 | _ACEOF | |
26636 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26637 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26638 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26639 | ac_status=$? |
ac1cb8d3 VS |
26640 | grep -v '^ *+' conftest.er1 >conftest.err |
26641 | rm -f conftest.er1 | |
26642 | cat conftest.err >&5 | |
a848cd7e SC |
26643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26644 | (exit $ac_status); } && | |
ddd14b14 RR |
26645 | { ac_try='test -z "$ac_c_werror_flag" |
26646 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26648 | (eval $ac_try) 2>&5 | |
26649 | ac_status=$? | |
26650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26651 | (exit $ac_status); }; } && | |
26652 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26654 | (eval $ac_try) 2>&5 | |
26655 | ac_status=$? | |
26656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26657 | (exit $ac_status); }; }; then | |
26658 | ac_R_nospace=yes | |
26659 | else | |
26660 | echo "$as_me: failed program was:" >&5 | |
26661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26662 | ||
26663 | ac_R_nospace=no | |
26664 | fi | |
ac1cb8d3 VS |
26665 | rm -f conftest.err conftest.$ac_objext \ |
26666 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26667 | if test $ac_R_nospace = yes; then |
26668 | echo "$as_me:$LINENO: result: no" >&5 | |
26669 | echo "${ECHO_T}no" >&6 | |
26670 | X_LIBS="$X_LIBS -R$x_libraries" | |
26671 | else | |
26672 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
26673 | cat >conftest.$ac_ext <<_ACEOF | |
26674 | /* confdefs.h. */ | |
26675 | _ACEOF | |
26676 | cat confdefs.h >>conftest.$ac_ext | |
26677 | cat >>conftest.$ac_ext <<_ACEOF | |
26678 | /* end confdefs.h. */ | |
26679 | ||
26680 | int | |
26681 | main () | |
26682 | { | |
26683 | ||
26684 | ; | |
26685 | return 0; | |
26686 | } | |
26687 | _ACEOF | |
26688 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26689 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26690 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26691 | ac_status=$? |
ac1cb8d3 VS |
26692 | grep -v '^ *+' conftest.er1 >conftest.err |
26693 | rm -f conftest.er1 | |
26694 | cat conftest.err >&5 | |
a848cd7e SC |
26695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26696 | (exit $ac_status); } && | |
ddd14b14 RR |
26697 | { ac_try='test -z "$ac_c_werror_flag" |
26698 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26700 | (eval $ac_try) 2>&5 | |
26701 | ac_status=$? | |
26702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26703 | (exit $ac_status); }; } && | |
26704 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26706 | (eval $ac_try) 2>&5 | |
26707 | ac_status=$? | |
26708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26709 | (exit $ac_status); }; }; then | |
26710 | ac_R_space=yes | |
26711 | else | |
26712 | echo "$as_me: failed program was:" >&5 | |
26713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26714 | ||
26715 | ac_R_space=no | |
26716 | fi | |
ac1cb8d3 VS |
26717 | rm -f conftest.err conftest.$ac_objext \ |
26718 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26719 | if test $ac_R_space = yes; then |
26720 | echo "$as_me:$LINENO: result: yes" >&5 | |
26721 | echo "${ECHO_T}yes" >&6 | |
26722 | X_LIBS="$X_LIBS -R $x_libraries" | |
26723 | else | |
26724 | echo "$as_me:$LINENO: result: neither works" >&5 | |
26725 | echo "${ECHO_T}neither works" >&6 | |
26726 | fi | |
26727 | fi | |
26728 | LIBS=$ac_xsave_LIBS | |
26729 | esac | |
26730 | fi | |
26731 | ||
26732 | # Check for system-dependent libraries X programs must link with. | |
26733 | # Do this before checking for the system-independent R6 libraries | |
26734 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
26735 | ||
26736 | if test "$ISC" = yes; then | |
26737 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
26738 | else | |
26739 | # Martyn Johnson says this is needed for Ultrix, if the X | |
26740 | # libraries were built with DECnet support. And Karl Berry says | |
26741 | # the Alpha needs dnet_stub (dnet does not exist). | |
26742 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
26743 | cat >conftest.$ac_ext <<_ACEOF | |
26744 | /* confdefs.h. */ | |
26745 | _ACEOF | |
26746 | cat confdefs.h >>conftest.$ac_ext | |
26747 | cat >>conftest.$ac_ext <<_ACEOF | |
26748 | /* end confdefs.h. */ | |
26749 | ||
26750 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26751 | #ifdef __cplusplus | |
26752 | extern "C" | |
26753 | #endif | |
26754 | /* We use char because int might match the return type of a gcc2 | |
26755 | builtin and then its argument prototype would still apply. */ | |
26756 | char XOpenDisplay (); | |
26757 | int | |
26758 | main () | |
26759 | { | |
26760 | XOpenDisplay (); | |
26761 | ; | |
26762 | return 0; | |
26763 | } | |
26764 | _ACEOF | |
26765 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26766 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26767 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26768 | ac_status=$? |
ac1cb8d3 VS |
26769 | grep -v '^ *+' conftest.er1 >conftest.err |
26770 | rm -f conftest.er1 | |
26771 | cat conftest.err >&5 | |
a848cd7e SC |
26772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26773 | (exit $ac_status); } && | |
ddd14b14 RR |
26774 | { ac_try='test -z "$ac_c_werror_flag" |
26775 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26777 | (eval $ac_try) 2>&5 | |
26778 | ac_status=$? | |
26779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26780 | (exit $ac_status); }; } && | |
26781 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26783 | (eval $ac_try) 2>&5 | |
26784 | ac_status=$? | |
26785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26786 | (exit $ac_status); }; }; then | |
26787 | : | |
26788 | else | |
26789 | echo "$as_me: failed program was:" >&5 | |
26790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26791 | ||
26792 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
26793 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
26794 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
26795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26796 | else | |
26797 | ac_check_lib_save_LIBS=$LIBS | |
26798 | LIBS="-ldnet $LIBS" | |
26799 | cat >conftest.$ac_ext <<_ACEOF | |
26800 | /* confdefs.h. */ | |
26801 | _ACEOF | |
26802 | cat confdefs.h >>conftest.$ac_ext | |
26803 | cat >>conftest.$ac_ext <<_ACEOF | |
26804 | /* end confdefs.h. */ | |
26805 | ||
26806 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26807 | #ifdef __cplusplus | |
26808 | extern "C" | |
26809 | #endif | |
26810 | /* We use char because int might match the return type of a gcc2 | |
26811 | builtin and then its argument prototype would still apply. */ | |
26812 | char dnet_ntoa (); | |
26813 | int | |
26814 | main () | |
26815 | { | |
26816 | dnet_ntoa (); | |
26817 | ; | |
26818 | return 0; | |
26819 | } | |
26820 | _ACEOF | |
26821 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26822 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26823 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26824 | ac_status=$? |
ac1cb8d3 VS |
26825 | grep -v '^ *+' conftest.er1 >conftest.err |
26826 | rm -f conftest.er1 | |
26827 | cat conftest.err >&5 | |
a848cd7e SC |
26828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26829 | (exit $ac_status); } && | |
ddd14b14 RR |
26830 | { ac_try='test -z "$ac_c_werror_flag" |
26831 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26833 | (eval $ac_try) 2>&5 | |
26834 | ac_status=$? | |
26835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26836 | (exit $ac_status); }; } && | |
26837 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26839 | (eval $ac_try) 2>&5 | |
26840 | ac_status=$? | |
26841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26842 | (exit $ac_status); }; }; then | |
26843 | ac_cv_lib_dnet_dnet_ntoa=yes | |
26844 | else | |
26845 | echo "$as_me: failed program was:" >&5 | |
26846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26847 | ||
26848 | ac_cv_lib_dnet_dnet_ntoa=no | |
26849 | fi | |
ac1cb8d3 VS |
26850 | rm -f conftest.err conftest.$ac_objext \ |
26851 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26852 | LIBS=$ac_check_lib_save_LIBS |
26853 | fi | |
26854 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
26855 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
26856 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
26857 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
26858 | fi | |
26859 | ||
26860 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
26861 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
26862 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
26863 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
26864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26865 | else | |
26866 | ac_check_lib_save_LIBS=$LIBS | |
26867 | LIBS="-ldnet_stub $LIBS" | |
26868 | cat >conftest.$ac_ext <<_ACEOF | |
26869 | /* confdefs.h. */ | |
26870 | _ACEOF | |
26871 | cat confdefs.h >>conftest.$ac_ext | |
26872 | cat >>conftest.$ac_ext <<_ACEOF | |
26873 | /* end confdefs.h. */ | |
26874 | ||
26875 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26876 | #ifdef __cplusplus | |
26877 | extern "C" | |
26878 | #endif | |
26879 | /* We use char because int might match the return type of a gcc2 | |
26880 | builtin and then its argument prototype would still apply. */ | |
26881 | char dnet_ntoa (); | |
26882 | int | |
26883 | main () | |
26884 | { | |
26885 | dnet_ntoa (); | |
26886 | ; | |
26887 | return 0; | |
26888 | } | |
26889 | _ACEOF | |
26890 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26891 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26892 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26893 | ac_status=$? |
ac1cb8d3 VS |
26894 | grep -v '^ *+' conftest.er1 >conftest.err |
26895 | rm -f conftest.er1 | |
26896 | cat conftest.err >&5 | |
a848cd7e SC |
26897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26898 | (exit $ac_status); } && | |
ddd14b14 RR |
26899 | { ac_try='test -z "$ac_c_werror_flag" |
26900 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26902 | (eval $ac_try) 2>&5 | |
26903 | ac_status=$? | |
26904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26905 | (exit $ac_status); }; } && | |
26906 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26908 | (eval $ac_try) 2>&5 | |
26909 | ac_status=$? | |
26910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26911 | (exit $ac_status); }; }; then | |
26912 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
26913 | else | |
26914 | echo "$as_me: failed program was:" >&5 | |
26915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26916 | ||
26917 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
26918 | fi | |
ac1cb8d3 VS |
26919 | rm -f conftest.err conftest.$ac_objext \ |
26920 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26921 | LIBS=$ac_check_lib_save_LIBS |
26922 | fi | |
26923 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
26924 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
26925 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
26926 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
26927 | fi | |
26928 | ||
26929 | fi | |
26930 | fi | |
ac1cb8d3 VS |
26931 | rm -f conftest.err conftest.$ac_objext \ |
26932 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26933 | LIBS="$ac_xsave_LIBS" |
26934 | ||
26935 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
26936 | # to get the SysV transport functions. | |
26937 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
26938 | # needs -lnsl. | |
26939 | # The nsl library prevents programs from opening the X display | |
26940 | # on Irix 5.2, according to T.E. Dickey. | |
26941 | # The functions gethostbyname, getservbyname, and inet_addr are | |
26942 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
26943 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
26944 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
26945 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
26946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26947 | else | |
26948 | cat >conftest.$ac_ext <<_ACEOF | |
26949 | /* confdefs.h. */ | |
26950 | _ACEOF | |
26951 | cat confdefs.h >>conftest.$ac_ext | |
26952 | cat >>conftest.$ac_ext <<_ACEOF | |
26953 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26954 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
26955 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26956 | #define gethostbyname innocuous_gethostbyname | |
26957 | ||
a848cd7e SC |
26958 | /* System header to define __stub macros and hopefully few prototypes, |
26959 | which can conflict with char gethostbyname (); below. | |
26960 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26961 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26962 | |
a848cd7e SC |
26963 | #ifdef __STDC__ |
26964 | # include <limits.h> | |
26965 | #else | |
26966 | # include <assert.h> | |
26967 | #endif | |
ac1cb8d3 VS |
26968 | |
26969 | #undef gethostbyname | |
26970 | ||
a848cd7e SC |
26971 | /* Override any gcc2 internal prototype to avoid an error. */ |
26972 | #ifdef __cplusplus | |
26973 | extern "C" | |
26974 | { | |
26975 | #endif | |
26976 | /* We use char because int might match the return type of a gcc2 | |
26977 | builtin and then its argument prototype would still apply. */ | |
26978 | char gethostbyname (); | |
26979 | /* The GNU C library defines this for functions which it implements | |
26980 | to always fail with ENOSYS. Some functions are actually named | |
26981 | something starting with __ and the normal name is an alias. */ | |
26982 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
26983 | choke me | |
26984 | #else | |
26985 | char (*f) () = gethostbyname; | |
26986 | #endif | |
26987 | #ifdef __cplusplus | |
26988 | } | |
26989 | #endif | |
26990 | ||
26991 | int | |
26992 | main () | |
26993 | { | |
26994 | return f != gethostbyname; | |
26995 | ; | |
26996 | return 0; | |
26997 | } | |
26998 | _ACEOF | |
26999 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27000 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27001 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27002 | ac_status=$? |
ac1cb8d3 VS |
27003 | grep -v '^ *+' conftest.er1 >conftest.err |
27004 | rm -f conftest.er1 | |
27005 | cat conftest.err >&5 | |
a848cd7e SC |
27006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27007 | (exit $ac_status); } && | |
ddd14b14 RR |
27008 | { ac_try='test -z "$ac_c_werror_flag" |
27009 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27011 | (eval $ac_try) 2>&5 | |
27012 | ac_status=$? | |
27013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27014 | (exit $ac_status); }; } && | |
27015 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27017 | (eval $ac_try) 2>&5 | |
27018 | ac_status=$? | |
27019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27020 | (exit $ac_status); }; }; then | |
27021 | ac_cv_func_gethostbyname=yes | |
27022 | else | |
27023 | echo "$as_me: failed program was:" >&5 | |
27024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27025 | ||
27026 | ac_cv_func_gethostbyname=no | |
27027 | fi | |
ac1cb8d3 VS |
27028 | rm -f conftest.err conftest.$ac_objext \ |
27029 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27030 | fi |
27031 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
27032 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
27033 | ||
27034 | if test $ac_cv_func_gethostbyname = no; then | |
27035 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
27036 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
27037 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
27038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27039 | else | |
27040 | ac_check_lib_save_LIBS=$LIBS | |
27041 | LIBS="-lnsl $LIBS" | |
27042 | cat >conftest.$ac_ext <<_ACEOF | |
27043 | /* confdefs.h. */ | |
27044 | _ACEOF | |
27045 | cat confdefs.h >>conftest.$ac_ext | |
27046 | cat >>conftest.$ac_ext <<_ACEOF | |
27047 | /* end confdefs.h. */ | |
27048 | ||
27049 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27050 | #ifdef __cplusplus | |
27051 | extern "C" | |
27052 | #endif | |
27053 | /* We use char because int might match the return type of a gcc2 | |
27054 | builtin and then its argument prototype would still apply. */ | |
27055 | char gethostbyname (); | |
27056 | int | |
27057 | main () | |
27058 | { | |
27059 | gethostbyname (); | |
27060 | ; | |
27061 | return 0; | |
27062 | } | |
27063 | _ACEOF | |
27064 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27065 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
27066 | (eval $ac_link) 2>conftest.er1 |
27067 | ac_status=$? | |
27068 | grep -v '^ *+' conftest.er1 >conftest.err | |
27069 | rm -f conftest.er1 | |
27070 | cat conftest.err >&5 | |
27071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27072 | (exit $ac_status); } && | |
ddd14b14 RR |
27073 | { ac_try='test -z "$ac_c_werror_flag" |
27074 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27076 | (eval $ac_try) 2>&5 | |
27077 | ac_status=$? | |
27078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27079 | (exit $ac_status); }; } && | |
27080 | { ac_try='test -s conftest$ac_exeext' | |
27081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27082 | (eval $ac_try) 2>&5 | |
27083 | ac_status=$? | |
27084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27085 | (exit $ac_status); }; }; then | |
27086 | ac_cv_lib_nsl_gethostbyname=yes | |
27087 | else | |
27088 | echo "$as_me: failed program was:" >&5 | |
27089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27090 | ||
27091 | ac_cv_lib_nsl_gethostbyname=no | |
27092 | fi | |
27093 | rm -f conftest.err conftest.$ac_objext \ | |
27094 | conftest$ac_exeext conftest.$ac_ext | |
27095 | LIBS=$ac_check_lib_save_LIBS | |
27096 | fi | |
27097 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
27098 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
27099 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
27100 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
27101 | fi | |
27102 | ||
27103 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
27104 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
27105 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
27106 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
27107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27108 | else | |
27109 | ac_check_lib_save_LIBS=$LIBS | |
27110 | LIBS="-lbsd $LIBS" | |
27111 | cat >conftest.$ac_ext <<_ACEOF | |
27112 | /* confdefs.h. */ | |
27113 | _ACEOF | |
27114 | cat confdefs.h >>conftest.$ac_ext | |
27115 | cat >>conftest.$ac_ext <<_ACEOF | |
27116 | /* end confdefs.h. */ | |
27117 | ||
27118 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27119 | #ifdef __cplusplus | |
27120 | extern "C" | |
27121 | #endif | |
27122 | /* We use char because int might match the return type of a gcc2 | |
27123 | builtin and then its argument prototype would still apply. */ | |
27124 | char gethostbyname (); | |
27125 | int | |
27126 | main () | |
27127 | { | |
27128 | gethostbyname (); | |
27129 | ; | |
27130 | return 0; | |
27131 | } | |
27132 | _ACEOF | |
27133 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27134 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27135 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 27136 | ac_status=$? |
ac1cb8d3 VS |
27137 | grep -v '^ *+' conftest.er1 >conftest.err |
27138 | rm -f conftest.er1 | |
27139 | cat conftest.err >&5 | |
a848cd7e SC |
27140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27141 | (exit $ac_status); } && | |
ddd14b14 RR |
27142 | { ac_try='test -z "$ac_c_werror_flag" |
27143 | || test ! -s conftest.err' | |
a848cd7e SC |
27144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27145 | (eval $ac_try) 2>&5 | |
27146 | ac_status=$? | |
27147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
27148 | (exit $ac_status); }; } && |
27149 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27151 | (eval $ac_try) 2>&5 | |
27152 | ac_status=$? | |
27153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27154 | (exit $ac_status); }; }; then | |
27155 | ac_cv_lib_bsd_gethostbyname=yes | |
27156 | else | |
27157 | echo "$as_me: failed program was:" >&5 | |
27158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27159 | ||
27160 | ac_cv_lib_bsd_gethostbyname=no | |
27161 | fi | |
ac1cb8d3 VS |
27162 | rm -f conftest.err conftest.$ac_objext \ |
27163 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27164 | LIBS=$ac_check_lib_save_LIBS |
27165 | fi | |
27166 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
27167 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
27168 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
27169 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
27170 | fi | |
27171 | ||
27172 | fi | |
27173 | fi | |
27174 | ||
27175 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
27176 | # socket/setsockopt and other routines are undefined under SCO ODT | |
27177 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
27178 | # on later versions), says Simon Leinen: it contains gethostby* | |
27179 | # variants that don't use the name server (or something). -lsocket | |
27180 | # must be given before -lnsl if both are needed. We assume that | |
27181 | # if connect needs -lnsl, so does gethostbyname. | |
27182 | echo "$as_me:$LINENO: checking for connect" >&5 | |
27183 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
27184 | if test "${ac_cv_func_connect+set}" = set; then | |
27185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27186 | else | |
27187 | cat >conftest.$ac_ext <<_ACEOF | |
27188 | /* confdefs.h. */ | |
27189 | _ACEOF | |
27190 | cat confdefs.h >>conftest.$ac_ext | |
27191 | cat >>conftest.$ac_ext <<_ACEOF | |
27192 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
27193 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
27194 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27195 | #define connect innocuous_connect | |
27196 | ||
a848cd7e SC |
27197 | /* System header to define __stub macros and hopefully few prototypes, |
27198 | which can conflict with char connect (); below. | |
27199 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27200 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 27201 | |
a848cd7e SC |
27202 | #ifdef __STDC__ |
27203 | # include <limits.h> | |
27204 | #else | |
27205 | # include <assert.h> | |
27206 | #endif | |
ac1cb8d3 VS |
27207 | |
27208 | #undef connect | |
27209 | ||
a848cd7e SC |
27210 | /* Override any gcc2 internal prototype to avoid an error. */ |
27211 | #ifdef __cplusplus | |
27212 | extern "C" | |
27213 | { | |
27214 | #endif | |
27215 | /* We use char because int might match the return type of a gcc2 | |
27216 | builtin and then its argument prototype would still apply. */ | |
27217 | char connect (); | |
27218 | /* The GNU C library defines this for functions which it implements | |
27219 | to always fail with ENOSYS. Some functions are actually named | |
27220 | something starting with __ and the normal name is an alias. */ | |
27221 | #if defined (__stub_connect) || defined (__stub___connect) | |
27222 | choke me | |
27223 | #else | |
27224 | char (*f) () = connect; | |
27225 | #endif | |
27226 | #ifdef __cplusplus | |
27227 | } | |
27228 | #endif | |
27229 | ||
27230 | int | |
27231 | main () | |
27232 | { | |
27233 | return f != connect; | |
27234 | ; | |
27235 | return 0; | |
27236 | } | |
27237 | _ACEOF | |
27238 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27239 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27240 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27241 | ac_status=$? |
ac1cb8d3 VS |
27242 | grep -v '^ *+' conftest.er1 >conftest.err |
27243 | rm -f conftest.er1 | |
27244 | cat conftest.err >&5 | |
a848cd7e SC |
27245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27246 | (exit $ac_status); } && | |
ddd14b14 RR |
27247 | { ac_try='test -z "$ac_c_werror_flag" |
27248 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27250 | (eval $ac_try) 2>&5 | |
27251 | ac_status=$? | |
27252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27253 | (exit $ac_status); }; } && | |
27254 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27256 | (eval $ac_try) 2>&5 | |
27257 | ac_status=$? | |
27258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27259 | (exit $ac_status); }; }; then | |
27260 | ac_cv_func_connect=yes | |
27261 | else | |
27262 | echo "$as_me: failed program was:" >&5 | |
27263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27264 | ||
27265 | ac_cv_func_connect=no | |
27266 | fi | |
ac1cb8d3 VS |
27267 | rm -f conftest.err conftest.$ac_objext \ |
27268 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27269 | fi |
27270 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
27271 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
27272 | ||
27273 | if test $ac_cv_func_connect = no; then | |
27274 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
27275 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
27276 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
27277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27278 | else | |
27279 | ac_check_lib_save_LIBS=$LIBS | |
27280 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
27281 | cat >conftest.$ac_ext <<_ACEOF | |
27282 | /* confdefs.h. */ | |
27283 | _ACEOF | |
27284 | cat confdefs.h >>conftest.$ac_ext | |
27285 | cat >>conftest.$ac_ext <<_ACEOF | |
27286 | /* end confdefs.h. */ | |
27287 | ||
27288 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27289 | #ifdef __cplusplus | |
27290 | extern "C" | |
27291 | #endif | |
27292 | /* We use char because int might match the return type of a gcc2 | |
27293 | builtin and then its argument prototype would still apply. */ | |
27294 | char connect (); | |
27295 | int | |
27296 | main () | |
27297 | { | |
27298 | connect (); | |
27299 | ; | |
27300 | return 0; | |
27301 | } | |
27302 | _ACEOF | |
27303 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27304 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27305 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27306 | ac_status=$? |
ac1cb8d3 VS |
27307 | grep -v '^ *+' conftest.er1 >conftest.err |
27308 | rm -f conftest.er1 | |
27309 | cat conftest.err >&5 | |
a848cd7e SC |
27310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27311 | (exit $ac_status); } && | |
ddd14b14 RR |
27312 | { ac_try='test -z "$ac_c_werror_flag" |
27313 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27315 | (eval $ac_try) 2>&5 | |
27316 | ac_status=$? | |
27317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27318 | (exit $ac_status); }; } && | |
27319 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27321 | (eval $ac_try) 2>&5 | |
27322 | ac_status=$? | |
27323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27324 | (exit $ac_status); }; }; then | |
27325 | ac_cv_lib_socket_connect=yes | |
27326 | else | |
27327 | echo "$as_me: failed program was:" >&5 | |
27328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27329 | ||
27330 | ac_cv_lib_socket_connect=no | |
27331 | fi | |
ac1cb8d3 VS |
27332 | rm -f conftest.err conftest.$ac_objext \ |
27333 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27334 | LIBS=$ac_check_lib_save_LIBS |
27335 | fi | |
27336 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
27337 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
27338 | if test $ac_cv_lib_socket_connect = yes; then | |
27339 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
27340 | fi | |
27341 | ||
27342 | fi | |
27343 | ||
27344 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
27345 | echo "$as_me:$LINENO: checking for remove" >&5 | |
27346 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
27347 | if test "${ac_cv_func_remove+set}" = set; then | |
27348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27349 | else | |
27350 | cat >conftest.$ac_ext <<_ACEOF | |
27351 | /* confdefs.h. */ | |
27352 | _ACEOF | |
27353 | cat confdefs.h >>conftest.$ac_ext | |
27354 | cat >>conftest.$ac_ext <<_ACEOF | |
27355 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
27356 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
27357 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27358 | #define remove innocuous_remove | |
27359 | ||
a848cd7e SC |
27360 | /* System header to define __stub macros and hopefully few prototypes, |
27361 | which can conflict with char remove (); below. | |
27362 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27363 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 27364 | |
a848cd7e SC |
27365 | #ifdef __STDC__ |
27366 | # include <limits.h> | |
27367 | #else | |
27368 | # include <assert.h> | |
27369 | #endif | |
ac1cb8d3 VS |
27370 | |
27371 | #undef remove | |
27372 | ||
a848cd7e SC |
27373 | /* Override any gcc2 internal prototype to avoid an error. */ |
27374 | #ifdef __cplusplus | |
27375 | extern "C" | |
27376 | { | |
27377 | #endif | |
27378 | /* We use char because int might match the return type of a gcc2 | |
27379 | builtin and then its argument prototype would still apply. */ | |
27380 | char remove (); | |
27381 | /* The GNU C library defines this for functions which it implements | |
27382 | to always fail with ENOSYS. Some functions are actually named | |
27383 | something starting with __ and the normal name is an alias. */ | |
27384 | #if defined (__stub_remove) || defined (__stub___remove) | |
27385 | choke me | |
27386 | #else | |
27387 | char (*f) () = remove; | |
27388 | #endif | |
27389 | #ifdef __cplusplus | |
27390 | } | |
27391 | #endif | |
27392 | ||
27393 | int | |
27394 | main () | |
27395 | { | |
27396 | return f != remove; | |
27397 | ; | |
27398 | return 0; | |
27399 | } | |
27400 | _ACEOF | |
27401 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27402 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27403 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27404 | ac_status=$? |
ac1cb8d3 VS |
27405 | grep -v '^ *+' conftest.er1 >conftest.err |
27406 | rm -f conftest.er1 | |
27407 | cat conftest.err >&5 | |
a848cd7e SC |
27408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27409 | (exit $ac_status); } && | |
ddd14b14 RR |
27410 | { ac_try='test -z "$ac_c_werror_flag" |
27411 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27413 | (eval $ac_try) 2>&5 | |
27414 | ac_status=$? | |
27415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27416 | (exit $ac_status); }; } && | |
27417 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27419 | (eval $ac_try) 2>&5 | |
27420 | ac_status=$? | |
27421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27422 | (exit $ac_status); }; }; then | |
27423 | ac_cv_func_remove=yes | |
27424 | else | |
27425 | echo "$as_me: failed program was:" >&5 | |
27426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27427 | ||
27428 | ac_cv_func_remove=no | |
27429 | fi | |
ac1cb8d3 VS |
27430 | rm -f conftest.err conftest.$ac_objext \ |
27431 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27432 | fi |
27433 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
27434 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
27435 | ||
27436 | if test $ac_cv_func_remove = no; then | |
27437 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
27438 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
27439 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
27440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27441 | else | |
27442 | ac_check_lib_save_LIBS=$LIBS | |
27443 | LIBS="-lposix $LIBS" | |
27444 | cat >conftest.$ac_ext <<_ACEOF | |
27445 | /* confdefs.h. */ | |
27446 | _ACEOF | |
27447 | cat confdefs.h >>conftest.$ac_ext | |
27448 | cat >>conftest.$ac_ext <<_ACEOF | |
27449 | /* end confdefs.h. */ | |
27450 | ||
27451 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27452 | #ifdef __cplusplus | |
27453 | extern "C" | |
27454 | #endif | |
27455 | /* We use char because int might match the return type of a gcc2 | |
27456 | builtin and then its argument prototype would still apply. */ | |
27457 | char remove (); | |
27458 | int | |
27459 | main () | |
27460 | { | |
27461 | remove (); | |
27462 | ; | |
27463 | return 0; | |
27464 | } | |
27465 | _ACEOF | |
27466 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27467 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27468 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27469 | ac_status=$? |
ac1cb8d3 VS |
27470 | grep -v '^ *+' conftest.er1 >conftest.err |
27471 | rm -f conftest.er1 | |
27472 | cat conftest.err >&5 | |
a848cd7e SC |
27473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27474 | (exit $ac_status); } && | |
ddd14b14 RR |
27475 | { ac_try='test -z "$ac_c_werror_flag" |
27476 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27478 | (eval $ac_try) 2>&5 | |
27479 | ac_status=$? | |
27480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27481 | (exit $ac_status); }; } && | |
27482 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27484 | (eval $ac_try) 2>&5 | |
27485 | ac_status=$? | |
27486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27487 | (exit $ac_status); }; }; then | |
27488 | ac_cv_lib_posix_remove=yes | |
27489 | else | |
27490 | echo "$as_me: failed program was:" >&5 | |
27491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27492 | ||
27493 | ac_cv_lib_posix_remove=no | |
27494 | fi | |
ac1cb8d3 VS |
27495 | rm -f conftest.err conftest.$ac_objext \ |
27496 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27497 | LIBS=$ac_check_lib_save_LIBS |
27498 | fi | |
27499 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
27500 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
27501 | if test $ac_cv_lib_posix_remove = yes; then | |
27502 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
27503 | fi | |
27504 | ||
27505 | fi | |
27506 | ||
27507 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
27508 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
27509 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
27510 | if test "${ac_cv_func_shmat+set}" = set; then | |
27511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27512 | else | |
27513 | cat >conftest.$ac_ext <<_ACEOF | |
27514 | /* confdefs.h. */ | |
27515 | _ACEOF | |
27516 | cat confdefs.h >>conftest.$ac_ext | |
27517 | cat >>conftest.$ac_ext <<_ACEOF | |
27518 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
27519 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
27520 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27521 | #define shmat innocuous_shmat | |
27522 | ||
a848cd7e SC |
27523 | /* System header to define __stub macros and hopefully few prototypes, |
27524 | which can conflict with char shmat (); below. | |
27525 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27526 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 27527 | |
a848cd7e SC |
27528 | #ifdef __STDC__ |
27529 | # include <limits.h> | |
27530 | #else | |
27531 | # include <assert.h> | |
27532 | #endif | |
ac1cb8d3 VS |
27533 | |
27534 | #undef shmat | |
27535 | ||
a848cd7e SC |
27536 | /* Override any gcc2 internal prototype to avoid an error. */ |
27537 | #ifdef __cplusplus | |
27538 | extern "C" | |
27539 | { | |
27540 | #endif | |
27541 | /* We use char because int might match the return type of a gcc2 | |
27542 | builtin and then its argument prototype would still apply. */ | |
27543 | char shmat (); | |
27544 | /* The GNU C library defines this for functions which it implements | |
27545 | to always fail with ENOSYS. Some functions are actually named | |
27546 | something starting with __ and the normal name is an alias. */ | |
27547 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
27548 | choke me | |
27549 | #else | |
27550 | char (*f) () = shmat; | |
27551 | #endif | |
27552 | #ifdef __cplusplus | |
27553 | } | |
27554 | #endif | |
27555 | ||
27556 | int | |
27557 | main () | |
27558 | { | |
27559 | return f != shmat; | |
27560 | ; | |
27561 | return 0; | |
27562 | } | |
27563 | _ACEOF | |
27564 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27565 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27566 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27567 | ac_status=$? |
ac1cb8d3 VS |
27568 | grep -v '^ *+' conftest.er1 >conftest.err |
27569 | rm -f conftest.er1 | |
27570 | cat conftest.err >&5 | |
a848cd7e SC |
27571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27572 | (exit $ac_status); } && | |
ddd14b14 RR |
27573 | { ac_try='test -z "$ac_c_werror_flag" |
27574 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27576 | (eval $ac_try) 2>&5 | |
27577 | ac_status=$? | |
27578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27579 | (exit $ac_status); }; } && | |
27580 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27582 | (eval $ac_try) 2>&5 | |
27583 | ac_status=$? | |
27584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27585 | (exit $ac_status); }; }; then | |
27586 | ac_cv_func_shmat=yes | |
27587 | else | |
27588 | echo "$as_me: failed program was:" >&5 | |
27589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27590 | ||
27591 | ac_cv_func_shmat=no | |
27592 | fi | |
ac1cb8d3 VS |
27593 | rm -f conftest.err conftest.$ac_objext \ |
27594 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27595 | fi |
27596 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
27597 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
27598 | ||
27599 | if test $ac_cv_func_shmat = no; then | |
27600 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
27601 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
27602 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
27603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27604 | else | |
27605 | ac_check_lib_save_LIBS=$LIBS | |
27606 | LIBS="-lipc $LIBS" | |
27607 | cat >conftest.$ac_ext <<_ACEOF | |
27608 | /* confdefs.h. */ | |
27609 | _ACEOF | |
27610 | cat confdefs.h >>conftest.$ac_ext | |
27611 | cat >>conftest.$ac_ext <<_ACEOF | |
27612 | /* end confdefs.h. */ | |
27613 | ||
27614 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27615 | #ifdef __cplusplus | |
27616 | extern "C" | |
27617 | #endif | |
27618 | /* We use char because int might match the return type of a gcc2 | |
27619 | builtin and then its argument prototype would still apply. */ | |
27620 | char shmat (); | |
27621 | int | |
27622 | main () | |
27623 | { | |
27624 | shmat (); | |
27625 | ; | |
27626 | return 0; | |
27627 | } | |
27628 | _ACEOF | |
27629 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27630 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27631 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27632 | ac_status=$? |
ac1cb8d3 VS |
27633 | grep -v '^ *+' conftest.er1 >conftest.err |
27634 | rm -f conftest.er1 | |
27635 | cat conftest.err >&5 | |
a848cd7e SC |
27636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27637 | (exit $ac_status); } && | |
ddd14b14 RR |
27638 | { ac_try='test -z "$ac_c_werror_flag" |
27639 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27641 | (eval $ac_try) 2>&5 | |
27642 | ac_status=$? | |
27643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27644 | (exit $ac_status); }; } && | |
27645 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27647 | (eval $ac_try) 2>&5 | |
27648 | ac_status=$? | |
27649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27650 | (exit $ac_status); }; }; then | |
27651 | ac_cv_lib_ipc_shmat=yes | |
27652 | else | |
27653 | echo "$as_me: failed program was:" >&5 | |
27654 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27655 | ||
27656 | ac_cv_lib_ipc_shmat=no | |
27657 | fi | |
ac1cb8d3 VS |
27658 | rm -f conftest.err conftest.$ac_objext \ |
27659 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27660 | LIBS=$ac_check_lib_save_LIBS |
27661 | fi | |
27662 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
27663 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
27664 | if test $ac_cv_lib_ipc_shmat = yes; then | |
27665 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
27666 | fi | |
27667 | ||
27668 | fi | |
27669 | fi | |
27670 | ||
27671 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
27672 | ac_save_LDFLAGS=$LDFLAGS | |
27673 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
27674 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
27675 | # check for ICE first), but we must link in the order -lSM -lICE or | |
27676 | # we get undefined symbols. So assume we have SM if we have ICE. | |
27677 | # These have to be linked with before -lX11, unlike the other | |
27678 | # libraries we check for below, so use a different variable. | |
27679 | # John Interrante, Karl Berry | |
27680 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
27681 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
27682 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
27683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27684 | else | |
27685 | ac_check_lib_save_LIBS=$LIBS | |
27686 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
27687 | cat >conftest.$ac_ext <<_ACEOF | |
27688 | /* confdefs.h. */ | |
27689 | _ACEOF | |
27690 | cat confdefs.h >>conftest.$ac_ext | |
27691 | cat >>conftest.$ac_ext <<_ACEOF | |
27692 | /* end confdefs.h. */ | |
27693 | ||
27694 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27695 | #ifdef __cplusplus | |
27696 | extern "C" | |
27697 | #endif | |
27698 | /* We use char because int might match the return type of a gcc2 | |
27699 | builtin and then its argument prototype would still apply. */ | |
27700 | char IceConnectionNumber (); | |
27701 | int | |
27702 | main () | |
27703 | { | |
27704 | IceConnectionNumber (); | |
27705 | ; | |
27706 | return 0; | |
27707 | } | |
27708 | _ACEOF | |
27709 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27710 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27711 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27712 | ac_status=$? |
ac1cb8d3 VS |
27713 | grep -v '^ *+' conftest.er1 >conftest.err |
27714 | rm -f conftest.er1 | |
27715 | cat conftest.err >&5 | |
a848cd7e SC |
27716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27717 | (exit $ac_status); } && | |
ddd14b14 RR |
27718 | { ac_try='test -z "$ac_c_werror_flag" |
27719 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27721 | (eval $ac_try) 2>&5 | |
27722 | ac_status=$? | |
27723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27724 | (exit $ac_status); }; } && | |
27725 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27727 | (eval $ac_try) 2>&5 | |
27728 | ac_status=$? | |
27729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27730 | (exit $ac_status); }; }; then | |
27731 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
27732 | else | |
27733 | echo "$as_me: failed program was:" >&5 | |
27734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27735 | ||
27736 | ac_cv_lib_ICE_IceConnectionNumber=no | |
27737 | fi | |
ac1cb8d3 VS |
27738 | rm -f conftest.err conftest.$ac_objext \ |
27739 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27740 | LIBS=$ac_check_lib_save_LIBS |
27741 | fi | |
27742 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
27743 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
27744 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
27745 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
27746 | fi | |
27747 | ||
27748 | LDFLAGS=$ac_save_LDFLAGS | |
27749 | ||
27750 | fi | |
27751 | ||
27752 | ||
27753 | if test "$no_x" = "yes"; then | |
27754 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 | |
27755 | echo "$as_me: error: X11 not found" >&2;} | |
27756 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
27757 | fi | |
27758 | ||
74b84332 VS |
27759 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
27760 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
27761 | AFMINSTALL=afminstall |
27762 | COMPILED_X_PROGRAM=0 | |
27763 | ||
74b84332 VS |
27764 | fi |
27765 | ||
27766 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
27767 | if test "$wxUSE_NANOX" = "yes"; then |
27768 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
27769 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
27770 | if test "x$MICROWIN" = x ; then | |
27771 | echo "$as_me:$LINENO: result: not found" >&5 | |
27772 | echo "${ECHO_T}not found" >&6 | |
27773 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
27774 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
27775 | { (exit 1); exit 1; }; } | |
27776 | else | |
27777 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
27778 | echo "${ECHO_T}$MICROWIN" >&6 | |
27779 | cat >>confdefs.h <<\_ACEOF | |
27780 | #define wxUSE_NANOX 1 | |
27781 | _ACEOF | |
27782 | ||
27783 | fi | |
27784 | fi | |
27785 | ||
27786 | if test "$wxUSE_UNICODE" = "yes"; then | |
27787 | ||
27788 | succeeded=no | |
27789 | ||
27790 | if test -z "$PKG_CONFIG"; then | |
27791 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
27792 | set dummy pkg-config; ac_word=$2 | |
27793 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27794 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27795 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
27796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27797 | else | |
27798 | case $PKG_CONFIG in | |
27799 | [\\/]* | ?:[\\/]*) | |
27800 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
27801 | ;; | |
27802 | *) | |
27803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27804 | for as_dir in $PATH | |
27805 | do | |
27806 | IFS=$as_save_IFS | |
27807 | test -z "$as_dir" && as_dir=. | |
27808 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27809 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27810 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27811 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27812 | break 2 | |
27813 | fi | |
27814 | done | |
27815 | done | |
27816 | ||
27817 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
27818 | ;; | |
27819 | esac | |
27820 | fi | |
27821 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
27822 | ||
27823 | if test -n "$PKG_CONFIG"; then | |
27824 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
27825 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
27826 | else | |
27827 | echo "$as_me:$LINENO: result: no" >&5 | |
27828 | echo "${ECHO_T}no" >&6 | |
27829 | fi | |
27830 | ||
27831 | fi | |
27832 | ||
27833 | if test "$PKG_CONFIG" = "no" ; then | |
27834 | echo "*** The pkg-config script could not be found. Make sure it is" | |
27835 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
27836 | echo "*** to the full path to pkg-config." | |
27837 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
27838 | else | |
27839 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
27840 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
27841 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
27842 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
27843 | ||
27844 | if $PKG_CONFIG --exists "pangox" ; then | |
27845 | echo "$as_me:$LINENO: result: yes" >&5 | |
27846 | echo "${ECHO_T}yes" >&6 | |
27847 | succeeded=yes | |
27848 | ||
27849 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
27850 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
27851 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
27852 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
27853 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
27854 | ||
27855 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
27856 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
27857 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
27858 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
27859 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
27860 | else | |
27861 | PANGOX_CFLAGS="" | |
27862 | PANGOX_LIBS="" | |
27863 | ## If we have a custom action on failure, don't print errors, but | |
27864 | ## do set a variable so people can do so. | |
27865 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
27866 | ||
27867 | fi | |
27868 | ||
27869 | ||
27870 | ||
27871 | else | |
27872 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
27873 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
27874 | fi | |
27875 | fi | |
27876 | ||
27877 | if test $succeeded = yes; then | |
27878 | ||
27879 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
27880 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
27881 | ||
27882 | else | |
27883 | ||
27884 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
27885 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
27886 | { (exit 1); exit 1; }; } | |
27887 | ||
27888 | ||
27889 | fi | |
27890 | ||
27891 | ||
27892 | succeeded=no | |
27893 | ||
27894 | if test -z "$PKG_CONFIG"; then | |
27895 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
27896 | set dummy pkg-config; ac_word=$2 | |
27897 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27898 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27899 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
27900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27901 | else | |
27902 | case $PKG_CONFIG in | |
27903 | [\\/]* | ?:[\\/]*) | |
27904 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
27905 | ;; | |
27906 | *) | |
27907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27908 | for as_dir in $PATH | |
27909 | do | |
27910 | IFS=$as_save_IFS | |
27911 | test -z "$as_dir" && as_dir=. | |
27912 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27913 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27914 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27915 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27916 | break 2 | |
27917 | fi | |
27918 | done | |
27919 | done | |
27920 | ||
27921 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
27922 | ;; | |
27923 | esac | |
27924 | fi | |
27925 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
27926 | ||
27927 | if test -n "$PKG_CONFIG"; then | |
27928 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
27929 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
27930 | else | |
27931 | echo "$as_me:$LINENO: result: no" >&5 | |
27932 | echo "${ECHO_T}no" >&6 | |
27933 | fi | |
27934 | ||
27935 | fi | |
27936 | ||
27937 | if test "$PKG_CONFIG" = "no" ; then | |
27938 | echo "*** The pkg-config script could not be found. Make sure it is" | |
27939 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
27940 | echo "*** to the full path to pkg-config." | |
27941 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
27942 | else | |
27943 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
27944 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
27945 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
27946 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
27947 | ||
27948 | if $PKG_CONFIG --exists "pangoft2" ; then | |
27949 | echo "$as_me:$LINENO: result: yes" >&5 | |
27950 | echo "${ECHO_T}yes" >&6 | |
27951 | succeeded=yes | |
27952 | ||
27953 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
27954 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
27955 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
27956 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
27957 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
27958 | ||
27959 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
27960 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
27961 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
27962 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
27963 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
27964 | else | |
27965 | PANGOFT2_CFLAGS="" | |
27966 | PANGOFT2_LIBS="" | |
27967 | ## If we have a custom action on failure, don't print errors, but | |
27968 | ## do set a variable so people can do so. | |
27969 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
27970 | ||
27971 | fi | |
27972 | ||
27973 | ||
27974 | ||
27975 | else | |
27976 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
27977 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
27978 | fi | |
27979 | fi | |
27980 | ||
27981 | if test $succeeded = yes; then | |
27982 | ||
27983 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
27984 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
27985 | ||
27986 | else | |
27987 | ||
27988 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
27989 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
27990 | wxUSE_PRINTING_ARCHITECTURE="no" | |
27991 | ||
27992 | ||
27993 | fi | |
27994 | ||
27995 | ||
27996 | succeeded=no | |
27997 | ||
27998 | if test -z "$PKG_CONFIG"; then | |
27999 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
28000 | set dummy pkg-config; ac_word=$2 | |
28001 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28002 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28003 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
28004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28005 | else | |
28006 | case $PKG_CONFIG in | |
28007 | [\\/]* | ?:[\\/]*) | |
28008 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
28009 | ;; | |
28010 | *) | |
28011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28012 | for as_dir in $PATH | |
28013 | do | |
28014 | IFS=$as_save_IFS | |
28015 | test -z "$as_dir" && as_dir=. | |
28016 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28017 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28018 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
28019 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28020 | break 2 | |
28021 | fi | |
28022 | done | |
28023 | done | |
28024 | ||
28025 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
28026 | ;; | |
28027 | esac | |
28028 | fi | |
28029 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
28030 | ||
28031 | if test -n "$PKG_CONFIG"; then | |
28032 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
28033 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
28034 | else | |
28035 | echo "$as_me:$LINENO: result: no" >&5 | |
28036 | echo "${ECHO_T}no" >&6 | |
28037 | fi | |
28038 | ||
28039 | fi | |
28040 | ||
28041 | if test "$PKG_CONFIG" = "no" ; then | |
28042 | echo "*** The pkg-config script could not be found. Make sure it is" | |
28043 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
28044 | echo "*** to the full path to pkg-config." | |
28045 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
28046 | else | |
28047 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
28048 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
28049 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
28050 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
28051 | ||
28052 | if $PKG_CONFIG --exists "pangoxft" ; then | |
28053 | echo "$as_me:$LINENO: result: yes" >&5 | |
28054 | echo "${ECHO_T}yes" >&6 | |
28055 | succeeded=yes | |
28056 | ||
28057 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
28058 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
28059 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
28060 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
28061 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
28062 | ||
28063 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
28064 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
28065 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
28066 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
28067 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
28068 | else | |
28069 | PANGOXFT_CFLAGS="" | |
28070 | PANGOXFT_LIBS="" | |
28071 | ## If we have a custom action on failure, don't print errors, but | |
28072 | ## do set a variable so people can do so. | |
28073 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
28074 | ||
28075 | fi | |
28076 | ||
28077 | ||
28078 | ||
28079 | else | |
28080 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
28081 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
28082 | fi | |
28083 | fi | |
28084 | ||
28085 | if test $succeeded = yes; then | |
28086 | ||
4ae1af05 MB |
28087 | cat >>confdefs.h <<\_ACEOF |
28088 | #define HAVE_PANGO_XFT 1 | |
28089 | _ACEOF | |
28090 | ||
a848cd7e SC |
28091 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
28092 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
28093 | ||
28094 | else | |
28095 | ||
28096 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
28097 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
28098 | ||
28099 | ||
28100 | fi | |
28101 | ||
304205f1 VS |
28102 | save_CFLAGS="$CFLAGS" |
28103 | save_LIBS="$LIBS" | |
28104 | CFLAGS="$CFLAGS $PANGOX_CFLAGS" | |
28105 | LIBS="$LIBS $PANGOX_LIBS" | |
28106 | ||
28107 | for ac_func in pango_font_family_is_monospace | |
28108 | do | |
28109 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28110 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28111 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28112 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28114 | else | |
28115 | cat >conftest.$ac_ext <<_ACEOF | |
28116 | /* confdefs.h. */ | |
28117 | _ACEOF | |
28118 | cat confdefs.h >>conftest.$ac_ext | |
28119 | cat >>conftest.$ac_ext <<_ACEOF | |
28120 | /* end confdefs.h. */ | |
28121 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
28122 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28123 | #define $ac_func innocuous_$ac_func | |
28124 | ||
28125 | /* System header to define __stub macros and hopefully few prototypes, | |
28126 | which can conflict with char $ac_func (); below. | |
28127 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28128 | <limits.h> exists even on freestanding compilers. */ | |
28129 | ||
28130 | #ifdef __STDC__ | |
28131 | # include <limits.h> | |
28132 | #else | |
28133 | # include <assert.h> | |
28134 | #endif | |
28135 | ||
28136 | #undef $ac_func | |
28137 | ||
28138 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28139 | #ifdef __cplusplus | |
28140 | extern "C" | |
28141 | { | |
28142 | #endif | |
28143 | /* We use char because int might match the return type of a gcc2 | |
28144 | builtin and then its argument prototype would still apply. */ | |
28145 | char $ac_func (); | |
28146 | /* The GNU C library defines this for functions which it implements | |
28147 | to always fail with ENOSYS. Some functions are actually named | |
28148 | something starting with __ and the normal name is an alias. */ | |
28149 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28150 | choke me | |
28151 | #else | |
28152 | char (*f) () = $ac_func; | |
28153 | #endif | |
28154 | #ifdef __cplusplus | |
28155 | } | |
28156 | #endif | |
28157 | ||
28158 | int | |
28159 | main () | |
28160 | { | |
28161 | return f != $ac_func; | |
28162 | ; | |
28163 | return 0; | |
28164 | } | |
28165 | _ACEOF | |
28166 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28167 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28168 | (eval $ac_link) 2>conftest.er1 | |
28169 | ac_status=$? | |
28170 | grep -v '^ *+' conftest.er1 >conftest.err | |
28171 | rm -f conftest.er1 | |
28172 | cat conftest.err >&5 | |
28173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28174 | (exit $ac_status); } && | |
ddd14b14 RR |
28175 | { ac_try='test -z "$ac_c_werror_flag" |
28176 | || test ! -s conftest.err' | |
304205f1 VS |
28177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28178 | (eval $ac_try) 2>&5 | |
28179 | ac_status=$? | |
28180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28181 | (exit $ac_status); }; } && | |
28182 | { ac_try='test -s conftest$ac_exeext' | |
28183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28184 | (eval $ac_try) 2>&5 | |
28185 | ac_status=$? | |
28186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28187 | (exit $ac_status); }; }; then | |
28188 | eval "$as_ac_var=yes" | |
28189 | else | |
28190 | echo "$as_me: failed program was:" >&5 | |
28191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28192 | ||
28193 | eval "$as_ac_var=no" | |
28194 | fi | |
28195 | rm -f conftest.err conftest.$ac_objext \ | |
28196 | conftest$ac_exeext conftest.$ac_ext | |
28197 | fi | |
28198 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28199 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28200 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28201 | cat >>confdefs.h <<_ACEOF | |
28202 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28203 | _ACEOF | |
28204 | ||
28205 | fi | |
28206 | done | |
28207 | ||
28208 | CFLAGS="$save_CFLAGS" | |
28209 | LIBS="$save_LIBS" | |
a848cd7e SC |
28210 | fi |
28211 | ||
28212 | wxUSE_UNIVERSAL="yes" | |
28213 | ||
28214 | if test "$wxUSE_NANOX" = "yes"; then | |
28215 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
28216 | 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" | |
28217 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
28218 | else | |
28219 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
28220 | fi | |
28221 | ||
a848cd7e SC |
28222 | TOOLKIT=X11 |
28223 | GUIDIST=X11_DIST | |
28224 | fi | |
28225 | ||
28226 | if test "$wxUSE_MOTIF" = 1; then | |
0a08f02a MB |
28227 | if test "$wxUSE_UNICODE" = "yes"; then |
28228 | { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5 | |
28229 | echo "$as_me: error: Unicode configuration not supported with Motif" >&2;} | |
28230 | { (exit 1); exit 1; }; } | |
28231 | fi | |
28232 | ||
74b84332 VS |
28233 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
28234 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 28235 | |
74b84332 VS |
28236 | ac_find_includes= |
28237 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
28238 | do | |
28239 | if test -f "$ac_dir/Xm/Xm.h"; then | |
28240 | ac_find_includes=$ac_dir | |
28241 | break | |
28242 | fi | |
28243 | done | |
a848cd7e | 28244 | |
74b84332 VS |
28245 | if test "$ac_find_includes" != "" ; then |
28246 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
28247 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
28248 | ||
28249 | if test "x$ac_find_includes" = "x/usr/include"; then | |
28250 | ac_path_to_include="" | |
28251 | else | |
28252 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
28253 | result=$? | |
28254 | if test $result = 0; then | |
28255 | ac_path_to_include="" | |
28256 | else | |
28257 | ac_path_to_include=" -I$ac_find_includes" | |
28258 | fi | |
a848cd7e SC |
28259 | fi |
28260 | ||
74b84332 VS |
28261 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
28262 | else | |
28263 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
28264 | /* confdefs.h. */ |
28265 | _ACEOF | |
28266 | cat confdefs.h >>conftest.$ac_ext | |
28267 | cat >>conftest.$ac_ext <<_ACEOF | |
28268 | /* end confdefs.h. */ | |
28269 | ||
74b84332 VS |
28270 | #include <Xm/Xm.h> |
28271 | ||
a848cd7e SC |
28272 | int |
28273 | main () | |
28274 | { | |
28275 | ||
74b84332 VS |
28276 | int version; |
28277 | version = xmUseVersion; | |
28278 | ||
a848cd7e SC |
28279 | ; |
28280 | return 0; | |
28281 | } | |
28282 | _ACEOF | |
74b84332 VS |
28283 | rm -f conftest.$ac_objext |
28284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28285 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 28286 | ac_status=$? |
ac1cb8d3 VS |
28287 | grep -v '^ *+' conftest.er1 >conftest.err |
28288 | rm -f conftest.er1 | |
28289 | cat conftest.err >&5 | |
a848cd7e SC |
28290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28291 | (exit $ac_status); } && | |
ddd14b14 RR |
28292 | { ac_try='test -z "$ac_c_werror_flag" |
28293 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28295 | (eval $ac_try) 2>&5 | |
28296 | ac_status=$? | |
28297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28298 | (exit $ac_status); }; } && | |
74b84332 | 28299 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
28300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28301 | (eval $ac_try) 2>&5 | |
28302 | ac_status=$? | |
28303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28304 | (exit $ac_status); }; }; then | |
74b84332 VS |
28305 | |
28306 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
28307 | echo "${ECHO_T}found in default search path" >&6 | |
28308 | COMPILED_X_PROGRAM=1 | |
28309 | ||
a848cd7e SC |
28310 | else |
28311 | echo "$as_me: failed program was:" >&5 | |
28312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28313 | ||
a848cd7e | 28314 | |
74b84332 VS |
28315 | echo "$as_me:$LINENO: result: no" >&5 |
28316 | echo "${ECHO_T}no" >&6 | |
28317 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
28318 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
28319 | { (exit 1); exit 1; }; } | |
a848cd7e | 28320 | |
a848cd7e | 28321 | |
a848cd7e | 28322 | fi |
74b84332 VS |
28323 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
28324 | fi | |
28325 | ||
28326 | if test "$COMPILED_X_PROGRAM" = 0; then | |
28327 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
28328 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
28329 | ||
28330 | ac_find_libraries= | |
28331 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28332 | do | |
28333 | for ac_extension in a so sl dylib; do | |
28334 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
28335 | ac_find_libraries=$ac_dir | |
28336 | break 2 | |
a848cd7e | 28337 | fi |
74b84332 VS |
28338 | done |
28339 | done | |
a848cd7e | 28340 | |
74b84332 VS |
28341 | if test "$ac_find_libraries" != "" ; then |
28342 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
28343 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
a848cd7e | 28344 | |
74b84332 VS |
28345 | |
28346 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
28347 | result=$? | |
28348 | if test $result = 0; then | |
28349 | ac_path_to_link="" | |
a848cd7e | 28350 | else |
74b84332 VS |
28351 | ac_path_to_link=" -L$ac_find_libraries" |
28352 | fi | |
28353 | ||
28354 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
28355 | else | |
28356 | save_CFLAGS=$CFLAGS | |
28357 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
28358 | ||
28359 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
28360 | /* confdefs.h. */ |
28361 | _ACEOF | |
28362 | cat confdefs.h >>conftest.$ac_ext | |
28363 | cat >>conftest.$ac_ext <<_ACEOF | |
28364 | /* end confdefs.h. */ | |
28365 | ||
74b84332 VS |
28366 | #include <Xm/Xm.h> |
28367 | ||
a848cd7e SC |
28368 | int |
28369 | main () | |
28370 | { | |
74b84332 VS |
28371 | |
28372 | int version; | |
28373 | version = xmUseVersion; | |
28374 | ||
a848cd7e SC |
28375 | ; |
28376 | return 0; | |
28377 | } | |
28378 | _ACEOF | |
74b84332 VS |
28379 | rm -f conftest.$ac_objext |
28380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28381 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 28382 | ac_status=$? |
ac1cb8d3 VS |
28383 | grep -v '^ *+' conftest.er1 >conftest.err |
28384 | rm -f conftest.er1 | |
28385 | cat conftest.err >&5 | |
a848cd7e SC |
28386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28387 | (exit $ac_status); } && | |
ddd14b14 RR |
28388 | { ac_try='test -z "$ac_c_werror_flag" |
28389 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28391 | (eval $ac_try) 2>&5 | |
28392 | ac_status=$? | |
28393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28394 | (exit $ac_status); }; } && | |
74b84332 | 28395 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
28396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28397 | (eval $ac_try) 2>&5 | |
28398 | ac_status=$? | |
28399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28400 | (exit $ac_status); }; }; then | |
74b84332 VS |
28401 | |
28402 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
28403 | echo "${ECHO_T}found in default search path" >&6 | |
28404 | COMPILED_X_PROGRAM=1 | |
28405 | ||
a848cd7e SC |
28406 | else |
28407 | echo "$as_me: failed program was:" >&5 | |
28408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28409 | ||
74b84332 VS |
28410 | |
28411 | echo "$as_me:$LINENO: result: no" >&5 | |
28412 | echo "${ECHO_T}no" >&6 | |
28413 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
28414 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
28415 | { (exit 1); exit 1; }; } | |
28416 | ||
28417 | ||
28418 | fi | |
28419 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
28420 | ||
28421 | CFLAGS=$save_CFLAGS | |
28422 | fi | |
28423 | fi | |
28424 | ||
28425 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
28426 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
28427 | libp_link="" | |
28428 | libsm_ice_link="" | |
28429 | libs_found=0 | |
28430 | for libp in "" " -lXp"; do | |
28431 | if test "$libs_found" = "0"; then | |
28432 | for libsm_ice in "" " -lSM -lICE"; do | |
28433 | if test "$libs_found" = "0"; then | |
28434 | save_LIBS="$LIBS" | |
28435 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
28436 | save_CFLAGS=$CFLAGS | |
28437 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
28438 | ||
28439 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
28440 | /* confdefs.h. */ |
28441 | _ACEOF | |
28442 | cat confdefs.h >>conftest.$ac_ext | |
28443 | cat >>conftest.$ac_ext <<_ACEOF | |
28444 | /* end confdefs.h. */ | |
28445 | ||
74b84332 VS |
28446 | #include <Xm/Xm.h> |
28447 | #include <Xm/List.h> | |
28448 | ||
a848cd7e SC |
28449 | int |
28450 | main () | |
28451 | { | |
74b84332 VS |
28452 | |
28453 | XmString string = NULL; | |
28454 | Widget w = NULL; | |
28455 | int position = 0; | |
28456 | XmListAddItem(w, string, position); | |
28457 | ||
a848cd7e SC |
28458 | ; |
28459 | return 0; | |
28460 | } | |
28461 | _ACEOF | |
28462 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28463 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28464 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28465 | ac_status=$? |
ac1cb8d3 VS |
28466 | grep -v '^ *+' conftest.er1 >conftest.err |
28467 | rm -f conftest.er1 | |
28468 | cat conftest.err >&5 | |
a848cd7e SC |
28469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28470 | (exit $ac_status); } && | |
ddd14b14 RR |
28471 | { ac_try='test -z "$ac_c_werror_flag" |
28472 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28474 | (eval $ac_try) 2>&5 | |
28475 | ac_status=$? | |
28476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28477 | (exit $ac_status); }; } && | |
28478 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28480 | (eval $ac_try) 2>&5 | |
28481 | ac_status=$? | |
28482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28483 | (exit $ac_status); }; }; then | |
28484 | ||
28485 | libp_link="$libp" | |
28486 | libsm_ice_link="$libsm_ice" | |
28487 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
28488 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
28489 | libs_found=1 | |
28490 | ||
28491 | else | |
28492 | echo "$as_me: failed program was:" >&5 | |
28493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28494 | ||
28495 | ||
28496 | ||
28497 | fi | |
ac1cb8d3 VS |
28498 | rm -f conftest.err conftest.$ac_objext \ |
28499 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28500 | |
28501 | LIBS="$save_LIBS" | |
28502 | CFLAGS=$save_CFLAGS | |
28503 | fi | |
28504 | done | |
28505 | fi | |
28506 | done | |
28507 | ||
28508 | if test "$libs_found" = "0"; then | |
28509 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
28510 | echo "${ECHO_T}can't find the right libraries" >&6 | |
28511 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
28512 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
28513 | { (exit 1); exit 1; }; } | |
28514 | fi | |
28515 | ||
28516 | save_CFLAGS=$CFLAGS | |
28517 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
28518 | echo "$as_me:$LINENO: checking for Motif 2" >&5 | |
28519 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
28520 | cat >conftest.$ac_ext <<_ACEOF | |
28521 | /* confdefs.h. */ | |
28522 | _ACEOF | |
28523 | cat confdefs.h >>conftest.$ac_ext | |
28524 | cat >>conftest.$ac_ext <<_ACEOF | |
28525 | /* end confdefs.h. */ | |
28526 | ||
28527 | #include <Xm/Xm.h> | |
28528 | ||
28529 | int | |
28530 | main () | |
28531 | { | |
28532 | ||
28533 | #if XmVersion < 2000 | |
28534 | #error "Not Motif 2" | |
28535 | #endif | |
28536 | ||
28537 | ; | |
28538 | return 0; | |
28539 | } | |
28540 | _ACEOF | |
28541 | rm -f conftest.$ac_objext | |
28542 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28543 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28544 | ac_status=$? |
ac1cb8d3 VS |
28545 | grep -v '^ *+' conftest.er1 >conftest.err |
28546 | rm -f conftest.er1 | |
28547 | cat conftest.err >&5 | |
a848cd7e SC |
28548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28549 | (exit $ac_status); } && | |
ddd14b14 RR |
28550 | { ac_try='test -z "$ac_c_werror_flag" |
28551 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28553 | (eval $ac_try) 2>&5 | |
28554 | ac_status=$? | |
28555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28556 | (exit $ac_status); }; } && | |
28557 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28559 | (eval $ac_try) 2>&5 | |
28560 | ac_status=$? | |
28561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28562 | (exit $ac_status); }; }; then | |
28563 | ||
28564 | cat >>confdefs.h <<\_ACEOF | |
28565 | #define __WXMOTIF20__ 1 | |
28566 | _ACEOF | |
28567 | ||
28568 | echo "$as_me:$LINENO: result: found" >&5 | |
28569 | echo "${ECHO_T}found" >&6 | |
28570 | ||
28571 | else | |
28572 | echo "$as_me: failed program was:" >&5 | |
28573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28574 | ||
28575 | ||
28576 | cat >>confdefs.h <<\_ACEOF | |
28577 | #define __WXMOTIF20__ 0 | |
28578 | _ACEOF | |
28579 | ||
28580 | echo "$as_me:$LINENO: result: not found" >&5 | |
28581 | echo "${ECHO_T}not found" >&6 | |
28582 | ||
28583 | fi | |
ac1cb8d3 | 28584 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28585 | CFLAGS=$save_CFLAGS |
28586 | ||
28587 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
a848cd7e SC |
28588 | TOOLKIT=MOTIF |
28589 | GUIDIST=MOTIF_DIST | |
28590 | fi | |
28591 | ||
74b84332 | 28592 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
28593 | if test "$wxUSE_LIBXPM" = "sys"; then |
28594 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
28595 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
28596 | ||
28597 | ac_find_libraries= | |
28598 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28599 | do | |
28600 | for ac_extension in a so sl dylib; do | |
28601 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
28602 | ac_find_libraries=$ac_dir | |
28603 | break 2 | |
28604 | fi | |
28605 | done | |
28606 | done | |
28607 | ||
28608 | if test "$ac_find_libraries" != "" ; then | |
28609 | ||
28610 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
28611 | result=$? | |
28612 | if test $result = 0; then | |
28613 | ac_path_to_link="" | |
28614 | else | |
28615 | ac_path_to_link=" -L$ac_find_libraries" | |
28616 | fi | |
28617 | ||
28618 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
28619 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
28620 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
28621 | ||
28622 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
28623 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
28624 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
28625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28626 | else | |
28627 | ||
28628 | save_CFLAGS=$CFLAGS | |
28629 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
28630 | ||
28631 | cat >conftest.$ac_ext <<_ACEOF | |
28632 | /* confdefs.h. */ | |
28633 | _ACEOF | |
28634 | cat confdefs.h >>conftest.$ac_ext | |
28635 | cat >>conftest.$ac_ext <<_ACEOF | |
28636 | /* end confdefs.h. */ | |
28637 | ||
28638 | #include <X11/xpm.h> | |
28639 | ||
28640 | int | |
28641 | main () | |
28642 | { | |
28643 | ||
28644 | int version; | |
28645 | version = XpmLibraryVersion(); | |
28646 | ||
28647 | ; | |
28648 | return 0; | |
28649 | } | |
28650 | _ACEOF | |
28651 | rm -f conftest.$ac_objext | |
28652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28653 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28654 | ac_status=$? |
ac1cb8d3 VS |
28655 | grep -v '^ *+' conftest.er1 >conftest.err |
28656 | rm -f conftest.er1 | |
28657 | cat conftest.err >&5 | |
a848cd7e SC |
28658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28659 | (exit $ac_status); } && | |
ddd14b14 RR |
28660 | { ac_try='test -z "$ac_c_werror_flag" |
28661 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28663 | (eval $ac_try) 2>&5 | |
28664 | ac_status=$? | |
28665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28666 | (exit $ac_status); }; } && | |
28667 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28669 | (eval $ac_try) 2>&5 | |
28670 | ac_status=$? | |
28671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28672 | (exit $ac_status); }; }; then | |
28673 | wx_cv_x11_xpm_h=yes | |
28674 | else | |
28675 | echo "$as_me: failed program was:" >&5 | |
28676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28677 | ||
28678 | wx_cv_x11_xpm_h=no | |
28679 | ||
28680 | fi | |
ac1cb8d3 | 28681 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28682 | |
28683 | CFLAGS=$save_CFLAGS | |
28684 | ||
28685 | ||
28686 | fi | |
28687 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
28688 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
28689 | ||
28690 | if test $wx_cv_x11_xpm_h = "yes"; then | |
28691 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
28692 | cat >>confdefs.h <<\_ACEOF | |
28693 | #define wxHAVE_LIB_XPM 1 | |
28694 | _ACEOF | |
28695 | ||
28696 | else | |
28697 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
28698 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
28699 | fi | |
28700 | fi | |
28701 | ||
28702 | fi | |
28703 | ||
28704 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
28705 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
28706 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
28707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28708 | else | |
28709 | ac_check_lib_save_LIBS=$LIBS | |
28710 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
28711 | cat >conftest.$ac_ext <<_ACEOF | |
28712 | /* confdefs.h. */ | |
28713 | _ACEOF | |
28714 | cat confdefs.h >>conftest.$ac_ext | |
28715 | cat >>conftest.$ac_ext <<_ACEOF | |
28716 | /* end confdefs.h. */ | |
28717 | ||
28718 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28719 | #ifdef __cplusplus | |
28720 | extern "C" | |
28721 | #endif | |
28722 | /* We use char because int might match the return type of a gcc2 | |
28723 | builtin and then its argument prototype would still apply. */ | |
28724 | char XShapeQueryExtension (); | |
28725 | int | |
28726 | main () | |
28727 | { | |
28728 | XShapeQueryExtension (); | |
28729 | ; | |
28730 | return 0; | |
28731 | } | |
28732 | _ACEOF | |
28733 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28734 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28735 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28736 | ac_status=$? |
ac1cb8d3 VS |
28737 | grep -v '^ *+' conftest.er1 >conftest.err |
28738 | rm -f conftest.er1 | |
28739 | cat conftest.err >&5 | |
a848cd7e SC |
28740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28741 | (exit $ac_status); } && | |
ddd14b14 RR |
28742 | { ac_try='test -z "$ac_c_werror_flag" |
28743 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28745 | (eval $ac_try) 2>&5 | |
28746 | ac_status=$? | |
28747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28748 | (exit $ac_status); }; } && | |
28749 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28751 | (eval $ac_try) 2>&5 | |
28752 | ac_status=$? | |
28753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28754 | (exit $ac_status); }; }; then | |
28755 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
28756 | else | |
28757 | echo "$as_me: failed program was:" >&5 | |
28758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28759 | ||
28760 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
28761 | fi | |
ac1cb8d3 VS |
28762 | rm -f conftest.err conftest.$ac_objext \ |
28763 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28764 | LIBS=$ac_check_lib_save_LIBS |
28765 | fi | |
28766 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
28767 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
28768 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
28769 | ||
28770 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
28771 | wxHAVE_XEXT_LIB=1 | |
28772 | ||
28773 | fi | |
28774 | ||
28775 | ||
28776 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
28777 | save_CFLAGS="$CFLAGS" | |
28778 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
28779 | ||
28780 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
28781 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
28782 | cat >conftest.$ac_ext <<_ACEOF | |
28783 | /* confdefs.h. */ | |
28784 | _ACEOF | |
28785 | cat confdefs.h >>conftest.$ac_ext | |
28786 | cat >>conftest.$ac_ext <<_ACEOF | |
28787 | /* end confdefs.h. */ | |
28788 | ||
28789 | #include <X11/Xlib.h> | |
28790 | #include <X11/extensions/shape.h> | |
28791 | ||
28792 | int | |
28793 | main () | |
28794 | { | |
28795 | ||
28796 | int dummy1, dummy2; | |
28797 | XShapeQueryExtension((Display*)NULL, | |
28798 | (int*)NULL, (int*)NULL); | |
28799 | ||
28800 | ; | |
28801 | return 0; | |
28802 | } | |
28803 | _ACEOF | |
28804 | rm -f conftest.$ac_objext | |
28805 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28806 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28807 | ac_status=$? |
ac1cb8d3 VS |
28808 | grep -v '^ *+' conftest.er1 >conftest.err |
28809 | rm -f conftest.er1 | |
28810 | cat conftest.err >&5 | |
a848cd7e SC |
28811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28812 | (exit $ac_status); } && | |
ddd14b14 RR |
28813 | { ac_try='test -z "$ac_c_werror_flag" |
28814 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28816 | (eval $ac_try) 2>&5 | |
28817 | ac_status=$? | |
28818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28819 | (exit $ac_status); }; } && | |
28820 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28822 | (eval $ac_try) 2>&5 | |
28823 | ac_status=$? | |
28824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28825 | (exit $ac_status); }; }; then | |
28826 | ||
28827 | cat >>confdefs.h <<\_ACEOF | |
28828 | #define HAVE_XSHAPE 1 | |
28829 | _ACEOF | |
28830 | ||
28831 | echo "$as_me:$LINENO: result: found" >&5 | |
28832 | echo "${ECHO_T}found" >&6 | |
28833 | ||
28834 | else | |
28835 | echo "$as_me: failed program was:" >&5 | |
28836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28837 | ||
28838 | ||
28839 | echo "$as_me:$LINENO: result: not found" >&5 | |
28840 | echo "${ECHO_T}not found" >&6 | |
28841 | ||
28842 | fi | |
ac1cb8d3 | 28843 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28844 | CFLAGS="$save_CFLAGS" |
28845 | ||
28846 | fi | |
28847 | fi | |
28848 | ||
28849 | if test "$wxUSE_MAC" = 1; then | |
28850 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
28851 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
28852 | if test "$GCC" = yes; then | |
28853 | echo "$as_me:$LINENO: result: gcc" >&5 | |
28854 | echo "${ECHO_T}gcc" >&6 | |
28855 | CPPFLAGS_PASCAL="-fpascal-strings" | |
28856 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
28857 | echo "$as_me:$LINENO: result: xlc" >&5 | |
28858 | echo "${ECHO_T}xlc" >&6 | |
28859 | CPPFLAGS_PASCAL="-qmacpstr" | |
28860 | else | |
28861 | echo "$as_me:$LINENO: result: none" >&5 | |
28862 | echo "${ECHO_T}none" >&6 | |
28863 | fi | |
28864 | ||
1e9e8aba DE |
28865 | if test "x$wxUSE_UNIX" = "xyes"; then |
28866 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon" | |
28867 | else | |
28868 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON" | |
28869 | fi | |
a848cd7e | 28870 | |
a848cd7e SC |
28871 | TOOLKIT=MAC |
28872 | GUIDIST=MACX_DIST | |
dd21ced8 | 28873 | WXBASEPORT="_carbon" |
a848cd7e SC |
28874 | fi |
28875 | ||
28876 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
28877 | TOOLKIT=COCOA |
28878 | GUIDIST=COCOA_DIST | |
28879 | fi | |
28880 | ||
28881 | if test "$wxUSE_PM" = 1; then | |
28882 | TOOLKIT=PM | |
de59c161 RD |
28883 | GUIDIST=PM_DIST |
28884 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
28885 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
28886 | if test "${wx_cv_spbcdata+set}" = set; then | |
28887 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28888 | else | |
28889 | ||
28890 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
28891 | /* confdefs.h. */ |
28892 | _ACEOF | |
28893 | cat confdefs.h >>conftest.$ac_ext | |
28894 | cat >>conftest.$ac_ext <<_ACEOF | |
28895 | /* end confdefs.h. */ | |
28896 | ||
28897 | #define INCL_PM | |
28898 | #include <os2.h> | |
28899 | ||
28900 | int | |
28901 | main () | |
28902 | { | |
28903 | ||
28904 | SPBCDATA test; | |
28905 | ||
28906 | ; | |
28907 | return 0; | |
28908 | } | |
28909 | _ACEOF | |
28910 | rm -f conftest.$ac_objext | |
28911 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28912 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 28913 | ac_status=$? |
ac1cb8d3 VS |
28914 | grep -v '^ *+' conftest.er1 >conftest.err |
28915 | rm -f conftest.er1 | |
28916 | cat conftest.err >&5 | |
de59c161 RD |
28917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28918 | (exit $ac_status); } && | |
ddd14b14 RR |
28919 | { ac_try='test -z "$ac_c_werror_flag" |
28920 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28922 | (eval $ac_try) 2>&5 | |
28923 | ac_status=$? | |
28924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28925 | (exit $ac_status); }; } && | |
28926 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
28927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28928 | (eval $ac_try) 2>&5 | |
28929 | ac_status=$? | |
28930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28931 | (exit $ac_status); }; }; then | |
28932 | wx_cv_spbcdata=yes | |
28933 | else | |
28934 | echo "$as_me: failed program was:" >&5 | |
28935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28936 | ||
28937 | wx_cv_spbcdata=no | |
28938 | ||
28939 | fi | |
ac1cb8d3 | 28940 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
28941 | |
28942 | ||
28943 | fi | |
28944 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
28945 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
28946 | ||
28947 | if test $wx_cv_spbcdata = "yes"; then | |
28948 | cat >>confdefs.h <<\_ACEOF | |
28949 | #define HAVE_SPBCDATA 1 | |
28950 | _ACEOF | |
28951 | ||
28952 | fi | |
a848cd7e SC |
28953 | fi |
28954 | ||
28955 | if test "$TOOLKIT" = "PM" ; then | |
28956 | TOOLKIT_DIR="os2" | |
28957 | else | |
28958 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
28959 | fi | |
28960 | ||
a848cd7e | 28961 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
28962 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
28963 | WIDGET_SET=univ | |
a848cd7e SC |
28964 | fi |
28965 | ||
28966 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
28967 | DISTDIR="wx\$(TOOLKIT)" | |
28968 | else | |
28969 | USE_GUI=0 | |
28970 | ||
28971 | TOOLKIT_DIR="base" | |
28972 | ||
28973 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 28974 | TOOLKIT="MSW" |
a848cd7e SC |
28975 | fi |
28976 | ||
a848cd7e SC |
28977 | GUIDIST="BASE_DIST" |
28978 | DISTDIR="wxBase" | |
28979 | fi | |
28980 | ||
28981 | ||
28982 | ||
28983 | ||
28984 | IODBC_C_SRC="" | |
28985 | ||
28986 | ||
28987 | if test "$TOOLKIT" != "MSW" ; then | |
28988 | ||
28989 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
28990 | ||
28991 | if test "${ac_cv_header_sql_h+set}" = set; then | |
28992 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
28993 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
28994 | if test "${ac_cv_header_sql_h+set}" = set; then | |
28995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28996 | fi | |
28997 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
28998 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
28999 | else | |
29000 | # Is the header compilable? | |
29001 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
29002 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
29003 | cat >conftest.$ac_ext <<_ACEOF | |
29004 | /* confdefs.h. */ | |
29005 | _ACEOF | |
29006 | cat confdefs.h >>conftest.$ac_ext | |
29007 | cat >>conftest.$ac_ext <<_ACEOF | |
29008 | /* end confdefs.h. */ | |
29009 | $ac_includes_default | |
29010 | #include <sql.h> | |
29011 | _ACEOF | |
29012 | rm -f conftest.$ac_objext | |
29013 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29014 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29015 | ac_status=$? |
ac1cb8d3 VS |
29016 | grep -v '^ *+' conftest.er1 >conftest.err |
29017 | rm -f conftest.er1 | |
29018 | cat conftest.err >&5 | |
a848cd7e SC |
29019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29020 | (exit $ac_status); } && | |
ddd14b14 RR |
29021 | { ac_try='test -z "$ac_c_werror_flag" |
29022 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29024 | (eval $ac_try) 2>&5 | |
29025 | ac_status=$? | |
29026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29027 | (exit $ac_status); }; } && | |
29028 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29030 | (eval $ac_try) 2>&5 | |
29031 | ac_status=$? | |
29032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29033 | (exit $ac_status); }; }; then | |
29034 | ac_header_compiler=yes | |
29035 | else | |
29036 | echo "$as_me: failed program was:" >&5 | |
29037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29038 | ||
29039 | ac_header_compiler=no | |
29040 | fi | |
ac1cb8d3 | 29041 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29042 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
29043 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
29044 | ||
29045 | # Is the header present? | |
29046 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
29047 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
29048 | cat >conftest.$ac_ext <<_ACEOF | |
29049 | /* confdefs.h. */ | |
29050 | _ACEOF | |
29051 | cat confdefs.h >>conftest.$ac_ext | |
29052 | cat >>conftest.$ac_ext <<_ACEOF | |
29053 | /* end confdefs.h. */ | |
29054 | #include <sql.h> | |
29055 | _ACEOF | |
29056 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
29057 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
29058 | ac_status=$? | |
29059 | grep -v '^ *+' conftest.er1 >conftest.err | |
29060 | rm -f conftest.er1 | |
29061 | cat conftest.err >&5 | |
29062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29063 | (exit $ac_status); } >/dev/null; then | |
29064 | if test -s conftest.err; then | |
29065 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 29066 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
29067 | else |
29068 | ac_cpp_err= | |
29069 | fi | |
29070 | else | |
29071 | ac_cpp_err=yes | |
29072 | fi | |
29073 | if test -z "$ac_cpp_err"; then | |
29074 | ac_header_preproc=yes | |
29075 | else | |
29076 | echo "$as_me: failed program was:" >&5 | |
29077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29078 | ||
29079 | ac_header_preproc=no | |
29080 | fi | |
29081 | rm -f conftest.err conftest.$ac_ext | |
29082 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
29083 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
29084 | ||
29085 | # So? What about this header? | |
ac1cb8d3 VS |
29086 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
29087 | yes:no: ) | |
a848cd7e SC |
29088 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
29089 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
29090 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
29091 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
29092 | ac_header_preproc=yes | |
a848cd7e | 29093 | ;; |
ac1cb8d3 | 29094 | no:yes:* ) |
a848cd7e SC |
29095 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
29096 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
29097 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
29098 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
29099 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
29100 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
29101 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
29102 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
29103 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
29104 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
29105 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
29106 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
29107 | ( |
29108 | cat <<\_ASBOX | |
ac1cb8d3 VS |
29109 | ## ----------------------------------------- ## |
29110 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
29111 | ## ----------------------------------------- ## | |
a848cd7e SC |
29112 | _ASBOX |
29113 | ) | | |
29114 | sed "s/^/$as_me: WARNING: /" >&2 | |
29115 | ;; | |
29116 | esac | |
29117 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
29118 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
29119 | if test "${ac_cv_header_sql_h+set}" = set; then | |
29120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29121 | else | |
29122 | ac_cv_header_sql_h=$ac_header_preproc | |
29123 | fi | |
29124 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
29125 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
29126 | ||
29127 | fi | |
29128 | if test $ac_cv_header_sql_h = yes; then | |
29129 | found_sql_h=1 | |
29130 | fi | |
29131 | ||
29132 | ||
29133 | if test "x$found_sql_h" = "x1" ; then | |
29134 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
29135 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
29136 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
29137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29138 | else | |
29139 | ac_check_lib_save_LIBS=$LIBS | |
29140 | LIBS="-liodbc $LIBS" | |
29141 | cat >conftest.$ac_ext <<_ACEOF | |
29142 | /* confdefs.h. */ | |
29143 | _ACEOF | |
29144 | cat confdefs.h >>conftest.$ac_ext | |
29145 | cat >>conftest.$ac_ext <<_ACEOF | |
29146 | /* end confdefs.h. */ | |
29147 | ||
29148 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29149 | #ifdef __cplusplus | |
29150 | extern "C" | |
29151 | #endif | |
29152 | /* We use char because int might match the return type of a gcc2 | |
29153 | builtin and then its argument prototype would still apply. */ | |
29154 | char SQLAllocEnv (); | |
29155 | int | |
29156 | main () | |
29157 | { | |
29158 | SQLAllocEnv (); | |
29159 | ; | |
29160 | return 0; | |
29161 | } | |
29162 | _ACEOF | |
29163 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29164 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29165 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29166 | ac_status=$? |
ac1cb8d3 VS |
29167 | grep -v '^ *+' conftest.er1 >conftest.err |
29168 | rm -f conftest.er1 | |
29169 | cat conftest.err >&5 | |
a848cd7e SC |
29170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29171 | (exit $ac_status); } && | |
ddd14b14 RR |
29172 | { ac_try='test -z "$ac_c_werror_flag" |
29173 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29175 | (eval $ac_try) 2>&5 | |
29176 | ac_status=$? | |
29177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29178 | (exit $ac_status); }; } && | |
29179 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29181 | (eval $ac_try) 2>&5 | |
29182 | ac_status=$? | |
29183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29184 | (exit $ac_status); }; }; then | |
29185 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
29186 | else | |
29187 | echo "$as_me: failed program was:" >&5 | |
29188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29189 | ||
29190 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
29191 | fi | |
ac1cb8d3 VS |
29192 | rm -f conftest.err conftest.$ac_objext \ |
29193 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29194 | LIBS=$ac_check_lib_save_LIBS |
29195 | fi | |
29196 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
29197 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
29198 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
29199 | ODBC_LINK=" -liodbc" | |
29200 | else | |
29201 | ||
29202 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
29203 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
29204 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
29205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29206 | else | |
29207 | ac_check_lib_save_LIBS=$LIBS | |
29208 | LIBS="-lunixodbc $LIBS" | |
29209 | cat >conftest.$ac_ext <<_ACEOF | |
29210 | /* confdefs.h. */ | |
29211 | _ACEOF | |
29212 | cat confdefs.h >>conftest.$ac_ext | |
29213 | cat >>conftest.$ac_ext <<_ACEOF | |
29214 | /* end confdefs.h. */ | |
29215 | ||
29216 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29217 | #ifdef __cplusplus | |
29218 | extern "C" | |
29219 | #endif | |
29220 | /* We use char because int might match the return type of a gcc2 | |
29221 | builtin and then its argument prototype would still apply. */ | |
29222 | char SQLAllocEnv (); | |
29223 | int | |
29224 | main () | |
29225 | { | |
29226 | SQLAllocEnv (); | |
29227 | ; | |
29228 | return 0; | |
29229 | } | |
29230 | _ACEOF | |
29231 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29232 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29233 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29234 | ac_status=$? |
ac1cb8d3 VS |
29235 | grep -v '^ *+' conftest.er1 >conftest.err |
29236 | rm -f conftest.er1 | |
29237 | cat conftest.err >&5 | |
a848cd7e SC |
29238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29239 | (exit $ac_status); } && | |
ddd14b14 RR |
29240 | { ac_try='test -z "$ac_c_werror_flag" |
29241 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29243 | (eval $ac_try) 2>&5 | |
29244 | ac_status=$? | |
29245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29246 | (exit $ac_status); }; } && | |
29247 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29249 | (eval $ac_try) 2>&5 | |
29250 | ac_status=$? | |
29251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29252 | (exit $ac_status); }; }; then | |
29253 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
29254 | else | |
29255 | echo "$as_me: failed program was:" >&5 | |
29256 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29257 | ||
29258 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
29259 | fi | |
ac1cb8d3 VS |
29260 | rm -f conftest.err conftest.$ac_objext \ |
29261 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29262 | LIBS=$ac_check_lib_save_LIBS |
29263 | fi | |
29264 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
29265 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
29266 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
29267 | ODBC_LINK=" -lunixodbc" | |
29268 | else | |
29269 | ||
29270 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
29271 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
29272 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
29273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29274 | else | |
29275 | ac_check_lib_save_LIBS=$LIBS | |
29276 | LIBS="-lodbc $LIBS" | |
29277 | cat >conftest.$ac_ext <<_ACEOF | |
29278 | /* confdefs.h. */ | |
29279 | _ACEOF | |
29280 | cat confdefs.h >>conftest.$ac_ext | |
29281 | cat >>conftest.$ac_ext <<_ACEOF | |
29282 | /* end confdefs.h. */ | |
29283 | ||
29284 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29285 | #ifdef __cplusplus | |
29286 | extern "C" | |
29287 | #endif | |
29288 | /* We use char because int might match the return type of a gcc2 | |
29289 | builtin and then its argument prototype would still apply. */ | |
29290 | char SQLAllocEnv (); | |
29291 | int | |
29292 | main () | |
29293 | { | |
29294 | SQLAllocEnv (); | |
29295 | ; | |
29296 | return 0; | |
29297 | } | |
29298 | _ACEOF | |
29299 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29300 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29301 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29302 | ac_status=$? |
ac1cb8d3 VS |
29303 | grep -v '^ *+' conftest.er1 >conftest.err |
29304 | rm -f conftest.er1 | |
29305 | cat conftest.err >&5 | |
a848cd7e SC |
29306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29307 | (exit $ac_status); } && | |
ddd14b14 RR |
29308 | { ac_try='test -z "$ac_c_werror_flag" |
29309 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29311 | (eval $ac_try) 2>&5 | |
29312 | ac_status=$? | |
29313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29314 | (exit $ac_status); }; } && | |
29315 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29317 | (eval $ac_try) 2>&5 | |
29318 | ac_status=$? | |
29319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29320 | (exit $ac_status); }; }; then | |
29321 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
29322 | else | |
29323 | echo "$as_me: failed program was:" >&5 | |
29324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29325 | ||
29326 | ac_cv_lib_odbc_SQLAllocEnv=no | |
29327 | fi | |
ac1cb8d3 VS |
29328 | rm -f conftest.err conftest.$ac_objext \ |
29329 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29330 | LIBS=$ac_check_lib_save_LIBS |
29331 | fi | |
29332 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
29333 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
29334 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
29335 | ODBC_LINK=" -lodbc" | |
29336 | fi | |
29337 | ||
29338 | ||
29339 | fi | |
29340 | ||
29341 | ||
29342 | fi | |
29343 | ||
29344 | fi | |
29345 | if test "x$ODBC_LINK" = "x" ; then | |
29346 | if test "$wxUSE_ODBC" = "sys" ; then | |
29347 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
29348 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
29349 | { (exit 1); exit 1; }; } | |
29350 | else | |
29351 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
29352 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
29353 | wxUSE_ODBC=builtin | |
29354 | fi | |
29355 | else | |
29356 | wxUSE_ODBC=sys | |
29357 | fi | |
29358 | fi | |
a848cd7e | 29359 | |
2da0c077 RD |
29360 | if test "$wxUSE_ODBC" = "builtin" ; then |
29361 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
29362 | #define wxUSE_BUILTIN_IODBC 1 |
29363 | _ACEOF | |
29364 | ||
a848cd7e SC |
29365 | fi |
29366 | fi | |
29367 | ||
2da0c077 RD |
29368 | if test "$wxUSE_ODBC" != "no" ; then |
29369 | cat >>confdefs.h <<\_ACEOF | |
29370 | #define wxUSE_ODBC 1 | |
29371 | _ACEOF | |
29372 | ||
29373 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
29374 | ||
29375 | WXODBCFLAG="-D_IODBC_" | |
29376 | fi | |
a848cd7e | 29377 | |
01cb68df | 29378 | |
a848cd7e | 29379 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 29380 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
29381 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
29382 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
29383 | ||
29384 | ac_find_libraries= | |
29385 | for ac_dir in $SEARCH_LIB /usr/lib; | |
29386 | do | |
29387 | for ac_extension in a so sl dylib; do | |
29388 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
29389 | ac_find_libraries=$ac_dir | |
29390 | break 2 | |
29391 | fi | |
29392 | done | |
29393 | done | |
29394 | ||
29395 | if test "$ac_find_libraries" != "" ; then | |
29396 | ||
29397 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
29398 | result=$? | |
29399 | if test $result = 0; then | |
29400 | ac_path_to_link="" | |
29401 | else | |
29402 | ac_path_to_link=" -L$ac_find_libraries" | |
29403 | fi | |
29404 | ||
29405 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
29406 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
29407 | fi | |
29408 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
29409 | echo "$as_me:$LINENO: result: yes" >&5 | |
29410 | echo "${ECHO_T}yes" >&6 | |
29411 | ||
29412 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
29413 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
29414 | ||
29415 | ac_find_libraries= | |
29416 | for ac_dir in $SEARCH_LIB /usr/lib; | |
29417 | do | |
29418 | for ac_extension in a so sl dylib; do | |
29419 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then | |
29420 | ac_find_libraries=$ac_dir | |
29421 | break 2 | |
29422 | fi | |
29423 | done | |
29424 | done | |
29425 | ||
29426 | if test "$ac_find_libraries" != "" ; then | |
29427 | echo "$as_me:$LINENO: result: yes" >&5 | |
29428 | echo "${ECHO_T}yes" >&6 | |
29429 | ||
29430 | for ac_header in X11/extensions/xf86vmode.h | |
29431 | do | |
29432 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
29433 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
29434 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29435 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29437 | else | |
29438 | cat >conftest.$ac_ext <<_ACEOF | |
29439 | /* confdefs.h. */ | |
29440 | _ACEOF | |
29441 | cat confdefs.h >>conftest.$ac_ext | |
29442 | cat >>conftest.$ac_ext <<_ACEOF | |
29443 | /* end confdefs.h. */ | |
29444 | ||
29445 | #if HAVE_X11_XLIB_H | |
29446 | #include <X11/Xlib.h> | |
29447 | #endif | |
29448 | ||
29449 | ||
29450 | #include <$ac_header> | |
29451 | _ACEOF | |
29452 | rm -f conftest.$ac_objext | |
29453 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29454 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29455 | ac_status=$? |
ac1cb8d3 VS |
29456 | grep -v '^ *+' conftest.er1 >conftest.err |
29457 | rm -f conftest.er1 | |
29458 | cat conftest.err >&5 | |
a848cd7e SC |
29459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29460 | (exit $ac_status); } && | |
ddd14b14 RR |
29461 | { ac_try='test -z "$ac_c_werror_flag" |
29462 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29464 | (eval $ac_try) 2>&5 | |
29465 | ac_status=$? | |
29466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29467 | (exit $ac_status); }; } && | |
29468 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29470 | (eval $ac_try) 2>&5 | |
29471 | ac_status=$? | |
29472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29473 | (exit $ac_status); }; }; then | |
29474 | eval "$as_ac_Header=yes" | |
29475 | else | |
29476 | echo "$as_me: failed program was:" >&5 | |
29477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29478 | ||
29479 | eval "$as_ac_Header=no" | |
29480 | fi | |
ac1cb8d3 | 29481 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29482 | fi |
29483 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
29484 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
29485 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
29486 | cat >>confdefs.h <<_ACEOF | |
29487 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
29488 | _ACEOF | |
29489 | ||
29490 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
29491 | ||
29492 | fi | |
29493 | ||
29494 | done | |
29495 | ||
29496 | else | |
29497 | echo "$as_me:$LINENO: result: no" >&5 | |
29498 | echo "${ECHO_T}no" >&6 | |
29499 | fi | |
29500 | ||
29501 | else | |
29502 | echo "$as_me:$LINENO: result: no" >&5 | |
29503 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
29504 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
29505 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
29506 | wxUSE_DISPLAY="no" |
29507 | fi | |
01cb68df RG |
29508 | elif test "$wxUSE_MSW" = 1; then |
29509 | ||
29510 | ||
29511 | for ac_header in multimon.h ddraw.h | |
29512 | do | |
29513 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5294a27e | 29514 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
01cb68df RG |
29515 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
29516 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
01cb68df | 29518 | else |
5294a27e | 29519 | cat >conftest.$ac_ext <<_ACEOF |
01cb68df RG |
29520 | /* confdefs.h. */ |
29521 | _ACEOF | |
29522 | cat confdefs.h >>conftest.$ac_ext | |
29523 | cat >>conftest.$ac_ext <<_ACEOF | |
29524 | /* end confdefs.h. */ | |
5294a27e VZ |
29525 | #include <windows.h> |
29526 | ||
01cb68df RG |
29527 | #include <$ac_header> |
29528 | _ACEOF | |
29529 | rm -f conftest.$ac_objext | |
29530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29531 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 29532 | ac_status=$? |
ac1cb8d3 VS |
29533 | grep -v '^ *+' conftest.er1 >conftest.err |
29534 | rm -f conftest.er1 | |
29535 | cat conftest.err >&5 | |
01cb68df RG |
29536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29537 | (exit $ac_status); } && | |
ddd14b14 RR |
29538 | { ac_try='test -z "$ac_c_werror_flag" |
29539 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29541 | (eval $ac_try) 2>&5 | |
29542 | ac_status=$? | |
29543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29544 | (exit $ac_status); }; } && | |
29545 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
29546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29547 | (eval $ac_try) 2>&5 | |
29548 | ac_status=$? | |
29549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29550 | (exit $ac_status); }; }; then | |
5294a27e | 29551 | eval "$as_ac_Header=yes" |
01cb68df RG |
29552 | else |
29553 | echo "$as_me: failed program was:" >&5 | |
29554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29555 | ||
5294a27e | 29556 | eval "$as_ac_Header=no" |
01cb68df | 29557 | fi |
ac1cb8d3 | 29558 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
29559 | fi |
29560 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
29561 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
01cb68df RG |
29562 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
29563 | cat >>confdefs.h <<_ACEOF | |
29564 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
29565 | _ACEOF | |
29566 | ||
29567 | else | |
29568 | ||
5294a27e VZ |
29569 | wxUSE_DISPLAY="no" |
29570 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 | |
dcc1b6ad | 29571 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} |
01cb68df RG |
29572 | |
29573 | fi | |
29574 | ||
29575 | done | |
29576 | ||
a848cd7e SC |
29577 | fi |
29578 | fi | |
29579 | ||
29580 | ||
29581 | USE_OPENGL=0 | |
29582 | if test "$wxUSE_OPENGL" = "yes"; then | |
29583 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
29584 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
29585 | elif test "$wxUSE_MSW" = 1; then | |
29586 | OPENGL_LIBS="-lopengl32 -lglu32" | |
29587 | else | |
29588 | ||
29589 | ||
29590 | ac_find_includes= | |
29591 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
29592 | do | |
29593 | if test -f "$ac_dir/GL/gl.h"; then | |
29594 | ac_find_includes=$ac_dir | |
29595 | break | |
29596 | fi | |
29597 | done | |
29598 | ||
29599 | if test "$ac_find_includes" != "" ; then | |
29600 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
29601 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
29602 | ||
29603 | if test "x$ac_find_includes" = "x/usr/include"; then | |
29604 | ac_path_to_include="" | |
29605 | else | |
29606 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
29607 | result=$? | |
29608 | if test $result = 0; then | |
29609 | ac_path_to_include="" | |
29610 | else | |
29611 | ac_path_to_include=" -I$ac_find_includes" | |
29612 | fi | |
29613 | fi | |
29614 | ||
29615 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
29616 | fi | |
29617 | ||
29618 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
29619 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
29620 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
29621 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
29622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29623 | fi | |
29624 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
29625 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
29626 | else | |
29627 | # Is the header compilable? | |
29628 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
29629 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
29630 | cat >conftest.$ac_ext <<_ACEOF | |
29631 | /* confdefs.h. */ | |
29632 | _ACEOF | |
29633 | cat confdefs.h >>conftest.$ac_ext | |
29634 | cat >>conftest.$ac_ext <<_ACEOF | |
29635 | /* end confdefs.h. */ | |
29636 | $ac_includes_default | |
29637 | #include <GL/gl.h> | |
29638 | _ACEOF | |
29639 | rm -f conftest.$ac_objext | |
29640 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29641 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29642 | ac_status=$? |
ac1cb8d3 VS |
29643 | grep -v '^ *+' conftest.er1 >conftest.err |
29644 | rm -f conftest.er1 | |
29645 | cat conftest.err >&5 | |
a848cd7e SC |
29646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29647 | (exit $ac_status); } && | |
ddd14b14 RR |
29648 | { ac_try='test -z "$ac_c_werror_flag" |
29649 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29651 | (eval $ac_try) 2>&5 | |
29652 | ac_status=$? | |
29653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29654 | (exit $ac_status); }; } && | |
29655 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29657 | (eval $ac_try) 2>&5 | |
29658 | ac_status=$? | |
29659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29660 | (exit $ac_status); }; }; then | |
29661 | ac_header_compiler=yes | |
29662 | else | |
29663 | echo "$as_me: failed program was:" >&5 | |
29664 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29665 | ||
29666 | ac_header_compiler=no | |
29667 | fi | |
ac1cb8d3 | 29668 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29669 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
29670 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
29671 | ||
29672 | # Is the header present? | |
29673 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
29674 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
29675 | cat >conftest.$ac_ext <<_ACEOF | |
29676 | /* confdefs.h. */ | |
29677 | _ACEOF | |
29678 | cat confdefs.h >>conftest.$ac_ext | |
29679 | cat >>conftest.$ac_ext <<_ACEOF | |
29680 | /* end confdefs.h. */ | |
29681 | #include <GL/gl.h> | |
29682 | _ACEOF | |
29683 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
29684 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
29685 | ac_status=$? | |
29686 | grep -v '^ *+' conftest.er1 >conftest.err | |
29687 | rm -f conftest.er1 | |
29688 | cat conftest.err >&5 | |
29689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29690 | (exit $ac_status); } >/dev/null; then | |
29691 | if test -s conftest.err; then | |
29692 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 29693 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
29694 | else |
29695 | ac_cpp_err= | |
29696 | fi | |
29697 | else | |
29698 | ac_cpp_err=yes | |
29699 | fi | |
29700 | if test -z "$ac_cpp_err"; then | |
29701 | ac_header_preproc=yes | |
29702 | else | |
29703 | echo "$as_me: failed program was:" >&5 | |
29704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29705 | ||
29706 | ac_header_preproc=no | |
29707 | fi | |
29708 | rm -f conftest.err conftest.$ac_ext | |
29709 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
29710 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
29711 | ||
29712 | # So? What about this header? | |
ac1cb8d3 VS |
29713 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
29714 | yes:no: ) | |
a848cd7e SC |
29715 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
29716 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
29717 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
29718 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
29719 | ac_header_preproc=yes | |
a848cd7e | 29720 | ;; |
ac1cb8d3 | 29721 | no:yes:* ) |
a848cd7e SC |
29722 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
29723 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
29724 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
29725 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
29726 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
29727 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
29728 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
29729 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
29730 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
29731 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
29732 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
29733 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
29734 | ( |
29735 | cat <<\_ASBOX | |
ac1cb8d3 VS |
29736 | ## ----------------------------------------- ## |
29737 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
29738 | ## ----------------------------------------- ## | |
a848cd7e SC |
29739 | _ASBOX |
29740 | ) | | |
29741 | sed "s/^/$as_me: WARNING: /" >&2 | |
29742 | ;; | |
29743 | esac | |
29744 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
29745 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
29746 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
29747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29748 | else | |
29749 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
29750 | fi | |
29751 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
29752 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
29753 | ||
29754 | fi | |
29755 | if test $ac_cv_header_GL_gl_h = yes; then | |
29756 | ||
29757 | found_gl=0 | |
29758 | ||
29759 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
29760 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
29761 | ||
29762 | ac_find_libraries= | |
29763 | for ac_dir in $SEARCH_LIB /usr/lib; | |
29764 | do | |
29765 | for ac_extension in a so sl dylib; do | |
29766 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
29767 | ac_find_libraries=$ac_dir | |
29768 | break 2 | |
29769 | fi | |
29770 | done | |
29771 | done | |
29772 | ||
29773 | if test "$ac_find_libraries" != "" ; then | |
69120ee4 VZ |
29774 | echo "$as_me:$LINENO: result: yes" >&5 |
29775 | echo "${ECHO_T}yes" >&6 | |
29776 | ||
a848cd7e SC |
29777 | |
29778 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
29779 | result=$? | |
29780 | if test $result = 0; then | |
29781 | ac_path_to_link="" | |
29782 | else | |
29783 | ac_path_to_link=" -L$ac_find_libraries" | |
29784 | fi | |
29785 | ||
29786 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
29787 | LDFLAGS_GL="$ac_path_to_link" | |
29788 | fi | |
29789 | ||
69120ee4 VZ |
29790 | echo "$as_me:$LINENO: checking for -lGLU" >&5 |
29791 | echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6 | |
a848cd7e SC |
29792 | |
29793 | ac_find_libraries= | |
29794 | for ac_dir in $SEARCH_LIB /usr/lib; | |
29795 | do | |
29796 | for ac_extension in a so sl dylib; do | |
29797 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
29798 | ac_find_libraries=$ac_dir | |
29799 | break 2 | |
29800 | fi | |
29801 | done | |
29802 | done | |
29803 | ||
29804 | if test "$ac_find_libraries" != "" ; then | |
29805 | ||
29806 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
29807 | result=$? | |
29808 | if test $result = 0; then | |
29809 | ac_path_to_link="" | |
29810 | else | |
29811 | ac_path_to_link=" -L$ac_find_libraries" | |
29812 | fi | |
29813 | ||
29814 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
29815 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
29816 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
29817 | fi | |
29818 | ||
29819 | found_gl=1 | |
29820 | OPENGL_LIBS="-lGL -lGLU" | |
29821 | echo "$as_me:$LINENO: result: yes" >&5 | |
29822 | echo "${ECHO_T}yes" >&6 | |
69120ee4 VZ |
29823 | else |
29824 | echo "$as_me:$LINENO: result: no" >&5 | |
29825 | echo "${ECHO_T}no" >&6 | |
a848cd7e | 29826 | fi |
69120ee4 VZ |
29827 | else |
29828 | echo "$as_me:$LINENO: result: no" >&5 | |
29829 | echo "${ECHO_T}no" >&6 | |
a848cd7e SC |
29830 | fi |
29831 | ||
29832 | if test "$found_gl" != 1; then | |
a848cd7e SC |
29833 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 |
29834 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
29835 | ||
29836 | ac_find_libraries= | |
29837 | for ac_dir in $SEARCH_LIB /usr/lib; | |
29838 | do | |
29839 | for ac_extension in a so sl dylib; do | |
29840 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
29841 | ac_find_libraries=$ac_dir | |
29842 | break 2 | |
29843 | fi | |
29844 | done | |
29845 | done | |
29846 | ||
29847 | if test "$ac_find_libraries" != "" ; then | |
29848 | ||
29849 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
29850 | result=$? | |
29851 | if test $result = 0; then | |
29852 | ac_path_to_link="" | |
29853 | else | |
29854 | ac_path_to_link=" -L$ac_find_libraries" | |
29855 | fi | |
29856 | ||
29857 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
29858 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
29859 | echo "$as_me:$LINENO: result: yes" >&5 | |
29860 | echo "${ECHO_T}yes" >&6 | |
29861 | else | |
29862 | echo "$as_me:$LINENO: result: no" >&5 | |
29863 | echo "${ECHO_T}no" >&6 | |
29864 | fi | |
29865 | fi | |
29866 | ||
29867 | fi | |
29868 | ||
29869 | ||
29870 | ||
29871 | if test "x$OPENGL_LIBS" = "x"; then | |
29872 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
29873 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
29874 | { (exit 1); exit 1; }; } | |
29875 | fi | |
29876 | fi | |
29877 | ||
29878 | if test "$wxUSE_OPENGL" = "yes"; then | |
29879 | USE_OPENGL=1 | |
29880 | cat >>confdefs.h <<\_ACEOF | |
29881 | #define wxUSE_OPENGL 1 | |
29882 | _ACEOF | |
29883 | ||
29884 | cat >>confdefs.h <<\_ACEOF | |
29885 | #define wxUSE_GLCANVAS 1 | |
29886 | _ACEOF | |
29887 | ||
29888 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
29889 | fi | |
29890 | fi | |
29891 | ||
a848cd7e SC |
29892 | |
29893 | if test -n "$TOOLKIT" ; then | |
29894 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
29895 | fi | |
29896 | ||
a848cd7e SC |
29897 | |
29898 | ||
29899 | if test "$wxUSE_SHARED" = "yes"; then | |
29900 | case "${host}" in | |
29901 | *-pc-msdosdjgpp ) | |
29902 | wxUSE_SHARED=no | |
29903 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
29904 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
29905 | ;; | |
29906 | esac | |
29907 | fi | |
29908 | ||
a848cd7e | 29909 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
29910 | |
29911 | ||
29912 | found_versioning=no | |
29913 | ||
29914 | ||
29915 | if test $found_versioning = no ; then | |
29916 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
29917 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
29918 | if test "${wx_cv_version_script+set}" = set; then | |
29919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29920 | else | |
29921 | ||
29922 | echo "VER_1 { *; };" >conftest.sym | |
29923 | echo "int main() { return 0; }" >conftest.cpp | |
29924 | ||
29925 | if { ac_try=' | |
29926 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
29927 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
29928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29929 | (eval $ac_try) 2>&5 | |
29930 | ac_status=$? | |
29931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29932 | (exit $ac_status); }; } ; then | |
29933 | if test -s conftest.stderr ; then | |
29934 | wx_cv_version_script=no | |
29935 | else | |
29936 | wx_cv_version_script=yes | |
29937 | fi | |
29938 | else | |
29939 | wx_cv_version_script=no | |
29940 | fi | |
e5d4b470 MW |
29941 | |
29942 | if test $wx_cv_version_script = yes | |
29943 | then | |
29944 | echo "struct B { virtual ~B() { } }; \ | |
29945 | struct D : public B { }; \ | |
29946 | void F() { D d; }" > conftest.cpp | |
29947 | ||
29948 | if { ac_try=' | |
29949 | $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
29950 | -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null' | |
29951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29952 | (eval $ac_try) 2>&5 | |
29953 | ac_status=$? | |
29954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29955 | (exit $ac_status); }; } && | |
29956 | { ac_try=' | |
29957 | $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
29958 | -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null' | |
29959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29960 | (eval $ac_try) 2>&5 | |
29961 | ac_status=$? | |
29962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29963 | (exit $ac_status); }; } | |
29964 | then | |
29965 | if { ac_try=' | |
29966 | $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
29967 | -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null' | |
29968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29969 | (eval $ac_try) 2>&5 | |
29970 | ac_status=$? | |
29971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29972 | (exit $ac_status); }; } | |
29973 | then | |
29974 | wx_cv_version_script=yes | |
29975 | else | |
29976 | wx_cv_version_script=no | |
29977 | fi | |
29978 | fi | |
29979 | fi | |
29980 | ||
a848cd7e | 29981 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp |
e5d4b470 | 29982 | rm -f conftest1.output conftest2.output conftest3.output |
a848cd7e SC |
29983 | |
29984 | fi | |
29985 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
29986 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
29987 | if test $wx_cv_version_script = yes ; then | |
29988 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
29989 | fi | |
29990 | fi | |
29991 | ||
29992 | ||
29993 | case "${host}" in | |
29994 | *-*-linux* | *-*-gnu* ) | |
29995 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 29996 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
29997 | ;; |
29998 | ||
29999 | *-*-solaris2* ) | |
30000 | if test "$GCC" = yes ; then | |
30001 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
30002 | ||
30003 | saveLdflags="$LDFLAGS" | |
30004 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
30005 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
30006 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
30007 | cat >conftest.$ac_ext <<_ACEOF | |
30008 | /* confdefs.h. */ | |
30009 | _ACEOF | |
30010 | cat confdefs.h >>conftest.$ac_ext | |
30011 | cat >>conftest.$ac_ext <<_ACEOF | |
30012 | /* end confdefs.h. */ | |
30013 | ||
30014 | int | |
30015 | main () | |
30016 | { | |
30017 | ||
30018 | ; | |
30019 | return 0; | |
30020 | } | |
30021 | _ACEOF | |
30022 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30023 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30024 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30025 | ac_status=$? |
ac1cb8d3 VS |
30026 | grep -v '^ *+' conftest.er1 >conftest.err |
30027 | rm -f conftest.er1 | |
30028 | cat conftest.err >&5 | |
a848cd7e SC |
30029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30030 | (exit $ac_status); } && | |
ddd14b14 RR |
30031 | { ac_try='test -z "$ac_c_werror_flag" |
30032 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30034 | (eval $ac_try) 2>&5 | |
30035 | ac_status=$? | |
30036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30037 | (exit $ac_status); }; } && | |
30038 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30040 | (eval $ac_try) 2>&5 | |
30041 | ac_status=$? | |
30042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30043 | (exit $ac_status); }; }; then | |
30044 | ||
30045 | echo "$as_me:$LINENO: result: yes" >&5 | |
30046 | echo "${ECHO_T}yes" >&6 | |
30047 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 30048 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
30049 | |
30050 | else | |
30051 | echo "$as_me: failed program was:" >&5 | |
30052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30053 | ||
30054 | ||
30055 | echo "$as_me:$LINENO: result: no" >&5 | |
30056 | echo "${ECHO_T}no" >&6 | |
30057 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
30058 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
30059 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
30060 | cat >conftest.$ac_ext <<_ACEOF | |
30061 | /* confdefs.h. */ | |
30062 | _ACEOF | |
30063 | cat confdefs.h >>conftest.$ac_ext | |
30064 | cat >>conftest.$ac_ext <<_ACEOF | |
30065 | /* end confdefs.h. */ | |
30066 | ||
30067 | int | |
30068 | main () | |
30069 | { | |
30070 | ||
30071 | ; | |
30072 | return 0; | |
30073 | } | |
30074 | _ACEOF | |
30075 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30076 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30077 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30078 | ac_status=$? |
ac1cb8d3 VS |
30079 | grep -v '^ *+' conftest.er1 >conftest.err |
30080 | rm -f conftest.er1 | |
30081 | cat conftest.err >&5 | |
a848cd7e SC |
30082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30083 | (exit $ac_status); } && | |
ddd14b14 RR |
30084 | { ac_try='test -z "$ac_c_werror_flag" |
30085 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30087 | (eval $ac_try) 2>&5 | |
30088 | ac_status=$? | |
30089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30090 | (exit $ac_status); }; } && | |
30091 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30093 | (eval $ac_try) 2>&5 | |
30094 | ac_status=$? | |
30095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30096 | (exit $ac_status); }; }; then | |
30097 | ||
ffa0583f | 30098 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 30099 | echo "${ECHO_T}yes" >&6 |
ffa0583f RL |
30100 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" |
30101 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
30102 | ||
a848cd7e SC |
30103 | else |
30104 | echo "$as_me: failed program was:" >&5 | |
30105 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30106 | ||
30107 | ||
30108 | echo "$as_me:$LINENO: result: no" >&5 | |
30109 | echo "${ECHO_T}no" >&6 | |
30110 | ||
30111 | fi | |
ac1cb8d3 VS |
30112 | rm -f conftest.err conftest.$ac_objext \ |
30113 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30114 | |
30115 | fi | |
ac1cb8d3 VS |
30116 | rm -f conftest.err conftest.$ac_objext \ |
30117 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30118 | LDFLAGS="$saveLdflags" |
30119 | else | |
a848cd7e | 30120 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
ffa0583f | 30121 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
30122 | fi |
30123 | ;; | |
30124 | ||
30125 | powerpc-*-darwin* ) | |
0caebc27 MW |
30126 | install_name_tool=`which install_name_tool` |
30127 | if test "$install_name_tool" -a -x "$install_name_tool"; then | |
30128 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
30129 | cat <<EOF >change-install-names | |
a848cd7e SC |
30130 | #!/bin/sh |
30131 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
30132 | inst_cmd="install_name_tool " | |
30133 | for i in \${libnames} ; do | |
30134 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
30135 | done | |
30136 | \${inst_cmd} \${3} | |
30137 | EOF | |
0caebc27 MW |
30138 | chmod +x change-install-names |
30139 | fi | |
a848cd7e SC |
30140 | ;; |
30141 | ||
30142 | *-*-cygwin* | *-*-mingw32* ) | |
30143 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
30144 | ;; | |
30145 | ||
81f90336 MW |
30146 | *-*-hpux* ) |
30147 | SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib" | |
30148 | WXCONFIG_RPATH="-Wl,+b,\$libdir" | |
30149 | ;; | |
30150 | ||
a848cd7e | 30151 | esac |
ceec2216 | 30152 | |
ffa0583f RL |
30153 | if test $wxUSE_RPATH = "no"; then |
30154 | SAMPLES_RPATH_FLAG='' | |
30155 | SAMPLES_RPATH_POSTLINK='' | |
30156 | WXCONFIG_RPATH='' | |
30157 | fi | |
30158 | ||
30159 | SHARED=1 | |
30160 | ||
30161 | else | |
30162 | ||
ceec2216 RL |
30163 | config_linkage_component="-static" |
30164 | SHARED=0 | |
ffa0583f | 30165 | |
ceec2216 | 30166 | fi |
a848cd7e | 30167 | |
a848cd7e | 30168 | |
ceec2216 RL |
30169 | UNICODE=0 |
30170 | lib_unicode_suffix= | |
30171 | WX_CHARTYPE="ansi" | |
30172 | if test "$wxUSE_UNICODE" = "yes"; then | |
30173 | lib_unicode_suffix=u | |
30174 | WX_CHARTYPE="unicode" | |
30175 | UNICODE=1 | |
a848cd7e SC |
30176 | fi |
30177 | ||
ceec2216 RL |
30178 | lib_debug_suffix= |
30179 | WX_DEBUGTYPE="release" | |
30180 | DEBUG_FLAG=0 | |
30181 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
30182 | lib_debug_suffix=d | |
30183 | WX_DEBUGTYPE="debug" | |
30184 | DEBUG_FLAG=1 | |
30185 | fi | |
a848cd7e | 30186 | |
ceec2216 RL |
30187 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
30188 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 30189 | |
ceec2216 RL |
30190 | DEBUG_INFO=0 |
30191 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
30192 | DEBUG_INFO=1 | |
30193 | fi | |
a848cd7e | 30194 | |
ceec2216 | 30195 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 30196 | |
ceec2216 | 30197 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 30198 | |
ceec2216 | 30199 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 30200 | |
ceec2216 RL |
30201 | if test "$cross_compiling" = "yes"; then |
30202 | HOST_SUFFIX="-$host_alias" | |
30203 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
30204 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
30205 | fi |
30206 | ||
dd21ced8 | 30207 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
abc736fd MW |
30208 | if test "${TOOLKIT_DIR}" = "os2"; then |
30209 | WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
30210 | else | |
30211 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
30212 | fi | |
ceec2216 RL |
30213 | |
30214 | ||
30215 | ||
1d1af5ea DE |
30216 | if test "$wxUSE_COCOA" = 1; then |
30217 | ||
30218 | ||
30219 | ac_ext=c | |
30220 | ac_cpp='$CPP $CPPFLAGS' | |
30221 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30222 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30223 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30224 | ||
30225 | ac_ext=m | |
30226 | ||
30227 | echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5 | |
30228 | echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6 | |
30229 | cat >conftest.$ac_ext <<_ACEOF | |
30230 | /* confdefs.h. */ | |
30231 | _ACEOF | |
30232 | cat confdefs.h >>conftest.$ac_ext | |
30233 | cat >>conftest.$ac_ext <<_ACEOF | |
30234 | /* end confdefs.h. */ | |
30235 | #include <AppKit/NSEvent.h> | |
30236 | #include <CoreFoundation/CoreFoundation.h> | |
30237 | ||
30238 | int | |
30239 | main () | |
30240 | { | |
30241 | ||
30242 | ; | |
30243 | return 0; | |
30244 | } | |
30245 | _ACEOF | |
30246 | rm -f conftest.$ac_objext | |
30247 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30248 | (eval $ac_compile) 2>conftest.er1 | |
30249 | ac_status=$? | |
30250 | grep -v '^ *+' conftest.er1 >conftest.err | |
30251 | rm -f conftest.er1 | |
30252 | cat conftest.err >&5 | |
30253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30254 | (exit $ac_status); } && | |
ddd14b14 RR |
30255 | { ac_try='test -z "$ac_c_werror_flag" |
30256 | || test ! -s conftest.err' | |
1d1af5ea DE |
30257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30258 | (eval $ac_try) 2>&5 | |
30259 | ac_status=$? | |
30260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30261 | (exit $ac_status); }; } && | |
30262 | { ac_try='test -s conftest.$ac_objext' | |
30263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30264 | (eval $ac_try) 2>&5 | |
30265 | ac_status=$? | |
30266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30267 | (exit $ac_status); }; }; then | |
30268 | echo "$as_me:$LINENO: result: no" >&5 | |
30269 | echo "${ECHO_T}no" >&6 | |
30270 | else | |
30271 | echo "$as_me: failed program was:" >&5 | |
30272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30273 | ||
30274 | echo "$as_me:$LINENO: result: yes" >&5 | |
30275 | echo "${ECHO_T}yes" >&6 | |
30276 | echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5 | |
30277 | echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6 | |
30278 | cat >conftest.$ac_ext <<_ACEOF | |
30279 | /* confdefs.h. */ | |
30280 | _ACEOF | |
30281 | cat confdefs.h >>conftest.$ac_ext | |
30282 | cat >>conftest.$ac_ext <<_ACEOF | |
30283 | /* end confdefs.h. */ | |
30284 | #define __Point__ 1 | |
30285 | #include <AppKit/NSEvent.h> | |
30286 | #include <CoreFoundation/CoreFoundation.h> | |
30287 | ||
30288 | int | |
30289 | main () | |
30290 | { | |
30291 | ||
30292 | ; | |
30293 | return 0; | |
30294 | } | |
30295 | _ACEOF | |
30296 | rm -f conftest.$ac_objext | |
30297 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30298 | (eval $ac_compile) 2>conftest.er1 | |
30299 | ac_status=$? | |
30300 | grep -v '^ *+' conftest.er1 >conftest.err | |
30301 | rm -f conftest.er1 | |
30302 | cat conftest.err >&5 | |
30303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30304 | (exit $ac_status); } && | |
ddd14b14 RR |
30305 | { ac_try='test -z "$ac_c_werror_flag" |
30306 | || test ! -s conftest.err' | |
1d1af5ea DE |
30307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30308 | (eval $ac_try) 2>&5 | |
30309 | ac_status=$? | |
30310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30311 | (exit $ac_status); }; } && | |
30312 | { ac_try='test -s conftest.$ac_objext' | |
30313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30314 | (eval $ac_try) 2>&5 | |
30315 | ac_status=$? | |
30316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30317 | (exit $ac_status); }; }; then | |
30318 | echo "$as_me:$LINENO: result: yes" >&5 | |
30319 | echo "${ECHO_T}yes" >&6 | |
30320 | cat >>confdefs.h <<\_ACEOF | |
30321 | #define __Point__ 1 | |
30322 | _ACEOF | |
30323 | ||
30324 | ||
30325 | else | |
30326 | echo "$as_me: failed program was:" >&5 | |
30327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30328 | ||
30329 | { { echo "$as_me:$LINENO: error: no | |
30330 | See \`config.log' for more details." >&5 | |
30331 | echo "$as_me: error: no | |
30332 | See \`config.log' for more details." >&2;} | |
30333 | { (exit 1); exit 1; }; } | |
30334 | ||
30335 | fi | |
30336 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30337 | ||
30338 | fi | |
30339 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30340 | ac_ext=c | |
30341 | ac_cpp='$CPP $CPPFLAGS' | |
30342 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30343 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30344 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30345 | ||
30346 | fi | |
30347 | ||
a848cd7e | 30348 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
30349 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
30350 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 30351 | |
a848cd7e | 30352 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
30353 | |
30354 | # Extract the first word of "Rez", so it can be a program name with args. | |
30355 | set dummy Rez; ac_word=$2 | |
30356 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
30357 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
30358 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
30359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30360 | else | |
30361 | if test -n "$RESCOMP"; then | |
30362 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
30363 | else | |
30364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
30365 | for as_dir in $PATH | |
30366 | do | |
30367 | IFS=$as_save_IFS | |
30368 | test -z "$as_dir" && as_dir=. | |
30369 | for ac_exec_ext in '' $ac_executable_extensions; do | |
30370 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
30371 | ac_cv_prog_RESCOMP="Rez" | |
30372 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
30373 | break 2 | |
30374 | fi | |
30375 | done | |
30376 | done | |
30377 | ||
30378 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
30379 | fi | |
30380 | fi | |
30381 | RESCOMP=$ac_cv_prog_RESCOMP | |
30382 | if test -n "$RESCOMP"; then | |
30383 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
30384 | echo "${ECHO_T}$RESCOMP" >&6 | |
30385 | else | |
30386 | echo "$as_me:$LINENO: result: no" >&5 | |
30387 | echo "${ECHO_T}no" >&6 | |
30388 | fi | |
30389 | ||
30390 | # Extract the first word of "DeRez", so it can be a program name with args. | |
30391 | set dummy DeRez; ac_word=$2 | |
30392 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
30393 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
30394 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
30395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30396 | else | |
30397 | if test -n "$DEREZ"; then | |
30398 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
30399 | else | |
30400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
30401 | for as_dir in $PATH | |
30402 | do | |
30403 | IFS=$as_save_IFS | |
30404 | test -z "$as_dir" && as_dir=. | |
30405 | for ac_exec_ext in '' $ac_executable_extensions; do | |
30406 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
30407 | ac_cv_prog_DEREZ="DeRez" | |
30408 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
30409 | break 2 | |
30410 | fi | |
30411 | done | |
30412 | done | |
30413 | ||
30414 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
30415 | fi | |
30416 | fi | |
30417 | DEREZ=$ac_cv_prog_DEREZ | |
30418 | if test -n "$DEREZ"; then | |
30419 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
30420 | echo "${ECHO_T}$DEREZ" >&6 | |
30421 | else | |
30422 | echo "$as_me:$LINENO: result: no" >&5 | |
30423 | echo "${ECHO_T}no" >&6 | |
30424 | fi | |
30425 | ||
30426 | # Extract the first word of "SetFile", so it can be a program name with args. | |
30427 | set dummy SetFile; ac_word=$2 | |
30428 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
30429 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
30430 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
30431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30432 | else | |
30433 | if test -n "$SETFILE"; then | |
30434 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
30435 | else | |
30436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
30437 | for as_dir in $PATH | |
30438 | do | |
30439 | IFS=$as_save_IFS | |
30440 | test -z "$as_dir" && as_dir=. | |
30441 | for ac_exec_ext in '' $ac_executable_extensions; do | |
30442 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
30443 | ac_cv_prog_SETFILE="SetFile" | |
30444 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
30445 | break 2 | |
30446 | fi | |
30447 | done | |
30448 | done | |
30449 | ||
30450 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
30451 | fi | |
30452 | fi | |
30453 | SETFILE=$ac_cv_prog_SETFILE | |
30454 | if test -n "$SETFILE"; then | |
30455 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
30456 | echo "${ECHO_T}$SETFILE" >&6 | |
30457 | else | |
30458 | echo "$as_me:$LINENO: result: no" >&5 | |
30459 | echo "${ECHO_T}no" >&6 | |
30460 | fi | |
30461 | ||
30462 | ||
30463 | MACSETFILE="\$(SETFILE)" | |
30464 | ||
30465 | if test "$wxUSE_MAC" = 1; then | |
1a79f136 | 30466 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o" |
a848cd7e | 30467 | |
1a79f136 | 30468 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o" |
a848cd7e SC |
30469 | else |
30470 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
30471 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
30472 | fi | |
30473 | else | |
ffa0583f RL |
30474 | MACSETFILE="@true" |
30475 | MACRESWXCONFIG="@true" | |
a848cd7e SC |
30476 | |
30477 | if test "$wxUSE_PM" = 1; then | |
30478 | MACRESCOMP="emxbind -ep" | |
30479 | else | |
ffa0583f | 30480 | MACRESCOMP="@true" |
a848cd7e SC |
30481 | fi |
30482 | fi | |
30483 | ||
30484 | ||
30485 | ||
30486 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
30487 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
30488 | if test "${ac_cv_type_mode_t+set}" = set; then | |
30489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30490 | else | |
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 | $ac_includes_default | |
30498 | int | |
30499 | main () | |
30500 | { | |
30501 | if ((mode_t *) 0) | |
30502 | return 0; | |
30503 | if (sizeof (mode_t)) | |
30504 | return 0; | |
30505 | ; | |
30506 | return 0; | |
30507 | } | |
30508 | _ACEOF | |
30509 | rm -f conftest.$ac_objext | |
30510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30511 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30512 | ac_status=$? |
ac1cb8d3 VS |
30513 | grep -v '^ *+' conftest.er1 >conftest.err |
30514 | rm -f conftest.er1 | |
30515 | cat conftest.err >&5 | |
a848cd7e SC |
30516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30517 | (exit $ac_status); } && | |
ddd14b14 RR |
30518 | { ac_try='test -z "$ac_c_werror_flag" |
30519 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30521 | (eval $ac_try) 2>&5 | |
30522 | ac_status=$? | |
30523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30524 | (exit $ac_status); }; } && | |
30525 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30527 | (eval $ac_try) 2>&5 | |
30528 | ac_status=$? | |
30529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30530 | (exit $ac_status); }; }; then | |
30531 | ac_cv_type_mode_t=yes | |
30532 | else | |
30533 | echo "$as_me: failed program was:" >&5 | |
30534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30535 | ||
30536 | ac_cv_type_mode_t=no | |
30537 | fi | |
ac1cb8d3 | 30538 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30539 | fi |
30540 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
30541 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
30542 | if test $ac_cv_type_mode_t = yes; then | |
30543 | : | |
30544 | else | |
30545 | ||
30546 | cat >>confdefs.h <<_ACEOF | |
30547 | #define mode_t int | |
30548 | _ACEOF | |
30549 | ||
30550 | fi | |
30551 | ||
30552 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
30553 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
30554 | if test "${ac_cv_type_off_t+set}" = set; then | |
30555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30556 | else | |
30557 | cat >conftest.$ac_ext <<_ACEOF | |
30558 | /* confdefs.h. */ | |
30559 | _ACEOF | |
30560 | cat confdefs.h >>conftest.$ac_ext | |
30561 | cat >>conftest.$ac_ext <<_ACEOF | |
30562 | /* end confdefs.h. */ | |
30563 | $ac_includes_default | |
30564 | int | |
30565 | main () | |
30566 | { | |
30567 | if ((off_t *) 0) | |
30568 | return 0; | |
30569 | if (sizeof (off_t)) | |
30570 | return 0; | |
30571 | ; | |
30572 | return 0; | |
30573 | } | |
30574 | _ACEOF | |
30575 | rm -f conftest.$ac_objext | |
30576 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30577 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30578 | ac_status=$? |
ac1cb8d3 VS |
30579 | grep -v '^ *+' conftest.er1 >conftest.err |
30580 | rm -f conftest.er1 | |
30581 | cat conftest.err >&5 | |
a848cd7e SC |
30582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30583 | (exit $ac_status); } && | |
ddd14b14 RR |
30584 | { ac_try='test -z "$ac_c_werror_flag" |
30585 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30587 | (eval $ac_try) 2>&5 | |
30588 | ac_status=$? | |
30589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30590 | (exit $ac_status); }; } && | |
30591 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
30597 | ac_cv_type_off_t=yes | |
30598 | else | |
30599 | echo "$as_me: failed program was:" >&5 | |
30600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30601 | ||
30602 | ac_cv_type_off_t=no | |
30603 | fi | |
ac1cb8d3 | 30604 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30605 | fi |
30606 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
30607 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
30608 | if test $ac_cv_type_off_t = yes; then | |
30609 | : | |
30610 | else | |
30611 | ||
30612 | cat >>confdefs.h <<_ACEOF | |
30613 | #define off_t long | |
30614 | _ACEOF | |
30615 | ||
30616 | fi | |
30617 | ||
30618 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
30619 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
30620 | if test "${ac_cv_type_pid_t+set}" = set; then | |
30621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30622 | else | |
30623 | cat >conftest.$ac_ext <<_ACEOF | |
30624 | /* confdefs.h. */ | |
30625 | _ACEOF | |
30626 | cat confdefs.h >>conftest.$ac_ext | |
30627 | cat >>conftest.$ac_ext <<_ACEOF | |
30628 | /* end confdefs.h. */ | |
30629 | $ac_includes_default | |
30630 | int | |
30631 | main () | |
30632 | { | |
30633 | if ((pid_t *) 0) | |
30634 | return 0; | |
30635 | if (sizeof (pid_t)) | |
30636 | return 0; | |
30637 | ; | |
30638 | return 0; | |
30639 | } | |
30640 | _ACEOF | |
30641 | rm -f conftest.$ac_objext | |
30642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30643 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30644 | ac_status=$? |
ac1cb8d3 VS |
30645 | grep -v '^ *+' conftest.er1 >conftest.err |
30646 | rm -f conftest.er1 | |
30647 | cat conftest.err >&5 | |
a848cd7e SC |
30648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30649 | (exit $ac_status); } && | |
ddd14b14 RR |
30650 | { ac_try='test -z "$ac_c_werror_flag" |
30651 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30653 | (eval $ac_try) 2>&5 | |
30654 | ac_status=$? | |
30655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30656 | (exit $ac_status); }; } && | |
30657 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30659 | (eval $ac_try) 2>&5 | |
30660 | ac_status=$? | |
30661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30662 | (exit $ac_status); }; }; then | |
30663 | ac_cv_type_pid_t=yes | |
30664 | else | |
30665 | echo "$as_me: failed program was:" >&5 | |
30666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30667 | ||
30668 | ac_cv_type_pid_t=no | |
30669 | fi | |
ac1cb8d3 | 30670 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30671 | fi |
30672 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
30673 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
30674 | if test $ac_cv_type_pid_t = yes; then | |
30675 | : | |
30676 | else | |
30677 | ||
30678 | cat >>confdefs.h <<_ACEOF | |
30679 | #define pid_t int | |
30680 | _ACEOF | |
30681 | ||
30682 | fi | |
30683 | ||
30684 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
30685 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
30686 | if test "${ac_cv_type_size_t+set}" = set; then | |
30687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30688 | else | |
30689 | cat >conftest.$ac_ext <<_ACEOF | |
30690 | /* confdefs.h. */ | |
30691 | _ACEOF | |
30692 | cat confdefs.h >>conftest.$ac_ext | |
30693 | cat >>conftest.$ac_ext <<_ACEOF | |
30694 | /* end confdefs.h. */ | |
30695 | $ac_includes_default | |
30696 | int | |
30697 | main () | |
30698 | { | |
30699 | if ((size_t *) 0) | |
30700 | return 0; | |
30701 | if (sizeof (size_t)) | |
30702 | return 0; | |
30703 | ; | |
30704 | return 0; | |
30705 | } | |
30706 | _ACEOF | |
30707 | rm -f conftest.$ac_objext | |
30708 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30709 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30710 | ac_status=$? |
ac1cb8d3 VS |
30711 | grep -v '^ *+' conftest.er1 >conftest.err |
30712 | rm -f conftest.er1 | |
30713 | cat conftest.err >&5 | |
a848cd7e SC |
30714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30715 | (exit $ac_status); } && | |
ddd14b14 RR |
30716 | { ac_try='test -z "$ac_c_werror_flag" |
30717 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30719 | (eval $ac_try) 2>&5 | |
30720 | ac_status=$? | |
30721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30722 | (exit $ac_status); }; } && | |
30723 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30725 | (eval $ac_try) 2>&5 | |
30726 | ac_status=$? | |
30727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30728 | (exit $ac_status); }; }; then | |
30729 | ac_cv_type_size_t=yes | |
30730 | else | |
30731 | echo "$as_me: failed program was:" >&5 | |
30732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30733 | ||
30734 | ac_cv_type_size_t=no | |
30735 | fi | |
ac1cb8d3 | 30736 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30737 | fi |
30738 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
30739 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
30740 | if test $ac_cv_type_size_t = yes; then | |
30741 | : | |
30742 | else | |
30743 | ||
30744 | cat >>confdefs.h <<_ACEOF | |
30745 | #define size_t unsigned | |
30746 | _ACEOF | |
30747 | ||
30748 | fi | |
30749 | ||
30750 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
30751 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
30752 | if test "${ac_cv_type_uid_t+set}" = set; then | |
30753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30754 | else | |
30755 | cat >conftest.$ac_ext <<_ACEOF | |
30756 | /* confdefs.h. */ | |
30757 | _ACEOF | |
30758 | cat confdefs.h >>conftest.$ac_ext | |
30759 | cat >>conftest.$ac_ext <<_ACEOF | |
30760 | /* end confdefs.h. */ | |
30761 | #include <sys/types.h> | |
30762 | ||
30763 | _ACEOF | |
30764 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
30765 | $EGREP "uid_t" >/dev/null 2>&1; then | |
30766 | ac_cv_type_uid_t=yes | |
30767 | else | |
30768 | ac_cv_type_uid_t=no | |
30769 | fi | |
30770 | rm -f conftest* | |
30771 | ||
30772 | fi | |
30773 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
30774 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
30775 | if test $ac_cv_type_uid_t = no; then | |
30776 | ||
30777 | cat >>confdefs.h <<\_ACEOF | |
30778 | #define uid_t int | |
30779 | _ACEOF | |
30780 | ||
30781 | ||
30782 | cat >>confdefs.h <<\_ACEOF | |
30783 | #define gid_t int | |
30784 | _ACEOF | |
30785 | ||
30786 | fi | |
30787 | ||
30788 | ||
d51253e8 RL |
30789 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
30790 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
30791 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
30792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30793 | else | |
30794 | cat >conftest.$ac_ext <<_ACEOF | |
30795 | /* confdefs.h. */ | |
30796 | _ACEOF | |
30797 | cat confdefs.h >>conftest.$ac_ext | |
30798 | cat >>conftest.$ac_ext <<_ACEOF | |
30799 | /* end confdefs.h. */ | |
30800 | $ac_includes_default | |
30801 | int | |
30802 | main () | |
30803 | { | |
30804 | if ((ssize_t *) 0) | |
30805 | return 0; | |
30806 | if (sizeof (ssize_t)) | |
30807 | return 0; | |
30808 | ; | |
30809 | return 0; | |
30810 | } | |
30811 | _ACEOF | |
30812 | rm -f conftest.$ac_objext | |
30813 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30814 | (eval $ac_compile) 2>conftest.er1 | |
30815 | ac_status=$? | |
30816 | grep -v '^ *+' conftest.er1 >conftest.err | |
30817 | rm -f conftest.er1 | |
30818 | cat conftest.err >&5 | |
30819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30820 | (exit $ac_status); } && | |
ddd14b14 RR |
30821 | { ac_try='test -z "$ac_c_werror_flag" |
30822 | || test ! -s conftest.err' | |
d51253e8 RL |
30823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30824 | (eval $ac_try) 2>&5 | |
30825 | ac_status=$? | |
30826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30827 | (exit $ac_status); }; } && | |
30828 | { ac_try='test -s conftest.$ac_objext' | |
30829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30830 | (eval $ac_try) 2>&5 | |
30831 | ac_status=$? | |
30832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30833 | (exit $ac_status); }; }; then | |
30834 | ac_cv_type_ssize_t=yes | |
30835 | else | |
30836 | echo "$as_me: failed program was:" >&5 | |
30837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30838 | ||
30839 | ac_cv_type_ssize_t=no | |
30840 | fi | |
30841 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30842 | fi | |
30843 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
30844 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
30845 | if test $ac_cv_type_ssize_t = yes; then | |
30846 | ||
30847 | cat >>confdefs.h <<_ACEOF | |
30848 | #define HAVE_SSIZE_T 1 | |
30849 | _ACEOF | |
30850 | ||
30851 | ||
30852 | fi | |
30853 | ||
30854 | ||
a848cd7e SC |
30855 | |
30856 | ||
30857 | ac_ext=cc | |
30858 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30859 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30860 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30861 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30862 | ||
30863 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
30864 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
30865 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
30866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30867 | else | |
30868 | ||
30869 | cat >conftest.$ac_ext <<_ACEOF | |
30870 | /* confdefs.h. */ | |
30871 | _ACEOF | |
30872 | cat confdefs.h >>conftest.$ac_ext | |
30873 | cat >>conftest.$ac_ext <<_ACEOF | |
30874 | /* end confdefs.h. */ | |
30875 | #include <stddef.h> | |
30876 | int | |
30877 | main () | |
30878 | { | |
30879 | ||
30880 | return 0; } | |
30881 | ||
30882 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
30883 | ||
30884 | int bar() { | |
30885 | ||
30886 | ; | |
30887 | return 0; | |
30888 | } | |
30889 | _ACEOF | |
30890 | rm -f conftest.$ac_objext | |
30891 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30892 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30893 | ac_status=$? |
ac1cb8d3 VS |
30894 | grep -v '^ *+' conftest.er1 >conftest.err |
30895 | rm -f conftest.er1 | |
30896 | cat conftest.err >&5 | |
a848cd7e SC |
30897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30898 | (exit $ac_status); } && | |
ddd14b14 RR |
30899 | { ac_try='test -z "$ac_cxx_werror_flag" |
30900 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30902 | (eval $ac_try) 2>&5 | |
30903 | ac_status=$? | |
30904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30905 | (exit $ac_status); }; } && | |
30906 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30908 | (eval $ac_try) 2>&5 | |
30909 | ac_status=$? | |
30910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30911 | (exit $ac_status); }; }; then | |
30912 | wx_cv_size_t_is_uint=no | |
30913 | else | |
30914 | echo "$as_me: failed program was:" >&5 | |
30915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30916 | ||
30917 | wx_cv_size_t_is_uint=yes | |
30918 | ||
30919 | fi | |
ac1cb8d3 | 30920 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30921 | |
30922 | ||
30923 | fi | |
30924 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
30925 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
30926 | ||
30927 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
30928 | cat >>confdefs.h <<\_ACEOF | |
30929 | #define wxSIZE_T_IS_UINT 1 | |
30930 | _ACEOF | |
30931 | ||
30932 | else | |
30933 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
30934 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
30935 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
30936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30937 | else | |
30938 | cat >conftest.$ac_ext <<_ACEOF | |
30939 | /* confdefs.h. */ | |
30940 | _ACEOF | |
30941 | cat confdefs.h >>conftest.$ac_ext | |
30942 | cat >>conftest.$ac_ext <<_ACEOF | |
30943 | /* end confdefs.h. */ | |
30944 | #include <stddef.h> | |
30945 | int | |
30946 | main () | |
30947 | { | |
30948 | ||
30949 | return 0; } | |
30950 | ||
30951 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
30952 | ||
30953 | int bar() { | |
30954 | ||
30955 | ; | |
30956 | return 0; | |
30957 | } | |
30958 | _ACEOF | |
30959 | rm -f conftest.$ac_objext | |
30960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30961 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30962 | ac_status=$? |
ac1cb8d3 VS |
30963 | grep -v '^ *+' conftest.er1 >conftest.err |
30964 | rm -f conftest.er1 | |
30965 | cat conftest.err >&5 | |
a848cd7e SC |
30966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30967 | (exit $ac_status); } && | |
ddd14b14 RR |
30968 | { ac_try='test -z "$ac_cxx_werror_flag" |
30969 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30971 | (eval $ac_try) 2>&5 | |
30972 | ac_status=$? | |
30973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30974 | (exit $ac_status); }; } && | |
30975 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30977 | (eval $ac_try) 2>&5 | |
30978 | ac_status=$? | |
30979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30980 | (exit $ac_status); }; }; then | |
30981 | wx_cv_size_t_is_ulong=no | |
30982 | else | |
30983 | echo "$as_me: failed program was:" >&5 | |
30984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30985 | ||
30986 | wx_cv_size_t_is_ulong=yes | |
30987 | ||
30988 | fi | |
ac1cb8d3 | 30989 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30990 | |
30991 | fi | |
30992 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
30993 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
30994 | ||
30995 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
30996 | cat >>confdefs.h <<\_ACEOF | |
30997 | #define wxSIZE_T_IS_ULONG 1 | |
30998 | _ACEOF | |
30999 | ||
31000 | fi | |
31001 | fi | |
31002 | ||
31003 | ac_ext=c | |
31004 | ac_cpp='$CPP $CPPFLAGS' | |
31005 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31006 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31007 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31008 | ||
31009 | ||
31010 | ||
31011 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
31012 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
31013 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
31014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31015 | else | |
31016 | ||
31017 | cat >conftest.$ac_ext <<_ACEOF | |
31018 | /* confdefs.h. */ | |
31019 | _ACEOF | |
31020 | cat confdefs.h >>conftest.$ac_ext | |
31021 | cat >>conftest.$ac_ext <<_ACEOF | |
31022 | /* end confdefs.h. */ | |
31023 | #include <pwd.h> | |
31024 | int | |
31025 | main () | |
31026 | { | |
31027 | ||
31028 | char *p; | |
31029 | struct passwd *pw; | |
31030 | p = pw->pw_gecos; | |
31031 | ||
31032 | ; | |
31033 | return 0; | |
31034 | } | |
31035 | _ACEOF | |
31036 | rm -f conftest.$ac_objext | |
31037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31038 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31039 | ac_status=$? |
ac1cb8d3 VS |
31040 | grep -v '^ *+' conftest.er1 >conftest.err |
31041 | rm -f conftest.er1 | |
31042 | cat conftest.err >&5 | |
a848cd7e SC |
31043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31044 | (exit $ac_status); } && | |
ddd14b14 RR |
31045 | { ac_try='test -z "$ac_c_werror_flag" |
31046 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31048 | (eval $ac_try) 2>&5 | |
31049 | ac_status=$? | |
31050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31051 | (exit $ac_status); }; } && | |
31052 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31054 | (eval $ac_try) 2>&5 | |
31055 | ac_status=$? | |
31056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31057 | (exit $ac_status); }; }; then | |
31058 | ||
31059 | wx_cv_struct_pw_gecos=yes | |
31060 | ||
31061 | else | |
31062 | echo "$as_me: failed program was:" >&5 | |
31063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31064 | ||
31065 | ||
31066 | wx_cv_struct_pw_gecos=no | |
31067 | ||
31068 | ||
31069 | fi | |
ac1cb8d3 | 31070 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31071 | |
31072 | ||
31073 | fi | |
31074 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
31075 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
31076 | ||
31077 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
31078 | cat >>confdefs.h <<\_ACEOF | |
31079 | #define HAVE_PW_GECOS 1 | |
31080 | _ACEOF | |
31081 | ||
31082 | fi | |
31083 | ||
31084 | ||
47a7e797 | 31085 | if test "$wxUSE_WCHAR_T" = "yes"; then |
a848cd7e SC |
31086 | cat >>confdefs.h <<\_ACEOF |
31087 | #define wxUSE_WCHAR_T 1 | |
31088 | _ACEOF | |
31089 | ||
31090 | ||
31091 | WCSLEN_FOUND=0 | |
31092 | WCHAR_LINK= | |
31093 | ||
31094 | for ac_func in wcslen | |
31095 | do | |
31096 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31097 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31098 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31099 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31101 | else | |
31102 | cat >conftest.$ac_ext <<_ACEOF | |
31103 | /* confdefs.h. */ | |
31104 | _ACEOF | |
31105 | cat confdefs.h >>conftest.$ac_ext | |
31106 | cat >>conftest.$ac_ext <<_ACEOF | |
31107 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31108 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31109 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31110 | #define $ac_func innocuous_$ac_func | |
31111 | ||
a848cd7e SC |
31112 | /* System header to define __stub macros and hopefully few prototypes, |
31113 | which can conflict with char $ac_func (); below. | |
31114 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31115 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31116 | |
a848cd7e SC |
31117 | #ifdef __STDC__ |
31118 | # include <limits.h> | |
31119 | #else | |
31120 | # include <assert.h> | |
31121 | #endif | |
ac1cb8d3 VS |
31122 | |
31123 | #undef $ac_func | |
31124 | ||
a848cd7e SC |
31125 | /* Override any gcc2 internal prototype to avoid an error. */ |
31126 | #ifdef __cplusplus | |
31127 | extern "C" | |
31128 | { | |
31129 | #endif | |
31130 | /* We use char because int might match the return type of a gcc2 | |
31131 | builtin and then its argument prototype would still apply. */ | |
31132 | char $ac_func (); | |
31133 | /* The GNU C library defines this for functions which it implements | |
31134 | to always fail with ENOSYS. Some functions are actually named | |
31135 | something starting with __ and the normal name is an alias. */ | |
31136 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31137 | choke me | |
31138 | #else | |
31139 | char (*f) () = $ac_func; | |
31140 | #endif | |
31141 | #ifdef __cplusplus | |
31142 | } | |
31143 | #endif | |
31144 | ||
31145 | int | |
31146 | main () | |
31147 | { | |
31148 | return f != $ac_func; | |
31149 | ; | |
31150 | return 0; | |
31151 | } | |
31152 | _ACEOF | |
31153 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31154 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31155 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31156 | ac_status=$? |
ac1cb8d3 VS |
31157 | grep -v '^ *+' conftest.er1 >conftest.err |
31158 | rm -f conftest.er1 | |
31159 | cat conftest.err >&5 | |
a848cd7e SC |
31160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31161 | (exit $ac_status); } && | |
ddd14b14 RR |
31162 | { ac_try='test -z "$ac_c_werror_flag" |
31163 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31165 | (eval $ac_try) 2>&5 | |
31166 | ac_status=$? | |
31167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31168 | (exit $ac_status); }; } && | |
31169 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31171 | (eval $ac_try) 2>&5 | |
31172 | ac_status=$? | |
31173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31174 | (exit $ac_status); }; }; then | |
31175 | eval "$as_ac_var=yes" | |
31176 | else | |
31177 | echo "$as_me: failed program was:" >&5 | |
31178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31179 | ||
31180 | eval "$as_ac_var=no" | |
31181 | fi | |
ac1cb8d3 VS |
31182 | rm -f conftest.err conftest.$ac_objext \ |
31183 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31184 | fi |
31185 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31186 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31187 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31188 | cat >>confdefs.h <<_ACEOF | |
31189 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31190 | _ACEOF | |
31191 | WCSLEN_FOUND=1 | |
31192 | fi | |
31193 | done | |
31194 | ||
31195 | ||
31196 | if test "$WCSLEN_FOUND" = 0; then | |
31197 | if test "$TOOLKIT" = "MSW"; then | |
31198 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
31199 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
31200 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
31201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31202 | else | |
31203 | ac_check_lib_save_LIBS=$LIBS | |
31204 | LIBS="-lmsvcrt $LIBS" | |
31205 | cat >conftest.$ac_ext <<_ACEOF | |
31206 | /* confdefs.h. */ | |
31207 | _ACEOF | |
31208 | cat confdefs.h >>conftest.$ac_ext | |
31209 | cat >>conftest.$ac_ext <<_ACEOF | |
31210 | /* end confdefs.h. */ | |
31211 | ||
31212 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31213 | #ifdef __cplusplus | |
31214 | extern "C" | |
31215 | #endif | |
31216 | /* We use char because int might match the return type of a gcc2 | |
31217 | builtin and then its argument prototype would still apply. */ | |
31218 | char wcslen (); | |
31219 | int | |
31220 | main () | |
31221 | { | |
31222 | wcslen (); | |
31223 | ; | |
31224 | return 0; | |
31225 | } | |
31226 | _ACEOF | |
31227 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31228 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31229 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31230 | ac_status=$? |
ac1cb8d3 VS |
31231 | grep -v '^ *+' conftest.er1 >conftest.err |
31232 | rm -f conftest.er1 | |
31233 | cat conftest.err >&5 | |
a848cd7e SC |
31234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31235 | (exit $ac_status); } && | |
ddd14b14 RR |
31236 | { ac_try='test -z "$ac_c_werror_flag" |
31237 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31239 | (eval $ac_try) 2>&5 | |
31240 | ac_status=$? | |
31241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31242 | (exit $ac_status); }; } && | |
31243 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31245 | (eval $ac_try) 2>&5 | |
31246 | ac_status=$? | |
31247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31248 | (exit $ac_status); }; }; then | |
31249 | ac_cv_lib_msvcrt_wcslen=yes | |
31250 | else | |
31251 | echo "$as_me: failed program was:" >&5 | |
31252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31253 | ||
31254 | ac_cv_lib_msvcrt_wcslen=no | |
31255 | fi | |
ac1cb8d3 VS |
31256 | rm -f conftest.err conftest.$ac_objext \ |
31257 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31258 | LIBS=$ac_check_lib_save_LIBS |
31259 | fi | |
31260 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
31261 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
31262 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
31263 | WCHAR_OK=1 | |
31264 | fi | |
31265 | ||
31266 | else | |
31267 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
31268 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
31269 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
31270 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31271 | else | |
31272 | ac_check_lib_save_LIBS=$LIBS | |
31273 | LIBS="-lw $LIBS" | |
31274 | cat >conftest.$ac_ext <<_ACEOF | |
31275 | /* confdefs.h. */ | |
31276 | _ACEOF | |
31277 | cat confdefs.h >>conftest.$ac_ext | |
31278 | cat >>conftest.$ac_ext <<_ACEOF | |
31279 | /* end confdefs.h. */ | |
31280 | ||
31281 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31282 | #ifdef __cplusplus | |
31283 | extern "C" | |
31284 | #endif | |
31285 | /* We use char because int might match the return type of a gcc2 | |
31286 | builtin and then its argument prototype would still apply. */ | |
31287 | char wcslen (); | |
31288 | int | |
31289 | main () | |
31290 | { | |
31291 | wcslen (); | |
31292 | ; | |
31293 | return 0; | |
31294 | } | |
31295 | _ACEOF | |
31296 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31297 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31298 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31299 | ac_status=$? |
ac1cb8d3 VS |
31300 | grep -v '^ *+' conftest.er1 >conftest.err |
31301 | rm -f conftest.er1 | |
31302 | cat conftest.err >&5 | |
a848cd7e SC |
31303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31304 | (exit $ac_status); } && | |
ddd14b14 RR |
31305 | { ac_try='test -z "$ac_c_werror_flag" |
31306 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31308 | (eval $ac_try) 2>&5 | |
31309 | ac_status=$? | |
31310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31311 | (exit $ac_status); }; } && | |
31312 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31314 | (eval $ac_try) 2>&5 | |
31315 | ac_status=$? | |
31316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31317 | (exit $ac_status); }; }; then | |
31318 | ac_cv_lib_w_wcslen=yes | |
31319 | else | |
31320 | echo "$as_me: failed program was:" >&5 | |
31321 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31322 | ||
31323 | ac_cv_lib_w_wcslen=no | |
31324 | fi | |
ac1cb8d3 VS |
31325 | rm -f conftest.err conftest.$ac_objext \ |
31326 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31327 | LIBS=$ac_check_lib_save_LIBS |
31328 | fi | |
31329 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
31330 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
31331 | if test $ac_cv_lib_w_wcslen = yes; then | |
31332 | ||
31333 | WCHAR_LINK=" -lw" | |
31334 | WCSLEN_FOUND=1 | |
31335 | ||
31336 | fi | |
31337 | ||
31338 | fi | |
31339 | fi | |
31340 | ||
31341 | if test "$WCSLEN_FOUND" = 1; then | |
31342 | cat >>confdefs.h <<\_ACEOF | |
31343 | #define HAVE_WCSLEN 1 | |
31344 | _ACEOF | |
31345 | ||
31346 | fi | |
31347 | ||
81f90336 | 31348 | if test "$USE_HPUX" = 1; then |
473276a9 VS |
31349 | CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE " |
31350 | fi | |
31351 | ||
a848cd7e SC |
31352 | |
31353 | for ac_func in wcsrtombs | |
31354 | do | |
31355 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31356 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31357 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31358 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31360 | else | |
31361 | cat >conftest.$ac_ext <<_ACEOF | |
31362 | /* confdefs.h. */ | |
31363 | _ACEOF | |
31364 | cat confdefs.h >>conftest.$ac_ext | |
31365 | cat >>conftest.$ac_ext <<_ACEOF | |
31366 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31367 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31368 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31369 | #define $ac_func innocuous_$ac_func | |
31370 | ||
a848cd7e SC |
31371 | /* System header to define __stub macros and hopefully few prototypes, |
31372 | which can conflict with char $ac_func (); below. | |
31373 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31374 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31375 | |
a848cd7e SC |
31376 | #ifdef __STDC__ |
31377 | # include <limits.h> | |
31378 | #else | |
31379 | # include <assert.h> | |
31380 | #endif | |
ac1cb8d3 VS |
31381 | |
31382 | #undef $ac_func | |
31383 | ||
a848cd7e SC |
31384 | /* Override any gcc2 internal prototype to avoid an error. */ |
31385 | #ifdef __cplusplus | |
31386 | extern "C" | |
31387 | { | |
31388 | #endif | |
31389 | /* We use char because int might match the return type of a gcc2 | |
31390 | builtin and then its argument prototype would still apply. */ | |
31391 | char $ac_func (); | |
31392 | /* The GNU C library defines this for functions which it implements | |
31393 | to always fail with ENOSYS. Some functions are actually named | |
31394 | something starting with __ and the normal name is an alias. */ | |
31395 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31396 | choke me | |
31397 | #else | |
31398 | char (*f) () = $ac_func; | |
31399 | #endif | |
31400 | #ifdef __cplusplus | |
31401 | } | |
31402 | #endif | |
31403 | ||
31404 | int | |
31405 | main () | |
31406 | { | |
31407 | return f != $ac_func; | |
31408 | ; | |
31409 | return 0; | |
31410 | } | |
31411 | _ACEOF | |
31412 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31413 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31414 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31415 | ac_status=$? |
ac1cb8d3 VS |
31416 | grep -v '^ *+' conftest.er1 >conftest.err |
31417 | rm -f conftest.er1 | |
31418 | cat conftest.err >&5 | |
a848cd7e SC |
31419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31420 | (exit $ac_status); } && | |
ddd14b14 RR |
31421 | { ac_try='test -z "$ac_c_werror_flag" |
31422 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31424 | (eval $ac_try) 2>&5 | |
31425 | ac_status=$? | |
31426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31427 | (exit $ac_status); }; } && | |
31428 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31430 | (eval $ac_try) 2>&5 | |
31431 | ac_status=$? | |
31432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31433 | (exit $ac_status); }; }; then | |
31434 | eval "$as_ac_var=yes" | |
31435 | else | |
31436 | echo "$as_me: failed program was:" >&5 | |
31437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31438 | ||
31439 | eval "$as_ac_var=no" | |
31440 | fi | |
ac1cb8d3 VS |
31441 | rm -f conftest.err conftest.$ac_objext \ |
31442 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31443 | fi |
31444 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31445 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31446 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31447 | cat >>confdefs.h <<_ACEOF | |
31448 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31449 | _ACEOF | |
31450 | ||
31451 | fi | |
31452 | done | |
31453 | ||
31454 | else | |
31455 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
31456 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
31457 | fi | |
31458 | ||
31459 | ||
31460 | ||
31461 | ac_ext=cc | |
31462 | ac_cpp='$CXXCPP $CPPFLAGS' | |
31463 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31464 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31465 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31466 | ||
31467 | ||
31468 | ||
31469 | for ac_func in vsnprintf | |
31470 | do | |
31471 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31472 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31473 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31474 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31476 | else | |
31477 | cat >conftest.$ac_ext <<_ACEOF | |
31478 | /* confdefs.h. */ | |
31479 | _ACEOF | |
31480 | cat confdefs.h >>conftest.$ac_ext | |
31481 | cat >>conftest.$ac_ext <<_ACEOF | |
31482 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31483 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31484 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31485 | #define $ac_func innocuous_$ac_func | |
31486 | ||
a848cd7e SC |
31487 | /* System header to define __stub macros and hopefully few prototypes, |
31488 | which can conflict with char $ac_func (); below. | |
31489 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31490 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31491 | |
a848cd7e SC |
31492 | #ifdef __STDC__ |
31493 | # include <limits.h> | |
31494 | #else | |
31495 | # include <assert.h> | |
31496 | #endif | |
ac1cb8d3 VS |
31497 | |
31498 | #undef $ac_func | |
31499 | ||
a848cd7e SC |
31500 | /* Override any gcc2 internal prototype to avoid an error. */ |
31501 | #ifdef __cplusplus | |
31502 | extern "C" | |
31503 | { | |
31504 | #endif | |
31505 | /* We use char because int might match the return type of a gcc2 | |
31506 | builtin and then its argument prototype would still apply. */ | |
31507 | char $ac_func (); | |
31508 | /* The GNU C library defines this for functions which it implements | |
31509 | to always fail with ENOSYS. Some functions are actually named | |
31510 | something starting with __ and the normal name is an alias. */ | |
31511 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31512 | choke me | |
31513 | #else | |
31514 | char (*f) () = $ac_func; | |
31515 | #endif | |
31516 | #ifdef __cplusplus | |
31517 | } | |
31518 | #endif | |
31519 | ||
31520 | int | |
31521 | main () | |
31522 | { | |
31523 | return f != $ac_func; | |
31524 | ; | |
31525 | return 0; | |
31526 | } | |
31527 | _ACEOF | |
31528 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31529 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31530 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31531 | ac_status=$? |
ac1cb8d3 VS |
31532 | grep -v '^ *+' conftest.er1 >conftest.err |
31533 | rm -f conftest.er1 | |
31534 | cat conftest.err >&5 | |
a848cd7e SC |
31535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31536 | (exit $ac_status); } && | |
ddd14b14 RR |
31537 | { ac_try='test -z "$ac_cxx_werror_flag" |
31538 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31540 | (eval $ac_try) 2>&5 | |
31541 | ac_status=$? | |
31542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31543 | (exit $ac_status); }; } && | |
31544 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31546 | (eval $ac_try) 2>&5 | |
31547 | ac_status=$? | |
31548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31549 | (exit $ac_status); }; }; then | |
31550 | eval "$as_ac_var=yes" | |
31551 | else | |
31552 | echo "$as_me: failed program was:" >&5 | |
31553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31554 | ||
31555 | eval "$as_ac_var=no" | |
31556 | fi | |
ac1cb8d3 VS |
31557 | rm -f conftest.err conftest.$ac_objext \ |
31558 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31559 | fi |
31560 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31561 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31562 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31563 | cat >>confdefs.h <<_ACEOF | |
31564 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31565 | _ACEOF | |
31566 | ||
31567 | fi | |
31568 | done | |
31569 | ||
31570 | ||
31571 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
31572 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
31573 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
31574 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
31575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31576 | else | |
31577 | ||
31578 | cat >conftest.$ac_ext <<_ACEOF | |
31579 | /* confdefs.h. */ | |
31580 | _ACEOF | |
31581 | cat confdefs.h >>conftest.$ac_ext | |
31582 | cat >>conftest.$ac_ext <<_ACEOF | |
31583 | /* end confdefs.h. */ | |
31584 | ||
31585 | #include <stdio.h> | |
31586 | #include <stdarg.h> | |
31587 | ||
31588 | int | |
31589 | main () | |
31590 | { | |
31591 | ||
31592 | char *buf; | |
31593 | va_list ap; | |
31594 | vsnprintf(buf, 10u, "%s", ap); | |
31595 | ||
31596 | ; | |
31597 | return 0; | |
31598 | } | |
31599 | _ACEOF | |
31600 | rm -f conftest.$ac_objext | |
31601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31602 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31603 | ac_status=$? |
ac1cb8d3 VS |
31604 | grep -v '^ *+' conftest.er1 >conftest.err |
31605 | rm -f conftest.er1 | |
31606 | cat conftest.err >&5 | |
a848cd7e SC |
31607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31608 | (exit $ac_status); } && | |
ddd14b14 RR |
31609 | { ac_try='test -z "$ac_cxx_werror_flag" |
31610 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
31616 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31618 | (eval $ac_try) 2>&5 | |
31619 | ac_status=$? | |
31620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31621 | (exit $ac_status); }; }; then | |
31622 | wx_cv_func_vsnprintf_decl=yes | |
31623 | else | |
31624 | echo "$as_me: failed program was:" >&5 | |
31625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31626 | ||
c122b164 DE |
31627 | |
31628 | cat >conftest.$ac_ext <<_ACEOF | |
31629 | /* confdefs.h. */ | |
31630 | _ACEOF | |
31631 | cat confdefs.h >>conftest.$ac_ext | |
31632 | cat >>conftest.$ac_ext <<_ACEOF | |
31633 | /* end confdefs.h. */ | |
31634 | ||
31635 | #include <stdio.h> | |
31636 | #include <stdarg.h> | |
31637 | using namespace std; | |
31638 | ||
31639 | int | |
31640 | main () | |
31641 | { | |
31642 | ||
31643 | char *buf; | |
31644 | va_list ap; | |
31645 | vsnprintf(buf, 10u, "%s", ap); | |
31646 | ||
31647 | ; | |
31648 | return 0; | |
31649 | } | |
31650 | _ACEOF | |
31651 | rm -f conftest.$ac_objext | |
31652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31653 | (eval $ac_compile) 2>conftest.er1 | |
31654 | ac_status=$? | |
31655 | grep -v '^ *+' conftest.er1 >conftest.err | |
31656 | rm -f conftest.er1 | |
31657 | cat conftest.err >&5 | |
31658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31659 | (exit $ac_status); } && | |
ddd14b14 RR |
31660 | { ac_try='test -z "$ac_cxx_werror_flag" |
31661 | || test ! -s conftest.err' | |
c122b164 DE |
31662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31663 | (eval $ac_try) 2>&5 | |
31664 | ac_status=$? | |
31665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31666 | (exit $ac_status); }; } && | |
31667 | { ac_try='test -s conftest.$ac_objext' | |
31668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31669 | (eval $ac_try) 2>&5 | |
31670 | ac_status=$? | |
31671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31672 | (exit $ac_status); }; }; then | |
31673 | wx_cv_func_vsnprintf_decl=yes | |
31674 | else | |
31675 | echo "$as_me: failed program was:" >&5 | |
31676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31677 | ||
a848cd7e SC |
31678 | wx_cv_func_vsnprintf_decl=no |
31679 | ||
31680 | fi | |
ac1cb8d3 | 31681 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31682 | |
31683 | ||
c122b164 DE |
31684 | fi |
31685 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31686 | ||
31687 | ||
a848cd7e SC |
31688 | fi |
31689 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
31690 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
31691 | ||
31692 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
31693 | cat >>confdefs.h <<\_ACEOF | |
31694 | #define HAVE_VSNPRINTF_DECL 1 | |
31695 | _ACEOF | |
31696 | ||
31697 | fi | |
31698 | fi | |
31699 | ||
31700 | if test "$wxUSE_UNICODE" = yes; then | |
31701 | ||
31702 | ||
31703 | ||
fbe47c7b VS |
31704 | |
31705 | ||
31706 | ||
31707 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
31708 | do |
31709 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31710 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31711 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31712 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31714 | else | |
31715 | cat >conftest.$ac_ext <<_ACEOF | |
31716 | /* confdefs.h. */ | |
31717 | _ACEOF | |
31718 | cat confdefs.h >>conftest.$ac_ext | |
31719 | cat >>conftest.$ac_ext <<_ACEOF | |
31720 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31721 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31722 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31723 | #define $ac_func innocuous_$ac_func | |
31724 | ||
a848cd7e SC |
31725 | /* System header to define __stub macros and hopefully few prototypes, |
31726 | which can conflict with char $ac_func (); below. | |
31727 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31728 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31729 | |
a848cd7e SC |
31730 | #ifdef __STDC__ |
31731 | # include <limits.h> | |
31732 | #else | |
31733 | # include <assert.h> | |
31734 | #endif | |
ac1cb8d3 VS |
31735 | |
31736 | #undef $ac_func | |
31737 | ||
a848cd7e SC |
31738 | /* Override any gcc2 internal prototype to avoid an error. */ |
31739 | #ifdef __cplusplus | |
31740 | extern "C" | |
31741 | { | |
31742 | #endif | |
31743 | /* We use char because int might match the return type of a gcc2 | |
31744 | builtin and then its argument prototype would still apply. */ | |
31745 | char $ac_func (); | |
31746 | /* The GNU C library defines this for functions which it implements | |
31747 | to always fail with ENOSYS. Some functions are actually named | |
31748 | something starting with __ and the normal name is an alias. */ | |
31749 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31750 | choke me | |
31751 | #else | |
31752 | char (*f) () = $ac_func; | |
31753 | #endif | |
31754 | #ifdef __cplusplus | |
31755 | } | |
31756 | #endif | |
31757 | ||
31758 | int | |
31759 | main () | |
31760 | { | |
31761 | return f != $ac_func; | |
31762 | ; | |
31763 | return 0; | |
31764 | } | |
31765 | _ACEOF | |
31766 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31767 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31768 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31769 | ac_status=$? |
ac1cb8d3 VS |
31770 | grep -v '^ *+' conftest.er1 >conftest.err |
31771 | rm -f conftest.er1 | |
31772 | cat conftest.err >&5 | |
a848cd7e SC |
31773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31774 | (exit $ac_status); } && | |
ddd14b14 RR |
31775 | { ac_try='test -z "$ac_cxx_werror_flag" |
31776 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31778 | (eval $ac_try) 2>&5 | |
31779 | ac_status=$? | |
31780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31781 | (exit $ac_status); }; } && | |
31782 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31784 | (eval $ac_try) 2>&5 | |
31785 | ac_status=$? | |
31786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31787 | (exit $ac_status); }; }; then | |
31788 | eval "$as_ac_var=yes" | |
31789 | else | |
31790 | echo "$as_me: failed program was:" >&5 | |
31791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31792 | ||
31793 | eval "$as_ac_var=no" | |
31794 | fi | |
ac1cb8d3 VS |
31795 | rm -f conftest.err conftest.$ac_objext \ |
31796 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31797 | fi |
31798 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31799 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31800 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31801 | cat >>confdefs.h <<_ACEOF | |
31802 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31803 | _ACEOF | |
31804 | ||
31805 | fi | |
31806 | done | |
31807 | ||
31808 | ||
31809 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
31810 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
31811 | cat >conftest.$ac_ext <<_ACEOF | |
31812 | /* confdefs.h. */ | |
31813 | _ACEOF | |
31814 | cat confdefs.h >>conftest.$ac_ext | |
31815 | cat >>conftest.$ac_ext <<_ACEOF | |
31816 | /* end confdefs.h. */ | |
31817 | #include <wchar.h> | |
31818 | int | |
31819 | main () | |
31820 | { | |
31821 | &_vsnwprintf; | |
31822 | ; | |
31823 | return 0; | |
31824 | } | |
31825 | _ACEOF | |
31826 | rm -f conftest.$ac_objext | |
31827 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31828 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31829 | ac_status=$? |
ac1cb8d3 VS |
31830 | grep -v '^ *+' conftest.er1 >conftest.err |
31831 | rm -f conftest.er1 | |
31832 | cat conftest.err >&5 | |
a848cd7e SC |
31833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31834 | (exit $ac_status); } && | |
ddd14b14 RR |
31835 | { ac_try='test -z "$ac_cxx_werror_flag" |
31836 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31838 | (eval $ac_try) 2>&5 | |
31839 | ac_status=$? | |
31840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31841 | (exit $ac_status); }; } && | |
31842 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31844 | (eval $ac_try) 2>&5 | |
31845 | ac_status=$? | |
31846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31847 | (exit $ac_status); }; }; then | |
31848 | echo "$as_me:$LINENO: result: yes" >&5 | |
31849 | echo "${ECHO_T}yes" >&6 | |
31850 | cat >>confdefs.h <<\_ACEOF | |
31851 | #define HAVE__VSNWPRINTF 1 | |
31852 | _ACEOF | |
31853 | ||
31854 | else | |
31855 | echo "$as_me: failed program was:" >&5 | |
31856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31857 | ||
31858 | echo "$as_me:$LINENO: result: no" >&5 | |
31859 | echo "${ECHO_T}no" >&6 | |
31860 | fi | |
ac1cb8d3 | 31861 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
31862 | fi |
31863 | ||
31864 | ac_ext=c | |
31865 | ac_cpp='$CPP $CPPFLAGS' | |
31866 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31867 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31868 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31869 | ||
31870 | ||
31871 | ||
31872 | ||
31873 | if test "$TOOLKIT" != "MSW"; then | |
31874 | ||
31875 | ||
31876 | ||
31877 | ||
31878 | ac_ext=cc | |
31879 | ac_cpp='$CXXCPP $CPPFLAGS' | |
31880 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31881 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31882 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31883 | ||
31884 | ||
31885 | ||
31886 | ||
31887 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
31888 | if test "${with_libiconv_prefix+set}" = set; then | |
31889 | withval="$with_libiconv_prefix" | |
31890 | ||
31891 | for dir in `echo "$withval" | tr : ' '`; do | |
31892 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
31893 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
31894 | done | |
31895 | ||
31896 | fi; | |
31897 | ||
31898 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
31899 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
31900 | if test "${am_cv_func_iconv+set}" = set; then | |
31901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31902 | else | |
31903 | ||
31904 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
31905 | am_cv_lib_iconv=no | |
31906 | cat >conftest.$ac_ext <<_ACEOF | |
31907 | /* confdefs.h. */ | |
31908 | _ACEOF | |
31909 | cat confdefs.h >>conftest.$ac_ext | |
31910 | cat >>conftest.$ac_ext <<_ACEOF | |
31911 | /* end confdefs.h. */ | |
31912 | #include <stdlib.h> | |
31913 | #include <iconv.h> | |
31914 | int | |
31915 | main () | |
31916 | { | |
31917 | iconv_t cd = iconv_open("",""); | |
31918 | iconv(cd,NULL,NULL,NULL,NULL); | |
31919 | iconv_close(cd); | |
31920 | ; | |
31921 | return 0; | |
31922 | } | |
31923 | _ACEOF | |
31924 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31925 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31926 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31927 | ac_status=$? |
ac1cb8d3 VS |
31928 | grep -v '^ *+' conftest.er1 >conftest.err |
31929 | rm -f conftest.er1 | |
31930 | cat conftest.err >&5 | |
a848cd7e SC |
31931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31932 | (exit $ac_status); } && | |
ddd14b14 RR |
31933 | { ac_try='test -z "$ac_cxx_werror_flag" |
31934 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31936 | (eval $ac_try) 2>&5 | |
31937 | ac_status=$? | |
31938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31939 | (exit $ac_status); }; } && | |
31940 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31942 | (eval $ac_try) 2>&5 | |
31943 | ac_status=$? | |
31944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31945 | (exit $ac_status); }; }; then | |
31946 | am_cv_func_iconv=yes | |
31947 | else | |
31948 | echo "$as_me: failed program was:" >&5 | |
31949 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31950 | ||
31951 | fi | |
ac1cb8d3 VS |
31952 | rm -f conftest.err conftest.$ac_objext \ |
31953 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31954 | if test "$am_cv_func_iconv" != yes; then |
31955 | am_save_LIBS="$LIBS" | |
31956 | LIBS="$LIBS -liconv" | |
31957 | cat >conftest.$ac_ext <<_ACEOF | |
31958 | /* confdefs.h. */ | |
31959 | _ACEOF | |
31960 | cat confdefs.h >>conftest.$ac_ext | |
31961 | cat >>conftest.$ac_ext <<_ACEOF | |
31962 | /* end confdefs.h. */ | |
31963 | #include <stdlib.h> | |
31964 | #include <iconv.h> | |
31965 | int | |
31966 | main () | |
31967 | { | |
31968 | iconv_t cd = iconv_open("",""); | |
31969 | iconv(cd,NULL,NULL,NULL,NULL); | |
31970 | iconv_close(cd); | |
31971 | ; | |
31972 | return 0; | |
31973 | } | |
31974 | _ACEOF | |
31975 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31976 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31977 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31978 | ac_status=$? |
ac1cb8d3 VS |
31979 | grep -v '^ *+' conftest.er1 >conftest.err |
31980 | rm -f conftest.er1 | |
31981 | cat conftest.err >&5 | |
a848cd7e SC |
31982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31983 | (exit $ac_status); } && | |
ddd14b14 RR |
31984 | { ac_try='test -z "$ac_cxx_werror_flag" |
31985 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31987 | (eval $ac_try) 2>&5 | |
31988 | ac_status=$? | |
31989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31990 | (exit $ac_status); }; } && | |
31991 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31993 | (eval $ac_try) 2>&5 | |
31994 | ac_status=$? | |
31995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31996 | (exit $ac_status); }; }; then | |
31997 | am_cv_lib_iconv=yes | |
31998 | am_cv_func_iconv=yes | |
31999 | else | |
32000 | echo "$as_me: failed program was:" >&5 | |
32001 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32002 | ||
32003 | fi | |
ac1cb8d3 VS |
32004 | rm -f conftest.err conftest.$ac_objext \ |
32005 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32006 | LIBS="$am_save_LIBS" |
32007 | fi | |
32008 | ||
32009 | fi | |
32010 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
32011 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
32012 | if test "$am_cv_func_iconv" = yes; then | |
32013 | ||
32014 | cat >>confdefs.h <<\_ACEOF | |
32015 | #define HAVE_ICONV 1 | |
32016 | _ACEOF | |
32017 | ||
32018 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
32019 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
32020 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
32021 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32022 | else | |
32023 | cat >conftest.$ac_ext <<_ACEOF | |
32024 | /* confdefs.h. */ | |
32025 | _ACEOF | |
32026 | cat confdefs.h >>conftest.$ac_ext | |
32027 | cat >>conftest.$ac_ext <<_ACEOF | |
32028 | /* end confdefs.h. */ | |
32029 | ||
32030 | #include <stdlib.h> | |
32031 | #include <iconv.h> | |
32032 | extern | |
32033 | #ifdef __cplusplus | |
32034 | "C" | |
32035 | #endif | |
32036 | #if defined(__STDC__) || defined(__cplusplus) | |
32037 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
32038 | #else | |
32039 | size_t iconv(); | |
32040 | #endif | |
32041 | ||
32042 | int | |
32043 | main () | |
32044 | { | |
32045 | ||
32046 | ; | |
32047 | return 0; | |
32048 | } | |
32049 | _ACEOF | |
32050 | rm -f conftest.$ac_objext | |
32051 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32052 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32053 | ac_status=$? |
ac1cb8d3 VS |
32054 | grep -v '^ *+' conftest.er1 >conftest.err |
32055 | rm -f conftest.er1 | |
32056 | cat conftest.err >&5 | |
a848cd7e SC |
32057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32058 | (exit $ac_status); } && | |
ddd14b14 RR |
32059 | { ac_try='test -z "$ac_cxx_werror_flag" |
32060 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32062 | (eval $ac_try) 2>&5 | |
32063 | ac_status=$? | |
32064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32065 | (exit $ac_status); }; } && | |
32066 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32068 | (eval $ac_try) 2>&5 | |
32069 | ac_status=$? | |
32070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32071 | (exit $ac_status); }; }; then | |
32072 | wx_cv_func_iconv_const="no" | |
32073 | else | |
32074 | echo "$as_me: failed program was:" >&5 | |
32075 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32076 | ||
32077 | wx_cv_func_iconv_const="yes" | |
32078 | ||
32079 | fi | |
ac1cb8d3 | 32080 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32081 | |
32082 | fi | |
32083 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
32084 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
32085 | ||
32086 | iconv_const= | |
32087 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
32088 | iconv_const="const" | |
32089 | fi | |
32090 | ||
32091 | ||
32092 | cat >>confdefs.h <<_ACEOF | |
32093 | #define ICONV_CONST $iconv_const | |
32094 | _ACEOF | |
32095 | ||
32096 | fi | |
32097 | LIBICONV= | |
32098 | if test "$am_cv_lib_iconv" = yes; then | |
32099 | LIBICONV="-liconv" | |
32100 | fi | |
32101 | ||
32102 | ||
32103 | LIBS="$LIBICONV $LIBS" | |
32104 | ac_ext=c | |
32105 | ac_cpp='$CPP $CPPFLAGS' | |
32106 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32107 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32108 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32109 | ||
32110 | ||
32111 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
32112 | ||
32113 | for ac_func in sigaction | |
32114 | do | |
32115 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32116 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32117 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32118 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32120 | else | |
32121 | cat >conftest.$ac_ext <<_ACEOF | |
32122 | /* confdefs.h. */ | |
32123 | _ACEOF | |
32124 | cat confdefs.h >>conftest.$ac_ext | |
32125 | cat >>conftest.$ac_ext <<_ACEOF | |
32126 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32127 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32128 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32129 | #define $ac_func innocuous_$ac_func | |
32130 | ||
a848cd7e SC |
32131 | /* System header to define __stub macros and hopefully few prototypes, |
32132 | which can conflict with char $ac_func (); below. | |
32133 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32134 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32135 | |
a848cd7e SC |
32136 | #ifdef __STDC__ |
32137 | # include <limits.h> | |
32138 | #else | |
32139 | # include <assert.h> | |
32140 | #endif | |
ac1cb8d3 VS |
32141 | |
32142 | #undef $ac_func | |
32143 | ||
a848cd7e SC |
32144 | /* Override any gcc2 internal prototype to avoid an error. */ |
32145 | #ifdef __cplusplus | |
32146 | extern "C" | |
32147 | { | |
32148 | #endif | |
32149 | /* We use char because int might match the return type of a gcc2 | |
32150 | builtin and then its argument prototype would still apply. */ | |
32151 | char $ac_func (); | |
32152 | /* The GNU C library defines this for functions which it implements | |
32153 | to always fail with ENOSYS. Some functions are actually named | |
32154 | something starting with __ and the normal name is an alias. */ | |
32155 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32156 | choke me | |
32157 | #else | |
32158 | char (*f) () = $ac_func; | |
32159 | #endif | |
32160 | #ifdef __cplusplus | |
32161 | } | |
32162 | #endif | |
32163 | ||
32164 | int | |
32165 | main () | |
32166 | { | |
32167 | return f != $ac_func; | |
32168 | ; | |
32169 | return 0; | |
32170 | } | |
32171 | _ACEOF | |
32172 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32173 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32174 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32175 | ac_status=$? |
ac1cb8d3 VS |
32176 | grep -v '^ *+' conftest.er1 >conftest.err |
32177 | rm -f conftest.er1 | |
32178 | cat conftest.err >&5 | |
a848cd7e SC |
32179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32180 | (exit $ac_status); } && | |
ddd14b14 RR |
32181 | { ac_try='test -z "$ac_c_werror_flag" |
32182 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32184 | (eval $ac_try) 2>&5 | |
32185 | ac_status=$? | |
32186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32187 | (exit $ac_status); }; } && | |
32188 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32190 | (eval $ac_try) 2>&5 | |
32191 | ac_status=$? | |
32192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32193 | (exit $ac_status); }; }; then | |
32194 | eval "$as_ac_var=yes" | |
32195 | else | |
32196 | echo "$as_me: failed program was:" >&5 | |
32197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32198 | ||
32199 | eval "$as_ac_var=no" | |
32200 | fi | |
ac1cb8d3 VS |
32201 | rm -f conftest.err conftest.$ac_objext \ |
32202 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32203 | fi |
32204 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32205 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32206 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32207 | cat >>confdefs.h <<_ACEOF | |
32208 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32209 | _ACEOF | |
32210 | ||
32211 | fi | |
32212 | done | |
32213 | ||
32214 | ||
32215 | if test "$ac_cv_func_sigaction" = "no"; then | |
32216 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
32217 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
32218 | wxUSE_ON_FATAL_EXCEPTION=no | |
32219 | fi | |
32220 | ||
32221 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
32222 | ||
32223 | ||
32224 | ac_ext=cc | |
32225 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32226 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32227 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32228 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32229 | ||
32230 | ||
32231 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
32232 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
32233 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
32234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32235 | else | |
32236 | ||
32237 | cat >conftest.$ac_ext <<_ACEOF | |
32238 | /* confdefs.h. */ | |
32239 | _ACEOF | |
32240 | cat confdefs.h >>conftest.$ac_ext | |
32241 | cat >>conftest.$ac_ext <<_ACEOF | |
32242 | /* end confdefs.h. */ | |
32243 | #include <signal.h> | |
32244 | int | |
32245 | main () | |
32246 | { | |
32247 | ||
32248 | extern void testSigHandler(int); | |
32249 | ||
32250 | struct sigaction sa; | |
32251 | sa.sa_handler = testSigHandler; | |
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); } && | |
ddd14b14 RR |
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 | ||
32280 | wx_cv_type_sa_handler=int | |
32281 | ||
32282 | else | |
32283 | echo "$as_me: failed program was:" >&5 | |
32284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32285 | ||
32286 | ||
32287 | wx_cv_type_sa_handler=void | |
32288 | ||
32289 | fi | |
ac1cb8d3 | 32290 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32291 | |
32292 | fi | |
32293 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
32294 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
32295 | ||
32296 | ac_ext=c | |
32297 | ac_cpp='$CPP $CPPFLAGS' | |
32298 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32299 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32300 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32301 | ||
32302 | ||
32303 | cat >>confdefs.h <<_ACEOF | |
32304 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
32305 | _ACEOF | |
32306 | ||
32307 | fi | |
32308 | fi | |
32309 | ||
eaff0f0d VZ |
32310 | if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
32311 | ||
32312 | ||
32313 | ac_ext=cc | |
32314 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32315 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32316 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32317 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32318 | ||
32319 | ||
32320 | echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5 | |
32321 | echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6 | |
32322 | if test "${wx_cv_func_backtrace+set}" = set; then | |
32323 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32324 | else | |
32325 | ||
32326 | cat >conftest.$ac_ext <<_ACEOF | |
32327 | /* confdefs.h. */ | |
32328 | _ACEOF | |
32329 | cat confdefs.h >>conftest.$ac_ext | |
32330 | cat >>conftest.$ac_ext <<_ACEOF | |
32331 | /* end confdefs.h. */ | |
32332 | #include <execinfo.h> | |
32333 | int | |
32334 | main () | |
32335 | { | |
32336 | ||
32337 | void *trace[1]; | |
32338 | char **messages; | |
32339 | ||
32340 | backtrace(trace, 1); | |
32341 | messages = backtrace_symbols(trace, 1); | |
32342 | ||
32343 | ; | |
32344 | return 0; | |
32345 | } | |
32346 | _ACEOF | |
32347 | rm -f conftest.$ac_objext | |
32348 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32349 | (eval $ac_compile) 2>conftest.er1 | |
32350 | ac_status=$? | |
32351 | grep -v '^ *+' conftest.er1 >conftest.err | |
32352 | rm -f conftest.er1 | |
32353 | cat conftest.err >&5 | |
32354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32355 | (exit $ac_status); } && | |
ddd14b14 RR |
32356 | { ac_try='test -z "$ac_cxx_werror_flag" |
32357 | || test ! -s conftest.err' | |
eaff0f0d VZ |
32358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32359 | (eval $ac_try) 2>&5 | |
32360 | ac_status=$? | |
32361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32362 | (exit $ac_status); }; } && | |
32363 | { ac_try='test -s conftest.$ac_objext' | |
32364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32365 | (eval $ac_try) 2>&5 | |
32366 | ac_status=$? | |
32367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32368 | (exit $ac_status); }; }; then | |
32369 | wx_cv_func_backtrace=yes | |
32370 | else | |
32371 | echo "$as_me: failed program was:" >&5 | |
32372 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32373 | ||
32374 | wx_cv_func_backtrace=no | |
32375 | ||
32376 | fi | |
32377 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32378 | ||
32379 | ||
32380 | fi | |
32381 | echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5 | |
32382 | echo "${ECHO_T}$wx_cv_func_backtrace" >&6 | |
32383 | ||
32384 | ||
32385 | if test "$wx_cv_func_backtrace" = "no"; then | |
32386 | { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5 | |
32387 | echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;} | |
32388 | wxUSE_STACKWALKER=no | |
32389 | else | |
32390 | echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5 | |
32391 | echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6 | |
32392 | if test "${wx_cv_func_cxa_demangle+set}" = set; then | |
32393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32394 | else | |
32395 | ||
32396 | cat >conftest.$ac_ext <<_ACEOF | |
32397 | /* confdefs.h. */ | |
32398 | _ACEOF | |
32399 | cat confdefs.h >>conftest.$ac_ext | |
32400 | cat >>conftest.$ac_ext <<_ACEOF | |
32401 | /* end confdefs.h. */ | |
32402 | #include <cxxabi.h> | |
32403 | int | |
32404 | main () | |
32405 | { | |
32406 | ||
32407 | int rc; | |
32408 | __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc); | |
32409 | ||
32410 | ; | |
32411 | return 0; | |
32412 | } | |
32413 | _ACEOF | |
dfe0c803 JS |
32414 | rm -f conftest.$ac_objext conftest$ac_exeext |
32415 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32416 | (eval $ac_link) 2>conftest.er1 | |
eaff0f0d VZ |
32417 | ac_status=$? |
32418 | grep -v '^ *+' conftest.er1 >conftest.err | |
32419 | rm -f conftest.er1 | |
32420 | cat conftest.err >&5 | |
32421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32422 | (exit $ac_status); } && | |
ddd14b14 RR |
32423 | { ac_try='test -z "$ac_cxx_werror_flag" |
32424 | || test ! -s conftest.err' | |
eaff0f0d VZ |
32425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32426 | (eval $ac_try) 2>&5 | |
32427 | ac_status=$? | |
32428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32429 | (exit $ac_status); }; } && | |
dfe0c803 | 32430 | { ac_try='test -s conftest$ac_exeext' |
eaff0f0d VZ |
32431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32432 | (eval $ac_try) 2>&5 | |
32433 | ac_status=$? | |
32434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32435 | (exit $ac_status); }; }; then | |
32436 | wx_cv_func_cxa_demangle=yes | |
32437 | else | |
32438 | echo "$as_me: failed program was:" >&5 | |
32439 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32440 | ||
32441 | wx_cv_func_cxa_demangle=no | |
32442 | ||
32443 | fi | |
dfe0c803 JS |
32444 | rm -f conftest.err conftest.$ac_objext \ |
32445 | conftest$ac_exeext conftest.$ac_ext | |
eaff0f0d VZ |
32446 | |
32447 | ||
32448 | fi | |
32449 | echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5 | |
32450 | echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6 | |
32451 | ||
32452 | if test "$wx_cv_func_cxa_demangle" = "yes"; then | |
32453 | cat >>confdefs.h <<\_ACEOF | |
32454 | #define HAVE_CXA_DEMANGLE 1 | |
32455 | _ACEOF | |
32456 | ||
32457 | fi | |
32458 | fi | |
32459 | ||
32460 | ac_ext=c | |
32461 | ac_cpp='$CPP $CPPFLAGS' | |
32462 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32463 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32464 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32465 | ||
32466 | fi | |
32467 | ||
898beab1 DE |
32468 | if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then |
32469 | { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5 | |
32470 | echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;} | |
32471 | wxUSE_STACKWALKER=no | |
32472 | fi | |
32473 | ||
32474 | ||
a848cd7e SC |
32475 | |
32476 | ||
32477 | for ac_func in mkstemp mktemp | |
32478 | do | |
32479 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32480 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32481 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32482 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32484 | else | |
32485 | cat >conftest.$ac_ext <<_ACEOF | |
32486 | /* confdefs.h. */ | |
32487 | _ACEOF | |
32488 | cat confdefs.h >>conftest.$ac_ext | |
32489 | cat >>conftest.$ac_ext <<_ACEOF | |
32490 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32491 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32492 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32493 | #define $ac_func innocuous_$ac_func | |
32494 | ||
a848cd7e SC |
32495 | /* System header to define __stub macros and hopefully few prototypes, |
32496 | which can conflict with char $ac_func (); below. | |
32497 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32498 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32499 | |
a848cd7e SC |
32500 | #ifdef __STDC__ |
32501 | # include <limits.h> | |
32502 | #else | |
32503 | # include <assert.h> | |
32504 | #endif | |
ac1cb8d3 VS |
32505 | |
32506 | #undef $ac_func | |
32507 | ||
a848cd7e SC |
32508 | /* Override any gcc2 internal prototype to avoid an error. */ |
32509 | #ifdef __cplusplus | |
32510 | extern "C" | |
32511 | { | |
32512 | #endif | |
32513 | /* We use char because int might match the return type of a gcc2 | |
32514 | builtin and then its argument prototype would still apply. */ | |
32515 | char $ac_func (); | |
32516 | /* The GNU C library defines this for functions which it implements | |
32517 | to always fail with ENOSYS. Some functions are actually named | |
32518 | something starting with __ and the normal name is an alias. */ | |
32519 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32520 | choke me | |
32521 | #else | |
32522 | char (*f) () = $ac_func; | |
32523 | #endif | |
32524 | #ifdef __cplusplus | |
32525 | } | |
32526 | #endif | |
32527 | ||
32528 | int | |
32529 | main () | |
32530 | { | |
32531 | return f != $ac_func; | |
32532 | ; | |
32533 | return 0; | |
32534 | } | |
32535 | _ACEOF | |
32536 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32537 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32538 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32539 | ac_status=$? |
ac1cb8d3 VS |
32540 | grep -v '^ *+' conftest.er1 >conftest.err |
32541 | rm -f conftest.er1 | |
32542 | cat conftest.err >&5 | |
a848cd7e SC |
32543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32544 | (exit $ac_status); } && | |
ddd14b14 RR |
32545 | { ac_try='test -z "$ac_c_werror_flag" |
32546 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32548 | (eval $ac_try) 2>&5 | |
32549 | ac_status=$? | |
32550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32551 | (exit $ac_status); }; } && | |
32552 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32554 | (eval $ac_try) 2>&5 | |
32555 | ac_status=$? | |
32556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32557 | (exit $ac_status); }; }; then | |
32558 | eval "$as_ac_var=yes" | |
32559 | else | |
32560 | echo "$as_me: failed program was:" >&5 | |
32561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32562 | ||
32563 | eval "$as_ac_var=no" | |
32564 | fi | |
ac1cb8d3 VS |
32565 | rm -f conftest.err conftest.$ac_objext \ |
32566 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32567 | fi |
32568 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32569 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32570 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32571 | cat >>confdefs.h <<_ACEOF | |
32572 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32573 | _ACEOF | |
32574 | break | |
32575 | fi | |
32576 | done | |
32577 | ||
32578 | ||
32579 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
32580 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
32581 | if test "${wx_cv_func_statfs+set}" = set; then | |
32582 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32583 | else | |
32584 | cat >conftest.$ac_ext <<_ACEOF | |
32585 | /* confdefs.h. */ | |
32586 | _ACEOF | |
32587 | cat confdefs.h >>conftest.$ac_ext | |
32588 | cat >>conftest.$ac_ext <<_ACEOF | |
32589 | /* end confdefs.h. */ | |
32590 | ||
32591 | #if defined(__BSD__) | |
32592 | #include <sys/param.h> | |
32593 | #include <sys/mount.h> | |
32594 | #else | |
32595 | #include <sys/vfs.h> | |
32596 | #endif | |
32597 | ||
32598 | int | |
32599 | main () | |
32600 | { | |
32601 | ||
32602 | long l; | |
32603 | struct statfs fs; | |
32604 | statfs("/", &fs); | |
32605 | l = fs.f_bsize; | |
32606 | l += fs.f_blocks; | |
32607 | l += fs.f_bavail; | |
32608 | ||
32609 | ; | |
32610 | return 0; | |
32611 | } | |
32612 | _ACEOF | |
32613 | rm -f conftest.$ac_objext | |
32614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32615 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32616 | ac_status=$? |
ac1cb8d3 VS |
32617 | grep -v '^ *+' conftest.er1 >conftest.err |
32618 | rm -f conftest.er1 | |
32619 | cat conftest.err >&5 | |
a848cd7e SC |
32620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32621 | (exit $ac_status); } && | |
ddd14b14 RR |
32622 | { ac_try='test -z "$ac_c_werror_flag" |
32623 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32625 | (eval $ac_try) 2>&5 | |
32626 | ac_status=$? | |
32627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32628 | (exit $ac_status); }; } && | |
32629 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32631 | (eval $ac_try) 2>&5 | |
32632 | ac_status=$? | |
32633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32634 | (exit $ac_status); }; }; then | |
32635 | ||
32636 | wx_cv_func_statfs=yes | |
32637 | ||
32638 | else | |
32639 | echo "$as_me: failed program was:" >&5 | |
32640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32641 | ||
32642 | ||
32643 | wx_cv_func_statfs=no | |
32644 | ||
32645 | ||
32646 | fi | |
ac1cb8d3 | 32647 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32648 | |
32649 | fi | |
32650 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
32651 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
32652 | ||
32653 | if test "$wx_cv_func_statfs" = "yes"; then | |
32654 | wx_cv_type_statvfs_t="struct statfs" | |
32655 | cat >>confdefs.h <<\_ACEOF | |
32656 | #define HAVE_STATFS 1 | |
32657 | _ACEOF | |
32658 | ||
32659 | else | |
32660 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
32661 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
32662 | if test "${wx_cv_func_statvfs+set}" = set; then | |
32663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32664 | else | |
32665 | cat >conftest.$ac_ext <<_ACEOF | |
32666 | /* confdefs.h. */ | |
32667 | _ACEOF | |
32668 | cat confdefs.h >>conftest.$ac_ext | |
32669 | cat >>conftest.$ac_ext <<_ACEOF | |
32670 | /* end confdefs.h. */ | |
32671 | ||
32672 | #include <stddef.h> | |
32673 | #include <sys/statvfs.h> | |
32674 | ||
32675 | int | |
32676 | main () | |
32677 | { | |
32678 | ||
32679 | statvfs("/", NULL); | |
32680 | ||
32681 | ; | |
32682 | return 0; | |
32683 | } | |
32684 | _ACEOF | |
32685 | rm -f conftest.$ac_objext | |
32686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32687 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32688 | ac_status=$? |
ac1cb8d3 VS |
32689 | grep -v '^ *+' conftest.er1 >conftest.err |
32690 | rm -f conftest.er1 | |
32691 | cat conftest.err >&5 | |
a848cd7e SC |
32692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32693 | (exit $ac_status); } && | |
ddd14b14 RR |
32694 | { ac_try='test -z "$ac_c_werror_flag" |
32695 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32697 | (eval $ac_try) 2>&5 | |
32698 | ac_status=$? | |
32699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32700 | (exit $ac_status); }; } && | |
32701 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32703 | (eval $ac_try) 2>&5 | |
32704 | ac_status=$? | |
32705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32706 | (exit $ac_status); }; }; then | |
32707 | wx_cv_func_statvfs=yes | |
32708 | else | |
32709 | echo "$as_me: failed program was:" >&5 | |
32710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32711 | ||
32712 | wx_cv_func_statvfs=no | |
32713 | ||
32714 | fi | |
ac1cb8d3 | 32715 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32716 | |
32717 | fi | |
32718 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
32719 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
32720 | ||
32721 | if test "$wx_cv_func_statvfs" = "yes"; then | |
32722 | ||
32723 | ||
32724 | ac_ext=cc | |
32725 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32726 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32727 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32728 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32729 | ||
32730 | ||
32731 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
32732 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
32733 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
32734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32735 | else | |
32736 | cat >conftest.$ac_ext <<_ACEOF | |
32737 | /* confdefs.h. */ | |
32738 | _ACEOF | |
32739 | cat confdefs.h >>conftest.$ac_ext | |
32740 | cat >>conftest.$ac_ext <<_ACEOF | |
32741 | /* end confdefs.h. */ | |
32742 | ||
32743 | #include <sys/statvfs.h> | |
32744 | ||
32745 | int | |
32746 | main () | |
32747 | { | |
32748 | ||
32749 | long l; | |
32750 | statvfs_t fs; | |
32751 | statvfs("/", &fs); | |
32752 | l = fs.f_bsize; | |
32753 | l += fs.f_blocks; | |
32754 | l += fs.f_bavail; | |
32755 | ||
32756 | ; | |
32757 | return 0; | |
32758 | } | |
32759 | _ACEOF | |
32760 | rm -f conftest.$ac_objext | |
32761 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32762 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32763 | ac_status=$? |
ac1cb8d3 VS |
32764 | grep -v '^ *+' conftest.er1 >conftest.err |
32765 | rm -f conftest.er1 | |
32766 | cat conftest.err >&5 | |
a848cd7e SC |
32767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32768 | (exit $ac_status); } && | |
ddd14b14 RR |
32769 | { ac_try='test -z "$ac_cxx_werror_flag" |
32770 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32772 | (eval $ac_try) 2>&5 | |
32773 | ac_status=$? | |
32774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32775 | (exit $ac_status); }; } && | |
32776 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32778 | (eval $ac_try) 2>&5 | |
32779 | ac_status=$? | |
32780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32781 | (exit $ac_status); }; }; then | |
32782 | wx_cv_type_statvfs_t=statvfs_t | |
32783 | else | |
32784 | echo "$as_me: failed program was:" >&5 | |
32785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32786 | ||
32787 | ||
32788 | cat >conftest.$ac_ext <<_ACEOF | |
32789 | /* confdefs.h. */ | |
32790 | _ACEOF | |
32791 | cat confdefs.h >>conftest.$ac_ext | |
32792 | cat >>conftest.$ac_ext <<_ACEOF | |
32793 | /* end confdefs.h. */ | |
32794 | ||
32795 | #include <sys/statvfs.h> | |
32796 | ||
32797 | int | |
32798 | main () | |
32799 | { | |
32800 | ||
32801 | long l; | |
32802 | struct statvfs fs; | |
32803 | statvfs("/", &fs); | |
32804 | l = fs.f_bsize; | |
32805 | l += fs.f_blocks; | |
32806 | l += fs.f_bavail; | |
32807 | ||
32808 | ; | |
32809 | return 0; | |
32810 | } | |
32811 | _ACEOF | |
32812 | rm -f conftest.$ac_objext | |
32813 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32814 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32815 | ac_status=$? |
ac1cb8d3 VS |
32816 | grep -v '^ *+' conftest.er1 >conftest.err |
32817 | rm -f conftest.er1 | |
32818 | cat conftest.err >&5 | |
a848cd7e SC |
32819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32820 | (exit $ac_status); } && | |
ddd14b14 RR |
32821 | { ac_try='test -z "$ac_cxx_werror_flag" |
32822 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32824 | (eval $ac_try) 2>&5 | |
32825 | ac_status=$? | |
32826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32827 | (exit $ac_status); }; } && | |
32828 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32830 | (eval $ac_try) 2>&5 | |
32831 | ac_status=$? | |
32832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32833 | (exit $ac_status); }; }; then | |
32834 | wx_cv_type_statvfs_t="struct statvfs" | |
32835 | else | |
32836 | echo "$as_me: failed program was:" >&5 | |
32837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32838 | ||
32839 | wx_cv_type_statvfs_t="unknown" | |
32840 | ||
32841 | fi | |
ac1cb8d3 | 32842 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32843 | |
32844 | ||
32845 | fi | |
ac1cb8d3 | 32846 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32847 | |
32848 | fi | |
32849 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
32850 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
32851 | ||
32852 | ac_ext=c | |
32853 | ac_cpp='$CPP $CPPFLAGS' | |
32854 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32855 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32856 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32857 | ||
32858 | ||
32859 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
32860 | cat >>confdefs.h <<\_ACEOF | |
32861 | #define HAVE_STATVFS 1 | |
32862 | _ACEOF | |
32863 | ||
32864 | fi | |
32865 | else | |
32866 | wx_cv_type_statvfs_t="unknown" | |
32867 | fi | |
32868 | fi | |
32869 | ||
32870 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
32871 | cat >>confdefs.h <<_ACEOF | |
32872 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
32873 | _ACEOF | |
32874 | ||
32875 | else | |
32876 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
32877 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
32878 | fi | |
32879 | ||
32880 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
32881 | ||
32882 | ||
32883 | for ac_func in fcntl flock | |
32884 | do | |
32885 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32886 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32887 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32888 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32890 | else | |
32891 | cat >conftest.$ac_ext <<_ACEOF | |
32892 | /* confdefs.h. */ | |
32893 | _ACEOF | |
32894 | cat confdefs.h >>conftest.$ac_ext | |
32895 | cat >>conftest.$ac_ext <<_ACEOF | |
32896 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32897 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32898 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32899 | #define $ac_func innocuous_$ac_func | |
32900 | ||
a848cd7e SC |
32901 | /* System header to define __stub macros and hopefully few prototypes, |
32902 | which can conflict with char $ac_func (); below. | |
32903 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32904 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32905 | |
a848cd7e SC |
32906 | #ifdef __STDC__ |
32907 | # include <limits.h> | |
32908 | #else | |
32909 | # include <assert.h> | |
32910 | #endif | |
ac1cb8d3 VS |
32911 | |
32912 | #undef $ac_func | |
32913 | ||
a848cd7e SC |
32914 | /* Override any gcc2 internal prototype to avoid an error. */ |
32915 | #ifdef __cplusplus | |
32916 | extern "C" | |
32917 | { | |
32918 | #endif | |
32919 | /* We use char because int might match the return type of a gcc2 | |
32920 | builtin and then its argument prototype would still apply. */ | |
32921 | char $ac_func (); | |
32922 | /* The GNU C library defines this for functions which it implements | |
32923 | to always fail with ENOSYS. Some functions are actually named | |
32924 | something starting with __ and the normal name is an alias. */ | |
32925 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32926 | choke me | |
32927 | #else | |
32928 | char (*f) () = $ac_func; | |
32929 | #endif | |
32930 | #ifdef __cplusplus | |
32931 | } | |
32932 | #endif | |
32933 | ||
32934 | int | |
32935 | main () | |
32936 | { | |
32937 | return f != $ac_func; | |
32938 | ; | |
32939 | return 0; | |
32940 | } | |
32941 | _ACEOF | |
32942 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32943 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32944 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32945 | ac_status=$? |
ac1cb8d3 VS |
32946 | grep -v '^ *+' conftest.er1 >conftest.err |
32947 | rm -f conftest.er1 | |
32948 | cat conftest.err >&5 | |
a848cd7e SC |
32949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32950 | (exit $ac_status); } && | |
ddd14b14 RR |
32951 | { ac_try='test -z "$ac_c_werror_flag" |
32952 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32954 | (eval $ac_try) 2>&5 | |
32955 | ac_status=$? | |
32956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32957 | (exit $ac_status); }; } && | |
32958 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32960 | (eval $ac_try) 2>&5 | |
32961 | ac_status=$? | |
32962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32963 | (exit $ac_status); }; }; then | |
32964 | eval "$as_ac_var=yes" | |
32965 | else | |
32966 | echo "$as_me: failed program was:" >&5 | |
32967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32968 | ||
32969 | eval "$as_ac_var=no" | |
32970 | fi | |
ac1cb8d3 VS |
32971 | rm -f conftest.err conftest.$ac_objext \ |
32972 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32973 | fi |
32974 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32975 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32976 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32977 | cat >>confdefs.h <<_ACEOF | |
32978 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32979 | _ACEOF | |
32980 | break | |
32981 | fi | |
32982 | done | |
32983 | ||
32984 | ||
32985 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
32986 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
32987 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
32988 | wxUSE_SNGLINST_CHECKER=no | |
32989 | fi | |
32990 | fi | |
32991 | ||
32992 | ||
32993 | for ac_func in timegm | |
32994 | do | |
32995 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32996 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32997 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32998 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33000 | else | |
33001 | cat >conftest.$ac_ext <<_ACEOF | |
33002 | /* confdefs.h. */ | |
33003 | _ACEOF | |
33004 | cat confdefs.h >>conftest.$ac_ext | |
33005 | cat >>conftest.$ac_ext <<_ACEOF | |
33006 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33007 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33008 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33009 | #define $ac_func innocuous_$ac_func | |
33010 | ||
a848cd7e SC |
33011 | /* System header to define __stub macros and hopefully few prototypes, |
33012 | which can conflict with char $ac_func (); below. | |
33013 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33014 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33015 | |
a848cd7e SC |
33016 | #ifdef __STDC__ |
33017 | # include <limits.h> | |
33018 | #else | |
33019 | # include <assert.h> | |
33020 | #endif | |
ac1cb8d3 VS |
33021 | |
33022 | #undef $ac_func | |
33023 | ||
a848cd7e SC |
33024 | /* Override any gcc2 internal prototype to avoid an error. */ |
33025 | #ifdef __cplusplus | |
33026 | extern "C" | |
33027 | { | |
33028 | #endif | |
33029 | /* We use char because int might match the return type of a gcc2 | |
33030 | builtin and then its argument prototype would still apply. */ | |
33031 | char $ac_func (); | |
33032 | /* The GNU C library defines this for functions which it implements | |
33033 | to always fail with ENOSYS. Some functions are actually named | |
33034 | something starting with __ and the normal name is an alias. */ | |
33035 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33036 | choke me | |
33037 | #else | |
33038 | char (*f) () = $ac_func; | |
33039 | #endif | |
33040 | #ifdef __cplusplus | |
33041 | } | |
33042 | #endif | |
33043 | ||
33044 | int | |
33045 | main () | |
33046 | { | |
33047 | return f != $ac_func; | |
33048 | ; | |
33049 | return 0; | |
33050 | } | |
33051 | _ACEOF | |
33052 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33053 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33054 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33055 | ac_status=$? |
ac1cb8d3 VS |
33056 | grep -v '^ *+' conftest.er1 >conftest.err |
33057 | rm -f conftest.er1 | |
33058 | cat conftest.err >&5 | |
a848cd7e SC |
33059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33060 | (exit $ac_status); } && | |
ddd14b14 RR |
33061 | { ac_try='test -z "$ac_c_werror_flag" |
33062 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33064 | (eval $ac_try) 2>&5 | |
33065 | ac_status=$? | |
33066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33067 | (exit $ac_status); }; } && | |
33068 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33070 | (eval $ac_try) 2>&5 | |
33071 | ac_status=$? | |
33072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33073 | (exit $ac_status); }; }; then | |
33074 | eval "$as_ac_var=yes" | |
33075 | else | |
33076 | echo "$as_me: failed program was:" >&5 | |
33077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33078 | ||
33079 | eval "$as_ac_var=no" | |
33080 | fi | |
ac1cb8d3 VS |
33081 | rm -f conftest.err conftest.$ac_objext \ |
33082 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33083 | fi |
33084 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33085 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33086 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33087 | cat >>confdefs.h <<_ACEOF | |
33088 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33089 | _ACEOF | |
33090 | ||
33091 | fi | |
33092 | done | |
33093 | ||
33094 | ||
33095 | ||
33096 | ||
33097 | for ac_func in putenv setenv | |
33098 | do | |
33099 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33100 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33101 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33102 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33104 | else | |
33105 | cat >conftest.$ac_ext <<_ACEOF | |
33106 | /* confdefs.h. */ | |
33107 | _ACEOF | |
33108 | cat confdefs.h >>conftest.$ac_ext | |
33109 | cat >>conftest.$ac_ext <<_ACEOF | |
33110 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33111 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33112 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33113 | #define $ac_func innocuous_$ac_func | |
33114 | ||
a848cd7e SC |
33115 | /* System header to define __stub macros and hopefully few prototypes, |
33116 | which can conflict with char $ac_func (); below. | |
33117 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33118 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33119 | |
a848cd7e SC |
33120 | #ifdef __STDC__ |
33121 | # include <limits.h> | |
33122 | #else | |
33123 | # include <assert.h> | |
33124 | #endif | |
ac1cb8d3 VS |
33125 | |
33126 | #undef $ac_func | |
33127 | ||
a848cd7e SC |
33128 | /* Override any gcc2 internal prototype to avoid an error. */ |
33129 | #ifdef __cplusplus | |
33130 | extern "C" | |
33131 | { | |
33132 | #endif | |
33133 | /* We use char because int might match the return type of a gcc2 | |
33134 | builtin and then its argument prototype would still apply. */ | |
33135 | char $ac_func (); | |
33136 | /* The GNU C library defines this for functions which it implements | |
33137 | to always fail with ENOSYS. Some functions are actually named | |
33138 | something starting with __ and the normal name is an alias. */ | |
33139 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33140 | choke me | |
33141 | #else | |
33142 | char (*f) () = $ac_func; | |
33143 | #endif | |
33144 | #ifdef __cplusplus | |
33145 | } | |
33146 | #endif | |
33147 | ||
33148 | int | |
33149 | main () | |
33150 | { | |
33151 | return f != $ac_func; | |
33152 | ; | |
33153 | return 0; | |
33154 | } | |
33155 | _ACEOF | |
33156 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33157 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33158 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33159 | ac_status=$? |
ac1cb8d3 VS |
33160 | grep -v '^ *+' conftest.er1 >conftest.err |
33161 | rm -f conftest.er1 | |
33162 | cat conftest.err >&5 | |
a848cd7e SC |
33163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33164 | (exit $ac_status); } && | |
ddd14b14 RR |
33165 | { ac_try='test -z "$ac_c_werror_flag" |
33166 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33168 | (eval $ac_try) 2>&5 | |
33169 | ac_status=$? | |
33170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33171 | (exit $ac_status); }; } && | |
33172 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33174 | (eval $ac_try) 2>&5 | |
33175 | ac_status=$? | |
33176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33177 | (exit $ac_status); }; }; then | |
33178 | eval "$as_ac_var=yes" | |
33179 | else | |
33180 | echo "$as_me: failed program was:" >&5 | |
33181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33182 | ||
33183 | eval "$as_ac_var=no" | |
33184 | fi | |
ac1cb8d3 VS |
33185 | rm -f conftest.err conftest.$ac_objext \ |
33186 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33187 | fi |
33188 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33189 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33190 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33191 | cat >>confdefs.h <<_ACEOF | |
33192 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33193 | _ACEOF | |
33194 | break | |
33195 | fi | |
33196 | done | |
33197 | ||
33198 | ||
33199 | HAVE_SOME_SLEEP_FUNC=0 | |
33200 | if test "$USE_BEOS" = 1; then | |
33201 | cat >>confdefs.h <<\_ACEOF | |
33202 | #define HAVE_SLEEP 1 | |
33203 | _ACEOF | |
33204 | ||
33205 | HAVE_SOME_SLEEP_FUNC=1 | |
33206 | fi | |
33207 | ||
33208 | if test "$USE_DARWIN" = 1; then | |
33209 | cat >>confdefs.h <<\_ACEOF | |
33210 | #define HAVE_USLEEP 1 | |
33211 | _ACEOF | |
33212 | ||
33213 | HAVE_SOME_SLEEP_FUNC=1 | |
33214 | fi | |
33215 | ||
33216 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
33217 | POSIX4_LINK= | |
33218 | ||
33219 | for ac_func in nanosleep | |
33220 | do | |
33221 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33222 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33223 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33224 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33225 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33226 | else | |
33227 | cat >conftest.$ac_ext <<_ACEOF | |
33228 | /* confdefs.h. */ | |
33229 | _ACEOF | |
33230 | cat confdefs.h >>conftest.$ac_ext | |
33231 | cat >>conftest.$ac_ext <<_ACEOF | |
33232 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33233 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33234 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33235 | #define $ac_func innocuous_$ac_func | |
33236 | ||
a848cd7e SC |
33237 | /* System header to define __stub macros and hopefully few prototypes, |
33238 | which can conflict with char $ac_func (); below. | |
33239 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33240 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33241 | |
a848cd7e SC |
33242 | #ifdef __STDC__ |
33243 | # include <limits.h> | |
33244 | #else | |
33245 | # include <assert.h> | |
33246 | #endif | |
ac1cb8d3 VS |
33247 | |
33248 | #undef $ac_func | |
33249 | ||
a848cd7e SC |
33250 | /* Override any gcc2 internal prototype to avoid an error. */ |
33251 | #ifdef __cplusplus | |
33252 | extern "C" | |
33253 | { | |
33254 | #endif | |
33255 | /* We use char because int might match the return type of a gcc2 | |
33256 | builtin and then its argument prototype would still apply. */ | |
33257 | char $ac_func (); | |
33258 | /* The GNU C library defines this for functions which it implements | |
33259 | to always fail with ENOSYS. Some functions are actually named | |
33260 | something starting with __ and the normal name is an alias. */ | |
33261 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33262 | choke me | |
33263 | #else | |
33264 | char (*f) () = $ac_func; | |
33265 | #endif | |
33266 | #ifdef __cplusplus | |
33267 | } | |
33268 | #endif | |
33269 | ||
33270 | int | |
33271 | main () | |
33272 | { | |
33273 | return f != $ac_func; | |
33274 | ; | |
33275 | return 0; | |
33276 | } | |
33277 | _ACEOF | |
33278 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33279 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33280 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33281 | ac_status=$? |
ac1cb8d3 VS |
33282 | grep -v '^ *+' conftest.er1 >conftest.err |
33283 | rm -f conftest.er1 | |
33284 | cat conftest.err >&5 | |
a848cd7e SC |
33285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33286 | (exit $ac_status); } && | |
ddd14b14 RR |
33287 | { ac_try='test -z "$ac_c_werror_flag" |
33288 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33290 | (eval $ac_try) 2>&5 | |
33291 | ac_status=$? | |
33292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33293 | (exit $ac_status); }; } && | |
33294 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33296 | (eval $ac_try) 2>&5 | |
33297 | ac_status=$? | |
33298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33299 | (exit $ac_status); }; }; then | |
33300 | eval "$as_ac_var=yes" | |
33301 | else | |
33302 | echo "$as_me: failed program was:" >&5 | |
33303 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33304 | ||
33305 | eval "$as_ac_var=no" | |
33306 | fi | |
ac1cb8d3 VS |
33307 | rm -f conftest.err conftest.$ac_objext \ |
33308 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33309 | fi |
33310 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33311 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33312 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33313 | cat >>confdefs.h <<_ACEOF | |
33314 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33315 | _ACEOF | |
33316 | cat >>confdefs.h <<\_ACEOF | |
33317 | #define HAVE_NANOSLEEP 1 | |
33318 | _ACEOF | |
33319 | ||
33320 | else | |
33321 | ||
33322 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
33323 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
33324 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
33325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33326 | else | |
33327 | ac_check_lib_save_LIBS=$LIBS | |
33328 | LIBS="-lposix4 $LIBS" | |
33329 | cat >conftest.$ac_ext <<_ACEOF | |
33330 | /* confdefs.h. */ | |
33331 | _ACEOF | |
33332 | cat confdefs.h >>conftest.$ac_ext | |
33333 | cat >>conftest.$ac_ext <<_ACEOF | |
33334 | /* end confdefs.h. */ | |
33335 | ||
33336 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33337 | #ifdef __cplusplus | |
33338 | extern "C" | |
33339 | #endif | |
33340 | /* We use char because int might match the return type of a gcc2 | |
33341 | builtin and then its argument prototype would still apply. */ | |
33342 | char nanosleep (); | |
33343 | int | |
33344 | main () | |
33345 | { | |
33346 | nanosleep (); | |
33347 | ; | |
33348 | return 0; | |
33349 | } | |
33350 | _ACEOF | |
33351 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33352 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33353 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33354 | ac_status=$? |
ac1cb8d3 VS |
33355 | grep -v '^ *+' conftest.er1 >conftest.err |
33356 | rm -f conftest.er1 | |
33357 | cat conftest.err >&5 | |
a848cd7e SC |
33358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33359 | (exit $ac_status); } && | |
ddd14b14 RR |
33360 | { ac_try='test -z "$ac_c_werror_flag" |
33361 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33363 | (eval $ac_try) 2>&5 | |
33364 | ac_status=$? | |
33365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33366 | (exit $ac_status); }; } && | |
33367 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33369 | (eval $ac_try) 2>&5 | |
33370 | ac_status=$? | |
33371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33372 | (exit $ac_status); }; }; then | |
33373 | ac_cv_lib_posix4_nanosleep=yes | |
33374 | else | |
33375 | echo "$as_me: failed program was:" >&5 | |
33376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33377 | ||
33378 | ac_cv_lib_posix4_nanosleep=no | |
33379 | fi | |
ac1cb8d3 VS |
33380 | rm -f conftest.err conftest.$ac_objext \ |
33381 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33382 | LIBS=$ac_check_lib_save_LIBS |
33383 | fi | |
33384 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
33385 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
33386 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
33387 | ||
33388 | cat >>confdefs.h <<\_ACEOF | |
33389 | #define HAVE_NANOSLEEP 1 | |
33390 | _ACEOF | |
33391 | ||
33392 | POSIX4_LINK=" -lposix4" | |
33393 | ||
33394 | else | |
33395 | ||
33396 | ||
33397 | for ac_func in usleep | |
33398 | do | |
33399 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33400 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33401 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33402 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33404 | else | |
33405 | cat >conftest.$ac_ext <<_ACEOF | |
33406 | /* confdefs.h. */ | |
33407 | _ACEOF | |
33408 | cat confdefs.h >>conftest.$ac_ext | |
33409 | cat >>conftest.$ac_ext <<_ACEOF | |
33410 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33411 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33412 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33413 | #define $ac_func innocuous_$ac_func | |
33414 | ||
a848cd7e SC |
33415 | /* System header to define __stub macros and hopefully few prototypes, |
33416 | which can conflict with char $ac_func (); below. | |
33417 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33418 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33419 | |
a848cd7e SC |
33420 | #ifdef __STDC__ |
33421 | # include <limits.h> | |
33422 | #else | |
33423 | # include <assert.h> | |
33424 | #endif | |
ac1cb8d3 VS |
33425 | |
33426 | #undef $ac_func | |
33427 | ||
a848cd7e SC |
33428 | /* Override any gcc2 internal prototype to avoid an error. */ |
33429 | #ifdef __cplusplus | |
33430 | extern "C" | |
33431 | { | |
33432 | #endif | |
33433 | /* We use char because int might match the return type of a gcc2 | |
33434 | builtin and then its argument prototype would still apply. */ | |
33435 | char $ac_func (); | |
33436 | /* The GNU C library defines this for functions which it implements | |
33437 | to always fail with ENOSYS. Some functions are actually named | |
33438 | something starting with __ and the normal name is an alias. */ | |
33439 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33440 | choke me | |
33441 | #else | |
33442 | char (*f) () = $ac_func; | |
33443 | #endif | |
33444 | #ifdef __cplusplus | |
33445 | } | |
33446 | #endif | |
33447 | ||
33448 | int | |
33449 | main () | |
33450 | { | |
33451 | return f != $ac_func; | |
33452 | ; | |
33453 | return 0; | |
33454 | } | |
33455 | _ACEOF | |
33456 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33457 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33458 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33459 | ac_status=$? |
ac1cb8d3 VS |
33460 | grep -v '^ *+' conftest.er1 >conftest.err |
33461 | rm -f conftest.er1 | |
33462 | cat conftest.err >&5 | |
a848cd7e SC |
33463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33464 | (exit $ac_status); } && | |
ddd14b14 RR |
33465 | { ac_try='test -z "$ac_c_werror_flag" |
33466 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33468 | (eval $ac_try) 2>&5 | |
33469 | ac_status=$? | |
33470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33471 | (exit $ac_status); }; } && | |
33472 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33474 | (eval $ac_try) 2>&5 | |
33475 | ac_status=$? | |
33476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33477 | (exit $ac_status); }; }; then | |
33478 | eval "$as_ac_var=yes" | |
33479 | else | |
33480 | echo "$as_me: failed program was:" >&5 | |
33481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33482 | ||
33483 | eval "$as_ac_var=no" | |
33484 | fi | |
ac1cb8d3 VS |
33485 | rm -f conftest.err conftest.$ac_objext \ |
33486 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33487 | fi |
33488 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33489 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33490 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33491 | cat >>confdefs.h <<_ACEOF | |
33492 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33493 | _ACEOF | |
33494 | cat >>confdefs.h <<\_ACEOF | |
33495 | #define HAVE_USLEEP 1 | |
33496 | _ACEOF | |
33497 | ||
33498 | else | |
33499 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
33500 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
33501 | ||
33502 | fi | |
33503 | done | |
33504 | ||
33505 | ||
33506 | ||
33507 | fi | |
33508 | ||
33509 | ||
33510 | ||
33511 | fi | |
33512 | done | |
33513 | ||
33514 | fi | |
33515 | ||
33516 | ||
33517 | ||
33518 | for ac_func in uname gethostname | |
33519 | do | |
33520 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33521 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33522 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33523 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33525 | else | |
33526 | cat >conftest.$ac_ext <<_ACEOF | |
33527 | /* confdefs.h. */ | |
33528 | _ACEOF | |
33529 | cat confdefs.h >>conftest.$ac_ext | |
33530 | cat >>conftest.$ac_ext <<_ACEOF | |
33531 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33532 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33533 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33534 | #define $ac_func innocuous_$ac_func | |
33535 | ||
a848cd7e SC |
33536 | /* System header to define __stub macros and hopefully few prototypes, |
33537 | which can conflict with char $ac_func (); below. | |
33538 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33539 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33540 | |
a848cd7e SC |
33541 | #ifdef __STDC__ |
33542 | # include <limits.h> | |
33543 | #else | |
33544 | # include <assert.h> | |
33545 | #endif | |
ac1cb8d3 VS |
33546 | |
33547 | #undef $ac_func | |
33548 | ||
a848cd7e SC |
33549 | /* Override any gcc2 internal prototype to avoid an error. */ |
33550 | #ifdef __cplusplus | |
33551 | extern "C" | |
33552 | { | |
33553 | #endif | |
33554 | /* We use char because int might match the return type of a gcc2 | |
33555 | builtin and then its argument prototype would still apply. */ | |
33556 | char $ac_func (); | |
33557 | /* The GNU C library defines this for functions which it implements | |
33558 | to always fail with ENOSYS. Some functions are actually named | |
33559 | something starting with __ and the normal name is an alias. */ | |
33560 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33561 | choke me | |
33562 | #else | |
33563 | char (*f) () = $ac_func; | |
33564 | #endif | |
33565 | #ifdef __cplusplus | |
33566 | } | |
33567 | #endif | |
33568 | ||
33569 | int | |
33570 | main () | |
33571 | { | |
33572 | return f != $ac_func; | |
33573 | ; | |
33574 | return 0; | |
33575 | } | |
33576 | _ACEOF | |
33577 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33578 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33579 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33580 | ac_status=$? |
ac1cb8d3 VS |
33581 | grep -v '^ *+' conftest.er1 >conftest.err |
33582 | rm -f conftest.er1 | |
33583 | cat conftest.err >&5 | |
a848cd7e SC |
33584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33585 | (exit $ac_status); } && | |
ddd14b14 RR |
33586 | { ac_try='test -z "$ac_c_werror_flag" |
33587 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33589 | (eval $ac_try) 2>&5 | |
33590 | ac_status=$? | |
33591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33592 | (exit $ac_status); }; } && | |
33593 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33595 | (eval $ac_try) 2>&5 | |
33596 | ac_status=$? | |
33597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33598 | (exit $ac_status); }; }; then | |
33599 | eval "$as_ac_var=yes" | |
33600 | else | |
33601 | echo "$as_me: failed program was:" >&5 | |
33602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33603 | ||
33604 | eval "$as_ac_var=no" | |
33605 | fi | |
ac1cb8d3 VS |
33606 | rm -f conftest.err conftest.$ac_objext \ |
33607 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33608 | fi |
33609 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33610 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33611 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33612 | cat >>confdefs.h <<_ACEOF | |
33613 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33614 | _ACEOF | |
33615 | break | |
33616 | fi | |
33617 | done | |
33618 | ||
33619 | ||
33620 | ||
33621 | ||
33622 | ac_ext=cc | |
33623 | ac_cpp='$CXXCPP $CPPFLAGS' | |
33624 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33625 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33626 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
33627 | ||
33628 | ||
33629 | ||
33630 | for ac_func in strtok_r | |
33631 | do | |
33632 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33633 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33634 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33635 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33637 | else | |
33638 | cat >conftest.$ac_ext <<_ACEOF | |
33639 | /* confdefs.h. */ | |
33640 | _ACEOF | |
33641 | cat confdefs.h >>conftest.$ac_ext | |
33642 | cat >>conftest.$ac_ext <<_ACEOF | |
33643 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33644 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33645 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33646 | #define $ac_func innocuous_$ac_func | |
33647 | ||
a848cd7e SC |
33648 | /* System header to define __stub macros and hopefully few prototypes, |
33649 | which can conflict with char $ac_func (); below. | |
33650 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33651 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33652 | |
a848cd7e SC |
33653 | #ifdef __STDC__ |
33654 | # include <limits.h> | |
33655 | #else | |
33656 | # include <assert.h> | |
33657 | #endif | |
ac1cb8d3 VS |
33658 | |
33659 | #undef $ac_func | |
33660 | ||
a848cd7e SC |
33661 | /* Override any gcc2 internal prototype to avoid an error. */ |
33662 | #ifdef __cplusplus | |
33663 | extern "C" | |
33664 | { | |
33665 | #endif | |
33666 | /* We use char because int might match the return type of a gcc2 | |
33667 | builtin and then its argument prototype would still apply. */ | |
33668 | char $ac_func (); | |
33669 | /* The GNU C library defines this for functions which it implements | |
33670 | to always fail with ENOSYS. Some functions are actually named | |
33671 | something starting with __ and the normal name is an alias. */ | |
33672 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33673 | choke me | |
33674 | #else | |
33675 | char (*f) () = $ac_func; | |
33676 | #endif | |
33677 | #ifdef __cplusplus | |
33678 | } | |
33679 | #endif | |
33680 | ||
33681 | int | |
33682 | main () | |
33683 | { | |
33684 | return f != $ac_func; | |
33685 | ; | |
33686 | return 0; | |
33687 | } | |
33688 | _ACEOF | |
33689 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33690 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33691 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33692 | ac_status=$? |
ac1cb8d3 VS |
33693 | grep -v '^ *+' conftest.er1 >conftest.err |
33694 | rm -f conftest.er1 | |
33695 | cat conftest.err >&5 | |
a848cd7e SC |
33696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33697 | (exit $ac_status); } && | |
ddd14b14 RR |
33698 | { ac_try='test -z "$ac_cxx_werror_flag" |
33699 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33701 | (eval $ac_try) 2>&5 | |
33702 | ac_status=$? | |
33703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33704 | (exit $ac_status); }; } && | |
33705 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33707 | (eval $ac_try) 2>&5 | |
33708 | ac_status=$? | |
33709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33710 | (exit $ac_status); }; }; then | |
33711 | eval "$as_ac_var=yes" | |
33712 | else | |
33713 | echo "$as_me: failed program was:" >&5 | |
33714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33715 | ||
33716 | eval "$as_ac_var=no" | |
33717 | fi | |
ac1cb8d3 VS |
33718 | rm -f conftest.err conftest.$ac_objext \ |
33719 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33720 | fi |
33721 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33722 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33723 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33724 | cat >>confdefs.h <<_ACEOF | |
33725 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33726 | _ACEOF | |
33727 | ||
33728 | fi | |
33729 | done | |
33730 | ||
33731 | ||
33732 | ac_ext=c | |
33733 | ac_cpp='$CPP $CPPFLAGS' | |
33734 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33735 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33736 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
33737 | ||
33738 | ||
33739 | INET_LINK= | |
33740 | ||
33741 | for ac_func in inet_addr | |
33742 | do | |
33743 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33744 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33745 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33746 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33748 | else | |
33749 | cat >conftest.$ac_ext <<_ACEOF | |
33750 | /* confdefs.h. */ | |
33751 | _ACEOF | |
33752 | cat confdefs.h >>conftest.$ac_ext | |
33753 | cat >>conftest.$ac_ext <<_ACEOF | |
33754 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33755 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33756 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33757 | #define $ac_func innocuous_$ac_func | |
33758 | ||
a848cd7e SC |
33759 | /* System header to define __stub macros and hopefully few prototypes, |
33760 | which can conflict with char $ac_func (); below. | |
33761 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33762 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33763 | |
a848cd7e SC |
33764 | #ifdef __STDC__ |
33765 | # include <limits.h> | |
33766 | #else | |
33767 | # include <assert.h> | |
33768 | #endif | |
ac1cb8d3 VS |
33769 | |
33770 | #undef $ac_func | |
33771 | ||
a848cd7e SC |
33772 | /* Override any gcc2 internal prototype to avoid an error. */ |
33773 | #ifdef __cplusplus | |
33774 | extern "C" | |
33775 | { | |
33776 | #endif | |
33777 | /* We use char because int might match the return type of a gcc2 | |
33778 | builtin and then its argument prototype would still apply. */ | |
33779 | char $ac_func (); | |
33780 | /* The GNU C library defines this for functions which it implements | |
33781 | to always fail with ENOSYS. Some functions are actually named | |
33782 | something starting with __ and the normal name is an alias. */ | |
33783 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33784 | choke me | |
33785 | #else | |
33786 | char (*f) () = $ac_func; | |
33787 | #endif | |
33788 | #ifdef __cplusplus | |
33789 | } | |
33790 | #endif | |
33791 | ||
33792 | int | |
33793 | main () | |
33794 | { | |
33795 | return f != $ac_func; | |
33796 | ; | |
33797 | return 0; | |
33798 | } | |
33799 | _ACEOF | |
33800 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33802 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33803 | ac_status=$? |
ac1cb8d3 VS |
33804 | grep -v '^ *+' conftest.er1 >conftest.err |
33805 | rm -f conftest.er1 | |
33806 | cat conftest.err >&5 | |
a848cd7e SC |
33807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33808 | (exit $ac_status); } && | |
ddd14b14 RR |
33809 | { ac_try='test -z "$ac_c_werror_flag" |
33810 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33812 | (eval $ac_try) 2>&5 | |
33813 | ac_status=$? | |
33814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33815 | (exit $ac_status); }; } && | |
33816 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33818 | (eval $ac_try) 2>&5 | |
33819 | ac_status=$? | |
33820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33821 | (exit $ac_status); }; }; then | |
33822 | eval "$as_ac_var=yes" | |
33823 | else | |
33824 | echo "$as_me: failed program was:" >&5 | |
33825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33826 | ||
33827 | eval "$as_ac_var=no" | |
33828 | fi | |
ac1cb8d3 VS |
33829 | rm -f conftest.err conftest.$ac_objext \ |
33830 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33831 | fi |
33832 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33833 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33834 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33835 | cat >>confdefs.h <<_ACEOF | |
33836 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33837 | _ACEOF | |
33838 | cat >>confdefs.h <<\_ACEOF | |
33839 | #define HAVE_INET_ADDR 1 | |
33840 | _ACEOF | |
33841 | ||
33842 | else | |
33843 | ||
33844 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
33845 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
33846 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
33847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33848 | else | |
33849 | ac_check_lib_save_LIBS=$LIBS | |
33850 | LIBS="-lnsl $LIBS" | |
33851 | cat >conftest.$ac_ext <<_ACEOF | |
33852 | /* confdefs.h. */ | |
33853 | _ACEOF | |
33854 | cat confdefs.h >>conftest.$ac_ext | |
33855 | cat >>conftest.$ac_ext <<_ACEOF | |
33856 | /* end confdefs.h. */ | |
33857 | ||
33858 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33859 | #ifdef __cplusplus | |
33860 | extern "C" | |
33861 | #endif | |
33862 | /* We use char because int might match the return type of a gcc2 | |
33863 | builtin and then its argument prototype would still apply. */ | |
33864 | char inet_addr (); | |
33865 | int | |
33866 | main () | |
33867 | { | |
33868 | inet_addr (); | |
33869 | ; | |
33870 | return 0; | |
33871 | } | |
33872 | _ACEOF | |
33873 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33874 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33875 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33876 | ac_status=$? |
ac1cb8d3 VS |
33877 | grep -v '^ *+' conftest.er1 >conftest.err |
33878 | rm -f conftest.er1 | |
33879 | cat conftest.err >&5 | |
a848cd7e SC |
33880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33881 | (exit $ac_status); } && | |
ddd14b14 RR |
33882 | { ac_try='test -z "$ac_c_werror_flag" |
33883 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33885 | (eval $ac_try) 2>&5 | |
33886 | ac_status=$? | |
33887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33888 | (exit $ac_status); }; } && | |
33889 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33891 | (eval $ac_try) 2>&5 | |
33892 | ac_status=$? | |
33893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33894 | (exit $ac_status); }; }; then | |
33895 | ac_cv_lib_nsl_inet_addr=yes | |
33896 | else | |
33897 | echo "$as_me: failed program was:" >&5 | |
33898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33899 | ||
33900 | ac_cv_lib_nsl_inet_addr=no | |
33901 | fi | |
ac1cb8d3 VS |
33902 | rm -f conftest.err conftest.$ac_objext \ |
33903 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33904 | LIBS=$ac_check_lib_save_LIBS |
33905 | fi | |
33906 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
33907 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
33908 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
33909 | INET_LINK="nsl" | |
33910 | else | |
33911 | ||
33912 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
33913 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
33914 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
33915 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33916 | else | |
33917 | ac_check_lib_save_LIBS=$LIBS | |
33918 | LIBS="-lresolv $LIBS" | |
33919 | cat >conftest.$ac_ext <<_ACEOF | |
33920 | /* confdefs.h. */ | |
33921 | _ACEOF | |
33922 | cat confdefs.h >>conftest.$ac_ext | |
33923 | cat >>conftest.$ac_ext <<_ACEOF | |
33924 | /* end confdefs.h. */ | |
33925 | ||
33926 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33927 | #ifdef __cplusplus | |
33928 | extern "C" | |
33929 | #endif | |
33930 | /* We use char because int might match the return type of a gcc2 | |
33931 | builtin and then its argument prototype would still apply. */ | |
33932 | char inet_addr (); | |
33933 | int | |
33934 | main () | |
33935 | { | |
33936 | inet_addr (); | |
33937 | ; | |
33938 | return 0; | |
33939 | } | |
33940 | _ACEOF | |
33941 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33942 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33943 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33944 | ac_status=$? |
ac1cb8d3 VS |
33945 | grep -v '^ *+' conftest.er1 >conftest.err |
33946 | rm -f conftest.er1 | |
33947 | cat conftest.err >&5 | |
a848cd7e SC |
33948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33949 | (exit $ac_status); } && | |
ddd14b14 RR |
33950 | { ac_try='test -z "$ac_c_werror_flag" |
33951 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33953 | (eval $ac_try) 2>&5 | |
33954 | ac_status=$? | |
33955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33956 | (exit $ac_status); }; } && | |
33957 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33959 | (eval $ac_try) 2>&5 | |
33960 | ac_status=$? | |
33961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33962 | (exit $ac_status); }; }; then | |
33963 | ac_cv_lib_resolv_inet_addr=yes | |
33964 | else | |
33965 | echo "$as_me: failed program was:" >&5 | |
33966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33967 | ||
33968 | ac_cv_lib_resolv_inet_addr=no | |
33969 | fi | |
ac1cb8d3 VS |
33970 | rm -f conftest.err conftest.$ac_objext \ |
33971 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33972 | LIBS=$ac_check_lib_save_LIBS |
33973 | fi | |
33974 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
33975 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
33976 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
33977 | INET_LINK="resolv" | |
33978 | else | |
33979 | ||
33980 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
33981 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
33982 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
33983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33984 | else | |
33985 | ac_check_lib_save_LIBS=$LIBS | |
33986 | LIBS="-lsocket $LIBS" | |
33987 | cat >conftest.$ac_ext <<_ACEOF | |
33988 | /* confdefs.h. */ | |
33989 | _ACEOF | |
33990 | cat confdefs.h >>conftest.$ac_ext | |
33991 | cat >>conftest.$ac_ext <<_ACEOF | |
33992 | /* end confdefs.h. */ | |
33993 | ||
33994 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33995 | #ifdef __cplusplus | |
33996 | extern "C" | |
33997 | #endif | |
33998 | /* We use char because int might match the return type of a gcc2 | |
33999 | builtin and then its argument prototype would still apply. */ | |
34000 | char inet_addr (); | |
34001 | int | |
34002 | main () | |
34003 | { | |
34004 | inet_addr (); | |
34005 | ; | |
34006 | return 0; | |
34007 | } | |
34008 | _ACEOF | |
34009 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34010 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34011 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34012 | ac_status=$? |
ac1cb8d3 VS |
34013 | grep -v '^ *+' conftest.er1 >conftest.err |
34014 | rm -f conftest.er1 | |
34015 | cat conftest.err >&5 | |
a848cd7e SC |
34016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34017 | (exit $ac_status); } && | |
ddd14b14 RR |
34018 | { ac_try='test -z "$ac_c_werror_flag" |
34019 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34021 | (eval $ac_try) 2>&5 | |
34022 | ac_status=$? | |
34023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34024 | (exit $ac_status); }; } && | |
34025 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34027 | (eval $ac_try) 2>&5 | |
34028 | ac_status=$? | |
34029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34030 | (exit $ac_status); }; }; then | |
34031 | ac_cv_lib_socket_inet_addr=yes | |
34032 | else | |
34033 | echo "$as_me: failed program was:" >&5 | |
34034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34035 | ||
34036 | ac_cv_lib_socket_inet_addr=no | |
34037 | fi | |
ac1cb8d3 VS |
34038 | rm -f conftest.err conftest.$ac_objext \ |
34039 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34040 | LIBS=$ac_check_lib_save_LIBS |
34041 | fi | |
34042 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
34043 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
34044 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
34045 | INET_LINK="socket" | |
34046 | ||
34047 | fi | |
34048 | ||
34049 | ||
34050 | ||
34051 | fi | |
34052 | ||
34053 | ||
34054 | ||
34055 | fi | |
34056 | ||
34057 | ||
34058 | ||
34059 | fi | |
34060 | done | |
34061 | ||
34062 | ||
34063 | ||
34064 | for ac_func in inet_aton | |
34065 | do | |
34066 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34067 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34068 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34069 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34071 | else | |
34072 | cat >conftest.$ac_ext <<_ACEOF | |
34073 | /* confdefs.h. */ | |
34074 | _ACEOF | |
34075 | cat confdefs.h >>conftest.$ac_ext | |
34076 | cat >>conftest.$ac_ext <<_ACEOF | |
34077 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34078 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34079 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34080 | #define $ac_func innocuous_$ac_func | |
34081 | ||
a848cd7e SC |
34082 | /* System header to define __stub macros and hopefully few prototypes, |
34083 | which can conflict with char $ac_func (); below. | |
34084 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34085 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34086 | |
a848cd7e SC |
34087 | #ifdef __STDC__ |
34088 | # include <limits.h> | |
34089 | #else | |
34090 | # include <assert.h> | |
34091 | #endif | |
ac1cb8d3 VS |
34092 | |
34093 | #undef $ac_func | |
34094 | ||
a848cd7e SC |
34095 | /* Override any gcc2 internal prototype to avoid an error. */ |
34096 | #ifdef __cplusplus | |
34097 | extern "C" | |
34098 | { | |
34099 | #endif | |
34100 | /* We use char because int might match the return type of a gcc2 | |
34101 | builtin and then its argument prototype would still apply. */ | |
34102 | char $ac_func (); | |
34103 | /* The GNU C library defines this for functions which it implements | |
34104 | to always fail with ENOSYS. Some functions are actually named | |
34105 | something starting with __ and the normal name is an alias. */ | |
34106 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34107 | choke me | |
34108 | #else | |
34109 | char (*f) () = $ac_func; | |
34110 | #endif | |
34111 | #ifdef __cplusplus | |
34112 | } | |
34113 | #endif | |
34114 | ||
34115 | int | |
34116 | main () | |
34117 | { | |
34118 | return f != $ac_func; | |
34119 | ; | |
34120 | return 0; | |
34121 | } | |
34122 | _ACEOF | |
34123 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34124 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34125 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34126 | ac_status=$? |
ac1cb8d3 VS |
34127 | grep -v '^ *+' conftest.er1 >conftest.err |
34128 | rm -f conftest.er1 | |
34129 | cat conftest.err >&5 | |
a848cd7e SC |
34130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34131 | (exit $ac_status); } && | |
ddd14b14 RR |
34132 | { ac_try='test -z "$ac_c_werror_flag" |
34133 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34135 | (eval $ac_try) 2>&5 | |
34136 | ac_status=$? | |
34137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34138 | (exit $ac_status); }; } && | |
34139 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34141 | (eval $ac_try) 2>&5 | |
34142 | ac_status=$? | |
34143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34144 | (exit $ac_status); }; }; then | |
34145 | eval "$as_ac_var=yes" | |
34146 | else | |
34147 | echo "$as_me: failed program was:" >&5 | |
34148 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34149 | ||
34150 | eval "$as_ac_var=no" | |
34151 | fi | |
ac1cb8d3 VS |
34152 | rm -f conftest.err conftest.$ac_objext \ |
34153 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34154 | fi |
34155 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34156 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34157 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34158 | cat >>confdefs.h <<_ACEOF | |
34159 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34160 | _ACEOF | |
34161 | cat >>confdefs.h <<\_ACEOF | |
34162 | #define HAVE_INET_ATON 1 | |
34163 | _ACEOF | |
34164 | ||
34165 | else | |
34166 | ||
34167 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
34168 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
34169 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
34170 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
34171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34172 | else | |
34173 | ac_check_lib_save_LIBS=$LIBS | |
34174 | LIBS="-l$INET_LINK $LIBS" | |
34175 | cat >conftest.$ac_ext <<_ACEOF | |
34176 | /* confdefs.h. */ | |
34177 | _ACEOF | |
34178 | cat confdefs.h >>conftest.$ac_ext | |
34179 | cat >>conftest.$ac_ext <<_ACEOF | |
34180 | /* end confdefs.h. */ | |
34181 | ||
34182 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34183 | #ifdef __cplusplus | |
34184 | extern "C" | |
34185 | #endif | |
34186 | /* We use char because int might match the return type of a gcc2 | |
34187 | builtin and then its argument prototype would still apply. */ | |
34188 | char inet_aton (); | |
34189 | int | |
34190 | main () | |
34191 | { | |
34192 | inet_aton (); | |
34193 | ; | |
34194 | return 0; | |
34195 | } | |
34196 | _ACEOF | |
34197 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34198 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34199 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34200 | ac_status=$? |
ac1cb8d3 VS |
34201 | grep -v '^ *+' conftest.er1 >conftest.err |
34202 | rm -f conftest.er1 | |
34203 | cat conftest.err >&5 | |
a848cd7e SC |
34204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34205 | (exit $ac_status); } && | |
ddd14b14 RR |
34206 | { ac_try='test -z "$ac_c_werror_flag" |
34207 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34209 | (eval $ac_try) 2>&5 | |
34210 | ac_status=$? | |
34211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34212 | (exit $ac_status); }; } && | |
34213 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34215 | (eval $ac_try) 2>&5 | |
34216 | ac_status=$? | |
34217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34218 | (exit $ac_status); }; }; then | |
34219 | eval "$as_ac_Lib=yes" | |
34220 | else | |
34221 | echo "$as_me: failed program was:" >&5 | |
34222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34223 | ||
34224 | eval "$as_ac_Lib=no" | |
34225 | fi | |
ac1cb8d3 VS |
34226 | rm -f conftest.err conftest.$ac_objext \ |
34227 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34228 | LIBS=$ac_check_lib_save_LIBS |
34229 | fi | |
34230 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
34231 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
34232 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
34233 | cat >>confdefs.h <<\_ACEOF | |
34234 | #define HAVE_INET_ATON 1 | |
34235 | _ACEOF | |
34236 | ||
34237 | fi | |
34238 | ||
34239 | ||
34240 | fi | |
34241 | done | |
34242 | ||
34243 | ||
34244 | if test "x$INET_LINK" != "x"; then | |
34245 | cat >>confdefs.h <<\_ACEOF | |
34246 | #define HAVE_INET_ADDR 1 | |
34247 | _ACEOF | |
34248 | ||
34249 | INET_LINK=" -l$INET_LINK" | |
34250 | fi | |
34251 | ||
34252 | fi | |
34253 | ||
34254 | ||
34255 | ||
34256 | EXTRALIBS_ESD= | |
34257 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
34258 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
34259 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
34260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34261 | else | |
34262 | ac_check_lib_save_LIBS=$LIBS | |
34263 | LIBS="-lesd $LIBS" | |
34264 | cat >conftest.$ac_ext <<_ACEOF | |
34265 | /* confdefs.h. */ | |
34266 | _ACEOF | |
34267 | cat confdefs.h >>conftest.$ac_ext | |
34268 | cat >>conftest.$ac_ext <<_ACEOF | |
34269 | /* end confdefs.h. */ | |
34270 | ||
34271 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34272 | #ifdef __cplusplus | |
34273 | extern "C" | |
34274 | #endif | |
34275 | /* We use char because int might match the return type of a gcc2 | |
34276 | builtin and then its argument prototype would still apply. */ | |
34277 | char esd_close (); | |
34278 | int | |
34279 | main () | |
34280 | { | |
34281 | esd_close (); | |
34282 | ; | |
34283 | return 0; | |
34284 | } | |
34285 | _ACEOF | |
34286 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34287 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34288 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34289 | ac_status=$? |
ac1cb8d3 VS |
34290 | grep -v '^ *+' conftest.er1 >conftest.err |
34291 | rm -f conftest.er1 | |
34292 | cat conftest.err >&5 | |
a848cd7e SC |
34293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34294 | (exit $ac_status); } && | |
ddd14b14 RR |
34295 | { ac_try='test -z "$ac_c_werror_flag" |
34296 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34298 | (eval $ac_try) 2>&5 | |
34299 | ac_status=$? | |
34300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34301 | (exit $ac_status); }; } && | |
34302 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34304 | (eval $ac_try) 2>&5 | |
34305 | ac_status=$? | |
34306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34307 | (exit $ac_status); }; }; then | |
34308 | ac_cv_lib_esd_esd_close=yes | |
34309 | else | |
34310 | echo "$as_me: failed program was:" >&5 | |
34311 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34312 | ||
34313 | ac_cv_lib_esd_esd_close=no | |
34314 | fi | |
ac1cb8d3 VS |
34315 | rm -f conftest.err conftest.$ac_objext \ |
34316 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34317 | LIBS=$ac_check_lib_save_LIBS |
34318 | fi | |
34319 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
34320 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
34321 | if test $ac_cv_lib_esd_esd_close = yes; then | |
34322 | ||
34323 | ||
34324 | for ac_header in esd.h | |
34325 | do | |
34326 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
34327 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34328 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34329 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34330 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34332 | fi | |
34333 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34334 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34335 | else | |
34336 | # Is the header compilable? | |
34337 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
34338 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
34339 | cat >conftest.$ac_ext <<_ACEOF | |
34340 | /* confdefs.h. */ | |
34341 | _ACEOF | |
34342 | cat confdefs.h >>conftest.$ac_ext | |
34343 | cat >>conftest.$ac_ext <<_ACEOF | |
34344 | /* end confdefs.h. */ | |
34345 | $ac_includes_default | |
34346 | #include <$ac_header> | |
34347 | _ACEOF | |
34348 | rm -f conftest.$ac_objext | |
34349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34350 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34351 | ac_status=$? |
ac1cb8d3 VS |
34352 | grep -v '^ *+' conftest.er1 >conftest.err |
34353 | rm -f conftest.er1 | |
34354 | cat conftest.err >&5 | |
a848cd7e SC |
34355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34356 | (exit $ac_status); } && | |
ddd14b14 RR |
34357 | { ac_try='test -z "$ac_c_werror_flag" |
34358 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34360 | (eval $ac_try) 2>&5 | |
34361 | ac_status=$? | |
34362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34363 | (exit $ac_status); }; } && | |
34364 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34366 | (eval $ac_try) 2>&5 | |
34367 | ac_status=$? | |
34368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34369 | (exit $ac_status); }; }; then | |
34370 | ac_header_compiler=yes | |
34371 | else | |
34372 | echo "$as_me: failed program was:" >&5 | |
34373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34374 | ||
34375 | ac_header_compiler=no | |
34376 | fi | |
ac1cb8d3 | 34377 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34378 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
34379 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
34380 | ||
34381 | # Is the header present? | |
34382 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
34383 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
34384 | cat >conftest.$ac_ext <<_ACEOF | |
34385 | /* confdefs.h. */ | |
34386 | _ACEOF | |
34387 | cat confdefs.h >>conftest.$ac_ext | |
34388 | cat >>conftest.$ac_ext <<_ACEOF | |
34389 | /* end confdefs.h. */ | |
34390 | #include <$ac_header> | |
34391 | _ACEOF | |
34392 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
34393 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
34394 | ac_status=$? | |
34395 | grep -v '^ *+' conftest.er1 >conftest.err | |
34396 | rm -f conftest.er1 | |
34397 | cat conftest.err >&5 | |
34398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34399 | (exit $ac_status); } >/dev/null; then | |
34400 | if test -s conftest.err; then | |
34401 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 34402 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
34403 | else |
34404 | ac_cpp_err= | |
34405 | fi | |
34406 | else | |
34407 | ac_cpp_err=yes | |
34408 | fi | |
34409 | if test -z "$ac_cpp_err"; then | |
34410 | ac_header_preproc=yes | |
34411 | else | |
34412 | echo "$as_me: failed program was:" >&5 | |
34413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34414 | ||
34415 | ac_header_preproc=no | |
34416 | fi | |
34417 | rm -f conftest.err conftest.$ac_ext | |
34418 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
34419 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
34420 | ||
34421 | # So? What about this header? | |
ac1cb8d3 VS |
34422 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
34423 | yes:no: ) | |
a848cd7e SC |
34424 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
34425 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
34426 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
34427 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
34428 | ac_header_preproc=yes | |
a848cd7e | 34429 | ;; |
ac1cb8d3 | 34430 | no:yes:* ) |
a848cd7e SC |
34431 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
34432 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
34433 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
34434 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
34435 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
34436 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
34437 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
34438 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
34439 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
34440 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
34441 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
34442 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
34443 | ( |
34444 | cat <<\_ASBOX | |
ac1cb8d3 VS |
34445 | ## ----------------------------------------- ## |
34446 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
34447 | ## ----------------------------------------- ## | |
a848cd7e SC |
34448 | _ASBOX |
34449 | ) | | |
34450 | sed "s/^/$as_me: WARNING: /" >&2 | |
34451 | ;; | |
34452 | esac | |
34453 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34454 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34455 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34457 | else | |
ac1cb8d3 | 34458 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
34459 | fi |
34460 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34461 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34462 | ||
34463 | fi | |
34464 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
34465 | cat >>confdefs.h <<_ACEOF | |
34466 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
34467 | _ACEOF | |
34468 | ||
34469 | EXTRALIBS_ESD="-lesd" | |
34470 | ||
34471 | fi | |
34472 | ||
34473 | done | |
34474 | ||
34475 | ||
34476 | fi | |
34477 | ||
34478 | ||
34479 | ||
34480 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
34481 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
34482 | cat >conftest.$ac_ext <<_ACEOF | |
34483 | /* confdefs.h. */ | |
34484 | _ACEOF | |
34485 | cat confdefs.h >>conftest.$ac_ext | |
34486 | cat >>conftest.$ac_ext <<_ACEOF | |
34487 | /* end confdefs.h. */ | |
34488 | #ifdef __linux__ | |
34489 | #include <linux/cdrom.h> | |
34490 | #else | |
34491 | /* For Solaris */ | |
34492 | #include <sys/cdio.h> | |
34493 | #endif | |
34494 | ||
34495 | int | |
34496 | main () | |
34497 | { | |
34498 | struct cdrom_tocentry entry, old_entry; | |
34499 | ; | |
34500 | return 0; | |
34501 | } | |
34502 | _ACEOF | |
34503 | rm -f conftest.$ac_objext | |
34504 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34505 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34506 | ac_status=$? |
ac1cb8d3 VS |
34507 | grep -v '^ *+' conftest.er1 >conftest.err |
34508 | rm -f conftest.er1 | |
34509 | cat conftest.err >&5 | |
a848cd7e SC |
34510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34511 | (exit $ac_status); } && | |
ddd14b14 RR |
34512 | { ac_try='test -z "$ac_c_werror_flag" |
34513 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34515 | (eval $ac_try) 2>&5 | |
34516 | ac_status=$? | |
34517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34518 | (exit $ac_status); }; } && | |
34519 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34521 | (eval $ac_try) 2>&5 | |
34522 | ac_status=$? | |
34523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34524 | (exit $ac_status); }; }; then | |
34525 | echo "$as_me:$LINENO: result: yes" >&5 | |
34526 | echo "${ECHO_T}yes" >&6 | |
34527 | cat >>confdefs.h <<\_ACEOF | |
34528 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
34529 | _ACEOF | |
34530 | ||
34531 | else | |
34532 | echo "$as_me: failed program was:" >&5 | |
34533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34534 | ||
34535 | echo "$as_me:$LINENO: result: no" >&5 | |
34536 | echo "${ECHO_T}no" >&6 | |
34537 | fi | |
ac1cb8d3 | 34538 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34539 | |
34540 | ||
34541 | cat >confcache <<\_ACEOF | |
34542 | # This file is a shell script that caches the results of configure | |
34543 | # tests run on this system so they can be shared between configure | |
34544 | # scripts and configure runs, see configure's option --config-cache. | |
34545 | # It is not useful on other systems. If it contains results you don't | |
34546 | # want to keep, you may remove or edit it. | |
34547 | # | |
34548 | # config.status only pays attention to the cache file if you give it | |
34549 | # the --recheck option to rerun configure. | |
34550 | # | |
34551 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
34552 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
34553 | # following values. | |
34554 | ||
34555 | _ACEOF | |
34556 | ||
34557 | # The following way of writing the cache mishandles newlines in values, | |
34558 | # but we know of no workaround that is simple, portable, and efficient. | |
34559 | # So, don't put newlines in cache variables' values. | |
34560 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
34561 | # and sets the high bit in the cache file unless we assign to the vars. | |
34562 | { | |
34563 | (set) 2>&1 | | |
34564 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
34565 | *ac_space=\ *) | |
34566 | # `set' does not quote correctly, so add quotes (double-quote | |
34567 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
34568 | sed -n \ | |
ac1cb8d3 VS |
34569 | "s/'/'\\\\''/g; |
34570 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
34571 | ;; |
34572 | *) | |
34573 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
34574 | sed -n \ | |
ac1cb8d3 | 34575 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
34576 | ;; |
34577 | esac; | |
34578 | } | | |
34579 | sed ' | |
34580 | t clear | |
34581 | : clear | |
34582 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
34583 | t end | |
34584 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
34585 | : end' >>confcache | |
34586 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
34587 | if test -w $cache_file; then | |
34588 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
34589 | cat confcache >$cache_file | |
34590 | else | |
34591 | echo "not updating unwritable cache $cache_file" | |
34592 | fi | |
34593 | fi | |
34594 | rm -f confcache | |
34595 | ||
34596 | ||
34597 | CPP_MT_FLAG= | |
34598 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
34599 | ||
34600 | ||
34601 | THREADS_LINK= | |
34602 | THREADS_CFLAGS= | |
34603 | ||
34604 | if test "$wxUSE_THREADS" = "yes" ; then | |
34605 | if test "$USE_BEOS" = 1; then | |
34606 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
34607 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
34608 | wxUSE_THREADS="no" | |
34609 | fi | |
34610 | fi | |
34611 | ||
34612 | if test "$wxUSE_THREADS" = "yes" ; then | |
34613 | ||
34614 | ||
34615 | THREAD_OPTS="-pthread" | |
34616 | case "${host}" in | |
34617 | *-*-solaris2* | *-*-sunos4* ) | |
34618 | if test "x$GCC" = "xyes"; then | |
34619 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
34620 | else | |
34621 | THREAD_OPTS="-mt $THREAD_OPTS" | |
34622 | fi | |
34623 | ;; | |
34624 | *-*-freebsd*) | |
34625 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
34626 | ;; | |
34627 | *-*-darwin* | *-*-cygwin* ) | |
34628 | THREAD_OPTS="" | |
34629 | ;; | |
34630 | *-*-aix*) | |
34631 | THREAD_OPTS="pthreads" | |
34632 | ;; | |
34633 | *-hp-hpux* ) | |
34634 | if test "x$GCC" != "xyes"; then | |
34635 | THREAD_OPTS="" | |
34636 | fi | |
34637 | ;; | |
34638 | ||
34639 | *-*-irix* ) | |
34640 | if test "x$GCC" = "xyes"; then | |
34641 | THREAD_OPTS="" | |
34642 | fi | |
34643 | ;; | |
34644 | ||
34645 | *-*-*UnixWare*) | |
34646 | if test "x$GCC" != "xyes"; then | |
34647 | THREAD_OPTS="-Ethread" | |
34648 | fi | |
34649 | ;; | |
34650 | esac | |
34651 | ||
34652 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
34653 | ||
34654 | THREADS_OK=no | |
34655 | for flag in $THREAD_OPTS; do | |
34656 | case $flag in | |
34657 | none) | |
34658 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
34659 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
34660 | ;; | |
34661 | ||
34662 | -*) | |
34663 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
34664 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
34665 | THREADS_CFLAGS="$flag" | |
34666 | ;; | |
34667 | ||
34668 | *) | |
34669 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
34670 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
34671 | THREADS_LINK="-l$flag" | |
34672 | ;; | |
34673 | esac | |
34674 | ||
34675 | save_LIBS="$LIBS" | |
34676 | save_CFLAGS="$CFLAGS" | |
34677 | LIBS="$THREADS_LINK $LIBS" | |
34678 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
34679 | ||
34680 | cat >conftest.$ac_ext <<_ACEOF | |
34681 | /* confdefs.h. */ | |
34682 | _ACEOF | |
34683 | cat confdefs.h >>conftest.$ac_ext | |
34684 | cat >>conftest.$ac_ext <<_ACEOF | |
34685 | /* end confdefs.h. */ | |
34686 | #include <pthread.h> | |
34687 | int | |
34688 | main () | |
34689 | { | |
34690 | pthread_create(0,0,0,0); | |
34691 | ; | |
34692 | return 0; | |
34693 | } | |
34694 | _ACEOF | |
34695 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34696 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34697 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34698 | ac_status=$? |
ac1cb8d3 VS |
34699 | grep -v '^ *+' conftest.er1 >conftest.err |
34700 | rm -f conftest.er1 | |
34701 | cat conftest.err >&5 | |
a848cd7e SC |
34702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34703 | (exit $ac_status); } && | |
ddd14b14 RR |
34704 | { ac_try='test -z "$ac_c_werror_flag" |
34705 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34707 | (eval $ac_try) 2>&5 | |
34708 | ac_status=$? | |
34709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34710 | (exit $ac_status); }; } && | |
34711 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34713 | (eval $ac_try) 2>&5 | |
34714 | ac_status=$? | |
34715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34716 | (exit $ac_status); }; }; then | |
34717 | THREADS_OK=yes | |
34718 | else | |
34719 | echo "$as_me: failed program was:" >&5 | |
34720 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34721 | ||
34722 | fi | |
ac1cb8d3 VS |
34723 | rm -f conftest.err conftest.$ac_objext \ |
34724 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34725 | |
34726 | LIBS="$save_LIBS" | |
34727 | CFLAGS="$save_CFLAGS" | |
34728 | ||
34729 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
34730 | echo "${ECHO_T}$THREADS_OK" >&6 | |
34731 | if test "x$THREADS_OK" = "xyes"; then | |
34732 | break; | |
34733 | fi | |
34734 | ||
34735 | THREADS_LINK="" | |
34736 | THREADS_CFLAGS="" | |
34737 | done | |
34738 | ||
34739 | if test "x$THREADS_OK" != "xyes"; then | |
34740 | wxUSE_THREADS=no | |
34741 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
34742 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
34743 | else | |
34744 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
34745 | LIBS="$THREADS_LINK $LIBS" | |
34746 | ||
34747 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
34748 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
34749 | flag=no | |
34750 | case "${host}" in | |
34751 | *-aix*) | |
34752 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
34753 | flag="-D_THREAD_SAFE" | |
34754 | ;; | |
34755 | *-freebsd*) | |
34756 | flag="-D_THREAD_SAFE" | |
34757 | ;; | |
34758 | *-hp-hpux* ) | |
34759 | flag="-D_REENTRANT" | |
34760 | if test "x$GCC" != "xyes"; then | |
34761 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
34762 | fi | |
34763 | ;; | |
34764 | *solaris* | alpha*-osf*) | |
34765 | flag="-D_REENTRANT" | |
34766 | ;; | |
34767 | esac | |
34768 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
34769 | echo "${ECHO_T}${flag}" >&6 | |
34770 | if test "x$flag" != xno; then | |
34771 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
34772 | fi | |
34773 | ||
34774 | if test "x$THREADS_CFLAGS" != "x"; then | |
34775 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
34776 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
34777 | fi | |
34778 | fi | |
34779 | fi | |
34780 | ||
34781 | if test "$wxUSE_THREADS" = "yes" ; then | |
34782 | ||
34783 | for ac_func in thr_setconcurrency | |
34784 | do | |
34785 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34786 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34787 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34788 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34789 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34790 | else | |
34791 | cat >conftest.$ac_ext <<_ACEOF | |
34792 | /* confdefs.h. */ | |
34793 | _ACEOF | |
34794 | cat confdefs.h >>conftest.$ac_ext | |
34795 | cat >>conftest.$ac_ext <<_ACEOF | |
34796 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34797 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34798 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34799 | #define $ac_func innocuous_$ac_func | |
34800 | ||
a848cd7e SC |
34801 | /* System header to define __stub macros and hopefully few prototypes, |
34802 | which can conflict with char $ac_func (); below. | |
34803 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34804 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34805 | |
a848cd7e SC |
34806 | #ifdef __STDC__ |
34807 | # include <limits.h> | |
34808 | #else | |
34809 | # include <assert.h> | |
34810 | #endif | |
ac1cb8d3 VS |
34811 | |
34812 | #undef $ac_func | |
34813 | ||
a848cd7e SC |
34814 | /* Override any gcc2 internal prototype to avoid an error. */ |
34815 | #ifdef __cplusplus | |
34816 | extern "C" | |
34817 | { | |
34818 | #endif | |
34819 | /* We use char because int might match the return type of a gcc2 | |
34820 | builtin and then its argument prototype would still apply. */ | |
34821 | char $ac_func (); | |
34822 | /* The GNU C library defines this for functions which it implements | |
34823 | to always fail with ENOSYS. Some functions are actually named | |
34824 | something starting with __ and the normal name is an alias. */ | |
34825 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34826 | choke me | |
34827 | #else | |
34828 | char (*f) () = $ac_func; | |
34829 | #endif | |
34830 | #ifdef __cplusplus | |
34831 | } | |
34832 | #endif | |
34833 | ||
34834 | int | |
34835 | main () | |
34836 | { | |
34837 | return f != $ac_func; | |
34838 | ; | |
34839 | return 0; | |
34840 | } | |
34841 | _ACEOF | |
34842 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34843 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34844 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34845 | ac_status=$? |
ac1cb8d3 VS |
34846 | grep -v '^ *+' conftest.er1 >conftest.err |
34847 | rm -f conftest.er1 | |
34848 | cat conftest.err >&5 | |
a848cd7e SC |
34849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34850 | (exit $ac_status); } && | |
ddd14b14 RR |
34851 | { ac_try='test -z "$ac_c_werror_flag" |
34852 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34854 | (eval $ac_try) 2>&5 | |
34855 | ac_status=$? | |
34856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34857 | (exit $ac_status); }; } && | |
34858 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34860 | (eval $ac_try) 2>&5 | |
34861 | ac_status=$? | |
34862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34863 | (exit $ac_status); }; }; then | |
34864 | eval "$as_ac_var=yes" | |
34865 | else | |
34866 | echo "$as_me: failed program was:" >&5 | |
34867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34868 | ||
34869 | eval "$as_ac_var=no" | |
34870 | fi | |
ac1cb8d3 VS |
34871 | rm -f conftest.err conftest.$ac_objext \ |
34872 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34873 | fi |
34874 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34875 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34876 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34877 | cat >>confdefs.h <<_ACEOF | |
34878 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34879 | _ACEOF | |
34880 | ||
34881 | fi | |
34882 | done | |
34883 | ||
34884 | ||
34885 | ||
34886 | for ac_header in sched.h | |
34887 | do | |
34888 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
34889 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34890 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34891 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34892 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34894 | fi | |
34895 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34896 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34897 | else | |
34898 | # Is the header compilable? | |
34899 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
34900 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
34901 | cat >conftest.$ac_ext <<_ACEOF | |
34902 | /* confdefs.h. */ | |
34903 | _ACEOF | |
34904 | cat confdefs.h >>conftest.$ac_ext | |
34905 | cat >>conftest.$ac_ext <<_ACEOF | |
34906 | /* end confdefs.h. */ | |
34907 | $ac_includes_default | |
34908 | #include <$ac_header> | |
34909 | _ACEOF | |
34910 | rm -f conftest.$ac_objext | |
34911 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34912 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34913 | ac_status=$? |
ac1cb8d3 VS |
34914 | grep -v '^ *+' conftest.er1 >conftest.err |
34915 | rm -f conftest.er1 | |
34916 | cat conftest.err >&5 | |
a848cd7e SC |
34917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34918 | (exit $ac_status); } && | |
ddd14b14 RR |
34919 | { ac_try='test -z "$ac_c_werror_flag" |
34920 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34922 | (eval $ac_try) 2>&5 | |
34923 | ac_status=$? | |
34924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34925 | (exit $ac_status); }; } && | |
34926 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34928 | (eval $ac_try) 2>&5 | |
34929 | ac_status=$? | |
34930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34931 | (exit $ac_status); }; }; then | |
34932 | ac_header_compiler=yes | |
34933 | else | |
34934 | echo "$as_me: failed program was:" >&5 | |
34935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34936 | ||
34937 | ac_header_compiler=no | |
34938 | fi | |
ac1cb8d3 | 34939 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34940 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
34941 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
34942 | ||
34943 | # Is the header present? | |
34944 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
34945 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
34946 | cat >conftest.$ac_ext <<_ACEOF | |
34947 | /* confdefs.h. */ | |
34948 | _ACEOF | |
34949 | cat confdefs.h >>conftest.$ac_ext | |
34950 | cat >>conftest.$ac_ext <<_ACEOF | |
34951 | /* end confdefs.h. */ | |
34952 | #include <$ac_header> | |
34953 | _ACEOF | |
34954 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
34955 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
34956 | ac_status=$? | |
34957 | grep -v '^ *+' conftest.er1 >conftest.err | |
34958 | rm -f conftest.er1 | |
34959 | cat conftest.err >&5 | |
34960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34961 | (exit $ac_status); } >/dev/null; then | |
34962 | if test -s conftest.err; then | |
34963 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 34964 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
34965 | else |
34966 | ac_cpp_err= | |
34967 | fi | |
34968 | else | |
34969 | ac_cpp_err=yes | |
34970 | fi | |
34971 | if test -z "$ac_cpp_err"; then | |
34972 | ac_header_preproc=yes | |
34973 | else | |
34974 | echo "$as_me: failed program was:" >&5 | |
34975 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34976 | ||
34977 | ac_header_preproc=no | |
34978 | fi | |
34979 | rm -f conftest.err conftest.$ac_ext | |
34980 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
34981 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
34982 | ||
34983 | # So? What about this header? | |
ac1cb8d3 VS |
34984 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
34985 | yes:no: ) | |
a848cd7e SC |
34986 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
34987 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
34988 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
34989 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
34990 | ac_header_preproc=yes | |
a848cd7e | 34991 | ;; |
ac1cb8d3 | 34992 | no:yes:* ) |
a848cd7e SC |
34993 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
34994 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
34995 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
34996 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
34997 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
34998 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
34999 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
35000 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
35001 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
35002 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
35003 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
35004 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
35005 | ( |
35006 | cat <<\_ASBOX | |
ac1cb8d3 VS |
35007 | ## ----------------------------------------- ## |
35008 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
35009 | ## ----------------------------------------- ## | |
a848cd7e SC |
35010 | _ASBOX |
35011 | ) | | |
35012 | sed "s/^/$as_me: WARNING: /" >&2 | |
35013 | ;; | |
35014 | esac | |
35015 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35016 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35017 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35018 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35019 | else | |
ac1cb8d3 | 35020 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
35021 | fi |
35022 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35023 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35024 | ||
35025 | fi | |
35026 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
35027 | cat >>confdefs.h <<_ACEOF | |
35028 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
35029 | _ACEOF | |
35030 | ||
35031 | fi | |
35032 | ||
35033 | done | |
35034 | ||
35035 | if test "$ac_cv_header_sched_h" = "yes"; then | |
35036 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
35037 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
35038 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
35039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35040 | else | |
35041 | cat >conftest.$ac_ext <<_ACEOF | |
35042 | /* confdefs.h. */ | |
35043 | _ACEOF | |
35044 | cat confdefs.h >>conftest.$ac_ext | |
35045 | cat >>conftest.$ac_ext <<_ACEOF | |
35046 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35047 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
35048 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35049 | #define sched_yield innocuous_sched_yield | |
35050 | ||
a848cd7e SC |
35051 | /* System header to define __stub macros and hopefully few prototypes, |
35052 | which can conflict with char sched_yield (); below. | |
35053 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35054 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35055 | |
a848cd7e SC |
35056 | #ifdef __STDC__ |
35057 | # include <limits.h> | |
35058 | #else | |
35059 | # include <assert.h> | |
35060 | #endif | |
ac1cb8d3 VS |
35061 | |
35062 | #undef sched_yield | |
35063 | ||
a848cd7e SC |
35064 | /* Override any gcc2 internal prototype to avoid an error. */ |
35065 | #ifdef __cplusplus | |
35066 | extern "C" | |
35067 | { | |
35068 | #endif | |
35069 | /* We use char because int might match the return type of a gcc2 | |
35070 | builtin and then its argument prototype would still apply. */ | |
35071 | char sched_yield (); | |
35072 | /* The GNU C library defines this for functions which it implements | |
35073 | to always fail with ENOSYS. Some functions are actually named | |
35074 | something starting with __ and the normal name is an alias. */ | |
35075 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
35076 | choke me | |
35077 | #else | |
35078 | char (*f) () = sched_yield; | |
35079 | #endif | |
35080 | #ifdef __cplusplus | |
35081 | } | |
35082 | #endif | |
35083 | ||
35084 | int | |
35085 | main () | |
35086 | { | |
35087 | return f != sched_yield; | |
35088 | ; | |
35089 | return 0; | |
35090 | } | |
35091 | _ACEOF | |
35092 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35093 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35094 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35095 | ac_status=$? |
ac1cb8d3 VS |
35096 | grep -v '^ *+' conftest.er1 >conftest.err |
35097 | rm -f conftest.er1 | |
35098 | cat conftest.err >&5 | |
a848cd7e SC |
35099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35100 | (exit $ac_status); } && | |
ddd14b14 RR |
35101 | { ac_try='test -z "$ac_c_werror_flag" |
35102 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35104 | (eval $ac_try) 2>&5 | |
35105 | ac_status=$? | |
35106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35107 | (exit $ac_status); }; } && | |
35108 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35110 | (eval $ac_try) 2>&5 | |
35111 | ac_status=$? | |
35112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35113 | (exit $ac_status); }; }; then | |
35114 | ac_cv_func_sched_yield=yes | |
35115 | else | |
35116 | echo "$as_me: failed program was:" >&5 | |
35117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35118 | ||
35119 | ac_cv_func_sched_yield=no | |
35120 | fi | |
ac1cb8d3 VS |
35121 | rm -f conftest.err conftest.$ac_objext \ |
35122 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35123 | fi |
35124 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
35125 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
35126 | if test $ac_cv_func_sched_yield = yes; then | |
35127 | cat >>confdefs.h <<\_ACEOF | |
35128 | #define HAVE_SCHED_YIELD 1 | |
35129 | _ACEOF | |
35130 | ||
35131 | else | |
35132 | ||
35133 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
35134 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
35135 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
35136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35137 | else | |
35138 | ac_check_lib_save_LIBS=$LIBS | |
35139 | LIBS="-lposix4 $LIBS" | |
35140 | cat >conftest.$ac_ext <<_ACEOF | |
35141 | /* confdefs.h. */ | |
35142 | _ACEOF | |
35143 | cat confdefs.h >>conftest.$ac_ext | |
35144 | cat >>conftest.$ac_ext <<_ACEOF | |
35145 | /* end confdefs.h. */ | |
35146 | ||
35147 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35148 | #ifdef __cplusplus | |
35149 | extern "C" | |
35150 | #endif | |
35151 | /* We use char because int might match the return type of a gcc2 | |
35152 | builtin and then its argument prototype would still apply. */ | |
35153 | char sched_yield (); | |
35154 | int | |
35155 | main () | |
35156 | { | |
35157 | sched_yield (); | |
35158 | ; | |
35159 | return 0; | |
35160 | } | |
35161 | _ACEOF | |
35162 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35163 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35164 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35165 | ac_status=$? |
ac1cb8d3 VS |
35166 | grep -v '^ *+' conftest.er1 >conftest.err |
35167 | rm -f conftest.er1 | |
35168 | cat conftest.err >&5 | |
a848cd7e SC |
35169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35170 | (exit $ac_status); } && | |
ddd14b14 RR |
35171 | { ac_try='test -z "$ac_c_werror_flag" |
35172 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35174 | (eval $ac_try) 2>&5 | |
35175 | ac_status=$? | |
35176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35177 | (exit $ac_status); }; } && | |
35178 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35180 | (eval $ac_try) 2>&5 | |
35181 | ac_status=$? | |
35182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35183 | (exit $ac_status); }; }; then | |
35184 | ac_cv_lib_posix4_sched_yield=yes | |
35185 | else | |
35186 | echo "$as_me: failed program was:" >&5 | |
35187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35188 | ||
35189 | ac_cv_lib_posix4_sched_yield=no | |
35190 | fi | |
ac1cb8d3 VS |
35191 | rm -f conftest.err conftest.$ac_objext \ |
35192 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35193 | LIBS=$ac_check_lib_save_LIBS |
35194 | fi | |
35195 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
35196 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
35197 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
35198 | cat >>confdefs.h <<\_ACEOF | |
35199 | #define HAVE_SCHED_YIELD 1 | |
35200 | _ACEOF | |
35201 | POSIX4_LINK=" -lposix4" | |
35202 | else | |
35203 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
35204 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
35205 | ||
35206 | fi | |
35207 | ||
35208 | ||
35209 | ||
35210 | fi | |
35211 | ||
35212 | fi | |
35213 | ||
35214 | HAVE_PRIOR_FUNCS=0 | |
35215 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
35216 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
35217 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
35218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35219 | else | |
35220 | cat >conftest.$ac_ext <<_ACEOF | |
35221 | /* confdefs.h. */ | |
35222 | _ACEOF | |
35223 | cat confdefs.h >>conftest.$ac_ext | |
35224 | cat >>conftest.$ac_ext <<_ACEOF | |
35225 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35226 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
35227 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35228 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
35229 | ||
a848cd7e SC |
35230 | /* System header to define __stub macros and hopefully few prototypes, |
35231 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
35232 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35233 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35234 | |
a848cd7e SC |
35235 | #ifdef __STDC__ |
35236 | # include <limits.h> | |
35237 | #else | |
35238 | # include <assert.h> | |
35239 | #endif | |
ac1cb8d3 VS |
35240 | |
35241 | #undef pthread_attr_getschedpolicy | |
35242 | ||
a848cd7e SC |
35243 | /* Override any gcc2 internal prototype to avoid an error. */ |
35244 | #ifdef __cplusplus | |
35245 | extern "C" | |
35246 | { | |
35247 | #endif | |
35248 | /* We use char because int might match the return type of a gcc2 | |
35249 | builtin and then its argument prototype would still apply. */ | |
35250 | char pthread_attr_getschedpolicy (); | |
35251 | /* The GNU C library defines this for functions which it implements | |
35252 | to always fail with ENOSYS. Some functions are actually named | |
35253 | something starting with __ and the normal name is an alias. */ | |
35254 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
35255 | choke me | |
35256 | #else | |
35257 | char (*f) () = pthread_attr_getschedpolicy; | |
35258 | #endif | |
35259 | #ifdef __cplusplus | |
35260 | } | |
35261 | #endif | |
35262 | ||
35263 | int | |
35264 | main () | |
35265 | { | |
35266 | return f != pthread_attr_getschedpolicy; | |
35267 | ; | |
35268 | return 0; | |
35269 | } | |
35270 | _ACEOF | |
35271 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35272 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35273 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35274 | ac_status=$? |
ac1cb8d3 VS |
35275 | grep -v '^ *+' conftest.er1 >conftest.err |
35276 | rm -f conftest.er1 | |
35277 | cat conftest.err >&5 | |
a848cd7e SC |
35278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35279 | (exit $ac_status); } && | |
ddd14b14 RR |
35280 | { ac_try='test -z "$ac_c_werror_flag" |
35281 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35283 | (eval $ac_try) 2>&5 | |
35284 | ac_status=$? | |
35285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35286 | (exit $ac_status); }; } && | |
35287 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35289 | (eval $ac_try) 2>&5 | |
35290 | ac_status=$? | |
35291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35292 | (exit $ac_status); }; }; then | |
35293 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
35294 | else | |
35295 | echo "$as_me: failed program was:" >&5 | |
35296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35297 | ||
35298 | ac_cv_func_pthread_attr_getschedpolicy=no | |
35299 | fi | |
ac1cb8d3 VS |
35300 | rm -f conftest.err conftest.$ac_objext \ |
35301 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35302 | fi |
35303 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
35304 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
35305 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
35306 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
35307 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
35308 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
35309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35310 | else | |
35311 | cat >conftest.$ac_ext <<_ACEOF | |
35312 | /* confdefs.h. */ | |
35313 | _ACEOF | |
35314 | cat confdefs.h >>conftest.$ac_ext | |
35315 | cat >>conftest.$ac_ext <<_ACEOF | |
35316 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35317 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
35318 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35319 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
35320 | ||
a848cd7e SC |
35321 | /* System header to define __stub macros and hopefully few prototypes, |
35322 | which can conflict with char pthread_attr_setschedparam (); below. | |
35323 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35324 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35325 | |
a848cd7e SC |
35326 | #ifdef __STDC__ |
35327 | # include <limits.h> | |
35328 | #else | |
35329 | # include <assert.h> | |
35330 | #endif | |
ac1cb8d3 VS |
35331 | |
35332 | #undef pthread_attr_setschedparam | |
35333 | ||
a848cd7e SC |
35334 | /* Override any gcc2 internal prototype to avoid an error. */ |
35335 | #ifdef __cplusplus | |
35336 | extern "C" | |
35337 | { | |
35338 | #endif | |
35339 | /* We use char because int might match the return type of a gcc2 | |
35340 | builtin and then its argument prototype would still apply. */ | |
35341 | char pthread_attr_setschedparam (); | |
35342 | /* The GNU C library defines this for functions which it implements | |
35343 | to always fail with ENOSYS. Some functions are actually named | |
35344 | something starting with __ and the normal name is an alias. */ | |
35345 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
35346 | choke me | |
35347 | #else | |
35348 | char (*f) () = pthread_attr_setschedparam; | |
35349 | #endif | |
35350 | #ifdef __cplusplus | |
35351 | } | |
35352 | #endif | |
35353 | ||
35354 | int | |
35355 | main () | |
35356 | { | |
35357 | return f != pthread_attr_setschedparam; | |
35358 | ; | |
35359 | return 0; | |
35360 | } | |
35361 | _ACEOF | |
35362 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35363 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35364 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35365 | ac_status=$? |
ac1cb8d3 VS |
35366 | grep -v '^ *+' conftest.er1 >conftest.err |
35367 | rm -f conftest.er1 | |
35368 | cat conftest.err >&5 | |
a848cd7e SC |
35369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35370 | (exit $ac_status); } && | |
ddd14b14 RR |
35371 | { ac_try='test -z "$ac_c_werror_flag" |
35372 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35374 | (eval $ac_try) 2>&5 | |
35375 | ac_status=$? | |
35376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35377 | (exit $ac_status); }; } && | |
35378 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35380 | (eval $ac_try) 2>&5 | |
35381 | ac_status=$? | |
35382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35383 | (exit $ac_status); }; }; then | |
35384 | ac_cv_func_pthread_attr_setschedparam=yes | |
35385 | else | |
35386 | echo "$as_me: failed program was:" >&5 | |
35387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35388 | ||
35389 | ac_cv_func_pthread_attr_setschedparam=no | |
35390 | fi | |
ac1cb8d3 VS |
35391 | rm -f conftest.err conftest.$ac_objext \ |
35392 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35393 | fi |
35394 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
35395 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
35396 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
35397 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
35398 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
35399 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
35400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35401 | else | |
35402 | cat >conftest.$ac_ext <<_ACEOF | |
35403 | /* confdefs.h. */ | |
35404 | _ACEOF | |
35405 | cat confdefs.h >>conftest.$ac_ext | |
35406 | cat >>conftest.$ac_ext <<_ACEOF | |
35407 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35408 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
35409 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35410 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
35411 | ||
a848cd7e SC |
35412 | /* System header to define __stub macros and hopefully few prototypes, |
35413 | which can conflict with char sched_get_priority_max (); below. | |
35414 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35415 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35416 | |
a848cd7e SC |
35417 | #ifdef __STDC__ |
35418 | # include <limits.h> | |
35419 | #else | |
35420 | # include <assert.h> | |
35421 | #endif | |
ac1cb8d3 VS |
35422 | |
35423 | #undef sched_get_priority_max | |
35424 | ||
a848cd7e SC |
35425 | /* Override any gcc2 internal prototype to avoid an error. */ |
35426 | #ifdef __cplusplus | |
35427 | extern "C" | |
35428 | { | |
35429 | #endif | |
35430 | /* We use char because int might match the return type of a gcc2 | |
35431 | builtin and then its argument prototype would still apply. */ | |
35432 | char sched_get_priority_max (); | |
35433 | /* The GNU C library defines this for functions which it implements | |
35434 | to always fail with ENOSYS. Some functions are actually named | |
35435 | something starting with __ and the normal name is an alias. */ | |
35436 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
35437 | choke me | |
35438 | #else | |
35439 | char (*f) () = sched_get_priority_max; | |
35440 | #endif | |
35441 | #ifdef __cplusplus | |
35442 | } | |
35443 | #endif | |
35444 | ||
35445 | int | |
35446 | main () | |
35447 | { | |
35448 | return f != sched_get_priority_max; | |
35449 | ; | |
35450 | return 0; | |
35451 | } | |
35452 | _ACEOF | |
35453 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35454 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35455 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35456 | ac_status=$? |
ac1cb8d3 VS |
35457 | grep -v '^ *+' conftest.er1 >conftest.err |
35458 | rm -f conftest.er1 | |
35459 | cat conftest.err >&5 | |
a848cd7e SC |
35460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35461 | (exit $ac_status); } && | |
ddd14b14 RR |
35462 | { ac_try='test -z "$ac_c_werror_flag" |
35463 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35465 | (eval $ac_try) 2>&5 | |
35466 | ac_status=$? | |
35467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35468 | (exit $ac_status); }; } && | |
35469 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35471 | (eval $ac_try) 2>&5 | |
35472 | ac_status=$? | |
35473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35474 | (exit $ac_status); }; }; then | |
35475 | ac_cv_func_sched_get_priority_max=yes | |
35476 | else | |
35477 | echo "$as_me: failed program was:" >&5 | |
35478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35479 | ||
35480 | ac_cv_func_sched_get_priority_max=no | |
35481 | fi | |
ac1cb8d3 VS |
35482 | rm -f conftest.err conftest.$ac_objext \ |
35483 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35484 | fi |
35485 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
35486 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
35487 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
35488 | HAVE_PRIOR_FUNCS=1 | |
35489 | else | |
35490 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
35491 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
35492 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
35493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35494 | else | |
35495 | ac_check_lib_save_LIBS=$LIBS | |
35496 | LIBS="-lposix4 $LIBS" | |
35497 | cat >conftest.$ac_ext <<_ACEOF | |
35498 | /* confdefs.h. */ | |
35499 | _ACEOF | |
35500 | cat confdefs.h >>conftest.$ac_ext | |
35501 | cat >>conftest.$ac_ext <<_ACEOF | |
35502 | /* end confdefs.h. */ | |
35503 | ||
35504 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35505 | #ifdef __cplusplus | |
35506 | extern "C" | |
35507 | #endif | |
35508 | /* We use char because int might match the return type of a gcc2 | |
35509 | builtin and then its argument prototype would still apply. */ | |
35510 | char sched_get_priority_max (); | |
35511 | int | |
35512 | main () | |
35513 | { | |
35514 | sched_get_priority_max (); | |
35515 | ; | |
35516 | return 0; | |
35517 | } | |
35518 | _ACEOF | |
35519 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35520 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35521 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35522 | ac_status=$? |
ac1cb8d3 VS |
35523 | grep -v '^ *+' conftest.er1 >conftest.err |
35524 | rm -f conftest.er1 | |
35525 | cat conftest.err >&5 | |
a848cd7e SC |
35526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35527 | (exit $ac_status); } && | |
ddd14b14 RR |
35528 | { ac_try='test -z "$ac_c_werror_flag" |
35529 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35531 | (eval $ac_try) 2>&5 | |
35532 | ac_status=$? | |
35533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35534 | (exit $ac_status); }; } && | |
35535 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35537 | (eval $ac_try) 2>&5 | |
35538 | ac_status=$? | |
35539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35540 | (exit $ac_status); }; }; then | |
35541 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
35542 | else | |
35543 | echo "$as_me: failed program was:" >&5 | |
35544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35545 | ||
35546 | ac_cv_lib_posix4_sched_get_priority_max=no | |
35547 | fi | |
ac1cb8d3 VS |
35548 | rm -f conftest.err conftest.$ac_objext \ |
35549 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35550 | LIBS=$ac_check_lib_save_LIBS |
35551 | fi | |
35552 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
35553 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
35554 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
35555 | ||
35556 | HAVE_PRIOR_FUNCS=1 | |
35557 | POSIX4_LINK=" -lposix4" | |
35558 | ||
35559 | fi | |
35560 | ||
35561 | ||
35562 | fi | |
35563 | ||
35564 | ||
35565 | fi | |
35566 | ||
35567 | ||
35568 | fi | |
35569 | ||
35570 | ||
35571 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
35572 | cat >>confdefs.h <<\_ACEOF | |
35573 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
35574 | _ACEOF | |
35575 | ||
35576 | else | |
35577 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
35578 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
35579 | fi | |
35580 | ||
35581 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
35582 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
35583 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
35584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35585 | else | |
35586 | cat >conftest.$ac_ext <<_ACEOF | |
35587 | /* confdefs.h. */ | |
35588 | _ACEOF | |
35589 | cat confdefs.h >>conftest.$ac_ext | |
35590 | cat >>conftest.$ac_ext <<_ACEOF | |
35591 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35592 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
35593 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35594 | #define pthread_cancel innocuous_pthread_cancel | |
35595 | ||
a848cd7e SC |
35596 | /* System header to define __stub macros and hopefully few prototypes, |
35597 | which can conflict with char pthread_cancel (); below. | |
35598 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35599 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35600 | |
a848cd7e SC |
35601 | #ifdef __STDC__ |
35602 | # include <limits.h> | |
35603 | #else | |
35604 | # include <assert.h> | |
35605 | #endif | |
ac1cb8d3 VS |
35606 | |
35607 | #undef pthread_cancel | |
35608 | ||
a848cd7e SC |
35609 | /* Override any gcc2 internal prototype to avoid an error. */ |
35610 | #ifdef __cplusplus | |
35611 | extern "C" | |
35612 | { | |
35613 | #endif | |
35614 | /* We use char because int might match the return type of a gcc2 | |
35615 | builtin and then its argument prototype would still apply. */ | |
35616 | char pthread_cancel (); | |
35617 | /* The GNU C library defines this for functions which it implements | |
35618 | to always fail with ENOSYS. Some functions are actually named | |
35619 | something starting with __ and the normal name is an alias. */ | |
35620 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
35621 | choke me | |
35622 | #else | |
35623 | char (*f) () = pthread_cancel; | |
35624 | #endif | |
35625 | #ifdef __cplusplus | |
35626 | } | |
35627 | #endif | |
35628 | ||
35629 | int | |
35630 | main () | |
35631 | { | |
35632 | return f != pthread_cancel; | |
35633 | ; | |
35634 | return 0; | |
35635 | } | |
35636 | _ACEOF | |
35637 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35638 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35639 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35640 | ac_status=$? |
ac1cb8d3 VS |
35641 | grep -v '^ *+' conftest.er1 >conftest.err |
35642 | rm -f conftest.er1 | |
35643 | cat conftest.err >&5 | |
a848cd7e SC |
35644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35645 | (exit $ac_status); } && | |
ddd14b14 RR |
35646 | { ac_try='test -z "$ac_c_werror_flag" |
35647 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35649 | (eval $ac_try) 2>&5 | |
35650 | ac_status=$? | |
35651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35652 | (exit $ac_status); }; } && | |
35653 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
35659 | ac_cv_func_pthread_cancel=yes | |
35660 | else | |
35661 | echo "$as_me: failed program was:" >&5 | |
35662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35663 | ||
35664 | ac_cv_func_pthread_cancel=no | |
35665 | fi | |
ac1cb8d3 VS |
35666 | rm -f conftest.err conftest.$ac_objext \ |
35667 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35668 | fi |
35669 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
35670 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
35671 | if test $ac_cv_func_pthread_cancel = yes; then | |
35672 | cat >>confdefs.h <<\_ACEOF | |
35673 | #define HAVE_PTHREAD_CANCEL 1 | |
35674 | _ACEOF | |
35675 | ||
35676 | else | |
35677 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
35678 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
35679 | fi | |
35680 | ||
35681 | ||
abc736fd MW |
35682 | echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5 |
35683 | echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6 | |
35684 | if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then | |
35685 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35686 | else | |
35687 | cat >conftest.$ac_ext <<_ACEOF | |
35688 | /* confdefs.h. */ | |
35689 | _ACEOF | |
35690 | cat confdefs.h >>conftest.$ac_ext | |
35691 | cat >>conftest.$ac_ext <<_ACEOF | |
35692 | /* end confdefs.h. */ | |
35693 | /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize. | |
35694 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35695 | #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize | |
35696 | ||
35697 | /* System header to define __stub macros and hopefully few prototypes, | |
35698 | which can conflict with char pthread_attr_setstacksize (); below. | |
35699 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35700 | <limits.h> exists even on freestanding compilers. */ | |
35701 | ||
35702 | #ifdef __STDC__ | |
35703 | # include <limits.h> | |
35704 | #else | |
35705 | # include <assert.h> | |
35706 | #endif | |
35707 | ||
35708 | #undef pthread_attr_setstacksize | |
35709 | ||
35710 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35711 | #ifdef __cplusplus | |
35712 | extern "C" | |
35713 | { | |
35714 | #endif | |
35715 | /* We use char because int might match the return type of a gcc2 | |
35716 | builtin and then its argument prototype would still apply. */ | |
35717 | char pthread_attr_setstacksize (); | |
35718 | /* The GNU C library defines this for functions which it implements | |
35719 | to always fail with ENOSYS. Some functions are actually named | |
35720 | something starting with __ and the normal name is an alias. */ | |
35721 | #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize) | |
35722 | choke me | |
35723 | #else | |
35724 | char (*f) () = pthread_attr_setstacksize; | |
35725 | #endif | |
35726 | #ifdef __cplusplus | |
35727 | } | |
35728 | #endif | |
35729 | ||
35730 | int | |
35731 | main () | |
35732 | { | |
35733 | return f != pthread_attr_setstacksize; | |
35734 | ; | |
35735 | return 0; | |
35736 | } | |
35737 | _ACEOF | |
35738 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35739 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35740 | (eval $ac_link) 2>conftest.er1 | |
35741 | ac_status=$? | |
35742 | grep -v '^ *+' conftest.er1 >conftest.err | |
35743 | rm -f conftest.er1 | |
35744 | cat conftest.err >&5 | |
35745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35746 | (exit $ac_status); } && | |
ddd14b14 RR |
35747 | { ac_try='test -z "$ac_c_werror_flag" |
35748 | || test ! -s conftest.err' | |
abc736fd MW |
35749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35750 | (eval $ac_try) 2>&5 | |
35751 | ac_status=$? | |
35752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35753 | (exit $ac_status); }; } && | |
35754 | { ac_try='test -s conftest$ac_exeext' | |
35755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35756 | (eval $ac_try) 2>&5 | |
35757 | ac_status=$? | |
35758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35759 | (exit $ac_status); }; }; then | |
35760 | ac_cv_func_pthread_attr_setstacksize=yes | |
35761 | else | |
35762 | echo "$as_me: failed program was:" >&5 | |
35763 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35764 | ||
35765 | ac_cv_func_pthread_attr_setstacksize=no | |
35766 | fi | |
35767 | rm -f conftest.err conftest.$ac_objext \ | |
35768 | conftest$ac_exeext conftest.$ac_ext | |
35769 | fi | |
35770 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5 | |
35771 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6 | |
35772 | if test $ac_cv_func_pthread_attr_setstacksize = yes; then | |
35773 | cat >>confdefs.h <<\_ACEOF | |
35774 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | |
35775 | _ACEOF | |
35776 | ||
35777 | fi | |
35778 | ||
a848cd7e SC |
35779 | |
35780 | ||
35781 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
35782 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
35783 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
35784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35785 | else | |
35786 | ||
35787 | cat >conftest.$ac_ext <<_ACEOF | |
35788 | /* confdefs.h. */ | |
35789 | _ACEOF | |
35790 | cat confdefs.h >>conftest.$ac_ext | |
35791 | cat >>conftest.$ac_ext <<_ACEOF | |
35792 | /* end confdefs.h. */ | |
35793 | #include <pthread.h> | |
35794 | int | |
35795 | main () | |
35796 | { | |
35797 | ||
35798 | pthread_mutexattr_t attr; | |
35799 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
35800 | ||
35801 | ; | |
35802 | return 0; | |
35803 | } | |
35804 | _ACEOF | |
35805 | rm -f conftest.$ac_objext | |
35806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35807 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35808 | ac_status=$? |
ac1cb8d3 VS |
35809 | grep -v '^ *+' conftest.er1 >conftest.err |
35810 | rm -f conftest.er1 | |
35811 | cat conftest.err >&5 | |
a848cd7e SC |
35812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35813 | (exit $ac_status); } && | |
ddd14b14 RR |
35814 | { ac_try='test -z "$ac_c_werror_flag" |
35815 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35817 | (eval $ac_try) 2>&5 | |
35818 | ac_status=$? | |
35819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35820 | (exit $ac_status); }; } && | |
35821 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35823 | (eval $ac_try) 2>&5 | |
35824 | ac_status=$? | |
35825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35826 | (exit $ac_status); }; }; then | |
35827 | ||
35828 | wx_cv_type_pthread_mutexattr_t=yes | |
35829 | ||
35830 | else | |
35831 | echo "$as_me: failed program was:" >&5 | |
35832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35833 | ||
35834 | ||
35835 | wx_cv_type_pthread_mutexattr_t=no | |
35836 | ||
35837 | ||
35838 | fi | |
ac1cb8d3 | 35839 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35840 | |
35841 | fi | |
35842 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
35843 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
35844 | ||
35845 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
35846 | cat >>confdefs.h <<\_ACEOF | |
35847 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
35848 | _ACEOF | |
35849 | ||
35850 | else | |
35851 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
35852 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
35853 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
35854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35855 | else | |
35856 | ||
35857 | cat >conftest.$ac_ext <<_ACEOF | |
35858 | /* confdefs.h. */ | |
35859 | _ACEOF | |
35860 | cat confdefs.h >>conftest.$ac_ext | |
35861 | cat >>conftest.$ac_ext <<_ACEOF | |
35862 | /* end confdefs.h. */ | |
35863 | #include <pthread.h> | |
35864 | int | |
35865 | main () | |
35866 | { | |
35867 | ||
35868 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
35869 | ||
35870 | ; | |
35871 | return 0; | |
35872 | } | |
35873 | _ACEOF | |
35874 | rm -f conftest.$ac_objext | |
35875 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35876 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35877 | ac_status=$? |
ac1cb8d3 VS |
35878 | grep -v '^ *+' conftest.er1 >conftest.err |
35879 | rm -f conftest.er1 | |
35880 | cat conftest.err >&5 | |
a848cd7e SC |
35881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35882 | (exit $ac_status); } && | |
ddd14b14 RR |
35883 | { ac_try='test -z "$ac_c_werror_flag" |
35884 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35886 | (eval $ac_try) 2>&5 | |
35887 | ac_status=$? | |
35888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35889 | (exit $ac_status); }; } && | |
35890 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35892 | (eval $ac_try) 2>&5 | |
35893 | ac_status=$? | |
35894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35895 | (exit $ac_status); }; }; then | |
35896 | ||
35897 | wx_cv_type_pthread_rec_mutex_init=yes | |
35898 | ||
35899 | else | |
35900 | echo "$as_me: failed program was:" >&5 | |
35901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35902 | ||
35903 | ||
35904 | wx_cv_type_pthread_rec_mutex_init=no | |
35905 | ||
35906 | ||
35907 | fi | |
ac1cb8d3 | 35908 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35909 | |
35910 | fi | |
35911 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
35912 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
35913 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
35914 | cat >>confdefs.h <<\_ACEOF | |
35915 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
35916 | _ACEOF | |
35917 | ||
35918 | else | |
35919 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
35920 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
35921 | fi | |
35922 | fi | |
35923 | fi | |
35924 | ||
35925 | else | |
35926 | if test "$wxUSE_THREADS" = "yes" ; then | |
35927 | case "${host}" in | |
35928 | *-*-mingw32* ) | |
35929 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
35930 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
35931 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
35932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35933 | else | |
35934 | ||
35935 | CFLAGS_OLD="$CFLAGS" | |
35936 | CFLAGS="$CFLAGS -mthreads" | |
35937 | cat >conftest.$ac_ext <<_ACEOF | |
35938 | /* confdefs.h. */ | |
35939 | _ACEOF | |
35940 | cat confdefs.h >>conftest.$ac_ext | |
35941 | cat >>conftest.$ac_ext <<_ACEOF | |
35942 | /* end confdefs.h. */ | |
35943 | ||
35944 | int | |
35945 | main () | |
35946 | { | |
35947 | ||
35948 | ; | |
35949 | return 0; | |
35950 | } | |
35951 | _ACEOF | |
35952 | rm -f conftest.$ac_objext | |
35953 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35954 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35955 | ac_status=$? |
ac1cb8d3 VS |
35956 | grep -v '^ *+' conftest.er1 >conftest.err |
35957 | rm -f conftest.er1 | |
35958 | cat conftest.err >&5 | |
a848cd7e SC |
35959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35960 | (exit $ac_status); } && | |
ddd14b14 RR |
35961 | { ac_try='test -z "$ac_c_werror_flag" |
35962 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35964 | (eval $ac_try) 2>&5 | |
35965 | ac_status=$? | |
35966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35967 | (exit $ac_status); }; } && | |
35968 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35970 | (eval $ac_try) 2>&5 | |
35971 | ac_status=$? | |
35972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35973 | (exit $ac_status); }; }; then | |
35974 | wx_cv_cflags_mthread=yes | |
35975 | else | |
35976 | echo "$as_me: failed program was:" >&5 | |
35977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35978 | ||
35979 | wx_cv_cflags_mthread=no | |
35980 | ||
35981 | fi | |
ac1cb8d3 | 35982 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35983 | |
35984 | ||
35985 | fi | |
35986 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
35987 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
35988 | ||
35989 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
35990 | CXXFLAGS="$CXXFLAGS -mthreads" | |
35991 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
35992 | LDFLAGS="$LDFLAGS -mthreads" | |
35993 | else | |
35994 | CFLAGS="$CFLAGS_OLD" | |
35995 | fi | |
35996 | ;; | |
35997 | *-pc-os2*emx ) | |
35998 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
35999 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
36000 | LDFLAGS="$LDFLAGS -Zmt" | |
36001 | ;; | |
36002 | esac | |
36003 | fi | |
36004 | fi | |
36005 | ||
36006 | if test "$wxUSE_THREADS" = "yes"; then | |
36007 | cat >>confdefs.h <<\_ACEOF | |
36008 | #define wxUSE_THREADS 1 | |
36009 | _ACEOF | |
36010 | ||
36011 | ||
36012 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
36013 | else | |
36014 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
36015 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
36016 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
36017 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
36018 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
36019 | echo "$as_me:$LINENO: result: yes" >&5 | |
36020 | echo "${ECHO_T}yes" >&6 | |
36021 | else | |
36022 | echo "$as_me:$LINENO: result: no" >&5 | |
36023 | echo "${ECHO_T}no" >&6 | |
36024 | fi | |
36025 | fi | |
36026 | fi | |
36027 | ||
36028 | if test "$WXGTK20" = 1 ; then | |
36029 | cat >>confdefs.h <<_ACEOF | |
36030 | #define __WXGTK20__ $WXGTK20 | |
36031 | _ACEOF | |
36032 | ||
36033 | WXGTK12=1 | |
36034 | fi | |
36035 | ||
36036 | if test "$WXGTK12" = 1 ; then | |
36037 | cat >>confdefs.h <<_ACEOF | |
36038 | #define __WXGTK12__ $WXGTK12 | |
36039 | _ACEOF | |
36040 | ||
36041 | fi | |
36042 | ||
36043 | if test "$WXGTK127" = 1 ; then | |
36044 | cat >>confdefs.h <<_ACEOF | |
36045 | #define __WXGTK127__ $WXGTK127 | |
36046 | _ACEOF | |
36047 | ||
36048 | fi | |
36049 | ||
36050 | if test "$WXGPE" = 1 ; then | |
36051 | cat >>confdefs.h <<_ACEOF | |
36052 | #define __WXGPE__ $WXGPE | |
36053 | _ACEOF | |
36054 | ||
36055 | fi | |
36056 | ||
36057 | WXDEBUG= | |
36058 | ||
36059 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
36060 | WXDEBUG="-g" | |
36061 | wxUSE_OPTIMISE=no | |
36062 | fi | |
36063 | ||
36064 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
36065 | wxUSE_DEBUG_INFO=yes | |
18228ab4 MW |
36066 | if test "$GCC" = yes; then |
36067 | WXDEBUG="-ggdb" | |
36068 | fi | |
a848cd7e SC |
36069 | fi |
36070 | ||
36071 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
36072 | cat >>confdefs.h <<\_ACEOF | |
36073 | #define WXDEBUG 1 | |
36074 | _ACEOF | |
36075 | ||
36076 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
36077 | else | |
36078 | if test "$wxUSE_GTK" = 1 ; then | |
36079 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
36080 | fi | |
36081 | fi | |
36082 | ||
36083 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
36084 | cat >>confdefs.h <<\_ACEOF | |
36085 | #define wxUSE_MEMORY_TRACING 1 | |
36086 | _ACEOF | |
36087 | ||
36088 | cat >>confdefs.h <<\_ACEOF | |
36089 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
36090 | _ACEOF | |
36091 | ||
36092 | cat >>confdefs.h <<\_ACEOF | |
36093 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
36094 | _ACEOF | |
36095 | ||
36096 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
36097 | fi | |
36098 | ||
36099 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
df1b269d | 36100 | DMALLOC_LIBS="-ldmallocthcxx" |
a848cd7e SC |
36101 | fi |
36102 | ||
36103 | PROFILE= | |
36104 | if test "$wxUSE_PROFILE" = "yes" ; then | |
36105 | PROFILE=" -pg" | |
36106 | fi | |
36107 | ||
36108 | CODE_GEN_FLAGS= | |
36109 | CODE_GEN_FLAGS_CXX= | |
36110 | if test "$GCC" = "yes" ; then | |
36111 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
36112 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
36113 | fi | |
36114 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
36115 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
36116 | fi | |
36117 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
36118 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
36119 | fi | |
36120 | ||
36121 | case "${host}" in | |
36122 | powerpc*-*-aix* ) | |
36123 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
36124 | ;; | |
36125 | *-hppa* ) | |
36126 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
36127 | ;; | |
36128 | esac | |
36129 | fi | |
36130 | ||
36131 | OPTIMISE= | |
36132 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
36133 | if test "$GCC" = yes ; then | |
36134 | OPTIMISE="-O0" | |
36135 | fi | |
36136 | else | |
36137 | if test "$GCC" = yes ; then | |
36138 | OPTIMISE="-O2" | |
36139 | ||
36140 | case "${host}" in | |
36141 | i586-*-*|i686-*-* ) | |
36142 | OPTIMISE="${OPTIMISE} " | |
36143 | ;; | |
36144 | esac | |
36145 | else | |
36146 | OPTIMISE="-O" | |
36147 | fi | |
36148 | fi | |
36149 | ||
36150 | ||
36151 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then | |
36152 | cat >>confdefs.h <<\_ACEOF | |
36153 | #define WXWIN_COMPATIBILITY_2_2 1 | |
36154 | _ACEOF | |
36155 | ||
36156 | ||
36157 | WXWIN_COMPATIBILITY_2_4="yes" | |
36158 | fi | |
36159 | ||
36160 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then | |
36161 | cat >>confdefs.h <<\_ACEOF | |
36162 | #define WXWIN_COMPATIBILITY_2_4 1 | |
36163 | _ACEOF | |
36164 | ||
36165 | fi | |
36166 | ||
36167 | ||
36168 | if test "$wxUSE_GUI" = "yes"; then | |
881bfcd6 | 36169 | cat >>confdefs.h <<\_ACEOF |
a848cd7e SC |
36170 | #define wxUSE_GUI 1 |
36171 | _ACEOF | |
36172 | ||
36173 | ||
370fd4c2 | 36174 | fi |
a848cd7e SC |
36175 | |
36176 | ||
36177 | if test "$wxUSE_UNIX" = "yes"; then | |
36178 | cat >>confdefs.h <<\_ACEOF | |
36179 | #define wxUSE_UNIX 1 | |
36180 | _ACEOF | |
36181 | ||
36182 | fi | |
36183 | ||
36184 | ||
36185 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
36186 | ||
36187 | HAVE_DL_FUNCS=0 | |
36188 | HAVE_SHL_FUNCS=0 | |
36189 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
36190 | if test "$USE_DARWIN" = 1; then | |
36191 | HAVE_DL_FUNCS=1 | |
47a7e797 MW |
36192 | elif test "$USE_DOS" = 1; then |
36193 | HAVE_DL_FUNCS=0 | |
a848cd7e SC |
36194 | else |
36195 | ||
36196 | for ac_func in dlopen | |
36197 | do | |
36198 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36199 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36200 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36201 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36203 | else | |
36204 | cat >conftest.$ac_ext <<_ACEOF | |
36205 | /* confdefs.h. */ | |
36206 | _ACEOF | |
36207 | cat confdefs.h >>conftest.$ac_ext | |
36208 | cat >>conftest.$ac_ext <<_ACEOF | |
36209 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36210 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36211 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36212 | #define $ac_func innocuous_$ac_func | |
36213 | ||
a848cd7e SC |
36214 | /* System header to define __stub macros and hopefully few prototypes, |
36215 | which can conflict with char $ac_func (); below. | |
36216 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36217 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36218 | |
a848cd7e SC |
36219 | #ifdef __STDC__ |
36220 | # include <limits.h> | |
36221 | #else | |
36222 | # include <assert.h> | |
36223 | #endif | |
ac1cb8d3 VS |
36224 | |
36225 | #undef $ac_func | |
36226 | ||
a848cd7e SC |
36227 | /* Override any gcc2 internal prototype to avoid an error. */ |
36228 | #ifdef __cplusplus | |
36229 | extern "C" | |
36230 | { | |
36231 | #endif | |
36232 | /* We use char because int might match the return type of a gcc2 | |
36233 | builtin and then its argument prototype would still apply. */ | |
36234 | char $ac_func (); | |
36235 | /* The GNU C library defines this for functions which it implements | |
36236 | to always fail with ENOSYS. Some functions are actually named | |
36237 | something starting with __ and the normal name is an alias. */ | |
36238 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36239 | choke me | |
36240 | #else | |
36241 | char (*f) () = $ac_func; | |
36242 | #endif | |
36243 | #ifdef __cplusplus | |
36244 | } | |
36245 | #endif | |
36246 | ||
36247 | int | |
36248 | main () | |
36249 | { | |
36250 | return f != $ac_func; | |
36251 | ; | |
36252 | return 0; | |
36253 | } | |
36254 | _ACEOF | |
36255 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36256 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36257 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36258 | ac_status=$? |
ac1cb8d3 VS |
36259 | grep -v '^ *+' conftest.er1 >conftest.err |
36260 | rm -f conftest.er1 | |
36261 | cat conftest.err >&5 | |
a848cd7e SC |
36262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36263 | (exit $ac_status); } && | |
ddd14b14 RR |
36264 | { ac_try='test -z "$ac_c_werror_flag" |
36265 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36267 | (eval $ac_try) 2>&5 | |
36268 | ac_status=$? | |
36269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36270 | (exit $ac_status); }; } && | |
36271 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36273 | (eval $ac_try) 2>&5 | |
36274 | ac_status=$? | |
36275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36276 | (exit $ac_status); }; }; then | |
36277 | eval "$as_ac_var=yes" | |
36278 | else | |
36279 | echo "$as_me: failed program was:" >&5 | |
36280 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36281 | ||
36282 | eval "$as_ac_var=no" | |
36283 | fi | |
ac1cb8d3 VS |
36284 | rm -f conftest.err conftest.$ac_objext \ |
36285 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36286 | fi |
36287 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36288 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36289 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36290 | cat >>confdefs.h <<_ACEOF | |
36291 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36292 | _ACEOF | |
36293 | ||
36294 | cat >>confdefs.h <<\_ACEOF | |
36295 | #define HAVE_DLOPEN 1 | |
36296 | _ACEOF | |
36297 | ||
36298 | HAVE_DL_FUNCS=1 | |
36299 | ||
36300 | else | |
36301 | ||
36302 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
36303 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
36304 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
36305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36306 | else | |
36307 | ac_check_lib_save_LIBS=$LIBS | |
36308 | LIBS="-ldl $LIBS" | |
36309 | cat >conftest.$ac_ext <<_ACEOF | |
36310 | /* confdefs.h. */ | |
36311 | _ACEOF | |
36312 | cat confdefs.h >>conftest.$ac_ext | |
36313 | cat >>conftest.$ac_ext <<_ACEOF | |
36314 | /* end confdefs.h. */ | |
36315 | ||
36316 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36317 | #ifdef __cplusplus | |
36318 | extern "C" | |
36319 | #endif | |
36320 | /* We use char because int might match the return type of a gcc2 | |
36321 | builtin and then its argument prototype would still apply. */ | |
36322 | char dlopen (); | |
36323 | int | |
36324 | main () | |
36325 | { | |
36326 | dlopen (); | |
36327 | ; | |
36328 | return 0; | |
36329 | } | |
36330 | _ACEOF | |
36331 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36332 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36333 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36334 | ac_status=$? |
ac1cb8d3 VS |
36335 | grep -v '^ *+' conftest.er1 >conftest.err |
36336 | rm -f conftest.er1 | |
36337 | cat conftest.err >&5 | |
a848cd7e SC |
36338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36339 | (exit $ac_status); } && | |
ddd14b14 RR |
36340 | { ac_try='test -z "$ac_c_werror_flag" |
36341 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36343 | (eval $ac_try) 2>&5 | |
36344 | ac_status=$? | |
36345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36346 | (exit $ac_status); }; } && | |
36347 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36349 | (eval $ac_try) 2>&5 | |
36350 | ac_status=$? | |
36351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36352 | (exit $ac_status); }; }; then | |
36353 | ac_cv_lib_dl_dlopen=yes | |
36354 | else | |
36355 | echo "$as_me: failed program was:" >&5 | |
36356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36357 | ||
36358 | ac_cv_lib_dl_dlopen=no | |
36359 | fi | |
ac1cb8d3 VS |
36360 | rm -f conftest.err conftest.$ac_objext \ |
36361 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36362 | LIBS=$ac_check_lib_save_LIBS |
36363 | fi | |
36364 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
36365 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
36366 | if test $ac_cv_lib_dl_dlopen = yes; then | |
36367 | ||
36368 | cat >>confdefs.h <<\_ACEOF | |
36369 | #define HAVE_DLOPEN 1 | |
36370 | _ACEOF | |
36371 | ||
36372 | HAVE_DL_FUNCS=1 | |
36373 | DL_LINK=" -ldl$DL_LINK" | |
36374 | ||
36375 | else | |
36376 | ||
36377 | ||
36378 | for ac_func in shl_load | |
36379 | do | |
36380 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36381 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36382 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36383 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36385 | else | |
36386 | cat >conftest.$ac_ext <<_ACEOF | |
36387 | /* confdefs.h. */ | |
36388 | _ACEOF | |
36389 | cat confdefs.h >>conftest.$ac_ext | |
36390 | cat >>conftest.$ac_ext <<_ACEOF | |
36391 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36392 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36393 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36394 | #define $ac_func innocuous_$ac_func | |
36395 | ||
a848cd7e SC |
36396 | /* System header to define __stub macros and hopefully few prototypes, |
36397 | which can conflict with char $ac_func (); below. | |
36398 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36399 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36400 | |
a848cd7e SC |
36401 | #ifdef __STDC__ |
36402 | # include <limits.h> | |
36403 | #else | |
36404 | # include <assert.h> | |
36405 | #endif | |
ac1cb8d3 VS |
36406 | |
36407 | #undef $ac_func | |
36408 | ||
a848cd7e SC |
36409 | /* Override any gcc2 internal prototype to avoid an error. */ |
36410 | #ifdef __cplusplus | |
36411 | extern "C" | |
36412 | { | |
36413 | #endif | |
36414 | /* We use char because int might match the return type of a gcc2 | |
36415 | builtin and then its argument prototype would still apply. */ | |
36416 | char $ac_func (); | |
36417 | /* The GNU C library defines this for functions which it implements | |
36418 | to always fail with ENOSYS. Some functions are actually named | |
36419 | something starting with __ and the normal name is an alias. */ | |
36420 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36421 | choke me | |
36422 | #else | |
36423 | char (*f) () = $ac_func; | |
36424 | #endif | |
36425 | #ifdef __cplusplus | |
36426 | } | |
36427 | #endif | |
36428 | ||
36429 | int | |
36430 | main () | |
36431 | { | |
36432 | return f != $ac_func; | |
36433 | ; | |
36434 | return 0; | |
36435 | } | |
36436 | _ACEOF | |
36437 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36438 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36439 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36440 | ac_status=$? |
ac1cb8d3 VS |
36441 | grep -v '^ *+' conftest.er1 >conftest.err |
36442 | rm -f conftest.er1 | |
36443 | cat conftest.err >&5 | |
a848cd7e SC |
36444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36445 | (exit $ac_status); } && | |
ddd14b14 RR |
36446 | { ac_try='test -z "$ac_c_werror_flag" |
36447 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36449 | (eval $ac_try) 2>&5 | |
36450 | ac_status=$? | |
36451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36452 | (exit $ac_status); }; } && | |
36453 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36455 | (eval $ac_try) 2>&5 | |
36456 | ac_status=$? | |
36457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36458 | (exit $ac_status); }; }; then | |
36459 | eval "$as_ac_var=yes" | |
36460 | else | |
36461 | echo "$as_me: failed program was:" >&5 | |
36462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36463 | ||
36464 | eval "$as_ac_var=no" | |
36465 | fi | |
ac1cb8d3 VS |
36466 | rm -f conftest.err conftest.$ac_objext \ |
36467 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36468 | fi |
36469 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36470 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36471 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36472 | cat >>confdefs.h <<_ACEOF | |
36473 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36474 | _ACEOF | |
36475 | ||
36476 | cat >>confdefs.h <<\_ACEOF | |
36477 | #define HAVE_SHL_LOAD 1 | |
36478 | _ACEOF | |
36479 | ||
36480 | HAVE_SHL_FUNCS=1 | |
36481 | ||
36482 | else | |
36483 | ||
36484 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
36485 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
36486 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
36487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36488 | else | |
36489 | ac_check_lib_save_LIBS=$LIBS | |
36490 | LIBS="-lshl_load $LIBS" | |
36491 | cat >conftest.$ac_ext <<_ACEOF | |
36492 | /* confdefs.h. */ | |
36493 | _ACEOF | |
36494 | cat confdefs.h >>conftest.$ac_ext | |
36495 | cat >>conftest.$ac_ext <<_ACEOF | |
36496 | /* end confdefs.h. */ | |
36497 | ||
36498 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36499 | #ifdef __cplusplus | |
36500 | extern "C" | |
36501 | #endif | |
36502 | /* We use char because int might match the return type of a gcc2 | |
36503 | builtin and then its argument prototype would still apply. */ | |
36504 | char dld (); | |
36505 | int | |
36506 | main () | |
36507 | { | |
36508 | dld (); | |
36509 | ; | |
36510 | return 0; | |
36511 | } | |
36512 | _ACEOF | |
36513 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36514 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36515 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36516 | ac_status=$? |
ac1cb8d3 VS |
36517 | grep -v '^ *+' conftest.er1 >conftest.err |
36518 | rm -f conftest.er1 | |
36519 | cat conftest.err >&5 | |
a848cd7e SC |
36520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36521 | (exit $ac_status); } && | |
ddd14b14 RR |
36522 | { ac_try='test -z "$ac_c_werror_flag" |
36523 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36525 | (eval $ac_try) 2>&5 | |
36526 | ac_status=$? | |
36527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36528 | (exit $ac_status); }; } && | |
36529 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36531 | (eval $ac_try) 2>&5 | |
36532 | ac_status=$? | |
36533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36534 | (exit $ac_status); }; }; then | |
36535 | ac_cv_lib_shl_load_dld=yes | |
36536 | else | |
36537 | echo "$as_me: failed program was:" >&5 | |
36538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36539 | ||
36540 | ac_cv_lib_shl_load_dld=no | |
36541 | fi | |
ac1cb8d3 VS |
36542 | rm -f conftest.err conftest.$ac_objext \ |
36543 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36544 | LIBS=$ac_check_lib_save_LIBS |
36545 | fi | |
36546 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
36547 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
36548 | if test $ac_cv_lib_shl_load_dld = yes; then | |
36549 | ||
36550 | HAVE_SHL_FUNCS=1 | |
36551 | DL_LINK=" -ldld$DL_LINK" | |
36552 | ||
36553 | fi | |
36554 | ||
36555 | ||
36556 | fi | |
36557 | done | |
36558 | ||
36559 | ||
36560 | fi | |
36561 | ||
36562 | ||
36563 | fi | |
36564 | done | |
36565 | ||
36566 | ||
36567 | if test "$HAVE_DL_FUNCS" = 1; then | |
36568 | ||
36569 | for ac_func in dlerror | |
36570 | do | |
36571 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36572 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36573 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36574 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36576 | else | |
36577 | cat >conftest.$ac_ext <<_ACEOF | |
36578 | /* confdefs.h. */ | |
36579 | _ACEOF | |
36580 | cat confdefs.h >>conftest.$ac_ext | |
36581 | cat >>conftest.$ac_ext <<_ACEOF | |
36582 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36583 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36584 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36585 | #define $ac_func innocuous_$ac_func | |
36586 | ||
a848cd7e SC |
36587 | /* System header to define __stub macros and hopefully few prototypes, |
36588 | which can conflict with char $ac_func (); below. | |
36589 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36590 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36591 | |
a848cd7e SC |
36592 | #ifdef __STDC__ |
36593 | # include <limits.h> | |
36594 | #else | |
36595 | # include <assert.h> | |
36596 | #endif | |
ac1cb8d3 VS |
36597 | |
36598 | #undef $ac_func | |
36599 | ||
a848cd7e SC |
36600 | /* Override any gcc2 internal prototype to avoid an error. */ |
36601 | #ifdef __cplusplus | |
36602 | extern "C" | |
36603 | { | |
36604 | #endif | |
36605 | /* We use char because int might match the return type of a gcc2 | |
36606 | builtin and then its argument prototype would still apply. */ | |
36607 | char $ac_func (); | |
36608 | /* The GNU C library defines this for functions which it implements | |
36609 | to always fail with ENOSYS. Some functions are actually named | |
36610 | something starting with __ and the normal name is an alias. */ | |
36611 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36612 | choke me | |
36613 | #else | |
36614 | char (*f) () = $ac_func; | |
36615 | #endif | |
36616 | #ifdef __cplusplus | |
36617 | } | |
36618 | #endif | |
36619 | ||
36620 | int | |
36621 | main () | |
36622 | { | |
36623 | return f != $ac_func; | |
36624 | ; | |
36625 | return 0; | |
36626 | } | |
36627 | _ACEOF | |
36628 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36629 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36630 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36631 | ac_status=$? |
ac1cb8d3 VS |
36632 | grep -v '^ *+' conftest.er1 >conftest.err |
36633 | rm -f conftest.er1 | |
36634 | cat conftest.err >&5 | |
a848cd7e SC |
36635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36636 | (exit $ac_status); } && | |
ddd14b14 RR |
36637 | { ac_try='test -z "$ac_c_werror_flag" |
36638 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36640 | (eval $ac_try) 2>&5 | |
36641 | ac_status=$? | |
36642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36643 | (exit $ac_status); }; } && | |
36644 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36646 | (eval $ac_try) 2>&5 | |
36647 | ac_status=$? | |
36648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36649 | (exit $ac_status); }; }; then | |
36650 | eval "$as_ac_var=yes" | |
36651 | else | |
36652 | echo "$as_me: failed program was:" >&5 | |
36653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36654 | ||
36655 | eval "$as_ac_var=no" | |
36656 | fi | |
ac1cb8d3 VS |
36657 | rm -f conftest.err conftest.$ac_objext \ |
36658 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36659 | fi |
36660 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36661 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36662 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36663 | cat >>confdefs.h <<_ACEOF | |
36664 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36665 | _ACEOF | |
36666 | cat >>confdefs.h <<\_ACEOF | |
36667 | #define HAVE_DLERROR 1 | |
36668 | _ACEOF | |
36669 | ||
36670 | else | |
36671 | ||
36672 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
36673 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
36674 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
36675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36676 | else | |
36677 | ac_check_lib_save_LIBS=$LIBS | |
36678 | LIBS="-ldl $LIBS" | |
36679 | cat >conftest.$ac_ext <<_ACEOF | |
36680 | /* confdefs.h. */ | |
36681 | _ACEOF | |
36682 | cat confdefs.h >>conftest.$ac_ext | |
36683 | cat >>conftest.$ac_ext <<_ACEOF | |
36684 | /* end confdefs.h. */ | |
36685 | ||
36686 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36687 | #ifdef __cplusplus | |
36688 | extern "C" | |
36689 | #endif | |
36690 | /* We use char because int might match the return type of a gcc2 | |
36691 | builtin and then its argument prototype would still apply. */ | |
36692 | char dlerror (); | |
36693 | int | |
36694 | main () | |
36695 | { | |
36696 | dlerror (); | |
36697 | ; | |
36698 | return 0; | |
36699 | } | |
36700 | _ACEOF | |
36701 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36702 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36703 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36704 | ac_status=$? |
ac1cb8d3 VS |
36705 | grep -v '^ *+' conftest.er1 >conftest.err |
36706 | rm -f conftest.er1 | |
36707 | cat conftest.err >&5 | |
a848cd7e SC |
36708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36709 | (exit $ac_status); } && | |
ddd14b14 RR |
36710 | { ac_try='test -z "$ac_c_werror_flag" |
36711 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36713 | (eval $ac_try) 2>&5 | |
36714 | ac_status=$? | |
36715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36716 | (exit $ac_status); }; } && | |
36717 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36719 | (eval $ac_try) 2>&5 | |
36720 | ac_status=$? | |
36721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36722 | (exit $ac_status); }; }; then | |
36723 | ac_cv_lib_dl_dlerror=yes | |
36724 | else | |
36725 | echo "$as_me: failed program was:" >&5 | |
36726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36727 | ||
36728 | ac_cv_lib_dl_dlerror=no | |
36729 | fi | |
ac1cb8d3 VS |
36730 | rm -f conftest.err conftest.$ac_objext \ |
36731 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36732 | LIBS=$ac_check_lib_save_LIBS |
36733 | fi | |
36734 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
36735 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
36736 | if test $ac_cv_lib_dl_dlerror = yes; then | |
36737 | cat >>confdefs.h <<\_ACEOF | |
36738 | #define HAVE_DLERROR 1 | |
36739 | _ACEOF | |
36740 | ||
36741 | fi | |
36742 | ||
36743 | ||
36744 | ||
36745 | fi | |
36746 | done | |
36747 | ||
36748 | fi | |
36749 | fi | |
36750 | ||
36751 | if test "$HAVE_DL_FUNCS" = 0; then | |
36752 | if test "$HAVE_SHL_FUNCS" = 0; then | |
47a7e797 | 36753 | if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then |
a848cd7e SC |
36754 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
36755 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
36756 | wxUSE_DYNAMIC_LOADER=no | |
36757 | wxUSE_DYNLIB_CLASS=no | |
36758 | else | |
36759 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
36760 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
36761 | fi | |
36762 | fi | |
36763 | fi | |
36764 | fi | |
36765 | fi | |
36766 | ||
36767 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
36768 | cat >>confdefs.h <<\_ACEOF | |
36769 | #define wxUSE_DYNAMIC_LOADER 1 | |
36770 | _ACEOF | |
36771 | ||
36772 | fi | |
36773 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
36774 | cat >>confdefs.h <<\_ACEOF | |
36775 | #define wxUSE_DYNLIB_CLASS 1 | |
36776 | _ACEOF | |
36777 | ||
36778 | fi | |
36779 | ||
36780 | ||
36781 | ||
36782 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
36783 | if test "$wxUSE_SHARED" = "no" ; then | |
36784 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
36785 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
36786 | wxUSE_PLUGINS=no | |
36787 | fi | |
36788 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
36789 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
36790 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
36791 | wxUSE_PLUGINS=no | |
36792 | fi | |
36793 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
36794 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
36795 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
36796 | wxUSE_PLUGINS=no | |
36797 | fi | |
36798 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
36799 | cat >>confdefs.h <<\_ACEOF | |
36800 | #define wxUSE_PLUGINS 1 | |
36801 | _ACEOF | |
36802 | ||
36803 | fi | |
36804 | fi | |
36805 | ||
36806 | ||
36807 | if test "$wxUSE_STL" = "yes"; then | |
36808 | cat >>confdefs.h <<\_ACEOF | |
36809 | #define wxUSE_STL 1 | |
36810 | _ACEOF | |
36811 | ||
36812 | fi | |
36813 | ||
36814 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
36815 | cat >>confdefs.h <<\_ACEOF | |
36816 | #define wxUSE_APPLE_IEEE 1 | |
36817 | _ACEOF | |
36818 | ||
36819 | fi | |
36820 | ||
36821 | if test "$wxUSE_TIMER" = "yes"; then | |
36822 | cat >>confdefs.h <<\_ACEOF | |
36823 | #define wxUSE_TIMER 1 | |
36824 | _ACEOF | |
36825 | ||
36826 | fi | |
36827 | ||
9c112555 | 36828 | if test "$USE_UNIX" = "1" ; then |
a848cd7e SC |
36829 | |
36830 | for ac_header in sys/soundcard.h | |
36831 | do | |
36832 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36833 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36834 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36835 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36836 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36838 | fi | |
36839 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36840 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36841 | else | |
36842 | # Is the header compilable? | |
36843 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36844 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36845 | cat >conftest.$ac_ext <<_ACEOF | |
36846 | /* confdefs.h. */ | |
36847 | _ACEOF | |
36848 | cat confdefs.h >>conftest.$ac_ext | |
36849 | cat >>conftest.$ac_ext <<_ACEOF | |
36850 | /* end confdefs.h. */ | |
36851 | $ac_includes_default | |
36852 | #include <$ac_header> | |
36853 | _ACEOF | |
36854 | rm -f conftest.$ac_objext | |
36855 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36856 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36857 | ac_status=$? |
ac1cb8d3 VS |
36858 | grep -v '^ *+' conftest.er1 >conftest.err |
36859 | rm -f conftest.er1 | |
36860 | cat conftest.err >&5 | |
a848cd7e SC |
36861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36862 | (exit $ac_status); } && | |
ddd14b14 RR |
36863 | { ac_try='test -z "$ac_c_werror_flag" |
36864 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36866 | (eval $ac_try) 2>&5 | |
36867 | ac_status=$? | |
36868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36869 | (exit $ac_status); }; } && | |
36870 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36872 | (eval $ac_try) 2>&5 | |
36873 | ac_status=$? | |
36874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36875 | (exit $ac_status); }; }; then | |
36876 | ac_header_compiler=yes | |
36877 | else | |
36878 | echo "$as_me: failed program was:" >&5 | |
36879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36880 | ||
36881 | ac_header_compiler=no | |
36882 | fi | |
ac1cb8d3 | 36883 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36884 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36885 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36886 | ||
36887 | # Is the header present? | |
36888 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36889 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36890 | cat >conftest.$ac_ext <<_ACEOF | |
36891 | /* confdefs.h. */ | |
36892 | _ACEOF | |
36893 | cat confdefs.h >>conftest.$ac_ext | |
36894 | cat >>conftest.$ac_ext <<_ACEOF | |
36895 | /* end confdefs.h. */ | |
36896 | #include <$ac_header> | |
36897 | _ACEOF | |
36898 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36899 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36900 | ac_status=$? | |
36901 | grep -v '^ *+' conftest.er1 >conftest.err | |
36902 | rm -f conftest.er1 | |
36903 | cat conftest.err >&5 | |
36904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36905 | (exit $ac_status); } >/dev/null; then | |
36906 | if test -s conftest.err; then | |
36907 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 36908 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
36909 | else |
36910 | ac_cpp_err= | |
36911 | fi | |
36912 | else | |
36913 | ac_cpp_err=yes | |
36914 | fi | |
36915 | if test -z "$ac_cpp_err"; then | |
36916 | ac_header_preproc=yes | |
36917 | else | |
36918 | echo "$as_me: failed program was:" >&5 | |
36919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36920 | ||
36921 | ac_header_preproc=no | |
36922 | fi | |
36923 | rm -f conftest.err conftest.$ac_ext | |
36924 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36925 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36926 | ||
36927 | # So? What about this header? | |
ac1cb8d3 VS |
36928 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36929 | yes:no: ) | |
a848cd7e SC |
36930 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36931 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36932 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36933 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36934 | ac_header_preproc=yes | |
a848cd7e | 36935 | ;; |
ac1cb8d3 | 36936 | no:yes:* ) |
a848cd7e SC |
36937 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36938 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36939 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36940 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36941 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36942 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36943 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36944 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36945 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36946 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36947 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36948 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36949 | ( |
36950 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36951 | ## ----------------------------------------- ## |
36952 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36953 | ## ----------------------------------------- ## | |
a848cd7e SC |
36954 | _ASBOX |
36955 | ) | | |
36956 | sed "s/^/$as_me: WARNING: /" >&2 | |
36957 | ;; | |
36958 | esac | |
36959 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36960 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36961 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36963 | else | |
ac1cb8d3 | 36964 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36965 | fi |
36966 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36967 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36968 | ||
36969 | fi | |
36970 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36971 | cat >>confdefs.h <<_ACEOF | |
36972 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36973 | _ACEOF | |
36974 | ||
9c112555 MW |
36975 | else |
36976 | DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia" | |
a848cd7e SC |
36977 | fi |
36978 | ||
36979 | done | |
36980 | ||
9c112555 MW |
36981 | fi |
36982 | WITH_PLUGIN_SDL=0 | |
36983 | if test "$wxUSE_SOUND" = "yes"; then | |
36984 | if test "$USE_UNIX" = "1" ; then | |
a848cd7e SC |
36985 | if test "$wxUSE_LIBSDL" != "no"; then |
36986 | ||
36987 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
36988 | if test "${with_sdl_prefix+set}" = set; then | |
36989 | withval="$with_sdl_prefix" | |
36990 | sdl_prefix="$withval" | |
36991 | else | |
36992 | sdl_prefix="" | |
36993 | fi; | |
36994 | ||
36995 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
36996 | if test "${with_sdl_exec_prefix+set}" = set; then | |
36997 | withval="$with_sdl_exec_prefix" | |
36998 | sdl_exec_prefix="$withval" | |
36999 | else | |
37000 | sdl_exec_prefix="" | |
37001 | fi; | |
37002 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
37003 | if test "${enable_sdltest+set}" = set; then | |
37004 | enableval="$enable_sdltest" | |
37005 | ||
37006 | else | |
37007 | enable_sdltest=yes | |
37008 | fi; | |
37009 | ||
37010 | if test x$sdl_exec_prefix != x ; then | |
37011 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
37012 | if test x${SDL_CONFIG+set} != xset ; then | |
37013 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
37014 | fi | |
37015 | fi | |
37016 | if test x$sdl_prefix != x ; then | |
37017 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
37018 | if test x${SDL_CONFIG+set} != xset ; then | |
37019 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
37020 | fi | |
37021 | fi | |
37022 | ||
37023 | ||
37024 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
37025 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
37026 | set dummy sdl-config; ac_word=$2 | |
37027 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37028 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37029 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
37030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37031 | else | |
37032 | case $SDL_CONFIG in | |
37033 | [\\/]* | ?:[\\/]*) | |
37034 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
37035 | ;; | |
37036 | *) | |
37037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37038 | for as_dir in $PATH | |
37039 | do | |
37040 | IFS=$as_save_IFS | |
37041 | test -z "$as_dir" && as_dir=. | |
37042 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37043 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37044 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
37045 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37046 | break 2 | |
37047 | fi | |
37048 | done | |
37049 | done | |
37050 | ||
37051 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
37052 | ;; | |
37053 | esac | |
37054 | fi | |
37055 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
37056 | ||
37057 | if test -n "$SDL_CONFIG"; then | |
37058 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
37059 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
37060 | else | |
37061 | echo "$as_me:$LINENO: result: no" >&5 | |
37062 | echo "${ECHO_T}no" >&6 | |
37063 | fi | |
37064 | ||
37065 | min_sdl_version=1.2.0 | |
37066 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
37067 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
37068 | no_sdl="" | |
37069 | if test "$SDL_CONFIG" = "no" ; then | |
37070 | no_sdl=yes | |
37071 | else | |
37072 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
37073 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
37074 | ||
37075 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
37076 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
37077 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
37078 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
37079 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
37080 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
37081 | if test "x$enable_sdltest" = "xyes" ; then | |
37082 | ac_save_CFLAGS="$CFLAGS" | |
94acd38e | 37083 | ac_save_CXXFLAGS="$CXXFLAGS" |
a848cd7e SC |
37084 | ac_save_LIBS="$LIBS" |
37085 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 37086 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
37087 | LIBS="$LIBS $SDL_LIBS" |
37088 | rm -f conf.sdltest | |
37089 | if test "$cross_compiling" = yes; then | |
37090 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
37091 | else | |
37092 | cat >conftest.$ac_ext <<_ACEOF | |
37093 | /* confdefs.h. */ | |
37094 | _ACEOF | |
37095 | cat confdefs.h >>conftest.$ac_ext | |
37096 | cat >>conftest.$ac_ext <<_ACEOF | |
37097 | /* end confdefs.h. */ | |
37098 | ||
37099 | #include <stdio.h> | |
37100 | #include <stdlib.h> | |
37101 | #include <string.h> | |
37102 | #include "SDL.h" | |
37103 | ||
37104 | char* | |
37105 | my_strdup (char *str) | |
37106 | { | |
37107 | char *new_str; | |
37108 | ||
37109 | if (str) | |
37110 | { | |
37111 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
37112 | strcpy (new_str, str); | |
37113 | } | |
37114 | else | |
37115 | new_str = NULL; | |
37116 | ||
37117 | return new_str; | |
37118 | } | |
37119 | ||
37120 | int main (int argc, char *argv[]) | |
37121 | { | |
37122 | int major, minor, micro; | |
37123 | char *tmp_version; | |
37124 | ||
37125 | /* This hangs on some systems (?) | |
37126 | system ("touch conf.sdltest"); | |
37127 | */ | |
37128 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
37129 | ||
37130 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
37131 | tmp_version = my_strdup("$min_sdl_version"); | |
37132 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
37133 | printf("%s, bad version string\n", "$min_sdl_version"); | |
37134 | exit(1); | |
37135 | } | |
37136 | ||
37137 | if (($sdl_major_version > major) || | |
37138 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
37139 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
37140 | { | |
37141 | return 0; | |
37142 | } | |
37143 | else | |
37144 | { | |
37145 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
37146 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
37147 | printf("*** best to upgrade to the required version.\n"); | |
37148 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
37149 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
37150 | printf("*** config.cache before re-running configure\n"); | |
37151 | return 1; | |
37152 | } | |
37153 | } | |
37154 | ||
37155 | ||
37156 | _ACEOF | |
37157 | rm -f conftest$ac_exeext | |
37158 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
37159 | (eval $ac_link) 2>&5 | |
37160 | ac_status=$? | |
37161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37162 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
37163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37164 | (eval $ac_try) 2>&5 | |
37165 | ac_status=$? | |
37166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37167 | (exit $ac_status); }; }; then | |
37168 | : | |
37169 | else | |
37170 | echo "$as_me: program exited with status $ac_status" >&5 | |
37171 | echo "$as_me: failed program was:" >&5 | |
37172 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37173 | ||
37174 | ( exit $ac_status ) | |
37175 | no_sdl=yes | |
37176 | fi | |
ac1cb8d3 | 37177 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37178 | fi |
37179 | CFLAGS="$ac_save_CFLAGS" | |
94acd38e | 37180 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
37181 | LIBS="$ac_save_LIBS" |
37182 | fi | |
37183 | fi | |
37184 | if test "x$no_sdl" = x ; then | |
37185 | echo "$as_me:$LINENO: result: yes" >&5 | |
37186 | echo "${ECHO_T}yes" >&6 | |
37187 | ||
37188 | EXTRALIBS_SDL="$SDL_LIBS" | |
37189 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
37190 | cat >>confdefs.h <<\_ACEOF | |
37191 | #define wxUSE_LIBSDL 1 | |
37192 | _ACEOF | |
37193 | ||
37194 | ||
37195 | else | |
37196 | echo "$as_me:$LINENO: result: no" >&5 | |
37197 | echo "${ECHO_T}no" >&6 | |
37198 | if test "$SDL_CONFIG" = "no" ; then | |
37199 | echo "*** The sdl-config script installed by SDL could not be found" | |
37200 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
37201 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
37202 | echo "*** full path to sdl-config." | |
37203 | else | |
37204 | if test -f conf.sdltest ; then | |
37205 | : | |
37206 | else | |
37207 | echo "*** Could not run SDL test program, checking why..." | |
37208 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 37209 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
37210 | LIBS="$LIBS $SDL_LIBS" |
37211 | cat >conftest.$ac_ext <<_ACEOF | |
37212 | /* confdefs.h. */ | |
37213 | _ACEOF | |
37214 | cat confdefs.h >>conftest.$ac_ext | |
37215 | cat >>conftest.$ac_ext <<_ACEOF | |
37216 | /* end confdefs.h. */ | |
37217 | ||
37218 | #include <stdio.h> | |
37219 | #include "SDL.h" | |
37220 | ||
37221 | int main(int argc, char *argv[]) | |
37222 | { return 0; } | |
37223 | #undef main | |
37224 | #define main K_and_R_C_main | |
37225 | ||
37226 | int | |
37227 | main () | |
37228 | { | |
37229 | return 0; | |
37230 | ; | |
37231 | return 0; | |
37232 | } | |
37233 | _ACEOF | |
37234 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37235 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37236 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37237 | ac_status=$? |
ac1cb8d3 VS |
37238 | grep -v '^ *+' conftest.er1 >conftest.err |
37239 | rm -f conftest.er1 | |
37240 | cat conftest.err >&5 | |
a848cd7e SC |
37241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37242 | (exit $ac_status); } && | |
ddd14b14 RR |
37243 | { ac_try='test -z "$ac_c_werror_flag" |
37244 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37246 | (eval $ac_try) 2>&5 | |
37247 | ac_status=$? | |
37248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37249 | (exit $ac_status); }; } && | |
37250 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37252 | (eval $ac_try) 2>&5 | |
37253 | ac_status=$? | |
37254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37255 | (exit $ac_status); }; }; then | |
37256 | echo "*** The test program compiled, but did not run. This usually means" | |
37257 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
37258 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
37259 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
37260 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
37261 | echo "*** is required on your system" | |
37262 | echo "***" | |
37263 | echo "*** If you have an old version installed, it is best to remove it, although" | |
37264 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
37265 | else | |
37266 | echo "$as_me: failed program was:" >&5 | |
37267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37268 | ||
37269 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
37270 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
37271 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
37272 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
37273 | fi | |
ac1cb8d3 VS |
37274 | rm -f conftest.err conftest.$ac_objext \ |
37275 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 37276 | CFLAGS="$ac_save_CFLAGS" |
94acd38e | 37277 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
37278 | LIBS="$ac_save_LIBS" |
37279 | fi | |
37280 | fi | |
37281 | SDL_CFLAGS="" | |
37282 | SDL_LIBS="" | |
37283 | wxUSE_LIBSDL="no" | |
37284 | fi | |
37285 | ||
37286 | ||
37287 | rm -f conf.sdltest | |
37288 | ||
37289 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
37290 | WITH_PLUGIN_SDL=1 | |
37291 | fi | |
37292 | fi | |
37293 | fi | |
37294 | ||
37295 | cat >>confdefs.h <<\_ACEOF | |
37296 | #define wxUSE_SOUND 1 | |
37297 | _ACEOF | |
37298 | ||
37299 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
37300 | fi | |
37301 | ||
d1c38808 VZ |
37302 | if test "$WXGTK20" = 1; then |
37303 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
37304 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
37305 | ||
37306 | ||
37307 | succeeded=no | |
37308 | ||
37309 | if test -z "$PKG_CONFIG"; then | |
37310 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
37311 | set dummy pkg-config; ac_word=$2 | |
37312 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37313 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37314 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
37315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37316 | else | |
37317 | case $PKG_CONFIG in | |
37318 | [\\/]* | ?:[\\/]*) | |
37319 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
37320 | ;; | |
37321 | *) | |
37322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37323 | for as_dir in $PATH | |
37324 | do | |
37325 | IFS=$as_save_IFS | |
37326 | test -z "$as_dir" && as_dir=. | |
37327 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37328 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37329 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
37330 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37331 | break 2 | |
37332 | fi | |
37333 | done | |
37334 | done | |
37335 | ||
37336 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
37337 | ;; | |
37338 | esac | |
37339 | fi | |
37340 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
37341 | ||
37342 | if test -n "$PKG_CONFIG"; then | |
37343 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
37344 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
37345 | else | |
37346 | echo "$as_me:$LINENO: result: no" >&5 | |
37347 | echo "${ECHO_T}no" >&6 | |
37348 | fi | |
37349 | ||
37350 | fi | |
37351 | ||
37352 | if test "$PKG_CONFIG" = "no" ; then | |
37353 | echo "*** The pkg-config script could not be found. Make sure it is" | |
37354 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
37355 | echo "*** to the full path to pkg-config." | |
37356 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
37357 | else | |
37358 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
37359 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ffa762ff VS |
37360 | echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5 |
37361 | echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6 | |
d1c38808 | 37362 | |
ffa762ff | 37363 | if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then |
d1c38808 VZ |
37364 | echo "$as_me:$LINENO: result: yes" >&5 |
37365 | echo "${ECHO_T}yes" >&6 | |
37366 | succeeded=yes | |
37367 | ||
37368 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5 | |
37369 | echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6 | |
ffa762ff | 37370 | LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
37371 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5 |
37372 | echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6 | |
37373 | ||
37374 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5 | |
37375 | echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6 | |
ffa762ff | 37376 | LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
37377 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5 |
37378 | echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6 | |
37379 | else | |
37380 | LIBGNOMEPRINTUI_CFLAGS="" | |
37381 | LIBGNOMEPRINTUI_LIBS="" | |
37382 | ## If we have a custom action on failure, don't print errors, but | |
37383 | ## do set a variable so people can do so. | |
ffa762ff | 37384 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
37385 | |
37386 | fi | |
37387 | ||
37388 | ||
37389 | ||
37390 | else | |
37391 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
37392 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
37393 | fi | |
37394 | fi | |
37395 | ||
37396 | if test $succeeded = yes; then | |
37397 | ||
d1c38808 VZ |
37398 | CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS" |
37399 | cat >>confdefs.h <<\_ACEOF | |
37400 | #define wxUSE_LIBGNOMEPRINT 1 | |
37401 | _ACEOF | |
37402 | ||
37403 | ||
37404 | else | |
37405 | ||
37406 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
37407 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
37408 | wxUSE_LIBGNOMEPRINT="no" | |
37409 | ||
37410 | ||
37411 | fi | |
37412 | ||
37413 | fi | |
37414 | fi | |
37415 | fi | |
37416 | ||
37417 | ||
a848cd7e SC |
37418 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
37419 | cat >>confdefs.h <<\_ACEOF | |
37420 | #define wxUSE_CMDLINE_PARSER 1 | |
37421 | _ACEOF | |
37422 | ||
37423 | fi | |
37424 | ||
37425 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
37426 | cat >>confdefs.h <<\_ACEOF | |
37427 | #define wxUSE_STOPWATCH 1 | |
37428 | _ACEOF | |
37429 | ||
37430 | fi | |
37431 | ||
37432 | if test "$wxUSE_DATETIME" = "yes"; then | |
37433 | cat >>confdefs.h <<\_ACEOF | |
37434 | #define wxUSE_DATETIME 1 | |
37435 | _ACEOF | |
37436 | ||
37437 | fi | |
37438 | ||
37439 | if test "$wxUSE_FILE" = "yes"; then | |
37440 | cat >>confdefs.h <<\_ACEOF | |
37441 | #define wxUSE_FILE 1 | |
37442 | _ACEOF | |
37443 | ||
37444 | fi | |
37445 | ||
37446 | if test "$wxUSE_FFILE" = "yes"; then | |
37447 | cat >>confdefs.h <<\_ACEOF | |
37448 | #define wxUSE_FFILE 1 | |
37449 | _ACEOF | |
37450 | ||
37451 | fi | |
37452 | ||
37453 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
37454 | cat >>confdefs.h <<\_ACEOF | |
37455 | #define wxUSE_FILESYSTEM 1 | |
37456 | _ACEOF | |
37457 | ||
37458 | fi | |
37459 | ||
37460 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
37461 | cat >>confdefs.h <<\_ACEOF | |
37462 | #define wxUSE_FS_ZIP 1 | |
37463 | _ACEOF | |
37464 | ||
37465 | fi | |
37466 | ||
9e8e867f | 37467 | if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then |
a848cd7e | 37468 | cat >>confdefs.h <<\_ACEOF |
9e8e867f | 37469 | #define wxUSE_ARCHIVE_STREAMS 1 |
81f90336 MW |
37470 | _ACEOF |
37471 | ||
37472 | fi | |
37473 | ||
37474 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
9e8e867f | 37475 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then |
81f90336 MW |
37476 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5 |
37477 | echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;} | |
37478 | elif test "$wxUSE_ZLIB" = "no"; then | |
37479 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5 | |
37480 | echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;} | |
37481 | else | |
37482 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
37483 | #define wxUSE_ZIPSTREAM 1 |
37484 | _ACEOF | |
37485 | ||
81f90336 | 37486 | fi |
a848cd7e SC |
37487 | fi |
37488 | ||
a848cd7e | 37489 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
18228ab4 MW |
37490 | if test "$USE_UNIX" != 1; then |
37491 | { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5 | |
37492 | echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;} | |
37493 | wxUSE_ON_FATAL_EXCEPTION=no | |
37494 | else | |
37495 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
37496 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
37497 | _ACEOF | |
37498 | ||
18228ab4 | 37499 | fi |
a848cd7e SC |
37500 | fi |
37501 | ||
eaff0f0d VZ |
37502 | if test "$wxUSE_STACKWALKER" = "yes"; then |
37503 | cat >>confdefs.h <<\_ACEOF | |
37504 | #define wxUSE_STACKWALKER 1 | |
37505 | _ACEOF | |
37506 | ||
37507 | fi | |
37508 | ||
36b6448c | 37509 | if test "$wxUSE_DEBUGREPORT" = "yes"; then |
18228ab4 MW |
37510 | if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then |
37511 | { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5 | |
37512 | echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;} | |
dfe0c803 JS |
37513 | wxUSE_DEBUGREPORT=no |
37514 | else | |
37515 | cat >>confdefs.h <<\_ACEOF | |
36b6448c VZ |
37516 | #define wxUSE_DEBUGREPORT 1 |
37517 | _ACEOF | |
37518 | ||
21dfc162 MW |
37519 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
37520 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt" | |
37521 | fi | |
dfe0c803 | 37522 | fi |
36b6448c VZ |
37523 | fi |
37524 | ||
a848cd7e SC |
37525 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
37526 | cat >>confdefs.h <<\_ACEOF | |
37527 | #define wxUSE_SNGLINST_CHECKER 1 | |
37528 | _ACEOF | |
37529 | ||
37530 | fi | |
37531 | ||
37532 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
37533 | cat >>confdefs.h <<\_ACEOF | |
37534 | #define wxUSE_BUSYINFO 1 | |
37535 | _ACEOF | |
37536 | ||
37537 | fi | |
37538 | ||
37539 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
37540 | cat >>confdefs.h <<\_ACEOF | |
37541 | #define wxUSE_STD_IOSTREAM 1 | |
37542 | _ACEOF | |
37543 | ||
37544 | fi | |
37545 | ||
59746b65 MW |
37546 | if test "$wxUSE_STD_STRING" = "yes"; then |
37547 | cat >>confdefs.h <<\_ACEOF | |
37548 | #define wxUSE_STD_STRING 1 | |
37549 | _ACEOF | |
37550 | ||
37551 | fi | |
37552 | ||
07158944 VZ |
37553 | if test "$wxUSE_STDPATHS" = "yes"; then |
37554 | cat >>confdefs.h <<\_ACEOF | |
37555 | #define wxUSE_STDPATHS 1 | |
37556 | _ACEOF | |
37557 | ||
37558 | fi | |
37559 | ||
a848cd7e SC |
37560 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
37561 | cat >>confdefs.h <<\_ACEOF | |
37562 | #define wxUSE_TEXTBUFFER 1 | |
37563 | _ACEOF | |
37564 | ||
37565 | fi | |
37566 | ||
37567 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
37568 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
37569 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
37570 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
37571 | else | |
37572 | cat >>confdefs.h <<\_ACEOF | |
37573 | #define wxUSE_TEXTFILE 1 | |
37574 | _ACEOF | |
37575 | ||
37576 | fi | |
37577 | fi | |
37578 | ||
37579 | if test "$wxUSE_CONFIG" = "yes" ; then | |
37580 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
37581 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
37582 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
37583 | else | |
37584 | cat >>confdefs.h <<\_ACEOF | |
37585 | #define wxUSE_CONFIG 1 | |
89be85c2 VS |
37586 | _ACEOF |
37587 | ||
37588 | cat >>confdefs.h <<\_ACEOF | |
37589 | #define wxUSE_CONFIG_NATIVE 1 | |
a848cd7e SC |
37590 | _ACEOF |
37591 | ||
37592 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
37593 | fi | |
37594 | fi | |
37595 | ||
37596 | if test "$wxUSE_INTL" = "yes" ; then | |
37597 | if test "$wxUSE_FILE" != "yes"; then | |
37598 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
37599 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
37600 | else | |
37601 | cat >>confdefs.h <<\_ACEOF | |
37602 | #define wxUSE_INTL 1 | |
37603 | _ACEOF | |
37604 | ||
37605 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
37606 | GUIDIST="$GUIDIST INTL_DIST" | |
37607 | fi | |
37608 | fi | |
37609 | ||
37610 | if test "$wxUSE_LOG" = "yes"; then | |
37611 | cat >>confdefs.h <<\_ACEOF | |
37612 | #define wxUSE_LOG 1 | |
37613 | _ACEOF | |
37614 | ||
37615 | ||
37616 | if test "$wxUSE_LOGGUI" = "yes"; then | |
37617 | cat >>confdefs.h <<\_ACEOF | |
37618 | #define wxUSE_LOGGUI 1 | |
37619 | _ACEOF | |
37620 | ||
37621 | fi | |
37622 | ||
37623 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
37624 | cat >>confdefs.h <<\_ACEOF | |
37625 | #define wxUSE_LOGWINDOW 1 | |
37626 | _ACEOF | |
37627 | ||
37628 | fi | |
37629 | ||
37630 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
37631 | cat >>confdefs.h <<\_ACEOF | |
37632 | #define wxUSE_LOG_DIALOG 1 | |
37633 | _ACEOF | |
37634 | ||
37635 | fi | |
0b78747f MW |
37636 | |
37637 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard" | |
a848cd7e SC |
37638 | fi |
37639 | ||
37640 | if test "$wxUSE_LONGLONG" = "yes"; then | |
37641 | cat >>confdefs.h <<\_ACEOF | |
37642 | #define wxUSE_LONGLONG 1 | |
37643 | _ACEOF | |
37644 | ||
37645 | fi | |
37646 | ||
37647 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
37648 | cat >>confdefs.h <<\_ACEOF | |
37649 | #define wxUSE_GEOMETRY 1 | |
37650 | _ACEOF | |
37651 | ||
37652 | fi | |
37653 | ||
a848cd7e SC |
37654 | if test "$wxUSE_STREAMS" = "yes" ; then |
37655 | cat >>confdefs.h <<\_ACEOF | |
37656 | #define wxUSE_STREAMS 1 | |
37657 | _ACEOF | |
37658 | ||
37659 | fi | |
37660 | ||
37661 | ||
37662 | if test "$wxUSE_DATETIME" = "yes"; then | |
37663 | ||
37664 | for ac_func in strptime | |
37665 | do | |
37666 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37667 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37668 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37669 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37671 | else | |
37672 | cat >conftest.$ac_ext <<_ACEOF | |
37673 | /* confdefs.h. */ | |
37674 | _ACEOF | |
37675 | cat confdefs.h >>conftest.$ac_ext | |
37676 | cat >>conftest.$ac_ext <<_ACEOF | |
37677 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37678 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37679 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37680 | #define $ac_func innocuous_$ac_func | |
37681 | ||
a848cd7e SC |
37682 | /* System header to define __stub macros and hopefully few prototypes, |
37683 | which can conflict with char $ac_func (); below. | |
37684 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37685 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37686 | |
a848cd7e SC |
37687 | #ifdef __STDC__ |
37688 | # include <limits.h> | |
37689 | #else | |
37690 | # include <assert.h> | |
37691 | #endif | |
ac1cb8d3 VS |
37692 | |
37693 | #undef $ac_func | |
37694 | ||
a848cd7e SC |
37695 | /* Override any gcc2 internal prototype to avoid an error. */ |
37696 | #ifdef __cplusplus | |
37697 | extern "C" | |
37698 | { | |
37699 | #endif | |
37700 | /* We use char because int might match the return type of a gcc2 | |
37701 | builtin and then its argument prototype would still apply. */ | |
37702 | char $ac_func (); | |
37703 | /* The GNU C library defines this for functions which it implements | |
37704 | to always fail with ENOSYS. Some functions are actually named | |
37705 | something starting with __ and the normal name is an alias. */ | |
37706 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37707 | choke me | |
37708 | #else | |
37709 | char (*f) () = $ac_func; | |
37710 | #endif | |
37711 | #ifdef __cplusplus | |
37712 | } | |
37713 | #endif | |
37714 | ||
37715 | int | |
37716 | main () | |
37717 | { | |
37718 | return f != $ac_func; | |
37719 | ; | |
37720 | return 0; | |
37721 | } | |
37722 | _ACEOF | |
37723 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37724 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37725 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37726 | ac_status=$? |
ac1cb8d3 VS |
37727 | grep -v '^ *+' conftest.er1 >conftest.err |
37728 | rm -f conftest.er1 | |
37729 | cat conftest.err >&5 | |
a848cd7e SC |
37730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37731 | (exit $ac_status); } && | |
ddd14b14 RR |
37732 | { ac_try='test -z "$ac_c_werror_flag" |
37733 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37735 | (eval $ac_try) 2>&5 | |
37736 | ac_status=$? | |
37737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37738 | (exit $ac_status); }; } && | |
37739 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37741 | (eval $ac_try) 2>&5 | |
37742 | ac_status=$? | |
37743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37744 | (exit $ac_status); }; }; then | |
37745 | eval "$as_ac_var=yes" | |
37746 | else | |
37747 | echo "$as_me: failed program was:" >&5 | |
37748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37749 | ||
37750 | eval "$as_ac_var=no" | |
37751 | fi | |
ac1cb8d3 VS |
37752 | rm -f conftest.err conftest.$ac_objext \ |
37753 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37754 | fi |
37755 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37756 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37757 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37758 | cat >>confdefs.h <<_ACEOF | |
37759 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37760 | _ACEOF | |
37761 | ||
37762 | fi | |
37763 | done | |
37764 | ||
37765 | ||
37766 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
37767 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
37768 | if test "${wx_cv_var_timezone+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 | ||
37779 | #include <time.h> | |
37780 | ||
37781 | int | |
37782 | main () | |
37783 | { | |
37784 | ||
37785 | int tz; | |
37786 | tz = timezone; | |
37787 | ||
37788 | ; | |
37789 | return 0; | |
37790 | } | |
37791 | _ACEOF | |
37792 | rm -f conftest.$ac_objext | |
37793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37794 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37795 | ac_status=$? |
ac1cb8d3 VS |
37796 | grep -v '^ *+' conftest.er1 >conftest.err |
37797 | rm -f conftest.er1 | |
37798 | cat conftest.err >&5 | |
a848cd7e SC |
37799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37800 | (exit $ac_status); } && | |
ddd14b14 RR |
37801 | { ac_try='test -z "$ac_c_werror_flag" |
37802 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37804 | (eval $ac_try) 2>&5 | |
37805 | ac_status=$? | |
37806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37807 | (exit $ac_status); }; } && | |
37808 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37810 | (eval $ac_try) 2>&5 | |
37811 | ac_status=$? | |
37812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37813 | (exit $ac_status); }; }; then | |
37814 | ||
37815 | wx_cv_var_timezone=timezone | |
37816 | ||
37817 | else | |
37818 | echo "$as_me: failed program was:" >&5 | |
37819 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37820 | ||
37821 | ||
37822 | cat >conftest.$ac_ext <<_ACEOF | |
37823 | /* confdefs.h. */ | |
37824 | _ACEOF | |
37825 | cat confdefs.h >>conftest.$ac_ext | |
37826 | cat >>conftest.$ac_ext <<_ACEOF | |
37827 | /* end confdefs.h. */ | |
37828 | ||
37829 | #include <time.h> | |
37830 | ||
37831 | int | |
37832 | main () | |
37833 | { | |
37834 | ||
37835 | int tz; | |
37836 | tz = _timezone; | |
37837 | ||
37838 | ; | |
37839 | return 0; | |
37840 | } | |
37841 | _ACEOF | |
37842 | rm -f conftest.$ac_objext | |
37843 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37844 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37845 | ac_status=$? |
ac1cb8d3 VS |
37846 | grep -v '^ *+' conftest.er1 >conftest.err |
37847 | rm -f conftest.er1 | |
37848 | cat conftest.err >&5 | |
a848cd7e SC |
37849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37850 | (exit $ac_status); } && | |
ddd14b14 RR |
37851 | { ac_try='test -z "$ac_c_werror_flag" |
37852 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37854 | (eval $ac_try) 2>&5 | |
37855 | ac_status=$? | |
37856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37857 | (exit $ac_status); }; } && | |
37858 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37860 | (eval $ac_try) 2>&5 | |
37861 | ac_status=$? | |
37862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37863 | (exit $ac_status); }; }; then | |
37864 | ||
37865 | wx_cv_var_timezone=_timezone | |
37866 | ||
37867 | else | |
37868 | echo "$as_me: failed program was:" >&5 | |
37869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37870 | ||
37871 | ||
37872 | cat >conftest.$ac_ext <<_ACEOF | |
37873 | /* confdefs.h. */ | |
37874 | _ACEOF | |
37875 | cat confdefs.h >>conftest.$ac_ext | |
37876 | cat >>conftest.$ac_ext <<_ACEOF | |
37877 | /* end confdefs.h. */ | |
37878 | ||
37879 | #include <time.h> | |
37880 | ||
37881 | int | |
37882 | main () | |
37883 | { | |
37884 | ||
37885 | int tz; | |
37886 | tz = __timezone; | |
37887 | ||
37888 | ; | |
37889 | return 0; | |
37890 | } | |
37891 | _ACEOF | |
37892 | rm -f conftest.$ac_objext | |
37893 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37894 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37895 | ac_status=$? |
ac1cb8d3 VS |
37896 | grep -v '^ *+' conftest.er1 >conftest.err |
37897 | rm -f conftest.er1 | |
37898 | cat conftest.err >&5 | |
a848cd7e SC |
37899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37900 | (exit $ac_status); } && | |
ddd14b14 RR |
37901 | { ac_try='test -z "$ac_c_werror_flag" |
37902 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37904 | (eval $ac_try) 2>&5 | |
37905 | ac_status=$? | |
37906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37907 | (exit $ac_status); }; } && | |
37908 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37910 | (eval $ac_try) 2>&5 | |
37911 | ac_status=$? | |
37912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37913 | (exit $ac_status); }; }; then | |
37914 | ||
37915 | wx_cv_var_timezone=__timezone | |
37916 | ||
37917 | else | |
37918 | echo "$as_me: failed program was:" >&5 | |
37919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37920 | ||
37921 | ||
37922 | if test "$USE_DOS" = 0 ; then | |
37923 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
37924 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
37925 | fi | |
37926 | ||
37927 | ||
37928 | fi | |
ac1cb8d3 | 37929 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37930 | |
37931 | ||
37932 | fi | |
ac1cb8d3 | 37933 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37934 | |
37935 | ||
37936 | fi | |
ac1cb8d3 | 37937 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37938 | |
37939 | ||
37940 | fi | |
37941 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
37942 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
37943 | ||
37944 | if test "x$wx_cv_var_timezone" != x ; then | |
37945 | cat >>confdefs.h <<_ACEOF | |
37946 | #define WX_TIMEZONE $wx_cv_var_timezone | |
37947 | _ACEOF | |
37948 | ||
37949 | fi | |
37950 | ||
37951 | ||
37952 | for ac_func in localtime | |
37953 | do | |
37954 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37955 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37956 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37957 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37959 | else | |
37960 | cat >conftest.$ac_ext <<_ACEOF | |
37961 | /* confdefs.h. */ | |
37962 | _ACEOF | |
37963 | cat confdefs.h >>conftest.$ac_ext | |
37964 | cat >>conftest.$ac_ext <<_ACEOF | |
37965 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37966 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37967 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37968 | #define $ac_func innocuous_$ac_func | |
37969 | ||
a848cd7e SC |
37970 | /* System header to define __stub macros and hopefully few prototypes, |
37971 | which can conflict with char $ac_func (); below. | |
37972 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37973 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37974 | |
a848cd7e SC |
37975 | #ifdef __STDC__ |
37976 | # include <limits.h> | |
37977 | #else | |
37978 | # include <assert.h> | |
37979 | #endif | |
ac1cb8d3 VS |
37980 | |
37981 | #undef $ac_func | |
37982 | ||
a848cd7e SC |
37983 | /* Override any gcc2 internal prototype to avoid an error. */ |
37984 | #ifdef __cplusplus | |
37985 | extern "C" | |
37986 | { | |
37987 | #endif | |
37988 | /* We use char because int might match the return type of a gcc2 | |
37989 | builtin and then its argument prototype would still apply. */ | |
37990 | char $ac_func (); | |
37991 | /* The GNU C library defines this for functions which it implements | |
37992 | to always fail with ENOSYS. Some functions are actually named | |
37993 | something starting with __ and the normal name is an alias. */ | |
37994 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37995 | choke me | |
37996 | #else | |
37997 | char (*f) () = $ac_func; | |
37998 | #endif | |
37999 | #ifdef __cplusplus | |
38000 | } | |
38001 | #endif | |
38002 | ||
38003 | int | |
38004 | main () | |
38005 | { | |
38006 | return f != $ac_func; | |
38007 | ; | |
38008 | return 0; | |
38009 | } | |
38010 | _ACEOF | |
38011 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38012 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38013 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38014 | ac_status=$? |
ac1cb8d3 VS |
38015 | grep -v '^ *+' conftest.er1 >conftest.err |
38016 | rm -f conftest.er1 | |
38017 | cat conftest.err >&5 | |
a848cd7e SC |
38018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38019 | (exit $ac_status); } && | |
ddd14b14 RR |
38020 | { ac_try='test -z "$ac_c_werror_flag" |
38021 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38023 | (eval $ac_try) 2>&5 | |
38024 | ac_status=$? | |
38025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38026 | (exit $ac_status); }; } && | |
38027 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38029 | (eval $ac_try) 2>&5 | |
38030 | ac_status=$? | |
38031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38032 | (exit $ac_status); }; }; then | |
38033 | eval "$as_ac_var=yes" | |
38034 | else | |
38035 | echo "$as_me: failed program was:" >&5 | |
38036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38037 | ||
38038 | eval "$as_ac_var=no" | |
38039 | fi | |
ac1cb8d3 VS |
38040 | rm -f conftest.err conftest.$ac_objext \ |
38041 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38042 | fi |
38043 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38044 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38045 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38046 | cat >>confdefs.h <<_ACEOF | |
38047 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38048 | _ACEOF | |
38049 | ||
38050 | fi | |
38051 | done | |
38052 | ||
38053 | ||
38054 | if test "$ac_cv_func_localtime" = "yes"; then | |
38055 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
38056 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
38057 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
38058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38059 | else | |
38060 | ||
38061 | cat >conftest.$ac_ext <<_ACEOF | |
38062 | /* confdefs.h. */ | |
38063 | _ACEOF | |
38064 | cat confdefs.h >>conftest.$ac_ext | |
38065 | cat >>conftest.$ac_ext <<_ACEOF | |
38066 | /* end confdefs.h. */ | |
38067 | ||
38068 | #include <time.h> | |
38069 | ||
38070 | int | |
38071 | main () | |
38072 | { | |
38073 | ||
38074 | struct tm tm; | |
38075 | tm.tm_gmtoff++; | |
38076 | ||
38077 | ; | |
38078 | return 0; | |
38079 | } | |
38080 | _ACEOF | |
38081 | rm -f conftest.$ac_objext | |
38082 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38083 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38084 | ac_status=$? |
ac1cb8d3 VS |
38085 | grep -v '^ *+' conftest.er1 >conftest.err |
38086 | rm -f conftest.er1 | |
38087 | cat conftest.err >&5 | |
a848cd7e SC |
38088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38089 | (exit $ac_status); } && | |
ddd14b14 RR |
38090 | { ac_try='test -z "$ac_c_werror_flag" |
38091 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38093 | (eval $ac_try) 2>&5 | |
38094 | ac_status=$? | |
38095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38096 | (exit $ac_status); }; } && | |
38097 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38099 | (eval $ac_try) 2>&5 | |
38100 | ac_status=$? | |
38101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38102 | (exit $ac_status); }; }; then | |
38103 | ||
38104 | wx_cv_struct_tm_has_gmtoff=yes | |
38105 | ||
38106 | else | |
38107 | echo "$as_me: failed program was:" >&5 | |
38108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38109 | ||
38110 | wx_cv_struct_tm_has_gmtoff=no | |
38111 | ||
38112 | fi | |
ac1cb8d3 | 38113 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38114 | |
38115 | fi | |
38116 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
38117 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
38118 | fi | |
38119 | ||
38120 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
38121 | cat >>confdefs.h <<\_ACEOF | |
38122 | #define WX_GMTOFF_IN_TM 1 | |
38123 | _ACEOF | |
38124 | ||
38125 | fi | |
38126 | ||
38127 | ||
38128 | ||
38129 | for ac_func in gettimeofday ftime | |
38130 | do | |
38131 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38132 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38133 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38134 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38136 | else | |
38137 | cat >conftest.$ac_ext <<_ACEOF | |
38138 | /* confdefs.h. */ | |
38139 | _ACEOF | |
38140 | cat confdefs.h >>conftest.$ac_ext | |
38141 | cat >>conftest.$ac_ext <<_ACEOF | |
38142 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38143 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38144 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38145 | #define $ac_func innocuous_$ac_func | |
38146 | ||
a848cd7e SC |
38147 | /* System header to define __stub macros and hopefully few prototypes, |
38148 | which can conflict with char $ac_func (); below. | |
38149 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38150 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38151 | |
a848cd7e SC |
38152 | #ifdef __STDC__ |
38153 | # include <limits.h> | |
38154 | #else | |
38155 | # include <assert.h> | |
38156 | #endif | |
ac1cb8d3 VS |
38157 | |
38158 | #undef $ac_func | |
38159 | ||
a848cd7e SC |
38160 | /* Override any gcc2 internal prototype to avoid an error. */ |
38161 | #ifdef __cplusplus | |
38162 | extern "C" | |
38163 | { | |
38164 | #endif | |
38165 | /* We use char because int might match the return type of a gcc2 | |
38166 | builtin and then its argument prototype would still apply. */ | |
38167 | char $ac_func (); | |
38168 | /* The GNU C library defines this for functions which it implements | |
38169 | to always fail with ENOSYS. Some functions are actually named | |
38170 | something starting with __ and the normal name is an alias. */ | |
38171 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38172 | choke me | |
38173 | #else | |
38174 | char (*f) () = $ac_func; | |
38175 | #endif | |
38176 | #ifdef __cplusplus | |
38177 | } | |
38178 | #endif | |
38179 | ||
38180 | int | |
38181 | main () | |
38182 | { | |
38183 | return f != $ac_func; | |
38184 | ; | |
38185 | return 0; | |
38186 | } | |
38187 | _ACEOF | |
38188 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38189 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38190 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38191 | ac_status=$? |
ac1cb8d3 VS |
38192 | grep -v '^ *+' conftest.er1 >conftest.err |
38193 | rm -f conftest.er1 | |
38194 | cat conftest.err >&5 | |
a848cd7e SC |
38195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38196 | (exit $ac_status); } && | |
ddd14b14 RR |
38197 | { ac_try='test -z "$ac_c_werror_flag" |
38198 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38200 | (eval $ac_try) 2>&5 | |
38201 | ac_status=$? | |
38202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38203 | (exit $ac_status); }; } && | |
38204 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38206 | (eval $ac_try) 2>&5 | |
38207 | ac_status=$? | |
38208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38209 | (exit $ac_status); }; }; then | |
38210 | eval "$as_ac_var=yes" | |
38211 | else | |
38212 | echo "$as_me: failed program was:" >&5 | |
38213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38214 | ||
38215 | eval "$as_ac_var=no" | |
38216 | fi | |
ac1cb8d3 VS |
38217 | rm -f conftest.err conftest.$ac_objext \ |
38218 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38219 | fi |
38220 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38221 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38222 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38223 | cat >>confdefs.h <<_ACEOF | |
38224 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38225 | _ACEOF | |
38226 | break | |
38227 | fi | |
38228 | done | |
38229 | ||
38230 | ||
38231 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
38232 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
38233 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
38234 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
38235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38236 | else | |
38237 | ||
38238 | ||
38239 | ||
38240 | ac_ext=cc | |
38241 | ac_cpp='$CXXCPP $CPPFLAGS' | |
38242 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
38243 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
38244 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
38245 | ||
38246 | ||
38247 | cat >conftest.$ac_ext <<_ACEOF | |
38248 | /* confdefs.h. */ | |
38249 | _ACEOF | |
38250 | cat confdefs.h >>conftest.$ac_ext | |
38251 | cat >>conftest.$ac_ext <<_ACEOF | |
38252 | /* end confdefs.h. */ | |
38253 | ||
38254 | #include <sys/time.h> | |
38255 | #include <unistd.h> | |
38256 | ||
38257 | int | |
38258 | main () | |
38259 | { | |
38260 | ||
38261 | struct timeval tv; | |
38262 | gettimeofday(&tv, NULL); | |
38263 | ||
38264 | ; | |
38265 | return 0; | |
38266 | } | |
38267 | _ACEOF | |
38268 | rm -f conftest.$ac_objext | |
38269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38270 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38271 | ac_status=$? |
ac1cb8d3 VS |
38272 | grep -v '^ *+' conftest.er1 >conftest.err |
38273 | rm -f conftest.er1 | |
38274 | cat conftest.err >&5 | |
a848cd7e SC |
38275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38276 | (exit $ac_status); } && | |
ddd14b14 RR |
38277 | { ac_try='test -z "$ac_cxx_werror_flag" |
38278 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38280 | (eval $ac_try) 2>&5 | |
38281 | ac_status=$? | |
38282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38283 | (exit $ac_status); }; } && | |
38284 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38286 | (eval $ac_try) 2>&5 | |
38287 | ac_status=$? | |
38288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38289 | (exit $ac_status); }; }; then | |
38290 | wx_cv_func_gettimeofday_has_2_args=yes | |
38291 | else | |
38292 | echo "$as_me: failed program was:" >&5 | |
38293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38294 | ||
38295 | cat >conftest.$ac_ext <<_ACEOF | |
38296 | /* confdefs.h. */ | |
38297 | _ACEOF | |
38298 | cat confdefs.h >>conftest.$ac_ext | |
38299 | cat >>conftest.$ac_ext <<_ACEOF | |
38300 | /* end confdefs.h. */ | |
38301 | ||
38302 | #include <sys/time.h> | |
38303 | #include <unistd.h> | |
38304 | ||
38305 | int | |
38306 | main () | |
38307 | { | |
38308 | ||
38309 | struct timeval tv; | |
38310 | gettimeofday(&tv); | |
38311 | ||
38312 | ; | |
38313 | return 0; | |
38314 | } | |
38315 | _ACEOF | |
38316 | rm -f conftest.$ac_objext | |
38317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38318 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38319 | ac_status=$? |
ac1cb8d3 VS |
38320 | grep -v '^ *+' conftest.er1 >conftest.err |
38321 | rm -f conftest.er1 | |
38322 | cat conftest.err >&5 | |
a848cd7e SC |
38323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38324 | (exit $ac_status); } && | |
ddd14b14 RR |
38325 | { ac_try='test -z "$ac_cxx_werror_flag" |
38326 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38328 | (eval $ac_try) 2>&5 | |
38329 | ac_status=$? | |
38330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38331 | (exit $ac_status); }; } && | |
38332 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38334 | (eval $ac_try) 2>&5 | |
38335 | ac_status=$? | |
38336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38337 | (exit $ac_status); }; }; then | |
38338 | wx_cv_func_gettimeofday_has_2_args=no | |
38339 | else | |
38340 | echo "$as_me: failed program was:" >&5 | |
38341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38342 | ||
38343 | ||
38344 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
38345 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
38346 | wx_cv_func_gettimeofday_has_2_args=unknown | |
38347 | ||
38348 | ||
38349 | fi | |
ac1cb8d3 | 38350 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38351 | |
38352 | fi | |
ac1cb8d3 | 38353 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38354 | ac_ext=c |
38355 | ac_cpp='$CPP $CPPFLAGS' | |
38356 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
38357 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
38358 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
38359 | ||
38360 | ||
38361 | fi | |
38362 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
38363 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
38364 | ||
38365 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
38366 | cat >>confdefs.h <<\_ACEOF | |
38367 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
38368 | _ACEOF | |
38369 | ||
38370 | fi | |
38371 | fi | |
38372 | ||
38373 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
38374 | fi | |
38375 | ||
38376 | ||
38377 | if test "$wxUSE_SOCKETS" = "yes"; then | |
38378 | if test "$wxUSE_MGL" = "1"; then | |
38379 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
38380 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
38381 | wxUSE_SOCKETS="no" | |
38382 | fi | |
38383 | fi | |
38384 | ||
38385 | if test "$wxUSE_SOCKETS" = "yes"; then | |
38386 | if test "$TOOLKIT" != "MSW"; then | |
38387 | echo "$as_me:$LINENO: checking for socket" >&5 | |
38388 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
38389 | if test "${ac_cv_func_socket+set}" = set; then | |
38390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38391 | else | |
38392 | cat >conftest.$ac_ext <<_ACEOF | |
38393 | /* confdefs.h. */ | |
38394 | _ACEOF | |
38395 | cat confdefs.h >>conftest.$ac_ext | |
38396 | cat >>conftest.$ac_ext <<_ACEOF | |
38397 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38398 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
38399 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38400 | #define socket innocuous_socket | |
38401 | ||
a848cd7e SC |
38402 | /* System header to define __stub macros and hopefully few prototypes, |
38403 | which can conflict with char socket (); below. | |
38404 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38405 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38406 | |
a848cd7e SC |
38407 | #ifdef __STDC__ |
38408 | # include <limits.h> | |
38409 | #else | |
38410 | # include <assert.h> | |
38411 | #endif | |
ac1cb8d3 VS |
38412 | |
38413 | #undef socket | |
38414 | ||
a848cd7e SC |
38415 | /* Override any gcc2 internal prototype to avoid an error. */ |
38416 | #ifdef __cplusplus | |
38417 | extern "C" | |
38418 | { | |
38419 | #endif | |
38420 | /* We use char because int might match the return type of a gcc2 | |
38421 | builtin and then its argument prototype would still apply. */ | |
38422 | char socket (); | |
38423 | /* The GNU C library defines this for functions which it implements | |
38424 | to always fail with ENOSYS. Some functions are actually named | |
38425 | something starting with __ and the normal name is an alias. */ | |
38426 | #if defined (__stub_socket) || defined (__stub___socket) | |
38427 | choke me | |
38428 | #else | |
38429 | char (*f) () = socket; | |
38430 | #endif | |
38431 | #ifdef __cplusplus | |
38432 | } | |
38433 | #endif | |
38434 | ||
38435 | int | |
38436 | main () | |
38437 | { | |
38438 | return f != socket; | |
38439 | ; | |
38440 | return 0; | |
38441 | } | |
38442 | _ACEOF | |
38443 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38444 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38445 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38446 | ac_status=$? |
ac1cb8d3 VS |
38447 | grep -v '^ *+' conftest.er1 >conftest.err |
38448 | rm -f conftest.er1 | |
38449 | cat conftest.err >&5 | |
a848cd7e SC |
38450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38451 | (exit $ac_status); } && | |
ddd14b14 RR |
38452 | { ac_try='test -z "$ac_c_werror_flag" |
38453 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38455 | (eval $ac_try) 2>&5 | |
38456 | ac_status=$? | |
38457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38458 | (exit $ac_status); }; } && | |
38459 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38461 | (eval $ac_try) 2>&5 | |
38462 | ac_status=$? | |
38463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38464 | (exit $ac_status); }; }; then | |
38465 | ac_cv_func_socket=yes | |
38466 | else | |
38467 | echo "$as_me: failed program was:" >&5 | |
38468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38469 | ||
38470 | ac_cv_func_socket=no | |
38471 | fi | |
ac1cb8d3 VS |
38472 | rm -f conftest.err conftest.$ac_objext \ |
38473 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38474 | fi |
38475 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
38476 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
38477 | if test $ac_cv_func_socket = yes; then | |
38478 | : | |
38479 | else | |
38480 | ||
38481 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
38482 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
38483 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
38484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38485 | else | |
38486 | ac_check_lib_save_LIBS=$LIBS | |
38487 | LIBS="-lsocket $LIBS" | |
38488 | cat >conftest.$ac_ext <<_ACEOF | |
38489 | /* confdefs.h. */ | |
38490 | _ACEOF | |
38491 | cat confdefs.h >>conftest.$ac_ext | |
38492 | cat >>conftest.$ac_ext <<_ACEOF | |
38493 | /* end confdefs.h. */ | |
38494 | ||
38495 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38496 | #ifdef __cplusplus | |
38497 | extern "C" | |
38498 | #endif | |
38499 | /* We use char because int might match the return type of a gcc2 | |
38500 | builtin and then its argument prototype would still apply. */ | |
38501 | char socket (); | |
38502 | int | |
38503 | main () | |
38504 | { | |
38505 | socket (); | |
38506 | ; | |
38507 | return 0; | |
38508 | } | |
38509 | _ACEOF | |
38510 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38511 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38512 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38513 | ac_status=$? |
ac1cb8d3 VS |
38514 | grep -v '^ *+' conftest.er1 >conftest.err |
38515 | rm -f conftest.er1 | |
38516 | cat conftest.err >&5 | |
a848cd7e SC |
38517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38518 | (exit $ac_status); } && | |
ddd14b14 RR |
38519 | { ac_try='test -z "$ac_c_werror_flag" |
38520 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38522 | (eval $ac_try) 2>&5 | |
38523 | ac_status=$? | |
38524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38525 | (exit $ac_status); }; } && | |
38526 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38528 | (eval $ac_try) 2>&5 | |
38529 | ac_status=$? | |
38530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38531 | (exit $ac_status); }; }; then | |
38532 | ac_cv_lib_socket_socket=yes | |
38533 | else | |
38534 | echo "$as_me: failed program was:" >&5 | |
38535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38536 | ||
38537 | ac_cv_lib_socket_socket=no | |
38538 | fi | |
ac1cb8d3 VS |
38539 | rm -f conftest.err conftest.$ac_objext \ |
38540 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38541 | LIBS=$ac_check_lib_save_LIBS |
38542 | fi | |
38543 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
38544 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
38545 | if test $ac_cv_lib_socket_socket = yes; then | |
38546 | if test "$INET_LINK" != " -lsocket"; then | |
38547 | INET_LINK="$INET_LINK -lsocket" | |
38548 | fi | |
38549 | else | |
38550 | ||
38551 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
38552 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
38553 | wxUSE_SOCKETS=no | |
38554 | ||
38555 | ||
38556 | fi | |
38557 | ||
38558 | ||
38559 | ||
38560 | fi | |
38561 | ||
38562 | fi | |
38563 | fi | |
38564 | ||
38565 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
38566 | if test "$TOOLKIT" != "MSW"; then | |
4d4ff94c VZ |
38567 | ac_ext=cc |
38568 | ac_cpp='$CXXCPP $CPPFLAGS' | |
38569 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
38570 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
38571 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
38572 | ||
38573 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
a848cd7e SC |
38574 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
38575 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
38576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38577 | else | |
38578 | ||
38579 | cat >conftest.$ac_ext <<_ACEOF | |
38580 | /* confdefs.h. */ | |
38581 | _ACEOF | |
38582 | cat confdefs.h >>conftest.$ac_ext | |
38583 | cat >>conftest.$ac_ext <<_ACEOF | |
38584 | /* end confdefs.h. */ | |
38585 | ||
38586 | #include <sys/types.h> | |
38587 | #include <sys/socket.h> | |
38588 | ||
38589 | int | |
38590 | main () | |
38591 | { | |
38592 | ||
38593 | socklen_t len; | |
38594 | getsockname(0, 0, &len); | |
38595 | ||
38596 | ; | |
38597 | return 0; | |
38598 | } | |
38599 | _ACEOF | |
38600 | rm -f conftest.$ac_objext | |
38601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38602 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38603 | ac_status=$? |
ac1cb8d3 VS |
38604 | grep -v '^ *+' conftest.er1 >conftest.err |
38605 | rm -f conftest.er1 | |
38606 | cat conftest.err >&5 | |
a848cd7e SC |
38607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38608 | (exit $ac_status); } && | |
ddd14b14 RR |
38609 | { ac_try='test -z "$ac_cxx_werror_flag" |
38610 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38612 | (eval $ac_try) 2>&5 | |
38613 | ac_status=$? | |
38614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38615 | (exit $ac_status); }; } && | |
38616 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38618 | (eval $ac_try) 2>&5 | |
38619 | ac_status=$? | |
38620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38621 | (exit $ac_status); }; }; then | |
38622 | wx_cv_type_getsockname3=socklen_t | |
38623 | else | |
38624 | echo "$as_me: failed program was:" >&5 | |
38625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38626 | ||
38627 | ||
38628 | CFLAGS_OLD="$CFLAGS" | |
38629 | if test "$GCC" = yes ; then | |
38630 | CFLAGS="$CFLAGS -Werror" | |
38631 | fi | |
38632 | ||
38633 | cat >conftest.$ac_ext <<_ACEOF | |
38634 | /* confdefs.h. */ | |
38635 | _ACEOF | |
38636 | cat confdefs.h >>conftest.$ac_ext | |
38637 | cat >>conftest.$ac_ext <<_ACEOF | |
38638 | /* end confdefs.h. */ | |
38639 | ||
38640 | #include <sys/types.h> | |
38641 | #include <sys/socket.h> | |
38642 | ||
38643 | int | |
38644 | main () | |
38645 | { | |
38646 | ||
38647 | size_t len; | |
38648 | getsockname(0, 0, &len); | |
38649 | ||
38650 | ; | |
38651 | return 0; | |
38652 | } | |
38653 | _ACEOF | |
38654 | rm -f conftest.$ac_objext | |
38655 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38656 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38657 | ac_status=$? |
ac1cb8d3 VS |
38658 | grep -v '^ *+' conftest.er1 >conftest.err |
38659 | rm -f conftest.er1 | |
38660 | cat conftest.err >&5 | |
a848cd7e SC |
38661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38662 | (exit $ac_status); } && | |
ddd14b14 RR |
38663 | { ac_try='test -z "$ac_cxx_werror_flag" |
38664 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38666 | (eval $ac_try) 2>&5 | |
38667 | ac_status=$? | |
38668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38669 | (exit $ac_status); }; } && | |
38670 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38672 | (eval $ac_try) 2>&5 | |
38673 | ac_status=$? | |
38674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38675 | (exit $ac_status); }; }; then | |
38676 | wx_cv_type_getsockname3=size_t | |
38677 | else | |
38678 | echo "$as_me: failed program was:" >&5 | |
38679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38680 | ||
38681 | cat >conftest.$ac_ext <<_ACEOF | |
38682 | /* confdefs.h. */ | |
38683 | _ACEOF | |
38684 | cat confdefs.h >>conftest.$ac_ext | |
38685 | cat >>conftest.$ac_ext <<_ACEOF | |
38686 | /* end confdefs.h. */ | |
38687 | ||
38688 | #include <sys/types.h> | |
38689 | #include <sys/socket.h> | |
38690 | ||
38691 | int | |
38692 | main () | |
38693 | { | |
38694 | ||
38695 | int len; | |
38696 | getsockname(0, 0, &len); | |
38697 | ||
38698 | ; | |
38699 | return 0; | |
38700 | } | |
38701 | _ACEOF | |
38702 | rm -f conftest.$ac_objext | |
38703 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38704 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38705 | ac_status=$? |
ac1cb8d3 VS |
38706 | grep -v '^ *+' conftest.er1 >conftest.err |
38707 | rm -f conftest.er1 | |
38708 | cat conftest.err >&5 | |
a848cd7e SC |
38709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38710 | (exit $ac_status); } && | |
ddd14b14 RR |
38711 | { ac_try='test -z "$ac_cxx_werror_flag" |
38712 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38714 | (eval $ac_try) 2>&5 | |
38715 | ac_status=$? | |
38716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38717 | (exit $ac_status); }; } && | |
38718 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38720 | (eval $ac_try) 2>&5 | |
38721 | ac_status=$? | |
38722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38723 | (exit $ac_status); }; }; then | |
38724 | wx_cv_type_getsockname3=int | |
38725 | else | |
38726 | echo "$as_me: failed program was:" >&5 | |
38727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38728 | ||
38729 | wx_cv_type_getsockname3=unknown | |
38730 | ||
38731 | fi | |
ac1cb8d3 | 38732 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38733 | |
38734 | fi | |
ac1cb8d3 | 38735 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38736 | |
38737 | CFLAGS="$CFLAGS_OLD" | |
38738 | ||
38739 | ||
38740 | fi | |
ac1cb8d3 | 38741 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38742 | |
38743 | fi | |
38744 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
38745 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
38746 | ||
38747 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
38748 | wxUSE_SOCKETS=no | |
38749 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
38750 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
38751 | else | |
38752 | cat >>confdefs.h <<_ACEOF | |
38753 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
5b674b9d DE |
38754 | _ACEOF |
38755 | ||
38756 | fi | |
38757 | echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5 | |
38758 | echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6 | |
38759 | if test "${wx_cv_type_getsockopt5+set}" = set; then | |
38760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38761 | else | |
38762 | ||
38763 | cat >conftest.$ac_ext <<_ACEOF | |
38764 | /* confdefs.h. */ | |
38765 | _ACEOF | |
38766 | cat confdefs.h >>conftest.$ac_ext | |
38767 | cat >>conftest.$ac_ext <<_ACEOF | |
38768 | /* end confdefs.h. */ | |
38769 | ||
38770 | #include <sys/types.h> | |
38771 | #include <sys/socket.h> | |
38772 | ||
38773 | int | |
38774 | main () | |
38775 | { | |
38776 | ||
38777 | socklen_t len; | |
38778 | getsockopt(0, 0, 0, 0, &len); | |
38779 | ||
38780 | ; | |
38781 | return 0; | |
38782 | } | |
38783 | _ACEOF | |
38784 | rm -f conftest.$ac_objext | |
38785 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38786 | (eval $ac_compile) 2>conftest.er1 | |
38787 | ac_status=$? | |
38788 | grep -v '^ *+' conftest.er1 >conftest.err | |
38789 | rm -f conftest.er1 | |
38790 | cat conftest.err >&5 | |
38791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38792 | (exit $ac_status); } && | |
ddd14b14 RR |
38793 | { ac_try='test -z "$ac_cxx_werror_flag" |
38794 | || test ! -s conftest.err' | |
5b674b9d DE |
38795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38796 | (eval $ac_try) 2>&5 | |
38797 | ac_status=$? | |
38798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38799 | (exit $ac_status); }; } && | |
38800 | { ac_try='test -s conftest.$ac_objext' | |
38801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38802 | (eval $ac_try) 2>&5 | |
38803 | ac_status=$? | |
38804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38805 | (exit $ac_status); }; }; then | |
38806 | wx_cv_type_getsockopt5=socklen_t | |
38807 | else | |
38808 | echo "$as_me: failed program was:" >&5 | |
38809 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38810 | ||
38811 | ||
38812 | CFLAGS_OLD="$CFLAGS" | |
38813 | if test "$GCC" = yes ; then | |
38814 | CFLAGS="$CFLAGS -Werror" | |
38815 | fi | |
38816 | ||
38817 | cat >conftest.$ac_ext <<_ACEOF | |
38818 | /* confdefs.h. */ | |
38819 | _ACEOF | |
38820 | cat confdefs.h >>conftest.$ac_ext | |
38821 | cat >>conftest.$ac_ext <<_ACEOF | |
38822 | /* end confdefs.h. */ | |
38823 | ||
38824 | #include <sys/types.h> | |
38825 | #include <sys/socket.h> | |
38826 | ||
38827 | int | |
38828 | main () | |
38829 | { | |
38830 | ||
38831 | size_t len; | |
38832 | getsockopt(0, 0, 0, 0, &len); | |
38833 | ||
38834 | ; | |
38835 | return 0; | |
38836 | } | |
38837 | _ACEOF | |
38838 | rm -f conftest.$ac_objext | |
38839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38840 | (eval $ac_compile) 2>conftest.er1 | |
38841 | ac_status=$? | |
38842 | grep -v '^ *+' conftest.er1 >conftest.err | |
38843 | rm -f conftest.er1 | |
38844 | cat conftest.err >&5 | |
38845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38846 | (exit $ac_status); } && | |
ddd14b14 RR |
38847 | { ac_try='test -z "$ac_cxx_werror_flag" |
38848 | || test ! -s conftest.err' | |
5b674b9d DE |
38849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38850 | (eval $ac_try) 2>&5 | |
38851 | ac_status=$? | |
38852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38853 | (exit $ac_status); }; } && | |
38854 | { ac_try='test -s conftest.$ac_objext' | |
38855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38856 | (eval $ac_try) 2>&5 | |
38857 | ac_status=$? | |
38858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38859 | (exit $ac_status); }; }; then | |
38860 | wx_cv_type_getsockopt5=size_t | |
38861 | else | |
38862 | echo "$as_me: failed program was:" >&5 | |
38863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38864 | ||
38865 | cat >conftest.$ac_ext <<_ACEOF | |
38866 | /* confdefs.h. */ | |
38867 | _ACEOF | |
38868 | cat confdefs.h >>conftest.$ac_ext | |
38869 | cat >>conftest.$ac_ext <<_ACEOF | |
38870 | /* end confdefs.h. */ | |
38871 | ||
38872 | #include <sys/types.h> | |
38873 | #include <sys/socket.h> | |
38874 | ||
38875 | int | |
38876 | main () | |
38877 | { | |
38878 | ||
38879 | int len; | |
38880 | getsockopt(0, 0, 0, 0, &len); | |
38881 | ||
38882 | ; | |
38883 | return 0; | |
38884 | } | |
38885 | _ACEOF | |
38886 | rm -f conftest.$ac_objext | |
38887 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38888 | (eval $ac_compile) 2>conftest.er1 | |
38889 | ac_status=$? | |
38890 | grep -v '^ *+' conftest.er1 >conftest.err | |
38891 | rm -f conftest.er1 | |
38892 | cat conftest.err >&5 | |
38893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38894 | (exit $ac_status); } && | |
ddd14b14 RR |
38895 | { ac_try='test -z "$ac_cxx_werror_flag" |
38896 | || test ! -s conftest.err' | |
5b674b9d DE |
38897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38898 | (eval $ac_try) 2>&5 | |
38899 | ac_status=$? | |
38900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38901 | (exit $ac_status); }; } && | |
38902 | { ac_try='test -s conftest.$ac_objext' | |
38903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38904 | (eval $ac_try) 2>&5 | |
38905 | ac_status=$? | |
38906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38907 | (exit $ac_status); }; }; then | |
38908 | wx_cv_type_getsockopt5=int | |
38909 | else | |
38910 | echo "$as_me: failed program was:" >&5 | |
38911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38912 | ||
38913 | wx_cv_type_getsockopt5=unknown | |
38914 | ||
38915 | fi | |
38916 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38917 | ||
38918 | fi | |
38919 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38920 | ||
38921 | CFLAGS="$CFLAGS_OLD" | |
38922 | ||
38923 | ||
38924 | fi | |
38925 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38926 | ||
38927 | fi | |
38928 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5 | |
38929 | echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6 | |
38930 | ||
38931 | if test "$wx_cv_type_getsockopt5" = "unknown"; then | |
38932 | wxUSE_SOCKETS=no | |
38933 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
38934 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
38935 | else | |
38936 | cat >>confdefs.h <<_ACEOF | |
38937 | #define SOCKOPTLEN_T $wx_cv_type_getsockopt5 | |
a848cd7e SC |
38938 | _ACEOF |
38939 | ||
38940 | fi | |
4d4ff94c VZ |
38941 | ac_ext=c |
38942 | ac_cpp='$CPP $CPPFLAGS' | |
38943 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
38944 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
38945 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
38946 | ||
a848cd7e SC |
38947 | fi |
38948 | fi | |
38949 | ||
38950 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
38951 | cat >>confdefs.h <<\_ACEOF | |
38952 | #define wxUSE_SOCKETS 1 | |
38953 | _ACEOF | |
38954 | ||
38955 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
38956 | fi | |
38957 | ||
38958 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
38959 | if test "$wxUSE_SOCKETS" != "yes"; then | |
38960 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
38961 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
38962 | wxUSE_PROTOCOL=no | |
38963 | fi | |
38964 | fi | |
38965 | ||
38966 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
38967 | cat >>confdefs.h <<\_ACEOF | |
38968 | #define wxUSE_PROTOCOL 1 | |
38969 | _ACEOF | |
38970 | ||
38971 | ||
38972 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
38973 | cat >>confdefs.h <<\_ACEOF | |
38974 | #define wxUSE_PROTOCOL_HTTP 1 | |
38975 | _ACEOF | |
38976 | ||
38977 | fi | |
38978 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
38979 | cat >>confdefs.h <<\_ACEOF | |
38980 | #define wxUSE_PROTOCOL_FTP 1 | |
38981 | _ACEOF | |
38982 | ||
38983 | fi | |
38984 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
38985 | cat >>confdefs.h <<\_ACEOF | |
38986 | #define wxUSE_PROTOCOL_FILE 1 | |
38987 | _ACEOF | |
38988 | ||
38989 | fi | |
38990 | else | |
38991 | if test "$wxUSE_FS_INET" = "yes"; then | |
38992 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
38993 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
38994 | wxUSE_FS_INET="no" | |
38995 | fi | |
38996 | fi | |
38997 | ||
38998 | if test "$wxUSE_URL" = "yes"; then | |
38999 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
39000 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
39001 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
39002 | wxUSE_URL=no | |
39003 | fi | |
39004 | if test "$wxUSE_URL" = "yes"; then | |
39005 | cat >>confdefs.h <<\_ACEOF | |
39006 | #define wxUSE_URL 1 | |
39007 | _ACEOF | |
39008 | ||
39009 | fi | |
39010 | fi | |
39011 | ||
39012 | if test "$wxUSE_FS_INET" = "yes"; then | |
39013 | cat >>confdefs.h <<\_ACEOF | |
39014 | #define wxUSE_FS_INET 1 | |
39015 | _ACEOF | |
39016 | ||
39017 | fi | |
39018 | ||
39019 | ||
ee45c548 MW |
39020 | if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then |
39021 | wxUSE_JOYSTICK=no | |
39022 | ||
39023 | if test "$TOOLKIT" = "MSW"; then | |
39024 | wxUSE_JOYSTICK=yes | |
39025 | ||
39026 | elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
39027 | if test "$USE_DARWIN" = 1; then | |
39028 | echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5 | |
39029 | echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6 | |
39030 | ac_ext=cc | |
39031 | ac_cpp='$CXXCPP $CPPFLAGS' | |
39032 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39033 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39034 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
39035 | ||
39036 | cat >conftest.$ac_ext <<_ACEOF | |
39037 | /* confdefs.h. */ | |
39038 | _ACEOF | |
39039 | cat confdefs.h >>conftest.$ac_ext | |
39040 | cat >>conftest.$ac_ext <<_ACEOF | |
39041 | /* end confdefs.h. */ | |
39042 | #include <IOKit/hid/IOHIDLib.h> | |
39043 | int | |
39044 | main () | |
39045 | { | |
39046 | IOHIDQueueInterface *qi = NULL; | |
39047 | IOHIDCallbackFunction cb = NULL; | |
39048 | qi->setEventCallout(NULL, cb, NULL, NULL); | |
39049 | ; | |
39050 | return 0; | |
39051 | } | |
39052 | _ACEOF | |
39053 | rm -f conftest.$ac_objext | |
39054 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39055 | (eval $ac_compile) 2>conftest.er1 | |
39056 | ac_status=$? | |
39057 | grep -v '^ *+' conftest.er1 >conftest.err | |
39058 | rm -f conftest.er1 | |
39059 | cat conftest.err >&5 | |
39060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39061 | (exit $ac_status); } && | |
ddd14b14 RR |
39062 | { ac_try='test -z "$ac_cxx_werror_flag" |
39063 | || test ! -s conftest.err' | |
ee45c548 MW |
39064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39065 | (eval $ac_try) 2>&5 | |
39066 | ac_status=$? | |
39067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39068 | (exit $ac_status); }; } && | |
39069 | { ac_try='test -s conftest.$ac_objext' | |
39070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39071 | (eval $ac_try) 2>&5 | |
39072 | ac_status=$? | |
39073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39074 | (exit $ac_status); }; }; then | |
39075 | wxUSE_JOYSTICK=yes | |
a848cd7e | 39076 | |
ee45c548 MW |
39077 | else |
39078 | echo "$as_me: failed program was:" >&5 | |
39079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39080 | ||
39081 | fi | |
39082 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39083 | ac_ext=c | |
39084 | ac_cpp='$CPP $CPPFLAGS' | |
39085 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39086 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39087 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
39088 | ||
39089 | echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5 | |
39090 | echo "${ECHO_T}$wxUSE_JOYSTICK" >&6 | |
39091 | fi | |
39092 | ||
39093 | else | |
a848cd7e SC |
39094 | |
39095 | for ac_header in linux/joystick.h | |
39096 | do | |
39097 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
39098 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
39099 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
39100 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
39101 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
39102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39103 | fi | |
39104 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
39105 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
39106 | else | |
39107 | # Is the header compilable? | |
39108 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
39109 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
39110 | cat >conftest.$ac_ext <<_ACEOF | |
39111 | /* confdefs.h. */ | |
39112 | _ACEOF | |
39113 | cat confdefs.h >>conftest.$ac_ext | |
39114 | cat >>conftest.$ac_ext <<_ACEOF | |
39115 | /* end confdefs.h. */ | |
39116 | $ac_includes_default | |
39117 | #include <$ac_header> | |
39118 | _ACEOF | |
39119 | rm -f conftest.$ac_objext | |
39120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39121 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39122 | ac_status=$? |
ac1cb8d3 VS |
39123 | grep -v '^ *+' conftest.er1 >conftest.err |
39124 | rm -f conftest.er1 | |
39125 | cat conftest.err >&5 | |
a848cd7e SC |
39126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39127 | (exit $ac_status); } && | |
ddd14b14 RR |
39128 | { ac_try='test -z "$ac_c_werror_flag" |
39129 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39131 | (eval $ac_try) 2>&5 | |
39132 | ac_status=$? | |
39133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39134 | (exit $ac_status); }; } && | |
39135 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39137 | (eval $ac_try) 2>&5 | |
39138 | ac_status=$? | |
39139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39140 | (exit $ac_status); }; }; then | |
39141 | ac_header_compiler=yes | |
39142 | else | |
39143 | echo "$as_me: failed program was:" >&5 | |
39144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39145 | ||
39146 | ac_header_compiler=no | |
39147 | fi | |
ac1cb8d3 | 39148 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39149 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
39150 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
39151 | ||
39152 | # Is the header present? | |
39153 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
39154 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
39155 | cat >conftest.$ac_ext <<_ACEOF | |
39156 | /* confdefs.h. */ | |
39157 | _ACEOF | |
39158 | cat confdefs.h >>conftest.$ac_ext | |
39159 | cat >>conftest.$ac_ext <<_ACEOF | |
39160 | /* end confdefs.h. */ | |
39161 | #include <$ac_header> | |
39162 | _ACEOF | |
39163 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
39164 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
39165 | ac_status=$? | |
39166 | grep -v '^ *+' conftest.er1 >conftest.err | |
39167 | rm -f conftest.er1 | |
39168 | cat conftest.err >&5 | |
39169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39170 | (exit $ac_status); } >/dev/null; then | |
39171 | if test -s conftest.err; then | |
39172 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 39173 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
39174 | else |
39175 | ac_cpp_err= | |
39176 | fi | |
39177 | else | |
39178 | ac_cpp_err=yes | |
39179 | fi | |
39180 | if test -z "$ac_cpp_err"; then | |
39181 | ac_header_preproc=yes | |
39182 | else | |
39183 | echo "$as_me: failed program was:" >&5 | |
39184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39185 | ||
39186 | ac_header_preproc=no | |
39187 | fi | |
39188 | rm -f conftest.err conftest.$ac_ext | |
39189 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
39190 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
39191 | ||
39192 | # So? What about this header? | |
ac1cb8d3 VS |
39193 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
39194 | yes:no: ) | |
a848cd7e SC |
39195 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
39196 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
39197 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
39198 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
39199 | ac_header_preproc=yes | |
a848cd7e | 39200 | ;; |
ac1cb8d3 | 39201 | no:yes:* ) |
a848cd7e SC |
39202 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
39203 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
39204 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
39205 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
39206 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
39207 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
39208 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
39209 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
39210 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
39211 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
39212 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
39213 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
39214 | ( |
39215 | cat <<\_ASBOX | |
ac1cb8d3 VS |
39216 | ## ----------------------------------------- ## |
39217 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
39218 | ## ----------------------------------------- ## | |
a848cd7e SC |
39219 | _ASBOX |
39220 | ) | | |
39221 | sed "s/^/$as_me: WARNING: /" >&2 | |
39222 | ;; | |
39223 | esac | |
39224 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
39225 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
39226 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
39227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39228 | else | |
ac1cb8d3 | 39229 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
39230 | fi |
39231 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
39232 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
39233 | ||
39234 | fi | |
39235 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
39236 | cat >>confdefs.h <<_ACEOF | |
39237 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
39238 | _ACEOF | |
ee45c548 | 39239 | wxUSE_JOYSTICK=yes |
a848cd7e SC |
39240 | fi |
39241 | ||
39242 | done | |
39243 | ||
ee45c548 | 39244 | fi |
4cb1d3da | 39245 | |
ee45c548 MW |
39246 | if test "$wxUSE_JOYSTICK" = "yes"; then |
39247 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
39248 | #define wxUSE_JOYSTICK 1 |
39249 | _ACEOF | |
39250 | ||
ee45c548 MW |
39251 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
39252 | else | |
39253 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
39254 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
a848cd7e SC |
39255 | fi |
39256 | fi | |
39257 | ||
39258 | ||
39259 | ||
39260 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
39261 | cat >>confdefs.h <<\_ACEOF | |
39262 | #define wxUSE_FONTMAP 1 | |
39263 | _ACEOF | |
39264 | ||
39265 | fi | |
39266 | ||
39267 | if test "$wxUSE_UNICODE" = "yes" ; then | |
39268 | cat >>confdefs.h <<\_ACEOF | |
39269 | #define wxUSE_UNICODE 1 | |
39270 | _ACEOF | |
39271 | ||
39272 | ||
39273 | if test "$USE_WIN32" != 1; then | |
39274 | wxUSE_UNICODE_MSLU=no | |
39275 | fi | |
39276 | ||
39277 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
39278 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
39279 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
39280 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
39281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39282 | else | |
39283 | ac_check_lib_save_LIBS=$LIBS | |
39284 | LIBS="-lunicows $LIBS" | |
39285 | cat >conftest.$ac_ext <<_ACEOF | |
39286 | /* confdefs.h. */ | |
39287 | _ACEOF | |
39288 | cat confdefs.h >>conftest.$ac_ext | |
39289 | cat >>conftest.$ac_ext <<_ACEOF | |
39290 | /* end confdefs.h. */ | |
39291 | ||
39292 | ||
39293 | int | |
39294 | main () | |
39295 | { | |
39296 | main (); | |
39297 | ; | |
39298 | return 0; | |
39299 | } | |
39300 | _ACEOF | |
39301 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39302 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39303 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39304 | ac_status=$? |
ac1cb8d3 VS |
39305 | grep -v '^ *+' conftest.er1 >conftest.err |
39306 | rm -f conftest.er1 | |
39307 | cat conftest.err >&5 | |
a848cd7e SC |
39308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39309 | (exit $ac_status); } && | |
ddd14b14 RR |
39310 | { ac_try='test -z "$ac_c_werror_flag" |
39311 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39313 | (eval $ac_try) 2>&5 | |
39314 | ac_status=$? | |
39315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39316 | (exit $ac_status); }; } && | |
39317 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39319 | (eval $ac_try) 2>&5 | |
39320 | ac_status=$? | |
39321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39322 | (exit $ac_status); }; }; then | |
39323 | ac_cv_lib_unicows_main=yes | |
39324 | else | |
39325 | echo "$as_me: failed program was:" >&5 | |
39326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39327 | ||
39328 | ac_cv_lib_unicows_main=no | |
39329 | fi | |
ac1cb8d3 VS |
39330 | rm -f conftest.err conftest.$ac_objext \ |
39331 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39332 | LIBS=$ac_check_lib_save_LIBS |
39333 | fi | |
39334 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
39335 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
39336 | if test $ac_cv_lib_unicows_main = yes; then | |
39337 | ||
39338 | cat >>confdefs.h <<\_ACEOF | |
39339 | #define wxUSE_UNICODE_MSLU 1 | |
39340 | _ACEOF | |
39341 | ||
39342 | ||
39343 | else | |
39344 | ||
39345 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
39346 | Applications will only run on Windows NT/2000/XP!" >&5 | |
39347 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
39348 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
39349 | wxUSE_UNICODE_MSLU=no | |
39350 | ||
39351 | fi | |
39352 | ||
39353 | fi | |
39354 | fi | |
39355 | ||
39356 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
39357 | cat >>confdefs.h <<\_ACEOF | |
39358 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
39359 | _ACEOF | |
39360 | ||
39361 | fi | |
39362 | ||
39363 | ||
39364 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
39365 | cat >>confdefs.h <<\_ACEOF | |
39366 | #define wxUSE_POSTSCRIPT 1 | |
39367 | _ACEOF | |
39368 | ||
39369 | fi | |
39370 | ||
39371 | cat >>confdefs.h <<\_ACEOF | |
39372 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
39373 | _ACEOF | |
39374 | ||
39375 | ||
39376 | cat >>confdefs.h <<\_ACEOF | |
39377 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
39378 | _ACEOF | |
39379 | ||
39380 | ||
39381 | ||
39382 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
39383 | cat >>confdefs.h <<\_ACEOF | |
39384 | #define wxUSE_CONSTRAINTS 1 | |
39385 | _ACEOF | |
39386 | ||
39387 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
39388 | fi | |
39389 | ||
8a7b1113 VZ |
39390 | if test "$wxUSE_MDI" = "yes"; then |
39391 | cat >>confdefs.h <<\_ACEOF | |
39392 | #define wxUSE_MDI 1 | |
39393 | _ACEOF | |
39394 | ||
39395 | ||
39396 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
39397 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
39398 | #define wxUSE_MDI_ARCHITECTURE 1 |
39399 | _ACEOF | |
39400 | ||
8a7b1113 VZ |
39401 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
39402 | fi | |
a848cd7e SC |
39403 | fi |
39404 | ||
39405 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
39406 | cat >>confdefs.h <<\_ACEOF | |
39407 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
39408 | _ACEOF | |
39409 | ||
39410 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
39411 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
39412 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
39413 | fi | |
39414 | fi | |
39415 | ||
39416 | if test "$wxUSE_HELP" = "yes"; then | |
39417 | cat >>confdefs.h <<\_ACEOF | |
39418 | #define wxUSE_HELP 1 | |
39419 | _ACEOF | |
39420 | ||
39421 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
39422 | ||
39423 | if test "$wxUSE_MSW" = 1; then | |
39424 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
39425 | cat >>confdefs.h <<\_ACEOF | |
39426 | #define wxUSE_MS_HTML_HELP 1 | |
39427 | _ACEOF | |
39428 | ||
39429 | fi | |
39430 | fi | |
39431 | ||
39432 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
39433 | if test "$wxUSE_HTML" = "yes"; then | |
39434 | cat >>confdefs.h <<\_ACEOF | |
39435 | #define wxUSE_WXHTML_HELP 1 | |
39436 | _ACEOF | |
39437 | ||
39438 | else | |
39439 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
39440 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
39441 | wxUSE_WXHTML_HELP=no | |
39442 | fi | |
39443 | fi | |
39444 | fi | |
39445 | ||
39446 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
39447 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
39448 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
39449 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
39450 | else | |
39451 | cat >>confdefs.h <<\_ACEOF | |
39452 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
39453 | _ACEOF | |
39454 | ||
39455 | fi | |
39456 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
39457 | fi | |
39458 | ||
39459 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
39460 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
39461 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
39462 | { (exit 1); exit 1; }; } | |
39463 | fi | |
39464 | ||
39465 | ||
39466 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
39467 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
39468 | -o "$wxUSE_OLE" = "yes" \ | |
39469 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
39470 | ||
39471 | for ac_header in ole2.h | |
39472 | do | |
39473 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
39474 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
39475 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
39476 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
39477 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
39478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39479 | fi | |
39480 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
39481 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
39482 | else | |
39483 | # Is the header compilable? | |
39484 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
39485 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
39486 | cat >conftest.$ac_ext <<_ACEOF | |
39487 | /* confdefs.h. */ | |
39488 | _ACEOF | |
39489 | cat confdefs.h >>conftest.$ac_ext | |
39490 | cat >>conftest.$ac_ext <<_ACEOF | |
39491 | /* end confdefs.h. */ | |
39492 | $ac_includes_default | |
39493 | #include <$ac_header> | |
39494 | _ACEOF | |
39495 | rm -f conftest.$ac_objext | |
39496 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39497 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39498 | ac_status=$? |
ac1cb8d3 VS |
39499 | grep -v '^ *+' conftest.er1 >conftest.err |
39500 | rm -f conftest.er1 | |
39501 | cat conftest.err >&5 | |
a848cd7e SC |
39502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39503 | (exit $ac_status); } && | |
ddd14b14 RR |
39504 | { ac_try='test -z "$ac_c_werror_flag" |
39505 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39507 | (eval $ac_try) 2>&5 | |
39508 | ac_status=$? | |
39509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39510 | (exit $ac_status); }; } && | |
39511 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39513 | (eval $ac_try) 2>&5 | |
39514 | ac_status=$? | |
39515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39516 | (exit $ac_status); }; }; then | |
39517 | ac_header_compiler=yes | |
39518 | else | |
39519 | echo "$as_me: failed program was:" >&5 | |
39520 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39521 | ||
39522 | ac_header_compiler=no | |
39523 | fi | |
ac1cb8d3 | 39524 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39525 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
39526 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
39527 | ||
39528 | # Is the header present? | |
39529 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
39530 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
39531 | cat >conftest.$ac_ext <<_ACEOF | |
39532 | /* confdefs.h. */ | |
39533 | _ACEOF | |
39534 | cat confdefs.h >>conftest.$ac_ext | |
39535 | cat >>conftest.$ac_ext <<_ACEOF | |
39536 | /* end confdefs.h. */ | |
39537 | #include <$ac_header> | |
39538 | _ACEOF | |
39539 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
39540 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
39541 | ac_status=$? | |
39542 | grep -v '^ *+' conftest.er1 >conftest.err | |
39543 | rm -f conftest.er1 | |
39544 | cat conftest.err >&5 | |
39545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39546 | (exit $ac_status); } >/dev/null; then | |
39547 | if test -s conftest.err; then | |
39548 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 39549 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
39550 | else |
39551 | ac_cpp_err= | |
39552 | fi | |
39553 | else | |
39554 | ac_cpp_err=yes | |
39555 | fi | |
39556 | if test -z "$ac_cpp_err"; then | |
39557 | ac_header_preproc=yes | |
39558 | else | |
39559 | echo "$as_me: failed program was:" >&5 | |
39560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39561 | ||
39562 | ac_header_preproc=no | |
39563 | fi | |
39564 | rm -f conftest.err conftest.$ac_ext | |
39565 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
39566 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
39567 | ||
39568 | # So? What about this header? | |
ac1cb8d3 VS |
39569 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
39570 | yes:no: ) | |
a848cd7e SC |
39571 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
39572 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
39573 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
39574 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
39575 | ac_header_preproc=yes | |
a848cd7e | 39576 | ;; |
ac1cb8d3 | 39577 | no:yes:* ) |
a848cd7e SC |
39578 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
39579 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
39580 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
39581 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
39582 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
39583 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
39584 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
39585 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
39586 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
39587 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
39588 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
39589 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
39590 | ( |
39591 | cat <<\_ASBOX | |
ac1cb8d3 VS |
39592 | ## ----------------------------------------- ## |
39593 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
39594 | ## ----------------------------------------- ## | |
a848cd7e SC |
39595 | _ASBOX |
39596 | ) | | |
39597 | sed "s/^/$as_me: WARNING: /" >&2 | |
39598 | ;; | |
39599 | esac | |
39600 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
39601 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
39602 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
39603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39604 | else | |
ac1cb8d3 | 39605 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
39606 | fi |
39607 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
39608 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
39609 | ||
39610 | fi | |
39611 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
39612 | cat >>confdefs.h <<_ACEOF | |
39613 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
39614 | _ACEOF | |
39615 | ||
39616 | fi | |
39617 | ||
39618 | done | |
39619 | ||
39620 | ||
39621 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
39622 | if test "$GCC" = yes ; then | |
39623 | ||
39624 | ||
39625 | ac_ext=cc | |
39626 | ac_cpp='$CXXCPP $CPPFLAGS' | |
39627 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39628 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39629 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
39630 | ||
39631 | ||
39632 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
39633 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
39634 | cat >conftest.$ac_ext <<_ACEOF | |
39635 | /* confdefs.h. */ | |
39636 | _ACEOF | |
39637 | cat confdefs.h >>conftest.$ac_ext | |
39638 | cat >>conftest.$ac_ext <<_ACEOF | |
39639 | /* end confdefs.h. */ | |
39640 | #include <windows.h> | |
39641 | #include <ole2.h> | |
39642 | int | |
39643 | main () | |
39644 | { | |
39645 | ||
39646 | ; | |
39647 | return 0; | |
39648 | } | |
39649 | _ACEOF | |
39650 | rm -f conftest.$ac_objext | |
39651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39652 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39653 | ac_status=$? |
ac1cb8d3 VS |
39654 | grep -v '^ *+' conftest.er1 >conftest.err |
39655 | rm -f conftest.er1 | |
39656 | cat conftest.err >&5 | |
a848cd7e SC |
39657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39658 | (exit $ac_status); } && | |
ddd14b14 RR |
39659 | { ac_try='test -z "$ac_cxx_werror_flag" |
39660 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39662 | (eval $ac_try) 2>&5 | |
39663 | ac_status=$? | |
39664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39665 | (exit $ac_status); }; } && | |
39666 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39668 | (eval $ac_try) 2>&5 | |
39669 | ac_status=$? | |
39670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39671 | (exit $ac_status); }; }; then | |
39672 | echo "$as_me:$LINENO: result: no" >&5 | |
39673 | echo "${ECHO_T}no" >&6 | |
39674 | else | |
39675 | echo "$as_me: failed program was:" >&5 | |
39676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39677 | ||
39678 | echo "$as_me:$LINENO: result: yes" >&5 | |
39679 | echo "${ECHO_T}yes" >&6 | |
39680 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
39681 | fi | |
ac1cb8d3 | 39682 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39683 | ac_ext=c |
39684 | ac_cpp='$CPP $CPPFLAGS' | |
39685 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39686 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39687 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
39688 | ||
a848cd7e SC |
39689 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
39690 | if test "$wxUSE_OLE" = "yes" ; then | |
39691 | cat >>confdefs.h <<\_ACEOF | |
39692 | #define wxUSE_OLE 1 | |
39693 | _ACEOF | |
39694 | ||
0b78747f | 39695 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto" |
a848cd7e SC |
39696 | fi |
39697 | fi | |
39698 | ||
39699 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
39700 | cat >>confdefs.h <<\_ACEOF | |
39701 | #define wxUSE_DATAOBJ 1 | |
39702 | _ACEOF | |
39703 | ||
39704 | fi | |
39705 | else | |
39706 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
39707 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
39708 | ||
39709 | wxUSE_CLIPBOARD=no | |
39710 | wxUSE_DRAG_AND_DROP=no | |
39711 | wxUSE_DATAOBJ=no | |
39712 | wxUSE_OLE=no | |
39713 | fi | |
39714 | ||
39715 | if test "$wxUSE_METAFILE" = "yes"; then | |
39716 | cat >>confdefs.h <<\_ACEOF | |
39717 | #define wxUSE_METAFILE 1 | |
39718 | _ACEOF | |
39719 | ||
39720 | ||
39721 | cat >>confdefs.h <<\_ACEOF | |
39722 | #define wxUSE_ENH_METAFILE 1 | |
39723 | _ACEOF | |
39724 | ||
39725 | fi | |
39726 | fi | |
39727 | ||
39728 | if test "$wxUSE_IPC" = "yes"; then | |
0b78747f | 39729 | if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then |
77ffb593 JS |
39730 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
39731 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
0b78747f | 39732 | wxUSE_IPC=no |
a848cd7e SC |
39733 | fi |
39734 | ||
0b78747f MW |
39735 | if test "$wxUSE_IPC" = "yes"; then |
39736 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
39737 | #define wxUSE_IPC 1 |
39738 | _ACEOF | |
39739 | ||
0b78747f MW |
39740 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc" |
39741 | fi | |
a848cd7e SC |
39742 | fi |
39743 | ||
39744 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
39745 | if test "$wxUSE_MGL" = 1; then | |
39746 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
39747 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
39748 | wxUSE_CLIPBOARD=no | |
39749 | fi | |
39750 | ||
39751 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
39752 | cat >>confdefs.h <<\_ACEOF | |
39753 | #define wxUSE_CLIPBOARD 1 | |
39754 | _ACEOF | |
39755 | ||
39756 | ||
39757 | cat >>confdefs.h <<\_ACEOF | |
39758 | #define wxUSE_DATAOBJ 1 | |
39759 | _ACEOF | |
39760 | ||
39761 | fi | |
39762 | fi | |
39763 | ||
39764 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
39765 | if test "$wxUSE_GTK" = 1; then | |
39766 | if test "$WXGTK12" != 1; then | |
39767 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
39768 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
39769 | wxUSE_DRAG_AND_DROP=no | |
39770 | fi | |
39771 | fi | |
39772 | ||
39773 | if test "$wxUSE_MOTIF" = 1; then | |
39774 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
39775 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
39776 | wxUSE_DRAG_AND_DROP=no | |
39777 | fi | |
39778 | ||
39779 | if test "$wxUSE_X11" = 1; then | |
39780 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
39781 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
39782 | wxUSE_DRAG_AND_DROP=no | |
39783 | fi | |
39784 | ||
39785 | if test "$wxUSE_MGL" = 1; then | |
39786 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
39787 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
39788 | wxUSE_DRAG_AND_DROP=no | |
39789 | fi | |
39790 | ||
39791 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
39792 | cat >>confdefs.h <<\_ACEOF | |
39793 | #define wxUSE_DRAG_AND_DROP 1 | |
39794 | _ACEOF | |
39795 | ||
39796 | fi | |
39797 | ||
39798 | fi | |
39799 | ||
39800 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
39801 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
39802 | fi | |
39803 | ||
39804 | if test "$wxUSE_SPLINES" = "yes" ; then | |
39805 | cat >>confdefs.h <<\_ACEOF | |
39806 | #define wxUSE_SPLINES 1 | |
39807 | _ACEOF | |
39808 | ||
39809 | fi | |
39810 | ||
fbe2ca43 SN |
39811 | if test "$wxUSE_MOUSEWHEEL" = "yes" ; then |
39812 | cat >>confdefs.h <<\_ACEOF | |
39813 | #define wxUSE_MOUSEWHEEL 1 | |
39814 | _ACEOF | |
39815 | ||
39816 | fi | |
39817 | ||
a848cd7e SC |
39818 | |
39819 | USES_CONTROLS=0 | |
39820 | if test "$wxUSE_CONTROLS" = "yes"; then | |
39821 | USES_CONTROLS=1 | |
39822 | fi | |
39823 | ||
39824 | if test "$wxUSE_ACCEL" = "yes"; then | |
39825 | cat >>confdefs.h <<\_ACEOF | |
39826 | #define wxUSE_ACCEL 1 | |
39827 | _ACEOF | |
39828 | ||
39829 | USES_CONTROLS=1 | |
39830 | fi | |
39831 | ||
39832 | if test "$wxUSE_BUTTON" = "yes"; then | |
39833 | cat >>confdefs.h <<\_ACEOF | |
39834 | #define wxUSE_BUTTON 1 | |
39835 | _ACEOF | |
39836 | ||
39837 | USES_CONTROLS=1 | |
39838 | fi | |
39839 | ||
39840 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
39841 | cat >>confdefs.h <<\_ACEOF | |
39842 | #define wxUSE_BMPBUTTON 1 | |
39843 | _ACEOF | |
39844 | ||
39845 | USES_CONTROLS=1 | |
39846 | fi | |
39847 | ||
39848 | if test "$wxUSE_CALCTRL" = "yes"; then | |
39849 | cat >>confdefs.h <<\_ACEOF | |
39850 | #define wxUSE_CALENDARCTRL 1 | |
39851 | _ACEOF | |
39852 | ||
39853 | USES_CONTROLS=1 | |
39854 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
39855 | fi | |
39856 | ||
39857 | if test "$wxUSE_CARET" = "yes"; then | |
39858 | cat >>confdefs.h <<\_ACEOF | |
39859 | #define wxUSE_CARET 1 | |
39860 | _ACEOF | |
39861 | ||
39862 | USES_CONTROLS=1 | |
39863 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
39864 | fi | |
39865 | ||
39866 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
39867 | cat >>confdefs.h <<\_ACEOF | |
39868 | #define wxUSE_COMBOBOX 1 | |
39869 | _ACEOF | |
39870 | ||
39871 | USES_CONTROLS=1 | |
39872 | fi | |
39873 | ||
39874 | if test "$wxUSE_CHOICE" = "yes"; then | |
39875 | cat >>confdefs.h <<\_ACEOF | |
39876 | #define wxUSE_CHOICE 1 | |
39877 | _ACEOF | |
39878 | ||
39879 | USES_CONTROLS=1 | |
39880 | fi | |
39881 | ||
92bbdbcd WS |
39882 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
39883 | cat >>confdefs.h <<\_ACEOF | |
39884 | #define wxUSE_CHOICEBOOK 1 | |
39885 | _ACEOF | |
39886 | ||
39887 | USES_CONTROLS=1 | |
39888 | fi | |
39889 | ||
a848cd7e SC |
39890 | if test "$wxUSE_CHECKBOX" = "yes"; then |
39891 | cat >>confdefs.h <<\_ACEOF | |
39892 | #define wxUSE_CHECKBOX 1 | |
39893 | _ACEOF | |
39894 | ||
39895 | USES_CONTROLS=1 | |
39896 | fi | |
39897 | ||
39898 | if test "$wxUSE_CHECKLST" = "yes"; then | |
39899 | cat >>confdefs.h <<\_ACEOF | |
39900 | #define wxUSE_CHECKLISTBOX 1 | |
39901 | _ACEOF | |
39902 | ||
39903 | USES_CONTROLS=1 | |
39904 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
39905 | fi | |
39906 | ||
da98e9be VZ |
39907 | if test "$wxUSE_DATEPICKCTRL" = "yes"; then |
39908 | cat >>confdefs.h <<\_ACEOF | |
39909 | #define wxUSE_DATEPICKCTRL 1 | |
39910 | _ACEOF | |
39911 | ||
39912 | USES_CONTROLS=1 | |
39913 | fi | |
39914 | ||
a848cd7e SC |
39915 | if test "$wxUSE_DISPLAY" = "yes"; then |
39916 | cat >>confdefs.h <<\_ACEOF | |
39917 | #define wxUSE_DISPLAY 1 | |
39918 | _ACEOF | |
39919 | ||
0b78747f | 39920 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon" |
a848cd7e SC |
39921 | fi |
39922 | ||
39923 | if test "$wxUSE_GAUGE" = "yes"; then | |
39924 | cat >>confdefs.h <<\_ACEOF | |
39925 | #define wxUSE_GAUGE 1 | |
39926 | _ACEOF | |
39927 | ||
39928 | USES_CONTROLS=1 | |
39929 | fi | |
39930 | ||
39931 | if test "$wxUSE_GRID" = "yes"; then | |
39932 | cat >>confdefs.h <<\_ACEOF | |
39933 | #define wxUSE_GRID 1 | |
39934 | _ACEOF | |
39935 | ||
39936 | USES_CONTROLS=1 | |
39937 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
39938 | fi | |
39939 | ||
39940 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
39941 | cat >>confdefs.h <<\_ACEOF | |
39942 | #define wxUSE_IMAGLIST 1 | |
39943 | _ACEOF | |
39944 | ||
39945 | fi | |
39946 | ||
39947 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
39948 | cat >>confdefs.h <<\_ACEOF | |
39949 | #define wxUSE_LISTBOOK 1 | |
39950 | _ACEOF | |
39951 | ||
39952 | USES_CONTROLS=1 | |
39953 | fi | |
39954 | ||
39955 | if test "$wxUSE_LISTBOX" = "yes"; then | |
39956 | cat >>confdefs.h <<\_ACEOF | |
39957 | #define wxUSE_LISTBOX 1 | |
39958 | _ACEOF | |
39959 | ||
39960 | USES_CONTROLS=1 | |
0b78747f | 39961 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox" |
a848cd7e SC |
39962 | fi |
39963 | ||
39964 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
39965 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
39966 | cat >>confdefs.h <<\_ACEOF | |
39967 | #define wxUSE_LISTCTRL 1 | |
39968 | _ACEOF | |
39969 | ||
39970 | USES_CONTROLS=1 | |
39971 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
39972 | else | |
39973 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
39974 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
39975 | fi | |
39976 | fi | |
39977 | ||
39978 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
39979 | cat >>confdefs.h <<\_ACEOF | |
39980 | #define wxUSE_NOTEBOOK 1 | |
39981 | _ACEOF | |
39982 | ||
39983 | USES_CONTROLS=1 | |
39984 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
39985 | fi | |
39986 | ||
39987 | ||
39988 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
39989 | cat >>confdefs.h <<\_ACEOF | |
39990 | #define wxUSE_RADIOBOX 1 | |
39991 | _ACEOF | |
39992 | ||
39993 | USES_CONTROLS=1 | |
39994 | fi | |
39995 | ||
39996 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
39997 | cat >>confdefs.h <<\_ACEOF | |
39998 | #define wxUSE_RADIOBTN 1 | |
39999 | _ACEOF | |
40000 | ||
40001 | USES_CONTROLS=1 | |
40002 | fi | |
40003 | ||
40004 | if test "$wxUSE_SASH" = "yes"; then | |
40005 | cat >>confdefs.h <<\_ACEOF | |
40006 | #define wxUSE_SASH 1 | |
40007 | _ACEOF | |
40008 | ||
40009 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
40010 | fi | |
40011 | ||
40012 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
40013 | cat >>confdefs.h <<\_ACEOF | |
40014 | #define wxUSE_SCROLLBAR 1 | |
40015 | _ACEOF | |
40016 | ||
40017 | USES_CONTROLS=1 | |
40018 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
40019 | fi | |
40020 | ||
40021 | if test "$wxUSE_SLIDER" = "yes"; then | |
40022 | cat >>confdefs.h <<\_ACEOF | |
40023 | #define wxUSE_SLIDER 1 | |
40024 | _ACEOF | |
40025 | ||
40026 | USES_CONTROLS=1 | |
40027 | fi | |
40028 | ||
40029 | if test "$wxUSE_SPINBTN" = "yes"; then | |
40030 | cat >>confdefs.h <<\_ACEOF | |
40031 | #define wxUSE_SPINBTN 1 | |
40032 | _ACEOF | |
40033 | ||
40034 | USES_CONTROLS=1 | |
40035 | fi | |
40036 | ||
40037 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
40038 | cat >>confdefs.h <<\_ACEOF | |
40039 | #define wxUSE_SPINCTRL 1 | |
40040 | _ACEOF | |
40041 | ||
40042 | USES_CONTROLS=1 | |
40043 | fi | |
40044 | ||
40045 | if test "$wxUSE_SPLITTER" = "yes"; then | |
40046 | cat >>confdefs.h <<\_ACEOF | |
40047 | #define wxUSE_SPLITTER 1 | |
40048 | _ACEOF | |
40049 | ||
40050 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
40051 | fi | |
40052 | ||
40053 | if test "$wxUSE_STATBMP" = "yes"; then | |
40054 | cat >>confdefs.h <<\_ACEOF | |
40055 | #define wxUSE_STATBMP 1 | |
40056 | _ACEOF | |
40057 | ||
40058 | USES_CONTROLS=1 | |
40059 | fi | |
40060 | ||
40061 | if test "$wxUSE_STATBOX" = "yes"; then | |
40062 | cat >>confdefs.h <<\_ACEOF | |
40063 | #define wxUSE_STATBOX 1 | |
40064 | _ACEOF | |
40065 | ||
40066 | USES_CONTROLS=1 | |
40067 | fi | |
40068 | ||
40069 | if test "$wxUSE_STATTEXT" = "yes"; then | |
40070 | cat >>confdefs.h <<\_ACEOF | |
40071 | #define wxUSE_STATTEXT 1 | |
40072 | _ACEOF | |
40073 | ||
40074 | USES_CONTROLS=1 | |
40075 | fi | |
40076 | ||
40077 | if test "$wxUSE_STATLINE" = "yes"; then | |
40078 | cat >>confdefs.h <<\_ACEOF | |
40079 | #define wxUSE_STATLINE 1 | |
40080 | _ACEOF | |
40081 | ||
40082 | USES_CONTROLS=1 | |
40083 | fi | |
40084 | ||
40085 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
da4486fb VZ |
40086 | cat >>confdefs.h <<\_ACEOF |
40087 | #define wxUSE_NATIVE_STATUSBAR 1 | |
40088 | _ACEOF | |
40089 | ||
a848cd7e SC |
40090 | cat >>confdefs.h <<\_ACEOF |
40091 | #define wxUSE_STATUSBAR 1 | |
40092 | _ACEOF | |
40093 | ||
40094 | USES_CONTROLS=1 | |
40095 | ||
40096 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
40097 | fi | |
40098 | ||
40099 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
40100 | cat >>confdefs.h <<\_ACEOF | |
40101 | #define wxUSE_TAB_DIALOG 1 | |
40102 | _ACEOF | |
40103 | ||
a848cd7e SC |
40104 | fi |
40105 | ||
40106 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
40107 | cat >>confdefs.h <<\_ACEOF | |
40108 | #define wxUSE_TEXTCTRL 1 | |
40109 | _ACEOF | |
40110 | ||
40111 | USES_CONTROLS=1 | |
40112 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
40113 | fi | |
40114 | ||
40115 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
40116 | if test "$wxUSE_COCOA" = 1 ; then | |
40117 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
40118 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
40119 | wxUSE_TOGGLEBTN=no | |
40120 | fi | |
40121 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
40122 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
40123 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
40124 | wxUSE_TOGGLEBTN=no | |
40125 | fi | |
40126 | ||
40127 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
40128 | cat >>confdefs.h <<\_ACEOF | |
40129 | #define wxUSE_TOGGLEBTN 1 | |
40130 | _ACEOF | |
40131 | ||
40132 | USES_CONTROLS=1 | |
40133 | fi | |
40134 | fi | |
40135 | ||
40136 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
40137 | cat >>confdefs.h <<\_ACEOF | |
40138 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
40139 | _ACEOF | |
40140 | ||
40141 | wxUSE_TOOLBAR="yes" | |
40142 | USES_CONTROLS=1 | |
40143 | fi | |
40144 | ||
40145 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
40146 | cat >>confdefs.h <<\_ACEOF | |
40147 | #define wxUSE_TOOLBAR 1 | |
40148 | _ACEOF | |
40149 | ||
40150 | USES_CONTROLS=1 | |
40151 | ||
40152 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
40153 | wxUSE_TOOLBAR_NATIVE="yes" | |
40154 | fi | |
40155 | ||
40156 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
40157 | cat >>confdefs.h <<\_ACEOF | |
40158 | #define wxUSE_TOOLBAR_NATIVE 1 | |
40159 | _ACEOF | |
40160 | ||
40161 | USES_CONTROLS=1 | |
40162 | fi | |
40163 | ||
40164 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
40165 | fi | |
40166 | ||
40167 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
40168 | if test "$wxUSE_MOTIF" = 1; then | |
40169 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
40170 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
40171 | else | |
40172 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
40173 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
40174 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
40175 | else | |
40176 | cat >>confdefs.h <<\_ACEOF | |
40177 | #define wxUSE_TOOLTIPS 1 | |
40178 | _ACEOF | |
40179 | ||
40180 | fi | |
40181 | fi | |
40182 | fi | |
40183 | ||
40184 | if test "$wxUSE_TREECTRL" = "yes"; then | |
40185 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
40186 | cat >>confdefs.h <<\_ACEOF | |
40187 | #define wxUSE_TREECTRL 1 | |
40188 | _ACEOF | |
40189 | ||
40190 | USES_CONTROLS=1 | |
40191 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
40192 | else | |
40193 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
40194 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
40195 | fi | |
40196 | fi | |
40197 | ||
40198 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
40199 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
40200 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
40201 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
40202 | else | |
40203 | if test "$wxUSE_PM" = 1; then | |
40204 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
40205 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
40206 | else | |
40207 | cat >>confdefs.h <<\_ACEOF | |
40208 | #define wxUSE_POPUPWIN 1 | |
40209 | _ACEOF | |
40210 | ||
0b78747f | 40211 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup" |
a848cd7e SC |
40212 | |
40213 | USES_CONTROLS=1 | |
40214 | fi | |
40215 | fi | |
40216 | fi | |
40217 | ||
0dcd06dd | 40218 | if test "$wxUSE_DIALUP_MANAGER" = "yes"; then |
b843b628 MB |
40219 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
40220 | { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5 | |
40221 | echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;} | |
40222 | else | |
40223 | cat >>confdefs.h <<\_ACEOF | |
40224 | #define wxUSE_DIALUP_MANAGER 1 | |
40225 | _ACEOF | |
40226 | ||
40227 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
40228 | fi | |
40229 | fi | |
40230 | ||
a848cd7e SC |
40231 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
40232 | if test "$wxUSE_PM" = 1; then | |
40233 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
40234 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
40235 | else | |
40236 | cat >>confdefs.h <<\_ACEOF | |
40237 | #define wxUSE_TIPWINDOW 1 | |
40238 | _ACEOF | |
40239 | ||
40240 | fi | |
40241 | fi | |
40242 | ||
40243 | if test "$USES_CONTROLS" = 1; then | |
40244 | cat >>confdefs.h <<\_ACEOF | |
40245 | #define wxUSE_CONTROLS 1 | |
40246 | _ACEOF | |
40247 | ||
40248 | fi | |
40249 | ||
40250 | ||
40251 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
40252 | cat >>confdefs.h <<\_ACEOF | |
40253 | #define wxUSE_ACCESSIBILITY 1 | |
40254 | _ACEOF | |
40255 | ||
40256 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
40257 | fi | |
40258 | ||
40259 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
40260 | cat >>confdefs.h <<\_ACEOF | |
40261 | #define wxUSE_DRAGIMAGE 1 | |
40262 | _ACEOF | |
40263 | ||
40264 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
40265 | fi | |
40266 | ||
40267 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
40268 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
40269 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
40270 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
40271 | else | |
40272 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
40273 | #define wxUSE_EXCEPTIONS 1 |
40274 | _ACEOF | |
40275 | ||
07bea8f0 VS |
40276 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
40277 | fi | |
a848cd7e SC |
40278 | fi |
40279 | ||
40280 | USE_HTML=0 | |
40281 | if test "$wxUSE_HTML" = "yes"; then | |
40282 | cat >>confdefs.h <<\_ACEOF | |
40283 | #define wxUSE_HTML 1 | |
40284 | _ACEOF | |
40285 | ||
40286 | USE_HTML=1 | |
40287 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
40288 | if test "$wxUSE_MAC" = 1; then |
40289 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
40290 | fi | |
a848cd7e | 40291 | fi |
646b6ec1 | 40292 | if test "$wxUSE_WEBKIT" = "yes"; then |
1e9e8aba | 40293 | if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
07bea8f0 VS |
40294 | old_CPPFLAGS="$CPPFLAGS" |
40295 | CPPFLAGS="$CPPFLAGS -x objective-c++" | |
40296 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 | |
40297 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
40298 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
40299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40300 | else | |
40301 | cat >conftest.$ac_ext <<_ACEOF | |
40302 | /* confdefs.h. */ | |
40303 | _ACEOF | |
40304 | cat confdefs.h >>conftest.$ac_ext | |
40305 | cat >>conftest.$ac_ext <<_ACEOF | |
40306 | /* end confdefs.h. */ | |
40307 | #include <Carbon/Carbon.h> | |
40308 | ||
40309 | #include <WebKit/HIWebView.h> | |
40310 | _ACEOF | |
40311 | rm -f conftest.$ac_objext | |
40312 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40313 | (eval $ac_compile) 2>conftest.er1 | |
40314 | ac_status=$? | |
40315 | grep -v '^ *+' conftest.er1 >conftest.err | |
40316 | rm -f conftest.er1 | |
40317 | cat conftest.err >&5 | |
40318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40319 | (exit $ac_status); } && | |
ddd14b14 RR |
40320 | { ac_try='test -z "$ac_c_werror_flag" |
40321 | || test ! -s conftest.err' | |
07bea8f0 VS |
40322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40323 | (eval $ac_try) 2>&5 | |
40324 | ac_status=$? | |
40325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40326 | (exit $ac_status); }; } && | |
40327 | { ac_try='test -s conftest.$ac_objext' | |
40328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40329 | (eval $ac_try) 2>&5 | |
40330 | ac_status=$? | |
40331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40332 | (exit $ac_status); }; }; then | |
40333 | ac_cv_header_WebKit_HIWebView_h=yes | |
40334 | else | |
40335 | echo "$as_me: failed program was:" >&5 | |
40336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40337 | ||
40338 | ac_cv_header_WebKit_HIWebView_h=no | |
40339 | fi | |
40340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
40341 | fi | |
40342 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
40343 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
40344 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
40345 | ||
40346 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
40347 | #define wxUSE_WEBKIT 1 |
40348 | _ACEOF | |
40349 | ||
07bea8f0 VS |
40350 | WEBKIT_LINK="-framework WebKit" |
40351 | ||
40352 | else | |
40353 | ||
40354 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
40355 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
40356 | wxUSE_WEBKIT=no | |
40357 | ||
646b6ec1 VS |
40358 | fi |
40359 | ||
07bea8f0 VS |
40360 | |
40361 | CPPFLAGS="$old_CPPFLAGS" | |
40362 | elif test "$wxUSE_COCOA" = 1; then | |
40363 | cat >>confdefs.h <<\_ACEOF | |
40364 | #define wxUSE_WEBKIT 1 | |
40365 | _ACEOF | |
40366 | ||
40367 | else | |
40368 | wxUSE_WEBKIT=no | |
40369 | fi | |
40370 | fi | |
40371 | ||
9a8f0513 VS |
40372 | USE_XRC=0 |
40373 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
40374 | if test "$wxUSE_XML" != "yes"; then |
40375 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
40376 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
40377 | wxUSE_XRC=no | |
40378 | else | |
40379 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
40380 | #define wxUSE_XRC 1 |
40381 | _ACEOF | |
40382 | ||
d2ebf0b7 VS |
40383 | USE_XRC=1 |
40384 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
40385 | fi | |
9a8f0513 | 40386 | fi |
07bea8f0 | 40387 | |
a848cd7e SC |
40388 | if test "$wxUSE_MENUS" = "yes"; then |
40389 | cat >>confdefs.h <<\_ACEOF | |
40390 | #define wxUSE_MENUS 1 | |
40391 | _ACEOF | |
40392 | ||
40393 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
40394 | fi | |
40395 | ||
40396 | if test "$wxUSE_METAFILE" = "yes"; then | |
40397 | cat >>confdefs.h <<\_ACEOF | |
40398 | #define wxUSE_METAFILE 1 | |
40399 | _ACEOF | |
40400 | ||
40401 | fi | |
40402 | ||
40403 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
40404 | cat >>confdefs.h <<\_ACEOF | |
40405 | #define wxUSE_MIMETYPE 1 | |
40406 | _ACEOF | |
40407 | ||
40408 | fi | |
40409 | ||
40410 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
40411 | cat >>confdefs.h <<\_ACEOF | |
40412 | #define wxUSE_MINIFRAME 1 | |
40413 | _ACEOF | |
40414 | ||
40415 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
40416 | fi | |
40417 | ||
40418 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
40419 | cat >>confdefs.h <<\_ACEOF | |
40420 | #define wxUSE_SYSTEM_OPTIONS 1 | |
40421 | _ACEOF | |
40422 | ||
40423 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 40424 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
40425 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
40426 | fi | |
40427 | fi | |
40428 | ||
40429 | ||
40430 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
40431 | cat >>confdefs.h <<\_ACEOF | |
40432 | #define wxUSE_VALIDATORS 1 | |
40433 | _ACEOF | |
40434 | ||
40435 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
40436 | fi | |
40437 | ||
40438 | if test "$wxUSE_PALETTE" = "yes" ; then | |
40439 | cat >>confdefs.h <<\_ACEOF | |
40440 | #define wxUSE_PALETTE 1 | |
40441 | _ACEOF | |
40442 | ||
40443 | fi | |
40444 | ||
40445 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
40446 | LIBS=" -lunicows $LIBS" | |
40447 | fi | |
40448 | ||
40449 | ||
40450 | if test "$wxUSE_IMAGE" = "yes" ; then | |
40451 | cat >>confdefs.h <<\_ACEOF | |
40452 | #define wxUSE_IMAGE 1 | |
40453 | _ACEOF | |
40454 | ||
40455 | ||
40456 | if test "$wxUSE_GIF" = "yes" ; then | |
40457 | cat >>confdefs.h <<\_ACEOF | |
40458 | #define wxUSE_GIF 1 | |
40459 | _ACEOF | |
40460 | ||
40461 | fi | |
40462 | ||
40463 | if test "$wxUSE_PCX" = "yes" ; then | |
40464 | cat >>confdefs.h <<\_ACEOF | |
40465 | #define wxUSE_PCX 1 | |
40466 | _ACEOF | |
40467 | ||
40468 | fi | |
40469 | ||
40470 | if test "$wxUSE_IFF" = "yes" ; then | |
40471 | cat >>confdefs.h <<\_ACEOF | |
40472 | #define wxUSE_IFF 1 | |
40473 | _ACEOF | |
40474 | ||
40475 | fi | |
40476 | ||
40477 | if test "$wxUSE_PNM" = "yes" ; then | |
40478 | cat >>confdefs.h <<\_ACEOF | |
40479 | #define wxUSE_PNM 1 | |
40480 | _ACEOF | |
40481 | ||
40482 | fi | |
40483 | ||
40484 | if test "$wxUSE_XPM" = "yes" ; then | |
40485 | cat >>confdefs.h <<\_ACEOF | |
40486 | #define wxUSE_XPM 1 | |
40487 | _ACEOF | |
40488 | ||
40489 | fi | |
40490 | ||
40491 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
40492 | cat >>confdefs.h <<\_ACEOF | |
40493 | #define wxUSE_ICO_CUR 1 | |
40494 | _ACEOF | |
40495 | ||
40496 | fi | |
40497 | fi | |
40498 | ||
40499 | ||
40500 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
40501 | cat >>confdefs.h <<\_ACEOF | |
40502 | #define wxUSE_CHOICEDLG 1 | |
40503 | _ACEOF | |
40504 | ||
40505 | fi | |
40506 | ||
40507 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
40508 | cat >>confdefs.h <<\_ACEOF | |
40509 | #define wxUSE_COLOURDLG 1 | |
40510 | _ACEOF | |
40511 | ||
40512 | fi | |
40513 | ||
40514 | if test "$wxUSE_FILEDLG" = "yes"; then | |
40515 | cat >>confdefs.h <<\_ACEOF | |
40516 | #define wxUSE_FILEDLG 1 | |
40517 | _ACEOF | |
40518 | ||
40519 | fi | |
40520 | ||
40521 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
40522 | cat >>confdefs.h <<\_ACEOF | |
40523 | #define wxUSE_FINDREPLDLG 1 | |
40524 | _ACEOF | |
40525 | ||
40526 | fi | |
40527 | ||
40528 | if test "$wxUSE_FONTDLG" = "yes"; then | |
40529 | cat >>confdefs.h <<\_ACEOF | |
40530 | #define wxUSE_FONTDLG 1 | |
40531 | _ACEOF | |
40532 | ||
40533 | fi | |
40534 | ||
40535 | if test "$wxUSE_DIRDLG" = "yes"; then | |
40536 | if test "$wxUSE_TREECTRL" != "yes"; then | |
40537 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
40538 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
40539 | else | |
40540 | cat >>confdefs.h <<\_ACEOF | |
40541 | #define wxUSE_DIRDLG 1 | |
40542 | _ACEOF | |
40543 | ||
40544 | fi | |
40545 | fi | |
40546 | ||
40547 | if test "$wxUSE_MSGDLG" = "yes"; then | |
40548 | cat >>confdefs.h <<\_ACEOF | |
40549 | #define wxUSE_MSGDLG 1 | |
40550 | _ACEOF | |
40551 | ||
40552 | fi | |
40553 | ||
40554 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
40555 | cat >>confdefs.h <<\_ACEOF | |
40556 | #define wxUSE_NUMBERDLG 1 | |
40557 | _ACEOF | |
40558 | ||
40559 | fi | |
40560 | ||
40561 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
40562 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
40563 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
40564 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
40565 | else | |
40566 | cat >>confdefs.h <<\_ACEOF | |
40567 | #define wxUSE_PROGRESSDLG 1 | |
40568 | _ACEOF | |
40569 | ||
40570 | fi | |
40571 | fi | |
40572 | ||
40573 | if test "$wxUSE_SPLASH" = "yes"; then | |
40574 | cat >>confdefs.h <<\_ACEOF | |
40575 | #define wxUSE_SPLASH 1 | |
40576 | _ACEOF | |
40577 | ||
2057db16 | 40578 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
40579 | fi |
40580 | ||
40581 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
40582 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
40583 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
40584 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
40585 | else | |
40586 | cat >>confdefs.h <<\_ACEOF | |
40587 | #define wxUSE_STARTUP_TIPS 1 | |
40588 | _ACEOF | |
40589 | ||
40590 | fi | |
40591 | fi | |
40592 | ||
40593 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
40594 | cat >>confdefs.h <<\_ACEOF | |
40595 | #define wxUSE_TEXTDLG 1 | |
40596 | _ACEOF | |
40597 | ||
40598 | fi | |
40599 | ||
40600 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
40601 | cat >>confdefs.h <<\_ACEOF | |
40602 | #define wxUSE_WIZARDDLG 1 | |
40603 | _ACEOF | |
40604 | ||
40605 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
40606 | fi | |
40607 | ||
40608 | ||
ce756cb0 | 40609 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
ce756cb0 RN |
40610 | if test "$wxUSE_GTK" = 1; then |
40611 | wxUSE_GSTREAMER="yes" | |
40612 | ||
ce756cb0 | 40613 | |
dae87f93 | 40614 | succeeded=no |
ce756cb0 | 40615 | |
dae87f93 RN |
40616 | if test -z "$PKG_CONFIG"; then |
40617 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
40618 | set dummy pkg-config; ac_word=$2 | |
40619 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40620 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40621 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
40622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40623 | else | |
40624 | case $PKG_CONFIG in | |
40625 | [\\/]* | ?:[\\/]*) | |
40626 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
40627 | ;; | |
40628 | *) | |
40629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40630 | for as_dir in $PATH | |
40631 | do | |
40632 | IFS=$as_save_IFS | |
40633 | test -z "$as_dir" && as_dir=. | |
40634 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40635 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40636 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
40637 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40638 | break 2 | |
40639 | fi | |
40640 | done | |
40641 | done | |
40642 | ||
40643 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
40644 | ;; | |
40645 | esac | |
40646 | fi | |
40647 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
40648 | ||
40649 | if test -n "$PKG_CONFIG"; then | |
40650 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
40651 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
40652 | else | |
40653 | echo "$as_me:$LINENO: result: no" >&5 | |
40654 | echo "${ECHO_T}no" >&6 | |
40655 | fi | |
40656 | ||
40657 | fi | |
40658 | ||
40659 | if test "$PKG_CONFIG" = "no" ; then | |
40660 | echo "*** The pkg-config script could not be found. Make sure it is" | |
40661 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
40662 | echo "*** to the full path to pkg-config." | |
40663 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
40664 | else | |
40665 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
40666 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
40667 | echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5 | |
40668 | echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6 | |
40669 | ||
40670 | if $PKG_CONFIG --exists "gstreamer-0.8" ; then | |
40671 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 40672 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 40673 | succeeded=yes |
ce756cb0 | 40674 | |
dae87f93 RN |
40675 | echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5 |
40676 | echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6 | |
40677 | GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"` | |
40678 | echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5 | |
40679 | echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6 | |
40680 | ||
40681 | echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5 | |
40682 | echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6 | |
40683 | GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"` | |
40684 | echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5 | |
40685 | echo "${ECHO_T}$GSTREAMER_LIBS" >&6 | |
40686 | else | |
40687 | GSTREAMER_CFLAGS="" | |
40688 | GSTREAMER_LIBS="" | |
40689 | ## If we have a custom action on failure, don't print errors, but | |
40690 | ## do set a variable so people can do so. | |
40691 | GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"` | |
ce756cb0 | 40692 | |
dae87f93 RN |
40693 | fi |
40694 | ||
40695 | ||
40696 | ||
40697 | else | |
40698 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
40699 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
40700 | fi | |
40701 | fi | |
40702 | ||
40703 | if test $succeeded = yes; then | |
40704 | ||
40705 | CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS" | |
40706 | LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8" | |
ce756cb0 | 40707 | |
ce756cb0 | 40708 | else |
dae87f93 RN |
40709 | |
40710 | { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5 | |
40711 | echo "$as_me: WARNING: GStreamer installation not found" >&2;} | |
40712 | wxUSE_GSTREAMER="no" | |
40713 | ||
40714 | fi | |
40715 | ||
40716 | ||
40717 | ||
40718 | ||
40719 | ||
40720 | if test "x$GST_INSPECT" == "x"; then | |
40721 | # Extract the first word of "gst-inspect", so it can be a program name with args. | |
40722 | set dummy gst-inspect; ac_word=$2 | |
40723 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40724 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40725 | if test "${ac_cv_prog_GST_INSPECT+set}" = set; then | |
40726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40727 | else | |
40728 | if test -n "$GST_INSPECT"; then | |
40729 | ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test. | |
40730 | else | |
40731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40732 | for as_dir in $PATH | |
40733 | do | |
40734 | IFS=$as_save_IFS | |
40735 | test -z "$as_dir" && as_dir=. | |
40736 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40737 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40738 | ac_cv_prog_GST_INSPECT="gst-inspect" | |
40739 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40740 | break 2 | |
ce756cb0 | 40741 | fi |
dae87f93 RN |
40742 | done |
40743 | done | |
40744 | ||
40745 | fi | |
40746 | fi | |
40747 | GST_INSPECT=$ac_cv_prog_GST_INSPECT | |
40748 | if test -n "$GST_INSPECT"; then | |
40749 | echo "$as_me:$LINENO: result: $GST_INSPECT" >&5 | |
40750 | echo "${ECHO_T}$GST_INSPECT" >&6 | |
40751 | else | |
40752 | echo "$as_me:$LINENO: result: no" >&5 | |
40753 | echo "${ECHO_T}no" >&6 | |
40754 | fi | |
40755 | ||
40756 | fi | |
40757 | ||
40758 | if test "x$GST_INSPECT" != "x"; then | |
40759 | echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5 | |
40760 | echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6 | |
40761 | if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then | |
40762 | echo "$as_me:$LINENO: result: found." >&5 | |
40763 | echo "${ECHO_T}found." >&6 | |
ce756cb0 | 40764 | |
ce756cb0 | 40765 | else |
dae87f93 RN |
40766 | echo "$as_me:$LINENO: result: not found." >&5 |
40767 | echo "${ECHO_T}not found." >&6 | |
40768 | ||
40769 | wxUSE_GSTREAMER="no" | |
40770 | { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5 | |
40771 | echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;} | |
40772 | ||
40773 | fi | |
40774 | fi | |
40775 | ||
40776 | ||
40777 | echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5 | |
40778 | echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6 | |
40779 | if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then | |
40780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40781 | else | |
40782 | cat >conftest.$ac_ext <<_ACEOF | |
ce756cb0 RN |
40783 | /* confdefs.h. */ |
40784 | _ACEOF | |
40785 | cat confdefs.h >>conftest.$ac_ext | |
40786 | cat >>conftest.$ac_ext <<_ACEOF | |
40787 | /* end confdefs.h. */ | |
dae87f93 | 40788 | #include <gst/gst.h> |
ce756cb0 | 40789 | |
dae87f93 | 40790 | #include <gst/xoverlay/xoverlay.h> |
ce756cb0 RN |
40791 | _ACEOF |
40792 | rm -f conftest.$ac_objext | |
40793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40794 | (eval $ac_compile) 2>conftest.er1 | |
40795 | ac_status=$? | |
40796 | grep -v '^ *+' conftest.er1 >conftest.err | |
40797 | rm -f conftest.er1 | |
40798 | cat conftest.err >&5 | |
40799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40800 | (exit $ac_status); } && | |
ddd14b14 RR |
40801 | { ac_try='test -z "$ac_c_werror_flag" |
40802 | || test ! -s conftest.err' | |
ce756cb0 RN |
40803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40804 | (eval $ac_try) 2>&5 | |
40805 | ac_status=$? | |
40806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40807 | (exit $ac_status); }; } && | |
40808 | { ac_try='test -s conftest.$ac_objext' | |
40809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40810 | (eval $ac_try) 2>&5 | |
40811 | ac_status=$? | |
40812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40813 | (exit $ac_status); }; }; then | |
dae87f93 | 40814 | ac_cv_header_gst_xoverlay_xoverlay_h=yes |
ce756cb0 RN |
40815 | else |
40816 | echo "$as_me: failed program was:" >&5 | |
40817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40818 | ||
dae87f93 | 40819 | ac_cv_header_gst_xoverlay_xoverlay_h=no |
ce756cb0 RN |
40820 | fi |
40821 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
dae87f93 RN |
40822 | fi |
40823 | echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5 | |
40824 | echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6 | |
40825 | if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then | |
40826 | : | |
40827 | else | |
ce756cb0 | 40828 | |
dae87f93 RN |
40829 | wxUSE_GSTREAMER="no" |
40830 | { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5 | |
40831 | echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;} | |
ce756cb0 | 40832 | |
dae87f93 | 40833 | fi |
ce756cb0 | 40834 | |
dae87f93 RN |
40835 | |
40836 | ||
40837 | echo "$as_me:$LINENO: checking for gstplay 0.8" >&5 | |
ce756cb0 RN |
40838 | echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6 |
40839 | ||
40840 | ac_find_libraries= | |
40841 | for ac_dir in $SEARCH_LIB /usr/lib; | |
40842 | do | |
40843 | for ac_extension in a so sl dylib; do | |
40844 | if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then | |
40845 | ac_find_libraries=$ac_dir | |
40846 | break 2 | |
40847 | fi | |
40848 | done | |
40849 | done | |
40850 | ||
ce756cb0 | 40851 | |
dae87f93 RN |
40852 | if test "$ac_find_libraries" = "" ; then |
40853 | echo "$as_me:$LINENO: result: no" >&5 | |
40854 | echo "${ECHO_T}no" >&6 | |
40855 | wxUSE_GSTREAMER="no" | |
40856 | else | |
40857 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 40858 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 40859 | fi |
ce756cb0 | 40860 | |
dae87f93 RN |
40861 | if test "$wxUSE_GSTREAMER" = "yes"; then |
40862 | cat >>confdefs.h <<\_ACEOF | |
ce756cb0 RN |
40863 | #define wxUSE_GSTREAMER 1 |
40864 | _ACEOF | |
40865 | ||
dae87f93 RN |
40866 | echo "$as_me:$LINENO: result: GStreamer detection successful" >&5 |
40867 | echo "${ECHO_T}GStreamer detection successful" >&6 | |
ce756cb0 RN |
40868 | fi |
40869 | fi | |
40870 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" | |
40871 | cat >>confdefs.h <<\_ACEOF | |
40872 | #define wxUSE_MEDIACTRL 1 | |
40873 | _ACEOF | |
40874 | ||
40875 | fi | |
40876 | ||
40877 | ||
a848cd7e SC |
40878 | if test "$cross_compiling" = "yes"; then |
40879 | OSINFO="\"$host\"" | |
40880 | else | |
40881 | OSINFO=`uname -s -r -m` | |
40882 | OSINFO="\"$OSINFO\"" | |
40883 | fi | |
40884 | ||
40885 | cat >>confdefs.h <<_ACEOF | |
40886 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
40887 | _ACEOF | |
40888 | ||
40889 | ||
40890 | ||
40891 | if test "x$prefix" != "xNONE"; then | |
40892 | wxPREFIX=$prefix | |
40893 | else | |
40894 | wxPREFIX=$ac_default_prefix | |
40895 | fi | |
40896 | ||
40897 | cat >>confdefs.h <<_ACEOF | |
40898 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
40899 | _ACEOF | |
40900 | ||
40901 | ||
a848cd7e SC |
40902 | |
40903 | ||
40904 | CORE_BASE_LIBS="net base" | |
40905 | CORE_GUI_LIBS="adv core" | |
40906 | ||
40907 | if test "$wxUSE_XML" = "yes" ; then | |
40908 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
40909 | fi | |
40910 | if test "$wxUSE_ODBC" != "no" ; then | |
40911 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
40912 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
40913 | fi | |
40914 | if test "$wxUSE_HTML" = "yes" ; then | |
40915 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
40916 | fi | |
61639efb VZ |
40917 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
40918 | CORE_GUI_LIBS="qa $CORE_GUI_LIBS" | |
40919 | fi | |
9a8f0513 VS |
40920 | if test "$wxUSE_XRC" = "yes" ; then |
40921 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
40922 | fi | |
a848cd7e SC |
40923 | |
40924 | if test "$wxUSE_GUI" != "yes"; then | |
40925 | CORE_GUI_LIBS="" | |
40926 | fi | |
40927 | ||
40928 | ||
40929 | ||
40930 | ||
40931 | ||
40932 | ||
40933 | ||
40934 | ||
40935 | if test "$wxUSE_MAC" = 1 ; then | |
a98bf0c0 | 40936 | if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then |
1e9e8aba DE |
40937 | if test "$USE_DARWIN" = 1; then |
40938 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
40939 | else | |
40940 | LDFLAGS="$LDFLAGS -lQuickTimeLib" | |
40941 | fi | |
07bea8f0 | 40942 | fi |
5dcf30a0 | 40943 | if test "$USE_DARWIN" = 1; then |
1e9e8aba DE |
40944 | LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System" |
40945 | else | |
40946 | LDFLAGS="$LDFLAGS -lCarbonLib" | |
5dcf30a0 | 40947 | fi |
a848cd7e SC |
40948 | fi |
40949 | if test "$wxUSE_COCOA" = 1 ; then | |
4cb1d3da | 40950 | LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa" |
4fc81cbc RN |
40951 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
40952 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
40953 | fi | |
a848cd7e | 40954 | fi |
19b27e78 MW |
40955 | if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then |
40956 | LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices" | |
40957 | fi | |
a848cd7e SC |
40958 | |
40959 | ||
40960 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
40961 | ||
40962 | have_cos=0 | |
40963 | have_floor=0 | |
40964 | ||
40965 | for ac_func in cos | |
40966 | do | |
40967 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40968 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40969 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40970 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40972 | else | |
40973 | cat >conftest.$ac_ext <<_ACEOF | |
40974 | /* confdefs.h. */ | |
40975 | _ACEOF | |
40976 | cat confdefs.h >>conftest.$ac_ext | |
40977 | cat >>conftest.$ac_ext <<_ACEOF | |
40978 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40979 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
40980 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40981 | #define $ac_func innocuous_$ac_func | |
40982 | ||
a848cd7e SC |
40983 | /* System header to define __stub macros and hopefully few prototypes, |
40984 | which can conflict with char $ac_func (); below. | |
40985 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40986 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40987 | |
a848cd7e SC |
40988 | #ifdef __STDC__ |
40989 | # include <limits.h> | |
40990 | #else | |
40991 | # include <assert.h> | |
40992 | #endif | |
ac1cb8d3 VS |
40993 | |
40994 | #undef $ac_func | |
40995 | ||
a848cd7e SC |
40996 | /* Override any gcc2 internal prototype to avoid an error. */ |
40997 | #ifdef __cplusplus | |
40998 | extern "C" | |
40999 | { | |
41000 | #endif | |
41001 | /* We use char because int might match the return type of a gcc2 | |
41002 | builtin and then its argument prototype would still apply. */ | |
41003 | char $ac_func (); | |
41004 | /* The GNU C library defines this for functions which it implements | |
41005 | to always fail with ENOSYS. Some functions are actually named | |
41006 | something starting with __ and the normal name is an alias. */ | |
41007 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
41008 | choke me | |
41009 | #else | |
41010 | char (*f) () = $ac_func; | |
41011 | #endif | |
41012 | #ifdef __cplusplus | |
41013 | } | |
41014 | #endif | |
41015 | ||
41016 | int | |
41017 | main () | |
41018 | { | |
41019 | return f != $ac_func; | |
41020 | ; | |
41021 | return 0; | |
41022 | } | |
41023 | _ACEOF | |
41024 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41025 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41026 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41027 | ac_status=$? |
ac1cb8d3 VS |
41028 | grep -v '^ *+' conftest.er1 >conftest.err |
41029 | rm -f conftest.er1 | |
41030 | cat conftest.err >&5 | |
a848cd7e SC |
41031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41032 | (exit $ac_status); } && | |
ddd14b14 RR |
41033 | { ac_try='test -z "$ac_c_werror_flag" |
41034 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41036 | (eval $ac_try) 2>&5 | |
41037 | ac_status=$? | |
41038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41039 | (exit $ac_status); }; } && | |
41040 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41042 | (eval $ac_try) 2>&5 | |
41043 | ac_status=$? | |
41044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41045 | (exit $ac_status); }; }; then | |
41046 | eval "$as_ac_var=yes" | |
41047 | else | |
41048 | echo "$as_me: failed program was:" >&5 | |
41049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41050 | ||
41051 | eval "$as_ac_var=no" | |
41052 | fi | |
ac1cb8d3 VS |
41053 | rm -f conftest.err conftest.$ac_objext \ |
41054 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41055 | fi |
41056 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
41057 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
41058 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
41059 | cat >>confdefs.h <<_ACEOF | |
41060 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
41061 | _ACEOF | |
41062 | have_cos=1 | |
41063 | fi | |
41064 | done | |
41065 | ||
41066 | ||
41067 | for ac_func in floor | |
41068 | do | |
41069 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
41070 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
41071 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
41072 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
41073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41074 | else | |
41075 | cat >conftest.$ac_ext <<_ACEOF | |
41076 | /* confdefs.h. */ | |
41077 | _ACEOF | |
41078 | cat confdefs.h >>conftest.$ac_ext | |
41079 | cat >>conftest.$ac_ext <<_ACEOF | |
41080 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
41081 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
41082 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41083 | #define $ac_func innocuous_$ac_func | |
41084 | ||
a848cd7e SC |
41085 | /* System header to define __stub macros and hopefully few prototypes, |
41086 | which can conflict with char $ac_func (); below. | |
41087 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41088 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 41089 | |
a848cd7e SC |
41090 | #ifdef __STDC__ |
41091 | # include <limits.h> | |
41092 | #else | |
41093 | # include <assert.h> | |
41094 | #endif | |
ac1cb8d3 VS |
41095 | |
41096 | #undef $ac_func | |
41097 | ||
a848cd7e SC |
41098 | /* Override any gcc2 internal prototype to avoid an error. */ |
41099 | #ifdef __cplusplus | |
41100 | extern "C" | |
41101 | { | |
41102 | #endif | |
41103 | /* We use char because int might match the return type of a gcc2 | |
41104 | builtin and then its argument prototype would still apply. */ | |
41105 | char $ac_func (); | |
41106 | /* The GNU C library defines this for functions which it implements | |
41107 | to always fail with ENOSYS. Some functions are actually named | |
41108 | something starting with __ and the normal name is an alias. */ | |
41109 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
41110 | choke me | |
41111 | #else | |
41112 | char (*f) () = $ac_func; | |
41113 | #endif | |
41114 | #ifdef __cplusplus | |
41115 | } | |
41116 | #endif | |
41117 | ||
41118 | int | |
41119 | main () | |
41120 | { | |
41121 | return f != $ac_func; | |
41122 | ; | |
41123 | return 0; | |
41124 | } | |
41125 | _ACEOF | |
41126 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41127 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41128 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41129 | ac_status=$? |
ac1cb8d3 VS |
41130 | grep -v '^ *+' conftest.er1 >conftest.err |
41131 | rm -f conftest.er1 | |
41132 | cat conftest.err >&5 | |
a848cd7e SC |
41133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41134 | (exit $ac_status); } && | |
ddd14b14 RR |
41135 | { ac_try='test -z "$ac_c_werror_flag" |
41136 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41138 | (eval $ac_try) 2>&5 | |
41139 | ac_status=$? | |
41140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41141 | (exit $ac_status); }; } && | |
41142 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41144 | (eval $ac_try) 2>&5 | |
41145 | ac_status=$? | |
41146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41147 | (exit $ac_status); }; }; then | |
41148 | eval "$as_ac_var=yes" | |
41149 | else | |
41150 | echo "$as_me: failed program was:" >&5 | |
41151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41152 | ||
41153 | eval "$as_ac_var=no" | |
41154 | fi | |
ac1cb8d3 VS |
41155 | rm -f conftest.err conftest.$ac_objext \ |
41156 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41157 | fi |
41158 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
41159 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
41160 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
41161 | cat >>confdefs.h <<_ACEOF | |
41162 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
41163 | _ACEOF | |
41164 | have_floor=1 | |
41165 | fi | |
41166 | done | |
41167 | ||
41168 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
41169 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
41170 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
41171 | echo "$as_me:$LINENO: result: yes" >&5 | |
41172 | echo "${ECHO_T}yes" >&6 | |
41173 | else | |
41174 | echo "$as_me:$LINENO: result: no" >&5 | |
41175 | echo "${ECHO_T}no" >&6 | |
41176 | LIBS="$LIBS -lm" | |
41177 | # use different functions to avoid configure caching | |
41178 | have_sin=0 | |
41179 | have_ceil=0 | |
41180 | ||
41181 | for ac_func in sin | |
41182 | do | |
41183 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
41184 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
41185 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
41186 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
41187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41188 | else | |
41189 | cat >conftest.$ac_ext <<_ACEOF | |
41190 | /* confdefs.h. */ | |
41191 | _ACEOF | |
41192 | cat confdefs.h >>conftest.$ac_ext | |
41193 | cat >>conftest.$ac_ext <<_ACEOF | |
41194 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
41195 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
41196 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41197 | #define $ac_func innocuous_$ac_func | |
41198 | ||
a848cd7e SC |
41199 | /* System header to define __stub macros and hopefully few prototypes, |
41200 | which can conflict with char $ac_func (); below. | |
41201 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41202 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 41203 | |
a848cd7e SC |
41204 | #ifdef __STDC__ |
41205 | # include <limits.h> | |
41206 | #else | |
41207 | # include <assert.h> | |
41208 | #endif | |
ac1cb8d3 VS |
41209 | |
41210 | #undef $ac_func | |
41211 | ||
a848cd7e SC |
41212 | /* Override any gcc2 internal prototype to avoid an error. */ |
41213 | #ifdef __cplusplus | |
41214 | extern "C" | |
41215 | { | |
41216 | #endif | |
41217 | /* We use char because int might match the return type of a gcc2 | |
41218 | builtin and then its argument prototype would still apply. */ | |
41219 | char $ac_func (); | |
41220 | /* The GNU C library defines this for functions which it implements | |
41221 | to always fail with ENOSYS. Some functions are actually named | |
41222 | something starting with __ and the normal name is an alias. */ | |
41223 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
41224 | choke me | |
41225 | #else | |
41226 | char (*f) () = $ac_func; | |
41227 | #endif | |
41228 | #ifdef __cplusplus | |
41229 | } | |
41230 | #endif | |
41231 | ||
41232 | int | |
41233 | main () | |
41234 | { | |
41235 | return f != $ac_func; | |
41236 | ; | |
41237 | return 0; | |
41238 | } | |
41239 | _ACEOF | |
41240 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41241 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41242 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41243 | ac_status=$? |
ac1cb8d3 VS |
41244 | grep -v '^ *+' conftest.er1 >conftest.err |
41245 | rm -f conftest.er1 | |
41246 | cat conftest.err >&5 | |
a848cd7e SC |
41247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41248 | (exit $ac_status); } && | |
ddd14b14 RR |
41249 | { ac_try='test -z "$ac_c_werror_flag" |
41250 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41252 | (eval $ac_try) 2>&5 | |
41253 | ac_status=$? | |
41254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41255 | (exit $ac_status); }; } && | |
41256 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41258 | (eval $ac_try) 2>&5 | |
41259 | ac_status=$? | |
41260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41261 | (exit $ac_status); }; }; then | |
41262 | eval "$as_ac_var=yes" | |
41263 | else | |
41264 | echo "$as_me: failed program was:" >&5 | |
41265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41266 | ||
41267 | eval "$as_ac_var=no" | |
41268 | fi | |
ac1cb8d3 VS |
41269 | rm -f conftest.err conftest.$ac_objext \ |
41270 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41271 | fi |
41272 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
41273 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
41274 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
41275 | cat >>confdefs.h <<_ACEOF | |
41276 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
41277 | _ACEOF | |
41278 | have_sin=1 | |
41279 | fi | |
41280 | done | |
41281 | ||
41282 | ||
41283 | for ac_func in ceil | |
41284 | do | |
41285 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
41286 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
41287 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
41288 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
41289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41290 | else | |
41291 | cat >conftest.$ac_ext <<_ACEOF | |
41292 | /* confdefs.h. */ | |
41293 | _ACEOF | |
41294 | cat confdefs.h >>conftest.$ac_ext | |
41295 | cat >>conftest.$ac_ext <<_ACEOF | |
41296 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
41297 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
41298 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41299 | #define $ac_func innocuous_$ac_func | |
41300 | ||
a848cd7e SC |
41301 | /* System header to define __stub macros and hopefully few prototypes, |
41302 | which can conflict with char $ac_func (); below. | |
41303 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41304 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 41305 | |
a848cd7e SC |
41306 | #ifdef __STDC__ |
41307 | # include <limits.h> | |
41308 | #else | |
41309 | # include <assert.h> | |
41310 | #endif | |
ac1cb8d3 VS |
41311 | |
41312 | #undef $ac_func | |
41313 | ||
a848cd7e SC |
41314 | /* Override any gcc2 internal prototype to avoid an error. */ |
41315 | #ifdef __cplusplus | |
41316 | extern "C" | |
41317 | { | |
41318 | #endif | |
41319 | /* We use char because int might match the return type of a gcc2 | |
41320 | builtin and then its argument prototype would still apply. */ | |
41321 | char $ac_func (); | |
41322 | /* The GNU C library defines this for functions which it implements | |
41323 | to always fail with ENOSYS. Some functions are actually named | |
41324 | something starting with __ and the normal name is an alias. */ | |
41325 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
41326 | choke me | |
41327 | #else | |
41328 | char (*f) () = $ac_func; | |
41329 | #endif | |
41330 | #ifdef __cplusplus | |
41331 | } | |
41332 | #endif | |
41333 | ||
41334 | int | |
41335 | main () | |
41336 | { | |
41337 | return f != $ac_func; | |
41338 | ; | |
41339 | return 0; | |
41340 | } | |
41341 | _ACEOF | |
41342 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41343 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41344 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41345 | ac_status=$? |
ac1cb8d3 VS |
41346 | grep -v '^ *+' conftest.er1 >conftest.err |
41347 | rm -f conftest.er1 | |
41348 | cat conftest.err >&5 | |
a848cd7e SC |
41349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41350 | (exit $ac_status); } && | |
ddd14b14 RR |
41351 | { ac_try='test -z "$ac_c_werror_flag" |
41352 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41354 | (eval $ac_try) 2>&5 | |
41355 | ac_status=$? | |
41356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41357 | (exit $ac_status); }; } && | |
41358 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41360 | (eval $ac_try) 2>&5 | |
41361 | ac_status=$? | |
41362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41363 | (exit $ac_status); }; }; then | |
41364 | eval "$as_ac_var=yes" | |
41365 | else | |
41366 | echo "$as_me: failed program was:" >&5 | |
41367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41368 | ||
41369 | eval "$as_ac_var=no" | |
41370 | fi | |
ac1cb8d3 VS |
41371 | rm -f conftest.err conftest.$ac_objext \ |
41372 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41373 | fi |
41374 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
41375 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
41376 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
41377 | cat >>confdefs.h <<_ACEOF | |
41378 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
41379 | _ACEOF | |
41380 | have_ceil=1 | |
41381 | fi | |
41382 | done | |
41383 | ||
41384 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
41385 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
41386 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
41387 | echo "$as_me:$LINENO: result: yes" >&5 | |
41388 | echo "${ECHO_T}yes" >&6 | |
41389 | else | |
41390 | echo "$as_me:$LINENO: result: no" >&5 | |
41391 | echo "${ECHO_T}no" >&6 | |
41392 | # not sure we should warn the user, crash, etc. | |
41393 | fi | |
41394 | fi | |
41395 | ||
41396 | if test "$wxUSE_GUI" = "yes"; then | |
41397 | ||
41398 | ||
8bce5cda MW |
41399 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \ |
41400 | dynamic erase event exec font image minimal mobile \ | |
41401 | mobile/wxedit mobile/styles propsize render \ | |
41402 | richedit rotate shaped vscroll widgets" | |
a848cd7e SC |
41403 | |
41404 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
41405 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
41406 | fi | |
0b78747f | 41407 | if test "$TOOLKIT" = "MSW"; then |
8bce5cda MW |
41408 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest" |
41409 | if test "$wxUSE_UNIVERSAL" != "yes"; then | |
41410 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg" | |
41411 | fi | |
41412 | fi | |
41413 | if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then | |
41414 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw" | |
0b78747f | 41415 | fi |
a848cd7e SC |
41416 | else |
41417 | SAMPLES_SUBDIRS="console" | |
41418 | fi | |
41419 | ||
41420 | ||
ceec2216 | 41421 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
a848cd7e SC |
41422 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" |
41423 | ||
41424 | if test "$GXX" = yes ; then | |
5294a27e VZ |
41425 | CWARNINGS="-Wall" |
41426 | CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy" | |
a848cd7e SC |
41427 | fi |
41428 | ||
41429 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
41430 | ||
0c3c69fc | 41431 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS` |
5294a27e | 41432 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS` |
0c3c69fc | 41433 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS` |
a848cd7e | 41434 | |
95986553 DE |
41435 | if test "x$MWCC" = "xyes"; then |
41436 | ||
41437 | CC="$CC -cwd source -I-" | |
41438 | CXX="$CXX -cwd source -I-" | |
41439 | fi | |
41440 | ||
a848cd7e | 41441 | |
0c3c69fc | 41442 | LIBS=`echo $LIBS` |
a848cd7e SC |
41443 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
41444 | EXTRALIBS_XML="$EXPAT_LINK" | |
41445 | EXTRALIBS_HTML="$MSPACK_LINK" | |
41446 | EXTRALIBS_ODBC="$ODBC_LINK" | |
41447 | if test "$wxUSE_GUI" = "yes"; then | |
2e350179 | 41448 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT` |
a848cd7e SC |
41449 | fi |
41450 | if test "$wxUSE_OPENGL" = "yes"; then | |
41451 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
41452 | fi | |
41453 | ||
41454 | LDFLAGS="$LDFLAGS $PROFILE" | |
41455 | ||
41456 | if test "$wxUSE_GTK" = 1; then | |
41457 | WXCONFIG_INCLUDE= | |
41458 | else | |
41459 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
41460 | fi | |
41461 | ||
41462 | WXCONFIG_EXTRALIBS="$LIBS" | |
41463 | ||
41464 | if test "$wxUSE_REGEX" = "builtin" ; then | |
74802184 | 41465 | wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty" |
a848cd7e SC |
41466 | fi |
41467 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
74802184 | 41468 | wxconfig_3rdparty="expat $wxconfig_3rdparty" |
a848cd7e SC |
41469 | fi |
41470 | if test "$wxUSE_ODBC" = "builtin" ; then | |
74802184 | 41471 | wxconfig_3rdparty="odbc $wxconfig_3rdparty" |
a848cd7e SC |
41472 | fi |
41473 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
74802184 | 41474 | wxconfig_3rdparty="tiff $wxconfig_3rdparty" |
a848cd7e SC |
41475 | fi |
41476 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
74802184 | 41477 | wxconfig_3rdparty="jpeg $wxconfig_3rdparty" |
a848cd7e SC |
41478 | fi |
41479 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
74802184 | 41480 | wxconfig_3rdparty="png $wxconfig_3rdparty" |
a848cd7e SC |
41481 | fi |
41482 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
74802184 | 41483 | wxconfig_3rdparty="zlib $wxconfig_3rdparty" |
a848cd7e SC |
41484 | fi |
41485 | ||
41486 | for i in $wxconfig_3rdparty ; do | |
74802184 | 41487 | WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS" |
a848cd7e SC |
41488 | done |
41489 | ||
41490 | ||
41491 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
41492 | WXUNIV=1 | |
41493 | else | |
41494 | WXUNIV=0 | |
41495 | fi | |
41496 | ||
41497 | ||
41498 | ||
41499 | ||
41500 | ||
41501 | ||
41502 | ||
41503 | ||
41504 | ||
41505 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
41506 | MONOLITHIC=1 | |
41507 | else | |
41508 | MONOLITHIC=0 | |
41509 | fi | |
41510 | ||
41511 | if test $wxUSE_PLUGINS = "yes" ; then | |
41512 | USE_PLUGINS=1 | |
41513 | else | |
41514 | USE_PLUGINS=0 | |
41515 | fi | |
41516 | ||
41517 | if test $wxUSE_ODBC != "no" ; then | |
41518 | USE_ODBC=1 | |
41519 | else | |
41520 | USE_ODBC=0 | |
41521 | fi | |
41522 | ||
16358932 VZ |
41523 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
41524 | USE_QA=1 | |
41525 | else | |
41526 | USE_QA=0 | |
41527 | fi | |
41528 | ||
a848cd7e SC |
41529 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
41530 | OFFICIAL_BUILD=1 | |
41531 | else | |
41532 | OFFICIAL_BUILD=0 | |
41533 | fi | |
41534 | ||
41535 | ||
41536 | ||
41537 | ||
41538 | ||
41539 | ||
41540 | ||
41541 | ||
41542 | ||
41543 | ||
41544 | ||
41545 | ||
41546 | ||
41547 | ||
41548 | ||
41549 | ||
41550 | ||
41551 | ||
41552 | ||
ceec2216 | 41553 | |
d1c38808 | 41554 | |
a848cd7e SC |
41555 | |
41556 | ||
41557 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
41558 | ||
41559 | ||
41560 | ||
41561 | ||
41562 | ||
41563 | ||
41564 | ||
41565 | ||
4d4ff94c VZ |
41566 | case "$TOOLKIT" in |
41567 | GTK) | |
41568 | TOOLKIT_USER="GTK+" | |
41569 | if test "$WXGTK20" = 1; then | |
41570 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
41571 | fi | |
9a8f0513 | 41572 | ;; |
4d4ff94c VZ |
41573 | |
41574 | *) | |
41575 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 41576 | ;; |
4d4ff94c | 41577 | esac |
a848cd7e | 41578 | |
fb00f58d JS |
41579 | if test "$wxUSE_WINE" = "yes"; then |
41580 | BAKEFILE_FORCE_PLATFORM=win32 | |
41581 | fi | |
41582 | ||
9a8f0513 | 41583 | |
1e9e8aba DE |
41584 | |
41585 | ||
a848cd7e SC |
41586 | if test "x$BAKEFILE_HOST" = "x"; then |
41587 | BAKEFILE_HOST="${host}" | |
41588 | fi | |
41589 | ||
41590 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
41591 | ||
41592 | if test -n "$ac_tool_prefix"; then | |
41593 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
41594 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
41595 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41596 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41597 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
41598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41599 | else | |
41600 | if test -n "$RANLIB"; then | |
41601 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
41602 | else | |
41603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41604 | for as_dir in $PATH | |
41605 | do | |
41606 | IFS=$as_save_IFS | |
41607 | test -z "$as_dir" && as_dir=. | |
41608 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41609 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41610 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
41611 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41612 | break 2 | |
41613 | fi | |
41614 | done | |
41615 | done | |
41616 | ||
41617 | fi | |
41618 | fi | |
41619 | RANLIB=$ac_cv_prog_RANLIB | |
41620 | if test -n "$RANLIB"; then | |
41621 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
41622 | echo "${ECHO_T}$RANLIB" >&6 | |
41623 | else | |
41624 | echo "$as_me:$LINENO: result: no" >&5 | |
41625 | echo "${ECHO_T}no" >&6 | |
41626 | fi | |
41627 | ||
41628 | fi | |
41629 | if test -z "$ac_cv_prog_RANLIB"; then | |
41630 | ac_ct_RANLIB=$RANLIB | |
41631 | # Extract the first word of "ranlib", so it can be a program name with args. | |
41632 | set dummy ranlib; ac_word=$2 | |
41633 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41634 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41635 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
41636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41637 | else | |
41638 | if test -n "$ac_ct_RANLIB"; then | |
41639 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
41640 | else | |
41641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41642 | for as_dir in $PATH | |
41643 | do | |
41644 | IFS=$as_save_IFS | |
41645 | test -z "$as_dir" && as_dir=. | |
41646 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41647 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41648 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
41649 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41650 | break 2 | |
41651 | fi | |
41652 | done | |
41653 | done | |
41654 | ||
41655 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
41656 | fi | |
41657 | fi | |
41658 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
41659 | if test -n "$ac_ct_RANLIB"; then | |
41660 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
41661 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
41662 | else | |
41663 | echo "$as_me:$LINENO: result: no" >&5 | |
41664 | echo "${ECHO_T}no" >&6 | |
41665 | fi | |
41666 | ||
41667 | RANLIB=$ac_ct_RANLIB | |
41668 | else | |
41669 | RANLIB="$ac_cv_prog_RANLIB" | |
41670 | fi | |
41671 | ||
41672 | # Find a good install program. We prefer a C program (faster), | |
41673 | # so one script is as good as another. But avoid the broken or | |
41674 | # incompatible versions: | |
41675 | # SysV /etc/install, /usr/sbin/install | |
41676 | # SunOS /usr/etc/install | |
41677 | # IRIX /sbin/install | |
41678 | # AIX /bin/install | |
41679 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
41680 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
41681 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
41682 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 41683 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
41684 | # ./install, which can be erroneously created by make from ./install.sh. |
41685 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
41686 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
41687 | if test -z "$INSTALL"; then | |
41688 | if test "${ac_cv_path_install+set}" = set; then | |
41689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41690 | else | |
41691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41692 | for as_dir in $PATH | |
41693 | do | |
41694 | IFS=$as_save_IFS | |
41695 | test -z "$as_dir" && as_dir=. | |
41696 | # Account for people who put trailing slashes in PATH elements. | |
41697 | case $as_dir/ in | |
41698 | ./ | .// | /cC/* | \ | |
41699 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 41700 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
41701 | /usr/ucb/* ) ;; |
41702 | *) | |
41703 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
41704 | # Don't use installbsd from OSF since it installs stuff as root | |
41705 | # by default. | |
41706 | for ac_prog in ginstall scoinst install; do | |
41707 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
41708 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
41709 | if test $ac_prog = install && | |
41710 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
41711 | # AIX install. It has an incompatible calling convention. | |
41712 | : | |
41713 | elif test $ac_prog = install && | |
41714 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
41715 | # program-specific install script used by HP pwplus--don't use. | |
41716 | : | |
41717 | else | |
41718 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
41719 | break 3 | |
41720 | fi | |
41721 | fi | |
a848cd7e SC |
41722 | done |
41723 | done | |
41724 | ;; | |
41725 | esac | |
41726 | done | |
41727 | ||
41728 | ||
41729 | fi | |
41730 | if test "${ac_cv_path_install+set}" = set; then | |
41731 | INSTALL=$ac_cv_path_install | |
41732 | else | |
41733 | # As a last resort, use the slow shell script. We don't cache a | |
41734 | # path for INSTALL within a source directory, because that will | |
41735 | # break other packages using the cache if that directory is | |
41736 | # removed, or if the path is relative. | |
41737 | INSTALL=$ac_install_sh | |
41738 | fi | |
41739 | fi | |
41740 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
41741 | echo "${ECHO_T}$INSTALL" >&6 | |
41742 | ||
41743 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
41744 | # It thinks the first close brace ends the variable substitution. | |
41745 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
41746 | ||
41747 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
41748 | ||
41749 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
41750 | ||
41751 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
41752 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
41753 | LN_S=$as_ln_s | |
41754 | if test "$LN_S" = "ln -s"; then | |
41755 | echo "$as_me:$LINENO: result: yes" >&5 | |
41756 | echo "${ECHO_T}yes" >&6 | |
41757 | else | |
41758 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
41759 | echo "${ECHO_T}no, using $LN_S" >&6 | |
41760 | fi | |
41761 | ||
41762 | ||
41763 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
41764 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 41765 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
41766 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
41767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41768 | else | |
41769 | cat >conftest.make <<\_ACEOF | |
41770 | all: | |
41771 | @echo 'ac_maketemp="$(MAKE)"' | |
41772 | _ACEOF | |
41773 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
41774 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
41775 | if test -n "$ac_maketemp"; then | |
41776 | eval ac_cv_prog_make_${ac_make}_set=yes | |
41777 | else | |
41778 | eval ac_cv_prog_make_${ac_make}_set=no | |
41779 | fi | |
41780 | rm -f conftest.make | |
41781 | fi | |
41782 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
41783 | echo "$as_me:$LINENO: result: yes" >&5 | |
41784 | echo "${ECHO_T}yes" >&6 | |
41785 | SET_MAKE= | |
41786 | else | |
41787 | echo "$as_me:$LINENO: result: no" >&5 | |
41788 | echo "${ECHO_T}no" >&6 | |
41789 | SET_MAKE="MAKE=${MAKE-make}" | |
41790 | fi | |
41791 | ||
41792 | ||
41793 | ||
41794 | if test -n "$ac_tool_prefix"; then | |
41795 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
41796 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
41797 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41798 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41799 | if test "${ac_cv_prog_AR+set}" = set; then | |
41800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41801 | else | |
41802 | if test -n "$AR"; then | |
41803 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
41804 | else | |
41805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41806 | for as_dir in $PATH | |
41807 | do | |
41808 | IFS=$as_save_IFS | |
41809 | test -z "$as_dir" && as_dir=. | |
41810 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41811 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41812 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
41813 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41814 | break 2 | |
41815 | fi | |
41816 | done | |
41817 | done | |
41818 | ||
41819 | fi | |
41820 | fi | |
41821 | AR=$ac_cv_prog_AR | |
41822 | if test -n "$AR"; then | |
41823 | echo "$as_me:$LINENO: result: $AR" >&5 | |
41824 | echo "${ECHO_T}$AR" >&6 | |
41825 | else | |
41826 | echo "$as_me:$LINENO: result: no" >&5 | |
41827 | echo "${ECHO_T}no" >&6 | |
41828 | fi | |
41829 | ||
41830 | fi | |
41831 | if test -z "$ac_cv_prog_AR"; then | |
41832 | ac_ct_AR=$AR | |
41833 | # Extract the first word of "ar", so it can be a program name with args. | |
41834 | set dummy ar; ac_word=$2 | |
41835 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41836 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41837 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
41838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41839 | else | |
41840 | if test -n "$ac_ct_AR"; then | |
41841 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
41842 | else | |
41843 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41844 | for as_dir in $PATH | |
41845 | do | |
41846 | IFS=$as_save_IFS | |
41847 | test -z "$as_dir" && as_dir=. | |
41848 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41849 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41850 | ac_cv_prog_ac_ct_AR="ar" | |
41851 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41852 | break 2 | |
41853 | fi | |
41854 | done | |
41855 | done | |
41856 | ||
41857 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
41858 | fi | |
41859 | fi | |
41860 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
41861 | if test -n "$ac_ct_AR"; then | |
41862 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
41863 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
41864 | else | |
41865 | echo "$as_me:$LINENO: result: no" >&5 | |
41866 | echo "${ECHO_T}no" >&6 | |
41867 | fi | |
41868 | ||
41869 | AR=$ac_ct_AR | |
41870 | else | |
41871 | AR="$ac_cv_prog_AR" | |
41872 | fi | |
41873 | ||
41874 | if test -n "$ac_tool_prefix"; then | |
41875 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
41876 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
41877 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41878 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41879 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
41880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41881 | else | |
41882 | if test -n "$STRIP"; then | |
41883 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
41884 | else | |
41885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41886 | for as_dir in $PATH | |
41887 | do | |
41888 | IFS=$as_save_IFS | |
41889 | test -z "$as_dir" && as_dir=. | |
41890 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41891 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41892 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
41893 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41894 | break 2 | |
41895 | fi | |
41896 | done | |
41897 | done | |
41898 | ||
41899 | fi | |
41900 | fi | |
41901 | STRIP=$ac_cv_prog_STRIP | |
41902 | if test -n "$STRIP"; then | |
41903 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
41904 | echo "${ECHO_T}$STRIP" >&6 | |
41905 | else | |
41906 | echo "$as_me:$LINENO: result: no" >&5 | |
41907 | echo "${ECHO_T}no" >&6 | |
41908 | fi | |
41909 | ||
41910 | fi | |
41911 | if test -z "$ac_cv_prog_STRIP"; then | |
41912 | ac_ct_STRIP=$STRIP | |
41913 | # Extract the first word of "strip", so it can be a program name with args. | |
41914 | set dummy strip; ac_word=$2 | |
41915 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41916 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41917 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
41918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41919 | else | |
41920 | if test -n "$ac_ct_STRIP"; then | |
41921 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
41922 | else | |
41923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41924 | for as_dir in $PATH | |
41925 | do | |
41926 | IFS=$as_save_IFS | |
41927 | test -z "$as_dir" && as_dir=. | |
41928 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41929 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41930 | ac_cv_prog_ac_ct_STRIP="strip" | |
41931 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41932 | break 2 | |
41933 | fi | |
41934 | done | |
41935 | done | |
41936 | ||
41937 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
41938 | fi | |
41939 | fi | |
41940 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
41941 | if test -n "$ac_ct_STRIP"; then | |
41942 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
41943 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
41944 | else | |
41945 | echo "$as_me:$LINENO: result: no" >&5 | |
41946 | echo "${ECHO_T}no" >&6 | |
41947 | fi | |
41948 | ||
41949 | STRIP=$ac_ct_STRIP | |
41950 | else | |
41951 | STRIP="$ac_cv_prog_STRIP" | |
41952 | fi | |
41953 | ||
41954 | if test -n "$ac_tool_prefix"; then | |
41955 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
41956 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
41957 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41958 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41959 | if test "${ac_cv_prog_NM+set}" = set; then | |
41960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41961 | else | |
41962 | if test -n "$NM"; then | |
41963 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
41964 | else | |
41965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41966 | for as_dir in $PATH | |
41967 | do | |
41968 | IFS=$as_save_IFS | |
41969 | test -z "$as_dir" && as_dir=. | |
41970 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41971 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41972 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
41973 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41974 | break 2 | |
41975 | fi | |
41976 | done | |
41977 | done | |
41978 | ||
41979 | fi | |
41980 | fi | |
41981 | NM=$ac_cv_prog_NM | |
41982 | if test -n "$NM"; then | |
41983 | echo "$as_me:$LINENO: result: $NM" >&5 | |
41984 | echo "${ECHO_T}$NM" >&6 | |
41985 | else | |
41986 | echo "$as_me:$LINENO: result: no" >&5 | |
41987 | echo "${ECHO_T}no" >&6 | |
41988 | fi | |
41989 | ||
41990 | fi | |
41991 | if test -z "$ac_cv_prog_NM"; then | |
41992 | ac_ct_NM=$NM | |
41993 | # Extract the first word of "nm", so it can be a program name with args. | |
41994 | set dummy nm; ac_word=$2 | |
41995 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41996 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41997 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
41998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41999 | else | |
42000 | if test -n "$ac_ct_NM"; then | |
42001 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
42002 | else | |
42003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42004 | for as_dir in $PATH | |
42005 | do | |
42006 | IFS=$as_save_IFS | |
42007 | test -z "$as_dir" && as_dir=. | |
42008 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42009 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42010 | ac_cv_prog_ac_ct_NM="nm" | |
42011 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42012 | break 2 | |
42013 | fi | |
42014 | done | |
42015 | done | |
42016 | ||
42017 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
42018 | fi | |
42019 | fi | |
42020 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
42021 | if test -n "$ac_ct_NM"; then | |
42022 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
42023 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
42024 | else | |
42025 | echo "$as_me:$LINENO: result: no" >&5 | |
42026 | echo "${ECHO_T}no" >&6 | |
42027 | fi | |
42028 | ||
42029 | NM=$ac_ct_NM | |
42030 | else | |
42031 | NM="$ac_cv_prog_NM" | |
42032 | fi | |
42033 | ||
42034 | ||
42035 | case ${BAKEFILE_HOST} in | |
42036 | *-hp-hpux* ) | |
1e9e8aba | 42037 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
42038 | ;; |
42039 | *) INSTALL_DIR="$INSTALL -d" | |
42040 | ;; | |
42041 | esac | |
42042 | ||
42043 | ||
42044 | LDFLAGS_GUI= | |
42045 | case ${BAKEFILE_HOST} in | |
42046 | *-*-cygwin* | *-*-mingw32* ) | |
42047 | LDFLAGS_GUI="-mwindows" | |
42048 | esac | |
42049 | ||
42050 | ||
42051 | fi | |
42052 | ||
42053 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
42054 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
42055 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
42056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42057 | else | |
42058 | ||
42059 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
42060 | egrep -s GNU > /dev/null); then | |
42061 | bakefile_cv_prog_makeisgnu="yes" | |
42062 | else | |
42063 | bakefile_cv_prog_makeisgnu="no" | |
42064 | fi | |
42065 | ||
42066 | fi | |
42067 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
42068 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
42069 | ||
42070 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
42071 | IF_GNU_MAKE="" | |
42072 | else | |
42073 | IF_GNU_MAKE="#" | |
42074 | fi | |
42075 | ||
42076 | ||
42077 | ||
42078 | PLATFORM_UNIX=0 | |
42079 | PLATFORM_WIN32=0 | |
42080 | PLATFORM_MSDOS=0 | |
42081 | PLATFORM_MAC=0 | |
1e9e8aba | 42082 | PLATFORM_MACOS=0 |
a848cd7e SC |
42083 | PLATFORM_MACOSX=0 |
42084 | PLATFORM_OS2=0 | |
1e9e8aba | 42085 | PLATFORM_BEOS=0 |
a848cd7e SC |
42086 | |
42087 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
42088 | case "${BAKEFILE_HOST}" in | |
42089 | *-*-cygwin* | *-*-mingw32* ) | |
42090 | PLATFORM_WIN32=1 | |
42091 | ;; | |
42092 | *-pc-msdosdjgpp ) | |
42093 | PLATFORM_MSDOS=1 | |
42094 | ;; | |
42095 | *-pc-os2_emx | *-pc-os2-emx ) | |
42096 | PLATFORM_OS2=1 | |
42097 | ;; | |
42098 | powerpc-*-darwin* ) | |
42099 | PLATFORM_MAC=1 | |
42100 | PLATFORM_MACOSX=1 | |
42101 | ;; | |
1e9e8aba DE |
42102 | *-*-beos* ) |
42103 | PLATFORM_BEOS=1 | |
42104 | ;; | |
42105 | powerpc-apple-macos* ) | |
42106 | PLATFORM_MAC=1 | |
42107 | PLATFORM_MACOS=1 | |
42108 | ;; | |
a848cd7e SC |
42109 | * ) |
42110 | PLATFORM_UNIX=1 | |
42111 | ;; | |
42112 | esac | |
42113 | else | |
42114 | case "$BAKEFILE_FORCE_PLATFORM" in | |
42115 | win32 ) | |
42116 | PLATFORM_WIN32=1 | |
42117 | ;; | |
42118 | msdos ) | |
42119 | PLATFORM_MSDOS=1 | |
42120 | ;; | |
42121 | os2 ) | |
42122 | PLATFORM_OS2=1 | |
42123 | ;; | |
42124 | darwin ) | |
42125 | PLATFORM_MAC=1 | |
42126 | PLATFORM_MACOSX=1 | |
42127 | ;; | |
42128 | unix ) | |
42129 | PLATFORM_UNIX=1 | |
42130 | ;; | |
1e9e8aba DE |
42131 | beos ) |
42132 | PLATFORM_BEOS=1 | |
42133 | ;; | |
a848cd7e SC |
42134 | * ) |
42135 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
42136 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
42137 | { (exit 1); exit 1; }; } | |
42138 | ;; | |
42139 | esac | |
42140 | fi | |
42141 | ||
42142 | ||
42143 | ||
42144 | ||
42145 | ||
42146 | ||
42147 | ||
42148 | ||
42149 | ||
1e9e8aba DE |
42150 | |
42151 | ||
a848cd7e SC |
42152 | # Check whether --enable-omf or --disable-omf was given. |
42153 | if test "${enable_omf+set}" = set; then | |
42154 | enableval="$enable_omf" | |
42155 | bk_os2_use_omf="$enableval" | |
42156 | fi; | |
42157 | ||
42158 | case "${BAKEFILE_HOST}" in | |
42159 | *-*-darwin* ) | |
42160 | CFLAGS="$CFLAGS -fno-common" | |
42161 | CXXFLAGS="$CXXFLAGS -fno-common" | |
42162 | ;; | |
42163 | ||
42164 | *-pc-os2_emx | *-pc-os2-emx ) | |
42165 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
42166 | AR=emxomfar | |
42167 | RANLIB=: | |
42168 | LDFLAGS="-Zomf $LDFLAGS" | |
42169 | CFLAGS="-Zomf $CFLAGS" | |
42170 | CXXFLAGS="-Zomf $CXXFLAGS" | |
42171 | OS2_LIBEXT="lib" | |
42172 | else | |
42173 | OS2_LIBEXT="a" | |
42174 | fi | |
42175 | ;; | |
1e9e8aba DE |
42176 | |
42177 | i*86-*-beos* ) | |
42178 | LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS" | |
42179 | ;; | |
a848cd7e SC |
42180 | esac |
42181 | ||
42182 | ||
42183 | SO_SUFFIX="so" | |
42184 | SO_SUFFIX_MODULE="so" | |
42185 | EXEEXT="" | |
42186 | LIBPREFIX="lib" | |
42187 | LIBEXT=".a" | |
42188 | DLLPREFIX="lib" | |
42189 | DLLPREFIX_MODULE="" | |
42190 | DLLIMP_SUFFIX="" | |
42191 | ||
42192 | case "${BAKEFILE_HOST}" in | |
42193 | *-hp-hpux* ) | |
42194 | SO_SUFFIX="sl" | |
42195 | SO_SUFFIX_MODULE="sl" | |
42196 | ;; | |
42197 | *-*-aix* ) | |
42198 | SO_SUFFIX="a" | |
42199 | SO_SUFFIX_MODULE="a" | |
42200 | ;; | |
42201 | *-*-cygwin* | *-*-mingw32* ) | |
42202 | SO_SUFFIX="dll" | |
42203 | SO_SUFFIX_MODULE="dll" | |
42204 | DLLIMP_SUFFIX="dll.a" | |
42205 | EXEEXT=".exe" | |
42206 | DLLPREFIX="" | |
42207 | ;; | |
42208 | *-pc-msdosdjgpp ) | |
42209 | EXEEXT=".exe" | |
42210 | DLLPREFIX="" | |
42211 | ;; | |
42212 | *-pc-os2_emx | *-pc-os2-emx ) | |
42213 | SO_SUFFIX="dll" | |
42214 | SO_SUFFIX_MODULE="dll" | |
42215 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
42216 | EXEEXT=".exe" | |
42217 | DLLPREFIX="" | |
42218 | LIBPREFIX="" | |
42219 | LIBEXT=".$OS2_LIBEXT" | |
42220 | ;; | |
42221 | powerpc-*-darwin* ) | |
42222 | SO_SUFFIX="dylib" | |
42223 | SO_SUFFIX_MODULE="bundle" | |
42224 | ;; | |
42225 | esac | |
42226 | ||
42227 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
42228 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
42229 | fi | |
42230 | ||
42231 | ||
42232 | ||
42233 | ||
42234 | ||
42235 | ||
42236 | ||
42237 | ||
42238 | ||
42239 | ||
42240 | ||
1e9e8aba DE |
42241 | PIC_FLAG="" |
42242 | if test "x$GCC" = "xyes"; then | |
a848cd7e SC |
42243 | PIC_FLAG="-fPIC" |
42244 | fi | |
42245 | ||
1e9e8aba DE |
42246 | SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o" |
42247 | SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o" | |
42248 | ||
a848cd7e SC |
42249 | case "${BAKEFILE_HOST}" in |
42250 | *-hp-hpux* ) | |
1e9e8aba | 42251 | if test "x$GCC" != "xyes"; then |
a848cd7e SC |
42252 | LDFLAGS="$LDFLAGS -L/usr/lib" |
42253 | ||
42254 | SHARED_LD_CC="${CC} -b -o" | |
42255 | SHARED_LD_CXX="${CXX} -b -o" | |
42256 | PIC_FLAG="+Z" | |
42257 | fi | |
42258 | ;; | |
42259 | ||
42260 | *-*-linux* ) | |
42261 | if test "x$GCC" != "xyes"; then | |
42262 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
42263 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
42264 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
42265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42266 | else | |
42267 | ||
42268 | cat >conftest.$ac_ext <<_ACEOF | |
42269 | /* confdefs.h. */ | |
42270 | _ACEOF | |
42271 | cat confdefs.h >>conftest.$ac_ext | |
42272 | cat >>conftest.$ac_ext <<_ACEOF | |
42273 | /* end confdefs.h. */ | |
42274 | ||
42275 | int | |
42276 | main () | |
42277 | { | |
42278 | ||
42279 | #ifndef __INTEL_COMPILER | |
42280 | #error Not icc | |
42281 | #endif | |
42282 | ||
42283 | ; | |
42284 | return 0; | |
42285 | } | |
42286 | _ACEOF | |
42287 | rm -f conftest.$ac_objext | |
42288 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42289 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42290 | ac_status=$? |
ac1cb8d3 VS |
42291 | grep -v '^ *+' conftest.er1 >conftest.err |
42292 | rm -f conftest.er1 | |
42293 | cat conftest.err >&5 | |
a848cd7e SC |
42294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42295 | (exit $ac_status); } && | |
ddd14b14 RR |
42296 | { ac_try='test -z "$ac_c_werror_flag" |
42297 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42299 | (eval $ac_try) 2>&5 | |
42300 | ac_status=$? | |
42301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42302 | (exit $ac_status); }; } && | |
42303 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42305 | (eval $ac_try) 2>&5 | |
42306 | ac_status=$? | |
42307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42308 | (exit $ac_status); }; }; then | |
42309 | bakefile_cv_prog_icc=yes | |
42310 | else | |
42311 | echo "$as_me: failed program was:" >&5 | |
42312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42313 | ||
42314 | bakefile_cv_prog_icc=no | |
42315 | ||
42316 | fi | |
ac1cb8d3 | 42317 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42318 | |
42319 | fi | |
42320 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
42321 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
42322 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
42323 | PIC_FLAG="-KPIC" | |
42324 | fi | |
42325 | fi | |
42326 | ;; | |
42327 | ||
42328 | *-*-solaris2* ) | |
42329 | if test "x$GCC" != xyes ; then | |
42330 | SHARED_LD_CC="${CC} -G -o" | |
42331 | SHARED_LD_CXX="${CXX} -G -o" | |
42332 | PIC_FLAG="-KPIC" | |
42333 | fi | |
42334 | ;; | |
42335 | ||
42336 | *-*-darwin* ) | |
42337 | ||
42338 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
42339 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
42340 | if test "${wx_cv_gcc31+set}" = set; then | |
42341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42342 | else | |
42343 | ||
42344 | cat >conftest.$ac_ext <<_ACEOF | |
42345 | /* confdefs.h. */ | |
42346 | _ACEOF | |
42347 | cat confdefs.h >>conftest.$ac_ext | |
42348 | cat >>conftest.$ac_ext <<_ACEOF | |
42349 | /* end confdefs.h. */ | |
42350 | ||
42351 | int | |
42352 | main () | |
42353 | { | |
42354 | ||
42355 | #if (__GNUC__ < 3) || \ | |
42356 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
42357 | #error old gcc | |
42358 | #endif | |
42359 | ||
42360 | ; | |
42361 | return 0; | |
42362 | } | |
42363 | _ACEOF | |
42364 | rm -f conftest.$ac_objext | |
42365 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42366 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42367 | ac_status=$? |
ac1cb8d3 VS |
42368 | grep -v '^ *+' conftest.er1 >conftest.err |
42369 | rm -f conftest.er1 | |
42370 | cat conftest.err >&5 | |
a848cd7e SC |
42371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42372 | (exit $ac_status); } && | |
ddd14b14 RR |
42373 | { ac_try='test -z "$ac_c_werror_flag" |
42374 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42376 | (eval $ac_try) 2>&5 | |
42377 | ac_status=$? | |
42378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42379 | (exit $ac_status); }; } && | |
42380 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42382 | (eval $ac_try) 2>&5 | |
42383 | ac_status=$? | |
42384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42385 | (exit $ac_status); }; }; then | |
42386 | ||
42387 | wx_cv_gcc31=yes | |
42388 | ||
42389 | else | |
42390 | echo "$as_me: failed program was:" >&5 | |
42391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42392 | ||
42393 | ||
42394 | wx_cv_gcc31=no | |
42395 | ||
42396 | ||
42397 | fi | |
ac1cb8d3 | 42398 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42399 | |
42400 | fi | |
42401 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
42402 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
42403 | if test "$wx_cv_gcc31" = "no"; then | |
473276a9 VS |
42404 | |
42405 | D='$' | |
42406 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
42407 | #!/bin/sh |
42408 | #----------------------------------------------------------------------------- | |
42409 | #-- Name: distrib/mac/shared-ld-sh | |
42410 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
42411 | #-- Author: Gilles Depeyrot | |
42412 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
42413 | #-- Licence: any use permitted | |
42414 | #----------------------------------------------------------------------------- | |
42415 | ||
42416 | verbose=0 | |
42417 | args="" | |
42418 | objects="" | |
42419 | linking_flag="-dynamiclib" | |
42420 | ||
473276a9 VS |
42421 | while test ${D}# -gt 0; do |
42422 | case ${D}1 in | |
a848cd7e SC |
42423 | |
42424 | -v) | |
42425 | verbose=1 | |
42426 | ;; | |
42427 | ||
42428 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
42429 | # collect these options and values | |
473276a9 | 42430 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
42431 | shift |
42432 | ;; | |
42433 | ||
df1b269d | 42434 | -l*|-L*|-Wl,*|-flat_namespace|-headerpad_max_install_names) |
a848cd7e | 42435 | # collect these options |
473276a9 | 42436 | args="${D}{args} ${D}1" |
a848cd7e SC |
42437 | ;; |
42438 | ||
42439 | -dynamiclib|-bundle) | |
473276a9 | 42440 | linking_flag="${D}1" |
a848cd7e SC |
42441 | ;; |
42442 | ||
42443 | -*) | |
473276a9 | 42444 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
42445 | exit 1 |
42446 | ;; | |
42447 | ||
42448 | *.o | *.a | *.dylib) | |
42449 | # collect object files | |
473276a9 | 42450 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
42451 | ;; |
42452 | ||
42453 | *) | |
473276a9 | 42454 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
42455 | exit 1 |
42456 | ;; | |
42457 | ||
42458 | esac | |
42459 | shift | |
42460 | done | |
42461 | ||
42462 | # | |
42463 | # Link one module containing all the others | |
42464 | # | |
473276a9 VS |
42465 | if test ${D}{verbose} = 1; then |
42466 | echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o" | |
a848cd7e | 42467 | fi |
473276a9 VS |
42468 | c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o |
42469 | status=${D}? | |
42470 | if test ${D}{status} != 0; then | |
42471 | exit ${D}{status} | |
a848cd7e SC |
42472 | fi |
42473 | ||
42474 | # | |
42475 | # Link the shared library from the single module created | |
42476 | # | |
473276a9 VS |
42477 | if test ${D}{verbose} = 1; then |
42478 | echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
a848cd7e | 42479 | fi |
473276a9 VS |
42480 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} |
42481 | status=${D}? | |
42482 | if test ${D}{status} != 0; then | |
42483 | exit ${D}{status} | |
a848cd7e SC |
42484 | fi |
42485 | ||
42486 | # | |
42487 | # Remove intermediate module | |
42488 | # | |
473276a9 | 42489 | rm -f master.${D}${D}.o |
a848cd7e SC |
42490 | |
42491 | exit 0 | |
42492 | EOF | |
473276a9 | 42493 | |
a848cd7e SC |
42494 | chmod +x shared-ld-sh |
42495 | ||
42496 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" | |
42497 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
42498 | SHARED_LD_CXX="$SHARED_LD_CC" | |
42499 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
42500 | else | |
42501 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
42502 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
42503 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
42504 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
42505 | fi | |
42506 | ||
42507 | PIC_FLAG="-dynamic -fPIC" | |
42508 | ;; | |
42509 | ||
42510 | *-*-aix* ) | |
42511 | if test "x$GCC" != "xyes"; then | |
42512 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
42513 | set dummy makeC++SharedLib; ac_word=$2 | |
42514 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42515 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42516 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
42517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42518 | else | |
42519 | if test -n "$AIX_CXX_LD"; then | |
42520 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
42521 | else | |
42522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42523 | for as_dir in $PATH | |
42524 | do | |
42525 | IFS=$as_save_IFS | |
42526 | test -z "$as_dir" && as_dir=. | |
42527 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42528 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42529 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
42530 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42531 | break 2 | |
42532 | fi | |
42533 | done | |
42534 | done | |
42535 | ||
42536 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
42537 | fi | |
42538 | fi | |
42539 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
42540 | if test -n "$AIX_CXX_LD"; then | |
42541 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
42542 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
42543 | else | |
42544 | echo "$as_me:$LINENO: result: no" >&5 | |
42545 | echo "${ECHO_T}no" >&6 | |
42546 | fi | |
42547 | ||
42548 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
42549 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
42550 | fi | |
42551 | ;; | |
42552 | ||
42553 | *-*-beos* ) | |
1e9e8aba DE |
42554 | SHARED_LD_CC="${LD} -nostart -o" |
42555 | SHARED_LD_CXX="${LD} -nostart -o" | |
a848cd7e SC |
42556 | ;; |
42557 | ||
42558 | *-*-irix* ) | |
42559 | if test "x$GCC" != "xyes"; then | |
42560 | PIC_FLAG="-KPIC" | |
42561 | fi | |
42562 | ;; | |
42563 | ||
42564 | *-*-cygwin* | *-*-mingw32* ) | |
42565 | PIC_FLAG="" | |
1e9e8aba DE |
42566 | SHARED_LD_CC="\$(CC) -shared -o" |
42567 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
a848cd7e SC |
42568 | ;; |
42569 | ||
42570 | *-pc-os2_emx | *-pc-os2-emx ) | |
b1d22ded DE |
42571 | SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" |
42572 | SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
a848cd7e | 42573 | PIC_FLAG="" |
473276a9 VS |
42574 | |
42575 | D='$' | |
42576 | cat <<EOF >dllar.sh | |
42577 | #!/bin/sh | |
42578 | # | |
42579 | # dllar - a tool to build both a .dll and an .a file | |
42580 | # from a set of object (.o) files for EMX/OS2. | |
42581 | # | |
42582 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
42583 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
42584 | # | |
42585 | # This script will accept a set of files on the command line. | |
42586 | # All the public symbols from the .o files will be exported into | |
42587 | # a .DEF file, then linker will be run (through gcc) against them to | |
42588 | # build a shared library consisting of all given .o files. All libraries | |
42589 | # (.a) will be first decompressed into component .o files then act as | |
42590 | # described above. You can optionally give a description (-d "description") | |
42591 | # which will be put into .DLL. To see the list of accepted options (as well | |
42592 | # as command-line format) simply run this program without options. The .DLL | |
42593 | # is built to be imported by name (there is no guarantee that new versions | |
42594 | # of the library you build will have same ordinals for same symbols). | |
42595 | # | |
42596 | # dllar is free software; you can redistribute it and/or modify | |
42597 | # it under the terms of the GNU General Public License as published by | |
42598 | # the Free Software Foundation; either version 2, or (at your option) | |
42599 | # any later version. | |
42600 | # | |
42601 | # dllar is distributed in the hope that it will be useful, | |
42602 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
42603 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
42604 | # GNU General Public License for more details. | |
42605 | # | |
42606 | # You should have received a copy of the GNU General Public License | |
42607 | # along with dllar; see the file COPYING. If not, write to the Free | |
42608 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
42609 | # 02111-1307, USA. | |
42610 | ||
42611 | # To successfuly run this program you will need: | |
42612 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
42613 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
42614 | # - gcc | |
42615 | # (used to build the .dll) | |
42616 | # - emxexp | |
42617 | # (used to create .def file from .o files) | |
42618 | # - emximp | |
42619 | # (used to create .a file from .def file) | |
42620 | # - GNU text utilites (cat, sort, uniq) | |
42621 | # used to process emxexp output | |
42622 | # - GNU file utilities (mv, rm) | |
42623 | # - GNU sed | |
42624 | # - lxlite (optional, see flag below) | |
42625 | # (used for general .dll cleanup) | |
42626 | # | |
42627 | ||
42628 | flag_USE_LXLITE=1; | |
42629 | ||
42630 | # | |
42631 | # helper functions | |
42632 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
42633 | # second argument (suffix to remove) is given | |
42634 | basnam(){ | |
42635 | case ${D}# in | |
42636 | 1) | |
1e9e8aba | 42637 | echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//' |
473276a9 VS |
42638 | ;; |
42639 | 2) | |
42640 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
42641 | ;; | |
42642 | *) | |
42643 | echo "error in basnam ${D}*" | |
42644 | exit 8 | |
42645 | ;; | |
42646 | esac | |
42647 | } | |
42648 | ||
42649 | # Cleanup temporary files and output | |
42650 | CleanUp() { | |
42651 | cd ${D}curDir | |
42652 | for i in ${D}inputFiles ; do | |
42653 | case ${D}i in | |
42654 | *!) | |
42655 | rm -rf \`basnam ${D}i !\` | |
42656 | ;; | |
42657 | *) | |
42658 | ;; | |
42659 | esac | |
42660 | done | |
42661 | ||
42662 | # Kill result in case of failure as there is just to many stupid make/nmake | |
42663 | # things out there which doesn't do this. | |
1e9e8aba | 42664 | if [ ${D}# -eq 0 ]; then |
473276a9 VS |
42665 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
42666 | fi | |
42667 | } | |
42668 | ||
42669 | # Print usage and exit script with rc=1. | |
42670 | PrintHelp() { | |
b1d22ded DE |
42671 | echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]' |
42672 | echo ' [-name-mangler-script script.sh]' | |
42673 | echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]' | |
42674 | echo ' [-ord[inals]] -ex[clude] "symbol(s)"' | |
42675 | echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]' | |
1e9e8aba | 42676 | echo ' [*.o] [*.a]' |
473276a9 VS |
42677 | echo '*> "output_file" should have no extension.' |
42678 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
42679 | echo ' The import library name is derived from this and is set to "name".a,' | |
42680 | echo ' unless overridden by -import' | |
42681 | echo '*> "importlib_name" should have no extension.' | |
42682 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
42683 | echo ' This name is used as the import library name and may be longer and' | |
42684 | echo ' more descriptive than the DLL name which has to follow the old ' | |
42685 | echo ' 8.3 convention of FAT.' | |
b1d22ded DE |
42686 | echo '*> "script.sh may be given to override the output_file name by a' |
42687 | echo ' different name. It is mainly useful if the regular make process' | |
42688 | echo ' of some package does not take into account OS/2 restriction of' | |
42689 | echo ' DLL name lengths. It takes the importlib name as input and is' | |
42690 | echo ' supposed to procude a shorter name as output. The script should' | |
42691 | echo ' expect to get importlib_name without extension and should produce' | |
42692 | echo ' a (max.) 8 letter name without extension.' | |
473276a9 VS |
42693 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' |
42694 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
42695 | echo ' These flags will be put at the start of GCC command line.' | |
b1d22ded DE |
42696 | echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.' |
42697 | echo '*> -ex[clude] defines symbols which will not be exported. You can define' | |
473276a9 VS |
42698 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
42699 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
42700 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
b1d22ded | 42701 | echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 42702 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
b1d22ded | 42703 | echo '*> -nocrt[dll] switch will disable linking the library against emx''s' |
473276a9 | 42704 | echo ' C runtime DLLs.' |
b1d22ded | 42705 | echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
42706 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
42707 | echo ' unchanged to GCC at the end of command line.' | |
42708 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
42709 | echo ' the basename for DLL and import library will be set to library name,' | |
42710 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
42711 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
42712 | echo ' library will be renamed into gcc_s.a.' | |
42713 | echo '--------' | |
42714 | echo 'Example:' | |
42715 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
42716 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
42717 | CleanUp | |
42718 | exit 1 | |
42719 | } | |
42720 | ||
42721 | # Execute a command. | |
42722 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
42723 | # @Uses Whatever CleanUp() uses. | |
42724 | doCommand() { | |
42725 | echo "${D}*" | |
42726 | eval ${D}* | |
42727 | rcCmd=${D}? | |
42728 | ||
1e9e8aba | 42729 | if [ ${D}rcCmd -ne 0 ]; then |
473276a9 VS |
42730 | echo "command failed, exit code="${D}rcCmd |
42731 | CleanUp | |
42732 | exit ${D}rcCmd | |
42733 | fi | |
42734 | } | |
42735 | ||
42736 | # main routine | |
42737 | # setup globals | |
42738 | cmdLine=${D}* | |
42739 | outFile="" | |
42740 | outimpFile="" | |
42741 | inputFiles="" | |
b1d22ded | 42742 | renameScript="" |
473276a9 VS |
42743 | description="" |
42744 | CC=gcc.exe | |
42745 | CFLAGS="-s -Zcrtdll" | |
42746 | EXTRA_CFLAGS="" | |
42747 | EXPORT_BY_ORDINALS=0 | |
42748 | exclude_symbols="" | |
42749 | library_flags="" | |
42750 | curDir=\`pwd\` | |
42751 | curDirS=curDir | |
42752 | case ${D}curDirS in | |
42753 | */) | |
42754 | ;; | |
42755 | *) | |
42756 | curDirS=${D}{curDirS}"/" | |
42757 | ;; | |
42758 | esac | |
42759 | # Parse commandline | |
42760 | libsToLink=0 | |
b1d22ded | 42761 | omfLinking=0 |
1e9e8aba | 42762 | while [ ${D}1 ]; do |
473276a9 VS |
42763 | case ${D}1 in |
42764 | -ord*) | |
42765 | EXPORT_BY_ORDINALS=1; | |
42766 | ;; | |
42767 | -o*) | |
42768 | shift | |
42769 | outFile=${D}1 | |
42770 | ;; | |
42771 | -i*) | |
42772 | shift | |
42773 | outimpFile=${D}1 | |
42774 | ;; | |
b1d22ded DE |
42775 | -name-mangler-script) |
42776 | shift | |
42777 | renameScript=${D}1 | |
42778 | ;; | |
473276a9 VS |
42779 | -d*) |
42780 | shift | |
42781 | description=${D}1 | |
42782 | ;; | |
42783 | -f*) | |
42784 | shift | |
42785 | CFLAGS=${D}1 | |
42786 | ;; | |
42787 | -c*) | |
42788 | shift | |
42789 | CC=${D}1 | |
42790 | ;; | |
42791 | -h*) | |
42792 | PrintHelp | |
42793 | ;; | |
42794 | -ex*) | |
42795 | shift | |
42796 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
42797 | ;; | |
42798 | -libf*) | |
42799 | shift | |
42800 | library_flags=${D}{library_flags}${D}1" " | |
42801 | ;; | |
42802 | -nocrt*) | |
42803 | CFLAGS="-s" | |
42804 | ;; | |
42805 | -nolxl*) | |
42806 | flag_USE_LXLITE=0 | |
42807 | ;; | |
42808 | -* | /*) | |
42809 | case ${D}1 in | |
42810 | -L* | -l*) | |
42811 | libsToLink=1 | |
42812 | ;; | |
b1d22ded DE |
42813 | -Zomf) |
42814 | omfLinking=1 | |
42815 | ;; | |
473276a9 VS |
42816 | *) |
42817 | ;; | |
42818 | esac | |
42819 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
42820 | ;; | |
b1d22ded DE |
42821 | *.dll) |
42822 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`" | |
42823 | if [ ${D}omfLinking -eq 1 ]; then | |
42824 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib" | |
42825 | else | |
42826 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a" | |
42827 | fi | |
42828 | ;; | |
473276a9 VS |
42829 | *) |
42830 | found=0; | |
1e9e8aba | 42831 | if [ ${D}libsToLink -ne 0 ]; then |
473276a9 VS |
42832 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
42833 | else | |
42834 | for file in ${D}1 ; do | |
1e9e8aba | 42835 | if [ -f ${D}file ]; then |
473276a9 VS |
42836 | inputFiles="${D}{inputFiles} ${D}file" |
42837 | found=1 | |
42838 | fi | |
42839 | done | |
1e9e8aba | 42840 | if [ ${D}found -eq 0 ]; then |
473276a9 VS |
42841 | echo "ERROR: No file(s) found: "${D}1 |
42842 | exit 8 | |
42843 | fi | |
42844 | fi | |
42845 | ;; | |
42846 | esac | |
42847 | shift | |
42848 | done # iterate cmdline words | |
42849 | ||
42850 | # | |
1e9e8aba | 42851 | if [ -z "${D}inputFiles" ]; then |
473276a9 VS |
42852 | echo "dllar: no input files" |
42853 | PrintHelp | |
42854 | fi | |
42855 | ||
42856 | # Now extract all .o files from .a files | |
42857 | newInputFiles="" | |
42858 | for file in ${D}inputFiles ; do | |
42859 | case ${D}file in | |
42860 | *.a | *.lib) | |
42861 | case ${D}file in | |
42862 | *.a) | |
42863 | suffix=".a" | |
42864 | AR="ar" | |
42865 | ;; | |
42866 | *.lib) | |
42867 | suffix=".lib" | |
42868 | AR="emxomfar" | |
42869 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
42870 | ;; | |
42871 | *) | |
42872 | ;; | |
42873 | esac | |
42874 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
42875 | mkdir ${D}dirname | |
1e9e8aba | 42876 | if [ ${D}? -ne 0 ]; then |
473276a9 VS |
42877 | echo "Failed to create subdirectory ./${D}dirname" |
42878 | CleanUp | |
42879 | exit 8; | |
42880 | fi | |
42881 | # Append '!' to indicate archive | |
42882 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
42883 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
42884 | cd ${D}curDir | |
42885 | found=0; | |
42886 | for subfile in ${D}dirname/*.o* ; do | |
1e9e8aba | 42887 | if [ -f ${D}subfile ]; then |
473276a9 | 42888 | found=1 |
1e9e8aba | 42889 | if [ -s ${D}subfile ]; then |
473276a9 VS |
42890 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
42891 | newInputFiles="${D}newInputFiles ${D}subfile" | |
42892 | fi | |
42893 | fi | |
42894 | done | |
1e9e8aba DE |
42895 | if [ ${D}found -eq 0 ]; then |
42896 | echo "WARNING: there are no files in archive \\'${D}file\\'" | |
473276a9 VS |
42897 | fi |
42898 | ;; | |
42899 | *) | |
42900 | newInputFiles="${D}{newInputFiles} ${D}file" | |
42901 | ;; | |
42902 | esac | |
42903 | done | |
42904 | inputFiles="${D}newInputFiles" | |
42905 | ||
42906 | # Output filename(s). | |
42907 | do_backup=0; | |
1e9e8aba | 42908 | if [ -z ${D}outFile ]; then |
473276a9 VS |
42909 | do_backup=1; |
42910 | set outFile ${D}inputFiles; outFile=${D}2 | |
42911 | fi | |
42912 | ||
42913 | # If it is an archive, remove the '!' and the '_%' suffixes | |
42914 | case ${D}outFile in | |
42915 | *_%!) | |
42916 | outFile=\`basnam ${D}outFile _%!\` | |
42917 | ;; | |
42918 | *) | |
42919 | ;; | |
42920 | esac | |
42921 | case ${D}outFile in | |
42922 | *.dll) | |
42923 | outFile=\`basnam ${D}outFile .dll\` | |
42924 | ;; | |
42925 | *.DLL) | |
42926 | outFile=\`basnam ${D}outFile .DLL\` | |
42927 | ;; | |
42928 | *.o) | |
42929 | outFile=\`basnam ${D}outFile .o\` | |
42930 | ;; | |
42931 | *.obj) | |
42932 | outFile=\`basnam ${D}outFile .obj\` | |
42933 | ;; | |
42934 | *.a) | |
42935 | outFile=\`basnam ${D}outFile .a\` | |
42936 | ;; | |
42937 | *.lib) | |
42938 | outFile=\`basnam ${D}outFile .lib\` | |
42939 | ;; | |
42940 | *) | |
42941 | ;; | |
42942 | esac | |
42943 | case ${D}outimpFile in | |
42944 | *.a) | |
42945 | outimpFile=\`basnam ${D}outimpFile .a\` | |
42946 | ;; | |
42947 | *.lib) | |
42948 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
42949 | ;; | |
42950 | *) | |
42951 | ;; | |
42952 | esac | |
1e9e8aba | 42953 | if [ -z ${D}outimpFile ]; then |
473276a9 VS |
42954 | outimpFile=${D}outFile |
42955 | fi | |
42956 | defFile="${D}{outFile}.def" | |
42957 | arcFile="${D}{outimpFile}.a" | |
42958 | arcFile2="${D}{outimpFile}.lib" | |
b1d22ded DE |
42959 | |
42960 | #create ${D}dllFile as something matching 8.3 restrictions, | |
42961 | if [ -z ${D}renameScript ] ; then | |
42962 | dllFile="${D}outFile" | |
42963 | else | |
42964 | dllFile=\`${D}renameScript ${D}outimpFile\` | |
42965 | fi | |
473276a9 | 42966 | |
1e9e8aba DE |
42967 | if [ ${D}do_backup -ne 0 ] ; then |
42968 | if [ -f ${D}arcFile ] ; then | |
473276a9 VS |
42969 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
42970 | fi | |
1e9e8aba | 42971 | if [ -f ${D}arcFile2 ] ; then |
473276a9 VS |
42972 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
42973 | fi | |
42974 | fi | |
42975 | ||
42976 | # Extract public symbols from all the object files. | |
42977 | tmpdefFile=${D}{defFile}_% | |
42978 | rm -f ${D}tmpdefFile | |
42979 | for file in ${D}inputFiles ; do | |
42980 | case ${D}file in | |
42981 | *!) | |
42982 | ;; | |
42983 | *) | |
42984 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
42985 | ;; | |
42986 | esac | |
42987 | done | |
42988 | ||
42989 | # Create the def file. | |
42990 | rm -f ${D}defFile | |
42991 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
b1d22ded DE |
42992 | dllFile="${D}{dllFile}.dll" |
42993 | if [ ! -z ${D}description ]; then | |
1e9e8aba | 42994 | echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile |
473276a9 VS |
42995 | fi |
42996 | echo "EXPORTS" >> ${D}defFile | |
42997 | ||
42998 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
42999 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
43000 | ||
43001 | # Checks if the export is ok or not. | |
43002 | for word in ${D}exclude_symbols; do | |
43003 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
43004 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
43005 | done | |
43006 | ||
43007 | ||
1e9e8aba DE |
43008 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
43009 | sed "=" < ${D}tmpdefFile | \\ | |
473276a9 VS |
43010 | sed ' |
43011 | N | |
43012 | : loop | |
1e9e8aba | 43013 | s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/ |
473276a9 VS |
43014 | t loop |
43015 | ' > ${D}{tmpdefFile}% | |
43016 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
43017 | else | |
43018 | rm -f ${D}{tmpdefFile}% | |
43019 | fi | |
43020 | cat ${D}tmpdefFile >> ${D}defFile | |
43021 | rm -f ${D}tmpdefFile | |
43022 | ||
43023 | # Do linking, create implib, and apply lxlite. | |
43024 | gccCmdl=""; | |
43025 | for file in ${D}inputFiles ; do | |
43026 | case ${D}file in | |
43027 | *!) | |
43028 | ;; | |
43029 | *) | |
43030 | gccCmdl="${D}gccCmdl ${D}file" | |
43031 | ;; | |
43032 | esac | |
43033 | done | |
43034 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
43035 | touch "${D}{outFile}.dll" | |
43036 | ||
43037 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
1e9e8aba | 43038 | if [ ${D}flag_USE_LXLITE -ne 0 ]; then |
473276a9 | 43039 | add_flags=""; |
1e9e8aba | 43040 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
473276a9 VS |
43041 | add_flags="-ynd" |
43042 | fi | |
43043 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
43044 | fi | |
43045 | doCommand "emxomf -s -l ${D}arcFile" | |
43046 | ||
43047 | # Successful exit. | |
43048 | CleanUp 1 | |
43049 | exit 0 | |
43050 | EOF | |
43051 | ||
43052 | chmod +x dllar.sh | |
a848cd7e SC |
43053 | ;; |
43054 | ||
1e9e8aba | 43055 | powerpc-apple-macos* | \ |
a848cd7e SC |
43056 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
43057 | *-*-sunos4* | \ | |
43058 | *-*-osf* | \ | |
43059 | *-*-dgux5* | \ | |
47a7e797 MW |
43060 | *-*-sysv5* | \ |
43061 | *-pc-msdosdjgpp ) | |
a848cd7e SC |
43062 | ;; |
43063 | ||
43064 | *) | |
43065 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
43066 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
43067 | { (exit 1); exit 1; }; } | |
43068 | esac | |
43069 | ||
2057db16 VS |
43070 | if test "x$PIC_FLAG" != "x" ; then |
43071 | PIC_FLAG="$PIC_FLAG -DPIC" | |
43072 | fi | |
43073 | ||
a848cd7e SC |
43074 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
43075 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
43076 | fi | |
43077 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
43078 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
43079 | fi | |
43080 | ||
43081 | ||
43082 | ||
43083 | ||
43084 | ||
43085 | ||
43086 | ||
43087 | ||
43088 | USE_SOVERSION=0 | |
43089 | USE_SOVERLINUX=0 | |
43090 | USE_SOVERSOLARIS=0 | |
43091 | USE_SOSYMLINKS=0 | |
43092 | USE_MACVERSION=0 | |
43093 | SONAME_FLAG= | |
43094 | ||
43095 | case "${BAKEFILE_HOST}" in | |
b1d22ded | 43096 | *-*-linux* | *-*-freebsd* ) |
5f652d0d VS |
43097 | SONAME_FLAG="-Wl,-soname," |
43098 | USE_SOVERSION=1 | |
43099 | USE_SOVERLINUX=1 | |
43100 | USE_SOSYMLINKS=1 | |
43101 | ;; | |
43102 | ||
a848cd7e SC |
43103 | *-*-solaris2* ) |
43104 | SONAME_FLAG="-h " | |
43105 | USE_SOVERSION=1 | |
43106 | USE_SOVERSOLARIS=1 | |
43107 | USE_SOSYMLINKS=1 | |
43108 | ;; | |
43109 | ||
43110 | *-*-darwin* ) | |
43111 | USE_MACVERSION=1 | |
43112 | USE_SOVERSION=1 | |
43113 | USE_SOSYMLINKS=1 | |
43114 | ;; | |
43115 | esac | |
43116 | ||
43117 | ||
43118 | ||
43119 | ||
43120 | ||
43121 | ||
43122 | ||
43123 | ||
43124 | ||
43125 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 | |
43126 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
43127 | DEPS_TRACKING=0 | |
43128 | ||
43129 | if test "x$GCC" = "xyes"; then | |
43130 | DEPSMODE=gcc | |
43131 | DEPS_TRACKING=1 | |
43132 | case "${BAKEFILE_HOST}" in | |
43133 | powerpc-*-darwin* ) | |
43134 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
43135 | ;; | |
43136 | * ) | |
43137 | DEPSFLAG_GCC="-MMD" | |
43138 | ;; | |
43139 | esac | |
43140 | echo "$as_me:$LINENO: result: gcc" >&5 | |
43141 | echo "${ECHO_T}gcc" >&6 | |
b1d22ded | 43142 | elif test "x$MWCC" = "xyes"; then |
81f90336 | 43143 | DEPSMODE=mwcc |
b1d22ded | 43144 | DEPS_TRACKING=1 |
81f90336 | 43145 | DEPSFLAG_MWCC="-MM" |
b1d22ded DE |
43146 | echo "$as_me:$LINENO: result: mwcc" >&5 |
43147 | echo "${ECHO_T}mwcc" >&6 | |
a9e5b1f0 MW |
43148 | elif test "x$SUNCC" = "xyes"; then |
43149 | DEPSMODE=suncc | |
43150 | DEPS_TRACKING=1 | |
43151 | DEPSFLAG_SUNCC="-xM1" | |
43152 | echo "$as_me:$LINENO: result: suncc" >&5 | |
43153 | echo "${ECHO_T}suncc" >&6 | |
a848cd7e SC |
43154 | else |
43155 | echo "$as_me:$LINENO: result: none" >&5 | |
43156 | echo "${ECHO_T}none" >&6 | |
43157 | fi | |
43158 | ||
43159 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
43160 | |
43161 | D='$' | |
43162 | cat <<EOF >bk-deps | |
a848cd7e SC |
43163 | #!/bin/sh |
43164 | ||
43165 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
43166 | # script. It is used to track C/C++ files dependencies in portable way. | |
43167 | # | |
43168 | # Permission is given to use this file in any way. | |
43169 | ||
473276a9 | 43170 | DEPSMODE=${DEPSMODE} |
a848cd7e | 43171 | DEPSDIR=.deps |
473276a9 | 43172 | DEPSFLAG_GCC="${DEPSFLAG_GCC}" |
81f90336 | 43173 | DEPSFLAG_MWCC="${DEPSFLAG_MWCC}" |
a9e5b1f0 | 43174 | DEPSFLAG_SUNCC="${DEPSFLAG_SUNCC}" |
a848cd7e | 43175 | |
473276a9 | 43176 | mkdir -p ${D}DEPSDIR |
a848cd7e | 43177 | |
473276a9 VS |
43178 | if test ${D}DEPSMODE = gcc ; then |
43179 | ${D}* ${D}{DEPSFLAG_GCC} | |
43180 | status=${D}? | |
43181 | if test ${D}{status} != 0 ; then | |
43182 | exit ${D}{status} | |
a848cd7e SC |
43183 | fi |
43184 | # move created file to the location we want it in: | |
473276a9 VS |
43185 | while test ${D}# -gt 0; do |
43186 | case "${D}1" in | |
a848cd7e SC |
43187 | -o ) |
43188 | shift | |
473276a9 | 43189 | objfile=${D}1 |
a848cd7e SC |
43190 | ;; |
43191 | -* ) | |
43192 | ;; | |
43193 | * ) | |
473276a9 | 43194 | srcfile=${D}1 |
a848cd7e SC |
43195 | ;; |
43196 | esac | |
43197 | shift | |
43198 | done | |
1e9e8aba DE |
43199 | depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\` |
43200 | depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\` | |
473276a9 VS |
43201 | if test -f ${D}depfile ; then |
43202 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
43203 | rm -f ${D}depfile | |
a848cd7e | 43204 | else |
1e9e8aba | 43205 | depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\` |
473276a9 VS |
43206 | if test -f ${D}depfile ; then |
43207 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
43208 | rm -f ${D}depfile | |
a848cd7e SC |
43209 | fi |
43210 | fi | |
43211 | exit 0 | |
81f90336 MW |
43212 | elif test ${D}DEPSMODE = mwcc ; then |
43213 | ${D}* | |
43214 | status=${D}? | |
43215 | if test ${D}{status} != 0 ; then | |
43216 | exit ${D}{status} | |
43217 | fi | |
43218 | # Run mwcc again with -MM and redirect into the dep file we want | |
43219 | # NOTE: We can't use shift here because we need ${D}* to be valid | |
43220 | prevarg= | |
43221 | for arg in ${D}* ; do | |
43222 | if test "${D}prevarg" = "-o"; then | |
43223 | objfile=${D}arg | |
43224 | else | |
43225 | case "${D}arg" in | |
43226 | -* ) | |
43227 | ;; | |
43228 | * ) | |
43229 | srcfile=${D}arg | |
43230 | ;; | |
43231 | esac | |
43232 | fi | |
43233 | prevarg="${D}arg" | |
43234 | done | |
43235 | ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d | |
43236 | exit 0 | |
a9e5b1f0 MW |
43237 | elif test ${D}DEPSMODE = suncc; then |
43238 | ${D}* || exit | |
43239 | # Run compiler again with deps flag and redirect into the dep file. | |
43240 | # It doesn't work if the '-o FILE' option is used, but without it the | |
43241 | # dependency file will contain the wrong name for the object. So it is | |
43242 | # removed from the command line, and the dep file is fixed with sed. | |
43243 | cmd="" | |
43244 | while test ${D}# -gt 0; do | |
43245 | case "${D}1" in | |
43246 | -o ) | |
43247 | shift | |
43248 | objfile=${D}1 | |
43249 | ;; | |
43250 | * ) | |
43251 | eval arg${D}#=\\${D}1 | |
43252 | cmd="${D}cmd \\${D}arg${D}#" | |
43253 | ;; | |
43254 | esac | |
43255 | shift | |
43256 | done | |
43257 | eval "${D}cmd ${D}DEPSFLAG_SUNCC" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d | |
43258 | exit 0 | |
a848cd7e | 43259 | else |
473276a9 VS |
43260 | ${D}* |
43261 | exit ${D}? | |
a848cd7e SC |
43262 | fi |
43263 | EOF | |
473276a9 | 43264 | |
a848cd7e SC |
43265 | chmod +x bk-deps |
43266 | fi | |
43267 | ||
43268 | ||
43269 | ||
43270 | ||
43271 | RESCOMP= | |
43272 | SETFILE= | |
43273 | ||
43274 | case ${BAKEFILE_HOST} in | |
43275 | *-*-cygwin* | *-*-mingw32* ) | |
43276 | if test "$build" != "$host" ; then | |
43277 | RESCOMP=$host_alias-windres | |
43278 | else | |
43279 | # Extract the first word of "windres", so it can be a program name with args. | |
43280 | set dummy windres; ac_word=$2 | |
43281 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43282 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43283 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
43284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43285 | else | |
43286 | if test -n "$RESCOMP"; then | |
43287 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
43288 | else | |
43289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43290 | for as_dir in $PATH | |
43291 | do | |
43292 | IFS=$as_save_IFS | |
43293 | test -z "$as_dir" && as_dir=. | |
43294 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43295 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43296 | ac_cv_prog_RESCOMP="windres" | |
43297 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43298 | break 2 | |
43299 | fi | |
43300 | done | |
43301 | done | |
43302 | ||
43303 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" | |
43304 | fi | |
43305 | fi | |
43306 | RESCOMP=$ac_cv_prog_RESCOMP | |
43307 | if test -n "$RESCOMP"; then | |
43308 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
43309 | echo "${ECHO_T}$RESCOMP" >&6 | |
43310 | else | |
43311 | echo "$as_me:$LINENO: result: no" >&5 | |
43312 | echo "${ECHO_T}no" >&6 | |
43313 | fi | |
43314 | ||
43315 | fi | |
43316 | ;; | |
43317 | ||
1e9e8aba | 43318 | *-*-darwin* | powerpc-apple-macos* ) |
a848cd7e SC |
43319 | # Extract the first word of "Rez", so it can be a program name with args. |
43320 | set dummy Rez; ac_word=$2 | |
43321 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43322 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43323 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
43324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43325 | else | |
43326 | if test -n "$RESCOMP"; then | |
43327 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
43328 | else | |
43329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43330 | for as_dir in $PATH | |
43331 | do | |
43332 | IFS=$as_save_IFS | |
43333 | test -z "$as_dir" && as_dir=. | |
43334 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43335 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43336 | ac_cv_prog_RESCOMP="Rez" | |
43337 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43338 | break 2 | |
43339 | fi | |
43340 | done | |
43341 | done | |
43342 | ||
43343 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
43344 | fi | |
43345 | fi | |
43346 | RESCOMP=$ac_cv_prog_RESCOMP | |
43347 | if test -n "$RESCOMP"; then | |
43348 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
43349 | echo "${ECHO_T}$RESCOMP" >&6 | |
43350 | else | |
43351 | echo "$as_me:$LINENO: result: no" >&5 | |
43352 | echo "${ECHO_T}no" >&6 | |
43353 | fi | |
43354 | ||
43355 | # Extract the first word of "SetFile", so it can be a program name with args. | |
43356 | set dummy SetFile; ac_word=$2 | |
43357 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43358 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43359 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
43360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43361 | else | |
43362 | if test -n "$SETFILE"; then | |
43363 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
43364 | else | |
43365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43366 | for as_dir in $PATH | |
43367 | do | |
43368 | IFS=$as_save_IFS | |
43369 | test -z "$as_dir" && as_dir=. | |
43370 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43371 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43372 | ac_cv_prog_SETFILE="SetFile" | |
43373 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43374 | break 2 | |
43375 | fi | |
43376 | done | |
43377 | done | |
43378 | ||
43379 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
43380 | fi | |
43381 | fi | |
43382 | SETFILE=$ac_cv_prog_SETFILE | |
43383 | if test -n "$SETFILE"; then | |
43384 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
43385 | echo "${ECHO_T}$SETFILE" >&6 | |
43386 | else | |
43387 | echo "$as_me:$LINENO: result: no" >&5 | |
43388 | echo "${ECHO_T}no" >&6 | |
43389 | fi | |
43390 | ||
43391 | ;; | |
43392 | esac | |
43393 | ||
43394 | ||
43395 | ||
43396 | ||
43397 | ||
fbb7dfff | 43398 | BAKEFILE_BAKEFILE_M4_VERSION="0.1.8" |
a848cd7e | 43399 | |
dcc1b6ad | 43400 | |
fbb7dfff | 43401 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.8" |
a848cd7e | 43402 | |
646b6ec1 | 43403 | |
74b84332 | 43404 | |
a848cd7e SC |
43405 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
43406 | if test "${enable_precomp_headers+set}" = set; then | |
43407 | enableval="$enable_precomp_headers" | |
43408 | bk_use_pch="$enableval" | |
43409 | fi; | |
43410 | ||
43411 | GCC_PCH=0 | |
43412 | ||
43413 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
43414 | if test "x$GCC" = "xyes"; then | |
43415 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
43416 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
43417 | cat >conftest.$ac_ext <<_ACEOF | |
43418 | /* confdefs.h. */ | |
43419 | _ACEOF | |
43420 | cat confdefs.h >>conftest.$ac_ext | |
43421 | cat >>conftest.$ac_ext <<_ACEOF | |
43422 | /* end confdefs.h. */ | |
43423 | ||
43424 | int | |
43425 | main () | |
43426 | { | |
43427 | ||
43428 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
43429 | #error "no pch support" | |
43430 | #endif | |
43431 | #if (__GNUC__ < 3) | |
43432 | #error "no pch support" | |
43433 | #endif | |
43434 | #if (__GNUC__ == 3) && \ | |
43435 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
43436 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
43437 | #error "no pch support" | |
43438 | #endif | |
43439 | ||
43440 | ; | |
43441 | return 0; | |
43442 | } | |
43443 | _ACEOF | |
43444 | rm -f conftest.$ac_objext | |
43445 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43446 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43447 | ac_status=$? |
ac1cb8d3 VS |
43448 | grep -v '^ *+' conftest.er1 >conftest.err |
43449 | rm -f conftest.er1 | |
43450 | cat conftest.err >&5 | |
a848cd7e SC |
43451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43452 | (exit $ac_status); } && | |
ddd14b14 RR |
43453 | { ac_try='test -z "$ac_c_werror_flag" |
43454 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
43455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43456 | (eval $ac_try) 2>&5 | |
43457 | ac_status=$? | |
43458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43459 | (exit $ac_status); }; } && | |
43460 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43462 | (eval $ac_try) 2>&5 | |
43463 | ac_status=$? | |
43464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43465 | (exit $ac_status); }; }; then | |
43466 | ||
43467 | echo "$as_me:$LINENO: result: yes" >&5 | |
43468 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
43469 | GCC_PCH=1 |
43470 | ||
43471 | else | |
43472 | echo "$as_me: failed program was:" >&5 | |
43473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43474 | ||
43475 | ||
43476 | echo "$as_me:$LINENO: result: no" >&5 | |
43477 | echo "${ECHO_T}no" >&6 | |
43478 | ||
43479 | fi | |
ac1cb8d3 | 43480 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 43481 | if test $GCC_PCH = 1 ; then |
1e9e8aba DE |
43482 | |
43483 | D='$' | |
43484 | cat <<EOF >bk-make-pch | |
a848cd7e SC |
43485 | #!/bin/sh |
43486 | ||
43487 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
43488 | # script. It is used to generated precompiled headers. | |
43489 | # | |
43490 | # Permission is given to use this file in any way. | |
43491 | ||
1e9e8aba DE |
43492 | outfile="${D}{1}" |
43493 | header="${D}{2}" | |
a848cd7e SC |
43494 | shift |
43495 | shift | |
43496 | ||
43497 | compiler= | |
43498 | headerfile= | |
1e9e8aba DE |
43499 | while test ${D}{#} -gt 0; do |
43500 | case "${D}{1}" in | |
a848cd7e | 43501 | -I* ) |
1e9e8aba DE |
43502 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
43503 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
43504 | headerfile="${D}{incdir}/${D}{header}" | |
a848cd7e SC |
43505 | fi |
43506 | ;; | |
43507 | esac | |
1e9e8aba | 43508 | compiler="${D}{compiler} ${D}{1}" |
a848cd7e SC |
43509 | shift |
43510 | done | |
43511 | ||
1e9e8aba DE |
43512 | if test "x${D}{headerfile}" = "x" ; then |
43513 | echo "error: can't find header ${D}{header} in include paths" >2 | |
a848cd7e | 43514 | else |
1e9e8aba DE |
43515 | if test -f ${D}{outfile} ; then |
43516 | rm -f ${D}{outfile} | |
a848cd7e | 43517 | else |
1e9e8aba | 43518 | mkdir -p \`dirname ${D}{outfile}\` |
a848cd7e | 43519 | fi |
1e9e8aba | 43520 | depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
a848cd7e SC |
43521 | mkdir -p .deps |
43522 | # can do this because gcc is >= 3.4: | |
1e9e8aba DE |
43523 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" |
43524 | exit ${D}{?} | |
a848cd7e SC |
43525 | fi |
43526 | EOF | |
1e9e8aba | 43527 | |
a848cd7e SC |
43528 | chmod +x bk-make-pch |
43529 | fi | |
43530 | fi | |
43531 | fi | |
43532 | ||
43533 | ||
43534 | ||
a848cd7e SC |
43535 | COND_BUILD_DEBUG="#" |
43536 | if test "x$BUILD" = "xdebug" ; then | |
43537 | COND_BUILD_DEBUG="" | |
43538 | fi | |
43539 | ||
43540 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
43541 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
43542 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
43543 | fi | |
43544 | ||
43545 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
43546 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
43547 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
43548 | fi | |
43549 | ||
43550 | COND_BUILD_DEBUG_UNICODE_0="#" | |
43551 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
43552 | COND_BUILD_DEBUG_UNICODE_0="" | |
43553 | fi | |
43554 | ||
43555 | COND_BUILD_DEBUG_UNICODE_1="#" | |
43556 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
43557 | COND_BUILD_DEBUG_UNICODE_1="" | |
43558 | fi | |
43559 | ||
43560 | COND_BUILD_RELEASE="#" | |
43561 | if test "x$BUILD" = "xrelease" ; then | |
43562 | COND_BUILD_RELEASE="" | |
43563 | fi | |
43564 | ||
43565 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
43566 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
43567 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
43568 | fi | |
43569 | ||
43570 | COND_BUILD_RELEASE_UNICODE_0="#" | |
43571 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
43572 | COND_BUILD_RELEASE_UNICODE_0="" | |
43573 | fi | |
43574 | ||
43575 | COND_BUILD_RELEASE_UNICODE_1="#" | |
43576 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
43577 | COND_BUILD_RELEASE_UNICODE_1="" | |
43578 | fi | |
43579 | ||
43580 | COND_DEBUG_FLAG_1="#" | |
43581 | if test "x$DEBUG_FLAG" = "x1" ; then | |
43582 | COND_DEBUG_FLAG_1="" | |
43583 | fi | |
43584 | ||
43585 | COND_DEBUG_INFO_0="#" | |
43586 | if test "x$DEBUG_INFO" = "x0" ; then | |
43587 | COND_DEBUG_INFO_0="" | |
43588 | fi | |
43589 | ||
43590 | COND_DEBUG_INFO_1="#" | |
43591 | if test "x$DEBUG_INFO" = "x1" ; then | |
43592 | COND_DEBUG_INFO_1="" | |
43593 | fi | |
43594 | ||
43595 | COND_DEPS_TRACKING_0="#" | |
43596 | if test "x$DEPS_TRACKING" = "x0" ; then | |
43597 | COND_DEPS_TRACKING_0="" | |
43598 | fi | |
43599 | ||
43600 | COND_DEPS_TRACKING_1="#" | |
43601 | if test "x$DEPS_TRACKING" = "x1" ; then | |
43602 | COND_DEPS_TRACKING_1="" | |
43603 | fi | |
43604 | ||
43605 | COND_GCC_PCH_1="#" | |
43606 | if test "x$GCC_PCH" = "x1" ; then | |
43607 | COND_GCC_PCH_1="" | |
43608 | fi | |
43609 | ||
43610 | COND_MONOLITHIC_0="#" | |
43611 | if test "x$MONOLITHIC" = "x0" ; then | |
43612 | COND_MONOLITHIC_0="" | |
43613 | fi | |
43614 | ||
43615 | COND_MONOLITHIC_0_SHARED_0="#" | |
43616 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
43617 | COND_MONOLITHIC_0_SHARED_0="" | |
43618 | fi | |
43619 | ||
43620 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
43621 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
43622 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
43623 | fi | |
43624 | ||
90970d69 DE |
43625 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#" |
43626 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
43627 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="" | |
43628 | fi | |
43629 | ||
a848cd7e SC |
43630 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
43631 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
43632 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
43633 | fi | |
43634 | ||
6671c68b VZ |
43635 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#" |
43636 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
43637 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="" | |
43638 | fi | |
43639 | ||
a848cd7e SC |
43640 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
43641 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
43642 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
43643 | fi | |
43644 | ||
ceec2216 RL |
43645 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
43646 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
43647 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
43648 | fi | |
43649 | ||
a848cd7e SC |
43650 | COND_MONOLITHIC_0_SHARED_1="#" |
43651 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
43652 | COND_MONOLITHIC_0_SHARED_1="" | |
43653 | fi | |
43654 | ||
43655 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
43656 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
43657 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
43658 | fi | |
43659 | ||
90970d69 DE |
43660 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#" |
43661 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
43662 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="" | |
43663 | fi | |
43664 | ||
a848cd7e SC |
43665 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
43666 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
43667 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
43668 | fi | |
43669 | ||
6671c68b VZ |
43670 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#" |
43671 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
43672 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="" | |
43673 | fi | |
43674 | ||
a848cd7e SC |
43675 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
43676 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
43677 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
43678 | fi | |
43679 | ||
ceec2216 RL |
43680 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
43681 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
43682 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
43683 | fi | |
43684 | ||
a848cd7e SC |
43685 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
43686 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
43687 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
43688 | fi | |
43689 | ||
43690 | COND_MONOLITHIC_1="#" | |
43691 | if test "x$MONOLITHIC" = "x1" ; then | |
43692 | COND_MONOLITHIC_1="" | |
43693 | fi | |
43694 | ||
43695 | COND_MONOLITHIC_1_SHARED_0="#" | |
43696 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
43697 | COND_MONOLITHIC_1_SHARED_0="" | |
43698 | fi | |
43699 | ||
43700 | COND_MONOLITHIC_1_SHARED_1="#" | |
43701 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
43702 | COND_MONOLITHIC_1_SHARED_1="" | |
43703 | fi | |
43704 | ||
43705 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
43706 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
43707 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
43708 | fi | |
43709 | ||
43710 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
43711 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
43712 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
43713 | fi | |
43714 | ||
43715 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
43716 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
43717 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
43718 | fi | |
43719 | ||
43720 | COND_PLATFORM_MACOSX_1="#" | |
43721 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
43722 | COND_PLATFORM_MACOSX_1="" | |
43723 | fi | |
43724 | ||
a30f955f VS |
43725 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
43726 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
43727 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
43728 | fi | |
43729 | ||
a848cd7e SC |
43730 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
43731 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
43732 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
43733 | fi | |
43734 | ||
43735 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
43736 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
43737 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
43738 | fi | |
43739 | ||
43740 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
43741 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
43742 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
43743 | fi | |
43744 | ||
fc480dc1 DE |
43745 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#" |
43746 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
43747 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="" | |
43748 | fi | |
43749 | ||
1e9e8aba DE |
43750 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
43751 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
43752 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
43753 | fi | |
43754 | ||
ebee3cd0 VS |
43755 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
43756 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
43757 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
43758 | fi | |
43759 | ||
43760 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
43761 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
43762 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
43763 | fi | |
43764 | ||
a848cd7e SC |
43765 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
43766 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
43767 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
43768 | fi | |
43769 | ||
43770 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
43771 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
43772 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
43773 | fi | |
43774 | ||
b48a2016 DE |
43775 | COND_PLATFORM_MACOS_1="#" |
43776 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
43777 | COND_PLATFORM_MACOS_1="" | |
43778 | fi | |
43779 | ||
a848cd7e SC |
43780 | COND_PLATFORM_MAC_1="#" |
43781 | if test "x$PLATFORM_MAC" = "x1" ; then | |
43782 | COND_PLATFORM_MAC_1="" | |
43783 | fi | |
43784 | ||
83d8eb47 MW |
43785 | COND_PLATFORM_MSDOS_1="#" |
43786 | if test "x$PLATFORM_MSDOS" = "x1" ; then | |
43787 | COND_PLATFORM_MSDOS_1="" | |
43788 | fi | |
43789 | ||
a848cd7e SC |
43790 | COND_PLATFORM_OS2_1="#" |
43791 | if test "x$PLATFORM_OS2" = "x1" ; then | |
43792 | COND_PLATFORM_OS2_1="" | |
43793 | fi | |
43794 | ||
43795 | COND_PLATFORM_UNIX_0="#" | |
43796 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
43797 | COND_PLATFORM_UNIX_0="" | |
43798 | fi | |
43799 | ||
43800 | COND_PLATFORM_UNIX_1="#" | |
43801 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
43802 | COND_PLATFORM_UNIX_1="" | |
43803 | fi | |
43804 | ||
43805 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
43806 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
43807 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
43808 | fi | |
43809 | ||
43810 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
43811 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
43812 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
43813 | fi | |
43814 | ||
43815 | COND_PLATFORM_WIN32_0="#" | |
43816 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
43817 | COND_PLATFORM_WIN32_0="" | |
43818 | fi | |
43819 | ||
43820 | COND_PLATFORM_WIN32_1="#" | |
43821 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
43822 | COND_PLATFORM_WIN32_1="" | |
43823 | fi | |
43824 | ||
43825 | COND_SHARED_0="#" | |
43826 | if test "x$SHARED" = "x0" ; then | |
43827 | COND_SHARED_0="" | |
43828 | fi | |
43829 | ||
ceec2216 RL |
43830 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
43831 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
43832 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
43833 | fi | |
43834 | ||
43835 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
43836 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
43837 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
43838 | fi | |
43839 | ||
43840 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
43841 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
43842 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
43843 | fi | |
43844 | ||
a848cd7e SC |
43845 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
43846 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
43847 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
43848 | fi | |
43849 | ||
43850 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
43851 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
43852 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
43853 | fi | |
43854 | ||
43855 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
43856 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
43857 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
43858 | fi | |
43859 | ||
43860 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
43861 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
43862 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
43863 | fi | |
43864 | ||
52ada004 RL |
43865 | COND_SHARED_0_USE_XRC_1="#" |
43866 | if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
43867 | COND_SHARED_0_USE_XRC_1="" | |
43868 | fi | |
43869 | ||
a848cd7e SC |
43870 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" |
43871 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
43872 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
43873 | fi | |
43874 | ||
43875 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
43876 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
43877 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
43878 | fi | |
43879 | ||
43880 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
43881 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
43882 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
43883 | fi | |
43884 | ||
43885 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
43886 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
43887 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
43888 | fi | |
43889 | ||
43890 | COND_SHARED_1="#" | |
43891 | if test "x$SHARED" = "x1" ; then | |
43892 | COND_SHARED_1="" | |
43893 | fi | |
43894 | ||
43895 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
43896 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
43897 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
43898 | fi | |
43899 | ||
52ada004 RL |
43900 | COND_SHARED_1_USE_XRC_1="#" |
43901 | if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
43902 | COND_SHARED_1_USE_XRC_1="" | |
43903 | fi | |
43904 | ||
a30f955f VS |
43905 | COND_TOOLKIT_="#" |
43906 | if test "x$TOOLKIT" = "x" ; then | |
43907 | COND_TOOLKIT_="" | |
43908 | fi | |
43909 | ||
a848cd7e SC |
43910 | COND_TOOLKIT_COCOA="#" |
43911 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
43912 | COND_TOOLKIT_COCOA="" | |
43913 | fi | |
43914 | ||
a49baeab DE |
43915 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
43916 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
43917 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
43918 | fi | |
43919 | ||
a848cd7e SC |
43920 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
43921 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
43922 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
43923 | fi | |
43924 | ||
43925 | COND_TOOLKIT_GTK="#" | |
43926 | if test "x$TOOLKIT" = "xGTK" ; then | |
43927 | COND_TOOLKIT_GTK="" | |
43928 | fi | |
43929 | ||
43930 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
43931 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
43932 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
43933 | fi | |
43934 | ||
43935 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
43936 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
43937 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
43938 | fi | |
43939 | ||
43940 | COND_TOOLKIT_MAC="#" | |
43941 | if test "x$TOOLKIT" = "xMAC" ; then | |
43942 | COND_TOOLKIT_MAC="" | |
43943 | fi | |
43944 | ||
43945 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
43946 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
43947 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
43948 | fi | |
43949 | ||
43950 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
43951 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
43952 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
43953 | fi | |
43954 | ||
43955 | COND_TOOLKIT_MGL="#" | |
43956 | if test "x$TOOLKIT" = "xMGL" ; then | |
43957 | COND_TOOLKIT_MGL="" | |
43958 | fi | |
43959 | ||
43960 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
43961 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
43962 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
43963 | fi | |
43964 | ||
43965 | COND_TOOLKIT_MOTIF="#" | |
43966 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
43967 | COND_TOOLKIT_MOTIF="" | |
43968 | fi | |
43969 | ||
43970 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
43971 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
43972 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
43973 | fi | |
43974 | ||
43975 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
43976 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
43977 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
43978 | fi | |
43979 | ||
43980 | COND_TOOLKIT_MSW="#" | |
43981 | if test "x$TOOLKIT" = "xMSW" ; then | |
43982 | COND_TOOLKIT_MSW="" | |
43983 | fi | |
43984 | ||
43985 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
43986 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
43987 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
43988 | fi | |
43989 | ||
43990 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
43991 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
43992 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
43993 | fi | |
43994 | ||
43995 | COND_TOOLKIT_PM="#" | |
43996 | if test "x$TOOLKIT" = "xPM" ; then | |
43997 | COND_TOOLKIT_PM="" | |
43998 | fi | |
43999 | ||
44000 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
44001 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
44002 | COND_TOOLKIT_PM_USE_GUI_1="" | |
44003 | fi | |
44004 | ||
44005 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
44006 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
44007 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
44008 | fi | |
44009 | ||
3fd9c298 DE |
44010 | COND_TOOLKIT_WINCE="#" |
44011 | if test "x$TOOLKIT" = "xWINCE" ; then | |
44012 | COND_TOOLKIT_WINCE="" | |
44013 | fi | |
44014 | ||
44015 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
44016 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
44017 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
44018 | fi | |
44019 | ||
44020 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
44021 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
44022 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
44023 | fi | |
44024 | ||
a848cd7e SC |
44025 | COND_TOOLKIT_X11="#" |
44026 | if test "x$TOOLKIT" = "xX11" ; then | |
44027 | COND_TOOLKIT_X11="" | |
44028 | fi | |
44029 | ||
44030 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
44031 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
44032 | COND_TOOLKIT_X11_USE_GUI_1="" | |
44033 | fi | |
44034 | ||
44035 | COND_UNICODE_1="#" | |
44036 | if test "x$UNICODE" = "x1" ; then | |
44037 | COND_UNICODE_1="" | |
44038 | fi | |
44039 | ||
44040 | COND_USE_EXCEPTIONS_0="#" | |
44041 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
44042 | COND_USE_EXCEPTIONS_0="" | |
44043 | fi | |
44044 | ||
44045 | COND_USE_EXCEPTIONS_1="#" | |
44046 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
44047 | COND_USE_EXCEPTIONS_1="" | |
44048 | fi | |
44049 | ||
44050 | COND_USE_GUI_0="#" | |
44051 | if test "x$USE_GUI" = "x0" ; then | |
44052 | COND_USE_GUI_0="" | |
44053 | fi | |
44054 | ||
44055 | COND_USE_GUI_1="#" | |
44056 | if test "x$USE_GUI" = "x1" ; then | |
44057 | COND_USE_GUI_1="" | |
44058 | fi | |
44059 | ||
44060 | COND_USE_GUI_1_WXUNIV_0="#" | |
44061 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
44062 | COND_USE_GUI_1_WXUNIV_0="" | |
44063 | fi | |
44064 | ||
44065 | COND_USE_GUI_1_WXUNIV_1="#" | |
44066 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
44067 | COND_USE_GUI_1_WXUNIV_1="" | |
44068 | fi | |
44069 | ||
44070 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
44071 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
44072 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
44073 | fi | |
44074 | ||
44075 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
44076 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
44077 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
44078 | fi | |
44079 | ||
44080 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
44081 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
44082 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
44083 | fi | |
44084 | ||
ceec2216 RL |
44085 | COND_USE_ODBC_1="#" |
44086 | if test "x$USE_ODBC" = "x1" ; then | |
44087 | COND_USE_ODBC_1="" | |
44088 | fi | |
44089 | ||
ffa0583f RL |
44090 | COND_USE_OPENGL_1="#" |
44091 | if test "x$USE_OPENGL" = "x1" ; then | |
44092 | COND_USE_OPENGL_1="" | |
44093 | fi | |
44094 | ||
a848cd7e SC |
44095 | COND_USE_PLUGINS_0="#" |
44096 | if test "x$USE_PLUGINS" = "x0" ; then | |
44097 | COND_USE_PLUGINS_0="" | |
44098 | fi | |
44099 | ||
0b78747f MW |
44100 | COND_USE_RTTI_0="#" |
44101 | if test "x$USE_RTTI" = "x0" ; then | |
44102 | COND_USE_RTTI_0="" | |
44103 | fi | |
44104 | ||
44105 | COND_USE_RTTI_1="#" | |
44106 | if test "x$USE_RTTI" = "x1" ; then | |
44107 | COND_USE_RTTI_1="" | |
44108 | fi | |
44109 | ||
a848cd7e SC |
44110 | COND_USE_SOSYMLINKS_1="#" |
44111 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
44112 | COND_USE_SOSYMLINKS_1="" | |
44113 | fi | |
44114 | ||
44115 | COND_USE_SOVERLINUX_1="#" | |
44116 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
44117 | COND_USE_SOVERLINUX_1="" | |
44118 | fi | |
44119 | ||
44120 | COND_USE_SOVERSION_0="#" | |
44121 | if test "x$USE_SOVERSION" = "x0" ; then | |
44122 | COND_USE_SOVERSION_0="" | |
44123 | fi | |
44124 | ||
44125 | COND_USE_SOVERSOLARIS_1="#" | |
44126 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
44127 | COND_USE_SOVERSOLARIS_1="" | |
44128 | fi | |
44129 | ||
0b78747f MW |
44130 | COND_USE_THREADS_0="#" |
44131 | if test "x$USE_THREADS" = "x0" ; then | |
44132 | COND_USE_THREADS_0="" | |
44133 | fi | |
44134 | ||
44135 | COND_USE_THREADS_1="#" | |
44136 | if test "x$USE_THREADS" = "x1" ; then | |
44137 | COND_USE_THREADS_1="" | |
44138 | fi | |
44139 | ||
a13a7f89 RL |
44140 | COND_USE_XRC_1="#" |
44141 | if test "x$USE_XRC" = "x1" ; then | |
44142 | COND_USE_XRC_1="" | |
44143 | fi | |
44144 | ||
a848cd7e SC |
44145 | COND_WITH_PLUGIN_SDL_1="#" |
44146 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
44147 | COND_WITH_PLUGIN_SDL_1="" | |
44148 | fi | |
44149 | ||
1e6eb025 VZ |
44150 | COND_WXUNIV_0="#" |
44151 | if test "x$WXUNIV" = "x0" ; then | |
44152 | COND_WXUNIV_0="" | |
44153 | fi | |
44154 | ||
a848cd7e SC |
44155 | COND_WXUNIV_1="#" |
44156 | if test "x$WXUNIV" = "x1" ; then | |
44157 | COND_WXUNIV_1="" | |
44158 | fi | |
44159 | ||
44160 | COND_WXUSE_EXPAT_BUILTIN="#" | |
44161 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
44162 | COND_WXUSE_EXPAT_BUILTIN="" | |
44163 | fi | |
44164 | ||
44165 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
44166 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
44167 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
44168 | fi | |
44169 | ||
44170 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
44171 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
44172 | COND_WXUSE_LIBPNG_BUILTIN="" | |
44173 | fi | |
44174 | ||
44175 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
44176 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
44177 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
44178 | fi | |
44179 | ||
44180 | COND_WXUSE_ODBC_BUILTIN="#" | |
44181 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
44182 | COND_WXUSE_ODBC_BUILTIN="" | |
44183 | fi | |
44184 | ||
44185 | COND_WXUSE_REGEX_BUILTIN="#" | |
44186 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
44187 | COND_WXUSE_REGEX_BUILTIN="" | |
44188 | fi | |
44189 | ||
44190 | COND_WXUSE_ZLIB_BUILTIN="#" | |
44191 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
44192 | COND_WXUSE_ZLIB_BUILTIN="" | |
44193 | fi | |
44194 | ||
44195 | ||
44196 | ||
2057db16 VS |
44197 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
44198 | { { 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 | |
44199 | 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;} | |
44200 | { (exit 1); exit 1; }; } | |
44201 | fi | |
44202 | ||
a848cd7e | 44203 | |
fb00f58d JS |
44204 | if test "$wxUSE_WINE" = "yes"; then |
44205 | RESCOMP=wrc | |
44206 | fi | |
44207 | ||
ceec2216 RL |
44208 | if test "$wxUSE_SHARED" = "yes"; then |
44209 | ||
44210 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
44211 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
44212 | ||
5b674b9d DE |
44213 | case "${host}" in |
44214 | *-pc-os2_emx | *-pc-os2-emx ) | |
44215 | SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
44216 | SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
44217 | cp -p ${srcdir}/src/os2/dllnames.sh . | |
44218 | cp -p ${srcdir}/src/os2/dllar.sh . | |
44219 | ;; | |
44220 | esac | |
ceec2216 RL |
44221 | else |
44222 | ||
44223 | EXE_LINKER="$CXX -o" | |
44224 | ||
44225 | fi | |
69120ee4 VZ |
44226 | if test "$wxUSE_OMF" = "yes"; then |
44227 | case "${host}" in | |
44228 | *-pc-os2_emx | *-pc-os2-emx ) | |
44229 | LDFLAGS="$LDFLAGS -Zlinker /EXEPACK" | |
44230 | LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
44231 | WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
44232 | ;; | |
44233 | esac | |
44234 | fi | |
a848cd7e | 44235 | |
ddd14b14 RR |
44236 | GCC_PRAGMA_FLAGS="" |
44237 | PCH_FLAGS="" | |
87dd70d3 | 44238 | |
c08ebc62 | 44239 | if test $GCC_PCH = 1 ; then |
ddd14b14 | 44240 | PCH_FLAGS="-DWX_PRECOMP" |
87ae5038 RR |
44241 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
44242 | else | |
44243 | if test "$GCC" = yes; then | |
44244 | echo "$as_me:$LINENO: checking if this GCC version is >= 4.0 and needs -DNO_GCC_PRAGMA" >&5 | |
87dd70d3 | 44245 | echo $ECHO_N "checking if this GCC version is >= 4.0 and needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 |
87ae5038 | 44246 | cat >conftest.$ac_ext <<_ACEOF |
87dd70d3 RR |
44247 | /* confdefs.h. */ |
44248 | _ACEOF | |
44249 | cat confdefs.h >>conftest.$ac_ext | |
44250 | cat >>conftest.$ac_ext <<_ACEOF | |
44251 | /* end confdefs.h. */ | |
44252 | ||
44253 | int | |
44254 | main () | |
44255 | { | |
44256 | #if (__GNUC__ < 4) | |
87ae5038 RR |
44257 | #error "Not GCC 4.0 or greater" |
44258 | #endif | |
87dd70d3 RR |
44259 | |
44260 | ; | |
44261 | return 0; | |
44262 | } | |
44263 | _ACEOF | |
44264 | rm -f conftest.$ac_objext | |
44265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
44266 | (eval $ac_compile) 2>conftest.er1 | |
44267 | ac_status=$? | |
44268 | grep -v '^ *+' conftest.er1 >conftest.err | |
44269 | rm -f conftest.er1 | |
44270 | cat conftest.err >&5 | |
44271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44272 | (exit $ac_status); } && | |
44273 | { ac_try='test -z "$ac_c_werror_flag" | |
44274 | || test ! -s conftest.err' | |
44275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
44276 | (eval $ac_try) 2>&5 | |
44277 | ac_status=$? | |
44278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44279 | (exit $ac_status); }; } && | |
44280 | { ac_try='test -s conftest.$ac_objext' | |
44281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
44282 | (eval $ac_try) 2>&5 | |
44283 | ac_status=$? | |
44284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44285 | (exit $ac_status); }; }; then | |
44286 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" | |
87ae5038 | 44287 | echo "$as_me:$LINENO: result: yes" >&5 |
87dd70d3 RR |
44288 | echo "${ECHO_T}yes" >&6 |
44289 | else | |
44290 | echo "$as_me: failed program was:" >&5 | |
44291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44292 | ||
44293 | echo "$as_me:$LINENO: result: no" >&5 | |
44294 | echo "${ECHO_T}no" >&6 | |
87ae5038 RR |
44295 | case "${host}" in |
44296 | powerpc-*-darwin* ) | |
44297 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" | |
44298 | ;; | |
44299 | *-*-mingw32* ) | |
44300 | if test "$wxUSE_STL" = "yes" -o \ | |
ddd14b14 RR |
44301 | "$wxUSE_NO_EXCEPTIONS" != "yes" -o \ |
44302 | "$wxUSE_NO_RTTI" != "yes"; then | |
87ae5038 | 44303 | echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5 |
ddd14b14 | 44304 | echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 |
87ae5038 | 44305 | cat >conftest.$ac_ext <<_ACEOF |
ddd14b14 RR |
44306 | /* confdefs.h. */ |
44307 | _ACEOF | |
44308 | cat confdefs.h >>conftest.$ac_ext | |
44309 | cat >>conftest.$ac_ext <<_ACEOF | |
44310 | /* end confdefs.h. */ | |
44311 | ||
44312 | int | |
44313 | main () | |
44314 | { | |
44315 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) | |
87ae5038 RR |
44316 | #error "Not GCC 3.2 or greater" |
44317 | #endif | |
ddd14b14 RR |
44318 | |
44319 | ; | |
44320 | return 0; | |
44321 | } | |
44322 | _ACEOF | |
44323 | rm -f conftest.$ac_objext | |
44324 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
44325 | (eval $ac_compile) 2>conftest.er1 | |
44326 | ac_status=$? | |
44327 | grep -v '^ *+' conftest.er1 >conftest.err | |
44328 | rm -f conftest.er1 | |
44329 | cat conftest.err >&5 | |
44330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44331 | (exit $ac_status); } && | |
44332 | { ac_try='test -z "$ac_c_werror_flag" | |
44333 | || test ! -s conftest.err' | |
44334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
44335 | (eval $ac_try) 2>&5 | |
44336 | ac_status=$? | |
44337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44338 | (exit $ac_status); }; } && | |
44339 | { ac_try='test -s conftest.$ac_objext' | |
44340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
44341 | (eval $ac_try) 2>&5 | |
44342 | ac_status=$? | |
44343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44344 | (exit $ac_status); }; }; then | |
44345 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" | |
87ae5038 | 44346 | echo "$as_me:$LINENO: result: yes" >&5 |
ddd14b14 RR |
44347 | echo "${ECHO_T}yes" >&6 |
44348 | else | |
44349 | echo "$as_me: failed program was:" >&5 | |
44350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44351 | ||
44352 | echo "$as_me:$LINENO: result: no" >&5 | |
44353 | echo "${ECHO_T}no" >&6 | |
3314e67b | 44354 | fi |
ddd14b14 | 44355 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
87ae5038 RR |
44356 | fi |
44357 | ;; | |
44358 | *-pc-os2_emx | *-pc-os2-emx ) | |
44359 | if test "$wxUSE_STL" = "yes"; then | |
44360 | echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5 | |
ddd14b14 | 44361 | echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 |
87ae5038 | 44362 | cat >conftest.$ac_ext <<_ACEOF |
ddd14b14 RR |
44363 | /* confdefs.h. */ |
44364 | _ACEOF | |
44365 | cat confdefs.h >>conftest.$ac_ext | |
44366 | cat >>conftest.$ac_ext <<_ACEOF | |
44367 | /* end confdefs.h. */ | |
44368 | ||
44369 | int | |
44370 | main () | |
44371 | { | |
44372 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) | |
87ae5038 RR |
44373 | #error "Not GCC 3.2 or greater" |
44374 | #endif | |
ddd14b14 RR |
44375 | |
44376 | ; | |
44377 | return 0; | |
44378 | } | |
44379 | _ACEOF | |
44380 | rm -f conftest.$ac_objext | |
44381 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
44382 | (eval $ac_compile) 2>conftest.er1 | |
44383 | ac_status=$? | |
44384 | grep -v '^ *+' conftest.er1 >conftest.err | |
44385 | rm -f conftest.er1 | |
44386 | cat conftest.err >&5 | |
44387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44388 | (exit $ac_status); } && | |
44389 | { ac_try='test -z "$ac_c_werror_flag" | |
44390 | || test ! -s conftest.err' | |
44391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
44392 | (eval $ac_try) 2>&5 | |
44393 | ac_status=$? | |
44394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44395 | (exit $ac_status); }; } && | |
44396 | { ac_try='test -s conftest.$ac_objext' | |
44397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
44398 | (eval $ac_try) 2>&5 | |
44399 | ac_status=$? | |
44400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44401 | (exit $ac_status); }; }; then | |
44402 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" | |
87ae5038 | 44403 | echo "$as_me:$LINENO: result: yes" >&5 |
ddd14b14 RR |
44404 | echo "${ECHO_T}yes" >&6 |
44405 | else | |
44406 | echo "$as_me: failed program was:" >&5 | |
44407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bea8e651 | 44408 | |
ddd14b14 RR |
44409 | echo "$as_me:$LINENO: result: no" >&5 |
44410 | echo "${ECHO_T}no" >&6 | |
44411 | fi | |
44412 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
87ae5038 RR |
44413 | fi |
44414 | ;; | |
44415 | esac | |
44416 | ||
44417 | fi | |
44418 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
44419 | fi | |
ddd14b14 RR |
44420 | fi |
44421 | CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS" | |
a848cd7e SC |
44422 | |
44423 | ||
44424 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
44425 | ||
44426 | ||
44427 | ||
44428 | ||
44429 | ||
44430 | ||
44431 | ||
44432 | ||
44433 | ||
44434 | ||
44435 | ||
44436 | ||
44437 | ||
44438 | ||
44439 | ||
44440 | ||
44441 | ||
44442 | ||
44443 | ||
44444 | ||
44445 | ||
44446 | ||
44447 | ||
44448 | ||
44449 | ||
44450 | ||
44451 | ||
44452 | ||
44453 | ||
44454 | ||
44455 | ||
44456 | ||
44457 | ||
44458 | ||
44459 | ||
44460 | ||
44461 | ||
44462 | ||
44463 | ||
44464 | ||
44465 | ||
44466 | ||
a848cd7e SC |
44467 | |
44468 | ||
44469 | ||
44470 | ||
44471 | ||
44472 | ||
44473 | ||
44474 | ||
44475 | ||
44476 | ||
44477 | ||
44478 | ||
44479 | ||
44480 | ||
44481 | ||
44482 | ||
44483 | ||
44484 | ||
ddd14b14 | 44485 | |
a848cd7e SC |
44486 | |
44487 | ||
44488 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
44489 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 44490 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
44491 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
44492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | else | |
44494 | cat >conftest.make <<\_ACEOF | |
44495 | all: | |
44496 | @echo 'ac_maketemp="$(MAKE)"' | |
44497 | _ACEOF | |
44498 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
44499 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
44500 | if test -n "$ac_maketemp"; then | |
44501 | eval ac_cv_prog_make_${ac_make}_set=yes | |
44502 | else | |
44503 | eval ac_cv_prog_make_${ac_make}_set=no | |
44504 | fi | |
44505 | rm -f conftest.make | |
44506 | fi | |
44507 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
44508 | echo "$as_me:$LINENO: result: yes" >&5 | |
44509 | echo "${ECHO_T}yes" >&6 | |
44510 | SET_MAKE= | |
44511 | else | |
44512 | echo "$as_me:$LINENO: result: no" >&5 | |
44513 | echo "${ECHO_T}no" >&6 | |
44514 | SET_MAKE="MAKE=${MAKE-make}" | |
44515 | fi | |
44516 | ||
44517 | ||
a848cd7e | 44518 | |
ceec2216 RL |
44519 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
44520 | ||
a848cd7e | 44521 | |
ceec2216 | 44522 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 44523 | |
a848cd7e | 44524 | |
ceec2216 | 44525 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 44526 | |
ceec2216 RL |
44527 | |
44528 | ac_config_files="$ac_config_files version-script Makefile" | |
44529 | ||
44530 | ||
44531 | ac_config_commands="$ac_config_commands wx-config | |
44532 | " | |
a848cd7e SC |
44533 | |
44534 | ||
9103d280 RL |
44535 | |
44536 | ||
a848cd7e SC |
44537 | if test "$wxUSE_GUI" = "yes"; then |
44538 | SUBDIRS="samples demos utils contrib" | |
44539 | else SUBDIRS="samples utils" | |
44540 | fi | |
44541 | ||
44542 | ||
44543 | ||
44544 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
44545 | if test "${with_cppunit_prefix+set}" = set; then | |
44546 | withval="$with_cppunit_prefix" | |
44547 | cppunit_config_prefix="$withval" | |
44548 | else | |
44549 | cppunit_config_prefix="" | |
44550 | fi; | |
44551 | ||
44552 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
44553 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
44554 | withval="$with_cppunit_exec_prefix" | |
44555 | cppunit_config_exec_prefix="$withval" | |
44556 | else | |
44557 | cppunit_config_exec_prefix="" | |
44558 | fi; | |
44559 | ||
44560 | if test x$cppunit_config_exec_prefix != x ; then | |
44561 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
44562 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
44563 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
44564 | fi | |
44565 | fi | |
44566 | if test x$cppunit_config_prefix != x ; then | |
44567 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
44568 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
44569 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
44570 | fi | |
44571 | fi | |
44572 | ||
44573 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
44574 | set dummy cppunit-config; ac_word=$2 | |
44575 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
44576 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
44577 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
44578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44579 | else | |
44580 | case $CPPUNIT_CONFIG in | |
44581 | [\\/]* | ?:[\\/]*) | |
44582 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
44583 | ;; | |
44584 | *) | |
44585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44586 | for as_dir in $PATH | |
44587 | do | |
44588 | IFS=$as_save_IFS | |
44589 | test -z "$as_dir" && as_dir=. | |
44590 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44591 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
44592 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
44593 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
44594 | break 2 | |
44595 | fi | |
44596 | done | |
44597 | done | |
44598 | ||
44599 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
44600 | ;; | |
44601 | esac | |
44602 | fi | |
44603 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
44604 | ||
44605 | if test -n "$CPPUNIT_CONFIG"; then | |
44606 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
44607 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
44608 | else | |
44609 | echo "$as_me:$LINENO: result: no" >&5 | |
44610 | echo "${ECHO_T}no" >&6 | |
44611 | fi | |
44612 | ||
44613 | cppunit_version_min=1.8.0 | |
44614 | ||
44615 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
44616 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
44617 | no_cppunit="" | |
44618 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
44619 | no_cppunit=yes | |
44620 | else | |
44621 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
44622 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
44623 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
44624 | ||
44625 | cppunit_major_version=`echo $cppunit_version | \ | |
44626 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
44627 | cppunit_minor_version=`echo $cppunit_version | \ | |
44628 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
44629 | cppunit_micro_version=`echo $cppunit_version | \ | |
44630 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
44631 | ||
44632 | cppunit_major_min=`echo $cppunit_version_min | \ | |
44633 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
44634 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
44635 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
44636 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
44637 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
44638 | ||
44639 | cppunit_version_proper=`expr \ | |
44640 | $cppunit_major_version \> $cppunit_major_min \| \ | |
44641 | $cppunit_major_version \= $cppunit_major_min \& \ | |
44642 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
44643 | $cppunit_major_version \= $cppunit_major_min \& \ | |
44644 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
44645 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
44646 | ||
44647 | if test "$cppunit_version_proper" = "1" ; then | |
44648 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
44649 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
44650 | else | |
44651 | echo "$as_me:$LINENO: result: no" >&5 | |
44652 | echo "${ECHO_T}no" >&6 | |
44653 | no_cppunit=yes | |
44654 | fi | |
44655 | fi | |
44656 | ||
44657 | if test "x$no_cppunit" = x ; then | |
c2218763 | 44658 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
44659 | else |
44660 | CPPUNIT_CFLAGS="" | |
44661 | CPPUNIT_LIBS="" | |
c2218763 | 44662 | : |
a848cd7e SC |
44663 | fi |
44664 | ||
44665 | ||
44666 | ||
44667 | ||
44668 | ||
44669 | for subdir in `echo $SUBDIRS`; do | |
44670 | if test -d ${srcdir}/${subdir} ; then | |
44671 | if test "$wxUSE_GUI" = "yes"; then | |
44672 | if test ${subdir} = "samples"; then | |
44673 | makefiles="samples/Makefile.in $makefiles" | |
44674 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
44675 | if test -d $srcdir/samples/$sample; then | |
44676 | makefiles="samples/$sample/Makefile.in $makefiles" | |
44677 | fi | |
44678 | done | |
9c112555 MW |
44679 | else |
44680 | disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`; | |
44681 | eval "disabled=\$$disabled_var" | |
44682 | disabled=/`echo X $disabled | sed 's@ @/|/@g'`/ | |
44683 | makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"` | |
a848cd7e SC |
44684 | fi |
44685 | else if test ${subdir} = "samples"; then | |
44686 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
44687 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
44688 | makefiles="" |
44689 | for util in HelpGen tex2rtf ; do | |
44690 | if test -d $srcdir/utils/$util ; then | |
44691 | makefiles="utils/$util/Makefile.in \ | |
44692 | utils/$util/src/Makefile.in \ | |
44693 | $makefiles" | |
44694 | fi | |
44695 | done | |
a848cd7e SC |
44696 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
44697 | fi | |
44698 | fi | |
44699 | ||
44700 | for mkin in $makefiles ; do | |
44701 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
44702 | ac_config_files="$ac_config_files $mk" | |
44703 | ||
44704 | done | |
44705 | fi | |
44706 | done | |
44707 | ||
44708 | ||
44709 | cat >confcache <<\_ACEOF | |
44710 | # This file is a shell script that caches the results of configure | |
44711 | # tests run on this system so they can be shared between configure | |
44712 | # scripts and configure runs, see configure's option --config-cache. | |
44713 | # It is not useful on other systems. If it contains results you don't | |
44714 | # want to keep, you may remove or edit it. | |
44715 | # | |
44716 | # config.status only pays attention to the cache file if you give it | |
44717 | # the --recheck option to rerun configure. | |
44718 | # | |
44719 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
44720 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
44721 | # following values. | |
44722 | ||
44723 | _ACEOF | |
44724 | ||
44725 | # The following way of writing the cache mishandles newlines in values, | |
44726 | # but we know of no workaround that is simple, portable, and efficient. | |
44727 | # So, don't put newlines in cache variables' values. | |
44728 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
44729 | # and sets the high bit in the cache file unless we assign to the vars. | |
44730 | { | |
44731 | (set) 2>&1 | | |
44732 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
44733 | *ac_space=\ *) | |
44734 | # `set' does not quote correctly, so add quotes (double-quote | |
44735 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
44736 | sed -n \ | |
ac1cb8d3 VS |
44737 | "s/'/'\\\\''/g; |
44738 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
44739 | ;; |
44740 | *) | |
44741 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
44742 | sed -n \ | |
ac1cb8d3 | 44743 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
44744 | ;; |
44745 | esac; | |
44746 | } | | |
44747 | sed ' | |
44748 | t clear | |
44749 | : clear | |
44750 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
44751 | t end | |
44752 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
44753 | : end' >>confcache | |
44754 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
44755 | if test -w $cache_file; then | |
44756 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
44757 | cat confcache >$cache_file | |
44758 | else | |
44759 | echo "not updating unwritable cache $cache_file" | |
44760 | fi | |
44761 | fi | |
44762 | rm -f confcache | |
44763 | ||
44764 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
44765 | # Let make expand exec_prefix. | |
44766 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
44767 | ||
44768 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
44769 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
44770 | # trailing colons and then remove the whole line if VPATH becomes empty | |
44771 | # (actually we leave an empty line to preserve line numbers). | |
44772 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 44773 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
44774 | s/:*\$(srcdir):*/:/; |
44775 | s/:*\${srcdir}:*/:/; | |
44776 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 44777 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 44778 | s/:*$//; |
ac1cb8d3 | 44779 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
44780 | }' |
44781 | fi | |
44782 | ||
44783 | DEFS=-DHAVE_CONFIG_H | |
44784 | ||
44785 | ac_libobjs= | |
44786 | ac_ltlibobjs= | |
44787 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
44788 | # 1. Remove the extension, and $U if already installed. | |
44789 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 44790 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
44791 | # 2. Add them. |
44792 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
44793 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
44794 | done | |
44795 | LIBOBJS=$ac_libobjs | |
44796 | ||
44797 | LTLIBOBJS=$ac_ltlibobjs | |
44798 | ||
44799 | ||
44800 | ||
44801 | : ${CONFIG_STATUS=./config.status} | |
44802 | ac_clean_files_save=$ac_clean_files | |
44803 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
44804 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
44805 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
44806 | cat >$CONFIG_STATUS <<_ACEOF | |
44807 | #! $SHELL | |
44808 | # Generated by $as_me. | |
44809 | # Run this file to recreate the current configuration. | |
44810 | # Compiler output produced by configure, useful for debugging | |
44811 | # configure, is in config.log if it exists. | |
44812 | ||
44813 | debug=false | |
44814 | ac_cs_recheck=false | |
44815 | ac_cs_silent=false | |
44816 | SHELL=\${CONFIG_SHELL-$SHELL} | |
44817 | _ACEOF | |
44818 | ||
44819 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44820 | ## --------------------- ## | |
44821 | ## M4sh Initialization. ## | |
44822 | ## --------------------- ## | |
44823 | ||
44824 | # Be Bourne compatible | |
44825 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
44826 | emulate sh | |
44827 | NULLCMD=: | |
44828 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
44829 | # is contrary to our usage. Disable this feature. | |
44830 | alias -g '${1+"$@"}'='"$@"' | |
44831 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
44832 | set -o posix | |
44833 | fi | |
ac1cb8d3 | 44834 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
44835 | |
44836 | # Support unset when possible. | |
ac1cb8d3 | 44837 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
44838 | as_unset=unset |
44839 | else | |
44840 | as_unset=false | |
44841 | fi | |
44842 | ||
44843 | ||
44844 | # Work around bugs in pre-3.0 UWIN ksh. | |
44845 | $as_unset ENV MAIL MAILPATH | |
44846 | PS1='$ ' | |
44847 | PS2='> ' | |
44848 | PS4='+ ' | |
44849 | ||
44850 | # NLS nuisances. | |
44851 | for as_var in \ | |
44852 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
44853 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
44854 | LC_TELEPHONE LC_TIME | |
44855 | do | |
ac1cb8d3 | 44856 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
44857 | eval $as_var=C; export $as_var |
44858 | else | |
44859 | $as_unset $as_var | |
44860 | fi | |
44861 | done | |
44862 | ||
44863 | # Required to use basename. | |
44864 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
44865 | as_expr=expr | |
44866 | else | |
44867 | as_expr=false | |
44868 | fi | |
44869 | ||
44870 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
44871 | as_basename=basename | |
44872 | else | |
44873 | as_basename=false | |
44874 | fi | |
44875 | ||
44876 | ||
44877 | # Name of the executable. | |
44878 | as_me=`$as_basename "$0" || | |
44879 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
44880 | X"$0" : 'X\(//\)$' \| \ | |
44881 | X"$0" : 'X\(/\)$' \| \ | |
44882 | . : '\(.\)' 2>/dev/null || | |
44883 | echo X/"$0" | | |
44884 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
44885 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
44886 | /^X\/\(\/\).*/{ s//\1/; q; } | |
44887 | s/.*/./; q'` | |
44888 | ||
44889 | ||
44890 | # PATH needs CR, and LINENO needs CR and PATH. | |
44891 | # Avoid depending upon Character Ranges. | |
44892 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
44893 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
44894 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
44895 | as_cr_digits='0123456789' | |
44896 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
44897 | ||
44898 | # The user is always right. | |
44899 | if test "${PATH_SEPARATOR+set}" != set; then | |
44900 | echo "#! /bin/sh" >conf$$.sh | |
44901 | echo "exit 0" >>conf$$.sh | |
44902 | chmod +x conf$$.sh | |
44903 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
44904 | PATH_SEPARATOR=';' | |
44905 | else | |
44906 | PATH_SEPARATOR=: | |
44907 | fi | |
44908 | rm -f conf$$.sh | |
44909 | fi | |
44910 | ||
44911 | ||
44912 | as_lineno_1=$LINENO | |
44913 | as_lineno_2=$LINENO | |
44914 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
44915 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
44916 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
44917 | # Find who we are. Look in the path if we contain no path at all | |
44918 | # relative or not. | |
44919 | case $0 in | |
44920 | *[\\/]* ) as_myself=$0 ;; | |
44921 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44922 | for as_dir in $PATH | |
44923 | do | |
44924 | IFS=$as_save_IFS | |
44925 | test -z "$as_dir" && as_dir=. | |
44926 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
44927 | done | |
44928 | ||
44929 | ;; | |
44930 | esac | |
44931 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
44932 | # in which case we are not to be found in the path. | |
44933 | if test "x$as_myself" = x; then | |
44934 | as_myself=$0 | |
44935 | fi | |
44936 | if test ! -f "$as_myself"; then | |
44937 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
44938 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
44939 | { (exit 1); exit 1; }; } | |
44940 | fi | |
44941 | case $CONFIG_SHELL in | |
44942 | '') | |
44943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44944 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
44945 | do | |
44946 | IFS=$as_save_IFS | |
44947 | test -z "$as_dir" && as_dir=. | |
44948 | for as_base in sh bash ksh sh5; do | |
44949 | case $as_dir in | |
44950 | /*) | |
44951 | if ("$as_dir/$as_base" -c ' | |
44952 | as_lineno_1=$LINENO | |
44953 | as_lineno_2=$LINENO | |
44954 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
44955 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
44956 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
44957 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
44958 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
44959 | CONFIG_SHELL=$as_dir/$as_base | |
44960 | export CONFIG_SHELL | |
44961 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
44962 | fi;; | |
44963 | esac | |
44964 | done | |
44965 | done | |
44966 | ;; | |
44967 | esac | |
44968 | ||
44969 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
44970 | # uniformly replaced by the line number. The first 'sed' inserts a | |
44971 | # line-number line before each line; the second 'sed' does the real | |
44972 | # work. The second script uses 'N' to pair each line-number line | |
44973 | # with the numbered line, and appends trailing '-' during | |
44974 | # substitution so that $LINENO is not a special case at line end. | |
44975 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
44976 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
44977 | sed '=' <$as_myself | | |
44978 | sed ' | |
44979 | N | |
44980 | s,$,-, | |
44981 | : loop | |
44982 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
44983 | t loop | |
44984 | s,-$,, | |
44985 | s,^['$as_cr_digits']*\n,, | |
44986 | ' >$as_me.lineno && | |
44987 | chmod +x $as_me.lineno || | |
44988 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
44989 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
44990 | { (exit 1); exit 1; }; } | |
44991 | ||
44992 | # Don't try to exec as it changes $[0], causing all sort of problems | |
44993 | # (the dirname of $[0] is not the place where we might find the | |
44994 | # original and so on. Autoconf is especially sensible to this). | |
44995 | . ./$as_me.lineno | |
44996 | # Exit status is that of the last command. | |
44997 | exit | |
44998 | } | |
44999 | ||
45000 | ||
45001 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
45002 | *c*,-n*) ECHO_N= ECHO_C=' | |
45003 | ' ECHO_T=' ' ;; | |
45004 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
45005 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
45006 | esac | |
45007 | ||
45008 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
45009 | as_expr=expr | |
45010 | else | |
45011 | as_expr=false | |
45012 | fi | |
45013 | ||
45014 | rm -f conf$$ conf$$.exe conf$$.file | |
45015 | echo >conf$$.file | |
45016 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
45017 | # We could just check for DJGPP; but this test a) works b) is more generic | |
45018 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
45019 | if test -f conf$$.exe; then | |
45020 | # Don't use ln at all; we don't have any links | |
45021 | as_ln_s='cp -p' | |
45022 | else | |
45023 | as_ln_s='ln -s' | |
45024 | fi | |
45025 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
45026 | as_ln_s=ln | |
45027 | else | |
45028 | as_ln_s='cp -p' | |
45029 | fi | |
45030 | rm -f conf$$ conf$$.exe conf$$.file | |
45031 | ||
45032 | if mkdir -p . 2>/dev/null; then | |
45033 | as_mkdir_p=: | |
45034 | else | |
ac1cb8d3 | 45035 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
45036 | as_mkdir_p=false |
45037 | fi | |
45038 | ||
45039 | as_executable_p="test -f" | |
45040 | ||
45041 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 45042 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
45043 | |
45044 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 45045 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
45046 | |
45047 | ||
45048 | # IFS | |
45049 | # We need space, tab and new line, in precisely that order. | |
45050 | as_nl=' | |
45051 | ' | |
45052 | IFS=" $as_nl" | |
45053 | ||
45054 | # CDPATH. | |
45055 | $as_unset CDPATH | |
45056 | ||
45057 | exec 6>&1 | |
45058 | ||
45059 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
45060 | # report actual input values of CONFIG_FILES etc. instead of their | |
45061 | # values after options handling. Logging --version etc. is OK. | |
45062 | exec 5>>config.log | |
45063 | { | |
45064 | echo | |
45065 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
45066 | ## Running $as_me. ## | |
45067 | _ASBOX | |
45068 | } >&5 | |
45069 | cat >&5 <<_CSEOF | |
45070 | ||
d230c01b | 45071 | This file was extended by wxWidgets $as_me 2.6.1, which was |
ac1cb8d3 | 45072 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
45073 | |
45074 | CONFIG_FILES = $CONFIG_FILES | |
45075 | CONFIG_HEADERS = $CONFIG_HEADERS | |
45076 | CONFIG_LINKS = $CONFIG_LINKS | |
45077 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
45078 | $ $0 $@ | |
45079 | ||
45080 | _CSEOF | |
45081 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
45082 | echo >&5 | |
45083 | _ACEOF | |
45084 | ||
45085 | # Files that config.status was made for. | |
45086 | if test -n "$ac_config_files"; then | |
45087 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
45088 | fi | |
45089 | ||
45090 | if test -n "$ac_config_headers"; then | |
45091 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
45092 | fi | |
45093 | ||
45094 | if test -n "$ac_config_links"; then | |
45095 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
45096 | fi | |
45097 | ||
45098 | if test -n "$ac_config_commands"; then | |
45099 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
45100 | fi | |
45101 | ||
45102 | cat >>$CONFIG_STATUS <<\_ACEOF | |
45103 | ||
45104 | ac_cs_usage="\ | |
45105 | \`$as_me' instantiates files from templates according to the | |
45106 | current configuration. | |
45107 | ||
45108 | Usage: $0 [OPTIONS] [FILE]... | |
45109 | ||
45110 | -h, --help print this help, then exit | |
45111 | -V, --version print version number, then exit | |
45112 | -q, --quiet do not print progress messages | |
45113 | -d, --debug don't remove temporary files | |
45114 | --recheck update $as_me by reconfiguring in the same conditions | |
45115 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 45116 | instantiate the configuration file FILE |
a848cd7e | 45117 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 45118 | instantiate the configuration header FILE |
a848cd7e SC |
45119 | |
45120 | Configuration files: | |
45121 | $config_files | |
45122 | ||
45123 | Configuration headers: | |
45124 | $config_headers | |
45125 | ||
45126 | Configuration commands: | |
45127 | $config_commands | |
45128 | ||
45129 | Report bugs to <bug-autoconf@gnu.org>." | |
45130 | _ACEOF | |
45131 | ||
45132 | cat >>$CONFIG_STATUS <<_ACEOF | |
45133 | ac_cs_version="\\ | |
d230c01b | 45134 | wxWidgets config.status 2.6.1 |
ac1cb8d3 | 45135 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
45136 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
45137 | ||
ac1cb8d3 | 45138 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
45139 | This config.status script is free software; the Free Software Foundation |
45140 | gives unlimited permission to copy, distribute and modify it." | |
45141 | srcdir=$srcdir | |
45142 | INSTALL="$INSTALL" | |
45143 | _ACEOF | |
45144 | ||
45145 | cat >>$CONFIG_STATUS <<\_ACEOF | |
45146 | # If no file are specified by the user, then we need to provide default | |
45147 | # value. By we need to know if files were specified by the user. | |
45148 | ac_need_defaults=: | |
45149 | while test $# != 0 | |
45150 | do | |
45151 | case $1 in | |
45152 | --*=*) | |
45153 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
45154 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
45155 | ac_shift=: | |
45156 | ;; | |
45157 | -*) | |
45158 | ac_option=$1 | |
45159 | ac_optarg=$2 | |
45160 | ac_shift=shift | |
45161 | ;; | |
45162 | *) # This is not an option, so the user has probably given explicit | |
45163 | # arguments. | |
45164 | ac_option=$1 | |
45165 | ac_need_defaults=false;; | |
45166 | esac | |
45167 | ||
45168 | case $ac_option in | |
45169 | # Handling of the options. | |
45170 | _ACEOF | |
45171 | cat >>$CONFIG_STATUS <<\_ACEOF | |
45172 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
45173 | ac_cs_recheck=: ;; | |
45174 | --version | --vers* | -V ) | |
45175 | echo "$ac_cs_version"; exit 0 ;; | |
45176 | --he | --h) | |
45177 | # Conflict between --help and --header | |
45178 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
45179 | Try \`$0 --help' for more information." >&5 | |
45180 | echo "$as_me: error: ambiguous option: $1 | |
45181 | Try \`$0 --help' for more information." >&2;} | |
45182 | { (exit 1); exit 1; }; };; | |
45183 | --help | --hel | -h ) | |
45184 | echo "$ac_cs_usage"; exit 0 ;; | |
45185 | --debug | --d* | -d ) | |
45186 | debug=: ;; | |
45187 | --file | --fil | --fi | --f ) | |
45188 | $ac_shift | |
45189 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
45190 | ac_need_defaults=false;; | |
45191 | --header | --heade | --head | --hea ) | |
45192 | $ac_shift | |
45193 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
45194 | ac_need_defaults=false;; | |
45195 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
45196 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
45197 | ac_cs_silent=: ;; | |
45198 | ||
45199 | # This is an error. | |
45200 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
45201 | Try \`$0 --help' for more information." >&5 | |
45202 | echo "$as_me: error: unrecognized option: $1 | |
45203 | Try \`$0 --help' for more information." >&2;} | |
45204 | { (exit 1); exit 1; }; } ;; | |
45205 | ||
45206 | *) ac_config_targets="$ac_config_targets $1" ;; | |
45207 | ||
45208 | esac | |
45209 | shift | |
45210 | done | |
45211 | ||
45212 | ac_configure_extra_args= | |
45213 | ||
45214 | if $ac_cs_silent; then | |
45215 | exec 6>/dev/null | |
45216 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
45217 | fi | |
45218 | ||
45219 | _ACEOF | |
45220 | cat >>$CONFIG_STATUS <<_ACEOF | |
45221 | if \$ac_cs_recheck; then | |
45222 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
45223 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
45224 | fi | |
45225 | ||
45226 | _ACEOF | |
45227 | ||
45228 | cat >>$CONFIG_STATUS <<_ACEOF | |
45229 | # | |
45230 | # INIT-COMMANDS section. | |
45231 | # | |
45232 | ||
ceec2216 RL |
45233 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
45234 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
45235 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
45236 | LN_S="${LN_S}" | |
a848cd7e SC |
45237 | |
45238 | ||
45239 | _ACEOF | |
45240 | ||
45241 | ||
45242 | ||
45243 | cat >>$CONFIG_STATUS <<\_ACEOF | |
45244 | for ac_config_target in $ac_config_targets | |
45245 | do | |
45246 | case "$ac_config_target" in | |
45247 | # Handling of arguments. | |
ceec2216 RL |
45248 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
45249 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
45250 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
45251 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
45252 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
ceec2216 RL |
45253 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
45254 | "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 |
45255 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
45256 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
45257 | { (exit 1); exit 1; }; };; | |
45258 | esac | |
45259 | done | |
45260 | ||
45261 | # If the user did not use the arguments to specify the items to instantiate, | |
45262 | # then the envvar interface is used. Set only those that are not. | |
45263 | # We use the long form for the default assignment because of an extremely | |
45264 | # bizarre bug on SunOS 4.1.3. | |
45265 | if $ac_need_defaults; then | |
45266 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
45267 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
45268 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
45269 | fi | |
45270 | ||
45271 | # Have a temporary directory for convenience. Make it in the build tree | |
45272 | # simply because there is no reason to put it here, and in addition, | |
45273 | # creating and moving files from /tmp can sometimes cause problems. | |
45274 | # Create a temporary directory, and hook for its removal unless debugging. | |
45275 | $debug || | |
45276 | { | |
45277 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
45278 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
45279 | } | |
45280 | ||
45281 | # Create a (secure) tmp directory for tmp files. | |
45282 | ||
45283 | { | |
45284 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
45285 | test -n "$tmp" && test -d "$tmp" | |
45286 | } || | |
45287 | { | |
45288 | tmp=./confstat$$-$RANDOM | |
45289 | (umask 077 && mkdir $tmp) | |
45290 | } || | |
45291 | { | |
45292 | echo "$me: cannot create a temporary directory in ." >&2 | |
45293 | { (exit 1); exit 1; } | |
45294 | } | |
45295 | ||
45296 | _ACEOF | |
45297 | ||
45298 | cat >>$CONFIG_STATUS <<_ACEOF | |
45299 | ||
45300 | # | |
45301 | # CONFIG_FILES section. | |
45302 | # | |
45303 | ||
45304 | # No need to generate the scripts if there are no CONFIG_FILES. | |
45305 | # This happens for instance when ./config.status config.h | |
45306 | if test -n "\$CONFIG_FILES"; then | |
45307 | # Protect against being on the right side of a sed subst in config.status. | |
45308 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
45309 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
45310 | s,@SHELL@,$SHELL,;t t | |
45311 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
45312 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
45313 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
45314 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
45315 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
45316 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
45317 | s,@exec_prefix@,$exec_prefix,;t t | |
45318 | s,@prefix@,$prefix,;t t | |
45319 | s,@program_transform_name@,$program_transform_name,;t t | |
45320 | s,@bindir@,$bindir,;t t | |
45321 | s,@sbindir@,$sbindir,;t t | |
45322 | s,@libexecdir@,$libexecdir,;t t | |
45323 | s,@datadir@,$datadir,;t t | |
45324 | s,@sysconfdir@,$sysconfdir,;t t | |
45325 | s,@sharedstatedir@,$sharedstatedir,;t t | |
45326 | s,@localstatedir@,$localstatedir,;t t | |
45327 | s,@libdir@,$libdir,;t t | |
45328 | s,@includedir@,$includedir,;t t | |
45329 | s,@oldincludedir@,$oldincludedir,;t t | |
45330 | s,@infodir@,$infodir,;t t | |
45331 | s,@mandir@,$mandir,;t t | |
45332 | s,@build_alias@,$build_alias,;t t | |
45333 | s,@host_alias@,$host_alias,;t t | |
45334 | s,@target_alias@,$target_alias,;t t | |
45335 | s,@DEFS@,$DEFS,;t t | |
45336 | s,@ECHO_C@,$ECHO_C,;t t | |
45337 | s,@ECHO_N@,$ECHO_N,;t t | |
45338 | s,@ECHO_T@,$ECHO_T,;t t | |
45339 | s,@LIBS@,$LIBS,;t t | |
45340 | s,@build@,$build,;t t | |
45341 | s,@build_cpu@,$build_cpu,;t t | |
45342 | s,@build_vendor@,$build_vendor,;t t | |
45343 | s,@build_os@,$build_os,;t t | |
45344 | s,@host@,$host,;t t | |
45345 | s,@host_cpu@,$host_cpu,;t t | |
45346 | s,@host_vendor@,$host_vendor,;t t | |
45347 | s,@host_os@,$host_os,;t t | |
45348 | s,@target@,$target,;t t | |
45349 | s,@target_cpu@,$target_cpu,;t t | |
45350 | s,@target_vendor@,$target_vendor,;t t | |
45351 | s,@target_os@,$target_os,;t t | |
45352 | s,@CC@,$CC,;t t | |
45353 | s,@CFLAGS@,$CFLAGS,;t t | |
45354 | s,@LDFLAGS@,$LDFLAGS,;t t | |
45355 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
45356 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
45357 | s,@EXEEXT@,$EXEEXT,;t t | |
45358 | s,@OBJEXT@,$OBJEXT,;t t | |
45359 | s,@CPP@,$CPP,;t t | |
45360 | s,@EGREP@,$EGREP,;t t | |
45361 | s,@CXX@,$CXX,;t t | |
45362 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
45363 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
45364 | s,@RANLIB@,$RANLIB,;t t | |
45365 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
45366 | s,@AR@,$AR,;t t | |
45367 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
45368 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
45369 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
45370 | s,@STRIP@,$STRIP,;t t | |
45371 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
45372 | s,@LN_S@,$LN_S,;t t | |
45373 | s,@CXXCPP@,$CXXCPP,;t t | |
45374 | s,@subdirs@,$subdirs,;t t | |
45375 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
45376 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
45377 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
45378 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
a848cd7e SC |
45379 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
45380 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
45381 | s,@X_LIBS@,$X_LIBS,;t t | |
45382 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
45383 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
45384 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
45385 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
45386 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
45387 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
45388 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
45389 | s,@RESCOMP@,$RESCOMP,;t t | |
45390 | s,@DEREZ@,$DEREZ,;t t | |
45391 | s,@SETFILE@,$SETFILE,;t t | |
45392 | s,@LIBICONV@,$LIBICONV,;t t | |
45393 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
45394 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
45395 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
45396 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
45397 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
45398 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
dae87f93 RN |
45399 | s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t |
45400 | s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t | |
45401 | s,@GST_INSPECT@,$GST_INSPECT,;t t | |
a848cd7e SC |
45402 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
45403 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
45404 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
45405 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
45406 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
45407 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
45408 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
45409 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
45410 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
45411 | s,@VENDOR@,$VENDOR,;t t | |
45412 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
45413 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
45414 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
45415 | s,@WXUNIV@,$WXUNIV,;t t |
45416 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
45417 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
45418 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
45419 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
45420 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
45421 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
45422 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
45423 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
45424 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
45425 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 45426 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
a848cd7e SC |
45427 | s,@UNICODE@,$UNICODE,;t t |
45428 | s,@BUILD@,$BUILD,;t t | |
45429 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
45430 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
45431 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
45432 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
45433 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
45434 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
45435 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
45436 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
45437 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
45438 | s,@SET_MAKE@,$SET_MAKE,;t t | |
45439 | s,@MAKE_SET@,$MAKE_SET,;t t | |
45440 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
45441 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
45442 | s,@NM@,$NM,;t t | |
45443 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
45444 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
45445 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
45446 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
45447 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
45448 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
45449 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
1e9e8aba | 45450 | s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t |
a848cd7e SC |
45451 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t |
45452 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
1e9e8aba | 45453 | s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t |
a848cd7e SC |
45454 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
45455 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
45456 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
45457 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
45458 | s,@LIBEXT@,$LIBEXT,;t t | |
45459 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
45460 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
45461 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t | |
45462 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
45463 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
45464 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
45465 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
45466 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
45467 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
45468 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
45469 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
45470 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
45471 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
45472 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
45473 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
45474 | s,@GCC_PCH@,$GCC_PCH,;t t | |
45475 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
45476 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
45477 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
45478 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
45479 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
45480 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
45481 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
45482 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
45483 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
45484 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
45485 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
45486 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
45487 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
45488 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
45489 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
45490 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
45491 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
45492 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
90970d69 | 45493 | 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 | 45494 | 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 | 45495 | 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 | 45496 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
ceec2216 | 45497 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
45498 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
45499 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
90970d69 | 45500 | 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 | 45501 | 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 | 45502 | 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 | 45503 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
ceec2216 | 45504 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
a848cd7e SC |
45505 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
45506 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
45507 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
45508 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
45509 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
45510 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
45511 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t | |
45512 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 45513 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
45514 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
45515 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
45516 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
fc480dc1 | 45517 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t |
1e9e8aba | 45518 | 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 |
45519 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
45520 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
45521 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
45522 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 45523 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
a848cd7e | 45524 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
83d8eb47 | 45525 | s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t |
a848cd7e SC |
45526 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t |
45527 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
45528 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
45529 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
45530 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
45531 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
45532 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
45533 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
ceec2216 RL |
45534 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
45535 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
45536 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
45537 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
45538 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
45539 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
45540 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
52ada004 | 45541 | s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
45542 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t |
45543 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
45544 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
45545 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
45546 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
45547 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
52ada004 | 45548 | s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t |
a30f955f | 45549 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 45550 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 45551 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e SC |
45552 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
45553 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
45554 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
45555 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t | |
45556 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t | |
45557 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
45558 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
45559 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
45560 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
45561 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
45562 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
45563 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
45564 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
45565 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
45566 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
45567 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t | |
45568 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
45569 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
45570 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
45571 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
45572 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e SC |
45573 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
45574 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
45575 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
45576 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
45577 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
45578 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
45579 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
45580 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
45581 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
45582 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
45583 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
45584 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
ceec2216 | 45585 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
ffa0583f | 45586 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t |
a848cd7e | 45587 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
0b78747f MW |
45588 | s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t |
45589 | s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t | |
a848cd7e SC |
45590 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
45591 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
45592 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
45593 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
0b78747f MW |
45594 | s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t |
45595 | s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t | |
a13a7f89 | 45596 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
a848cd7e | 45597 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
1e6eb025 | 45598 | s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t |
a848cd7e SC |
45599 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
45600 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
45601 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
45602 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
45603 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
45604 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
45605 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
45606 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
ceec2216 | 45607 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
45608 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
45609 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
45610 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t |
45611 | s,@USE_GUI@,$USE_GUI,;t t | |
45612 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
45613 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
45614 | s,@TOOLKIT@,$TOOLKIT,;t t | |
45615 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 45616 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 45617 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e SC |
45618 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t |
45619 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
a848cd7e | 45620 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
45621 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
45622 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
45623 | s,@WX_VERSION@,$WX_VERSION,;t t | |
45624 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
45625 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
45626 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
a848cd7e | 45627 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
a848cd7e SC |
45628 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t |
45629 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
45630 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
45631 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
ddd14b14 | 45632 | s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t |
a848cd7e SC |
45633 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
45634 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
ceec2216 | 45635 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 45636 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
45637 | s,@DISTDIR@,$DISTDIR,;t t |
45638 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
45639 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
45640 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
45641 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
45642 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
45643 | s,@RESFLAGS@,$RESFLAGS,;t t | |
45644 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
45645 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
45646 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
45647 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
45648 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
45649 | s,@MACSETFILE@,$MACSETFILE,;t t | |
45650 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
45651 | s,@GCC@,$GCC,;t t | |
a848cd7e | 45652 | s,@DLLTOOL@,$DLLTOOL,;t t |
a848cd7e SC |
45653 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
45654 | s,@LIBOBJS@,$LIBOBJS,;t t | |
45655 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
45656 | CEOF | |
45657 | ||
45658 | _ACEOF | |
45659 | ||
45660 | cat >>$CONFIG_STATUS <<\_ACEOF | |
45661 | # Split the substitutions into bite-sized pieces for seds with | |
45662 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
45663 | ac_max_sed_lines=48 | |
45664 | ac_sed_frag=1 # Number of current file. | |
45665 | ac_beg=1 # First line for current file. | |
45666 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
45667 | ac_more_lines=: | |
45668 | ac_sed_cmds= | |
45669 | while $ac_more_lines; do | |
45670 | if test $ac_beg -gt 1; then | |
45671 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
45672 | else | |
45673 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
45674 | fi | |
45675 | if test ! -s $tmp/subs.frag; then | |
45676 | ac_more_lines=false | |
45677 | else | |
45678 | # The purpose of the label and of the branching condition is to | |
45679 | # speed up the sed processing (if there are no `@' at all, there | |
45680 | # is no need to browse any of the substitutions). | |
45681 | # These are the two extra sed commands mentioned above. | |
45682 | (echo ':t | |
45683 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
45684 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 45685 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 45686 | else |
ac1cb8d3 | 45687 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
45688 | fi |
45689 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
45690 | ac_beg=$ac_end | |
45691 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
45692 | fi | |
45693 | done | |
45694 | if test -z "$ac_sed_cmds"; then | |
45695 | ac_sed_cmds=cat | |
45696 | fi | |
45697 | fi # test -n "$CONFIG_FILES" | |
45698 | ||
45699 | _ACEOF | |
45700 | cat >>$CONFIG_STATUS <<\_ACEOF | |
45701 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
45702 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
45703 | case $ac_file in | |
45704 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
45705 | cat >$tmp/stdin |
45706 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
45707 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 45708 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 45709 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
45710 | * ) ac_file_in=$ac_file.in ;; |
45711 | esac | |
45712 | ||
45713 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
45714 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
45715 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
45716 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
45717 | X"$ac_file" : 'X\(//\)$' \| \ | |
45718 | X"$ac_file" : 'X\(/\)' \| \ | |
45719 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
45720 | echo X"$ac_file" | |
45721 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
45722 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
45723 | /^X\(\/\/\)$/{ s//\1/; q; } | |
45724 | /^X\(\/\).*/{ s//\1/; q; } | |
45725 | s/.*/./; q'` | |
45726 | { if $as_mkdir_p; then | |
45727 | mkdir -p "$ac_dir" | |
45728 | else | |
45729 | as_dir="$ac_dir" | |
45730 | as_dirs= | |
45731 | while test ! -d "$as_dir"; do | |
45732 | as_dirs="$as_dir $as_dirs" | |
45733 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
45734 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
45735 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
45736 | X"$as_dir" : 'X\(//\)$' \| \ | |
45737 | X"$as_dir" : 'X\(/\)' \| \ | |
45738 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
45739 | echo X"$as_dir" | |
45740 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
45741 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
45742 | /^X\(\/\/\)$/{ s//\1/; q; } | |
45743 | /^X\(\/\).*/{ s//\1/; q; } | |
45744 | s/.*/./; q'` | |
45745 | done | |
45746 | test ! -n "$as_dirs" || mkdir $as_dirs | |
45747 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
45748 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
45749 | { (exit 1); exit 1; }; }; } | |
45750 | ||
45751 | ac_builddir=. | |
45752 | ||
45753 | if test "$ac_dir" != .; then | |
45754 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
45755 | # A "../" for each directory in $ac_dir_suffix. | |
45756 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
45757 | else | |
45758 | ac_dir_suffix= ac_top_builddir= | |
45759 | fi | |
45760 | ||
45761 | case $srcdir in | |
45762 | .) # No --srcdir option. We are building in place. | |
45763 | ac_srcdir=. | |
45764 | if test -z "$ac_top_builddir"; then | |
45765 | ac_top_srcdir=. | |
45766 | else | |
45767 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
45768 | fi ;; | |
45769 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
45770 | ac_srcdir=$srcdir$ac_dir_suffix; | |
45771 | ac_top_srcdir=$srcdir ;; | |
45772 | *) # Relative path. | |
45773 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
45774 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
45775 | esac | |
ac1cb8d3 VS |
45776 | |
45777 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
45778 | # the directories may not exist. | |
45779 | case `pwd` in | |
45780 | .) ac_abs_builddir="$ac_dir";; | |
45781 | *) | |
45782 | case "$ac_dir" in | |
45783 | .) ac_abs_builddir=`pwd`;; | |
45784 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
45785 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
45786 | esac;; | |
45787 | esac | |
45788 | case $ac_abs_builddir in | |
45789 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
45790 | *) | |
45791 | case ${ac_top_builddir}. in | |
45792 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
45793 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
45794 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
45795 | esac;; | |
45796 | esac | |
45797 | case $ac_abs_builddir in | |
45798 | .) ac_abs_srcdir=$ac_srcdir;; | |
45799 | *) | |
45800 | case $ac_srcdir in | |
45801 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
45802 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
45803 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
45804 | esac;; | |
45805 | esac | |
45806 | case $ac_abs_builddir in | |
45807 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
45808 | *) | |
45809 | case $ac_top_srcdir in | |
45810 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
45811 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
45812 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
45813 | esac;; | |
45814 | esac | |
a848cd7e SC |
45815 | |
45816 | ||
45817 | case $INSTALL in | |
45818 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
45819 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
45820 | esac | |
45821 | ||
ddd14b14 RR |
45822 | if test x"$ac_file" != x-; then |
45823 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
45824 | echo "$as_me: creating $ac_file" >&6;} | |
45825 | rm -f "$ac_file" | |
45826 | fi | |
a848cd7e SC |
45827 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
45828 | # use $as_me), people would be surprised to read: | |
45829 | # /* config.h. Generated by config.status. */ | |
45830 | if test x"$ac_file" = x-; then | |
45831 | configure_input= | |
45832 | else | |
45833 | configure_input="$ac_file. " | |
45834 | fi | |
45835 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 45836 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
45837 | |
45838 | # First look for the input files in the build tree, otherwise in the | |
45839 | # src tree. | |
45840 | ac_file_inputs=`IFS=: | |
45841 | for f in $ac_file_in; do | |
45842 | case $f in | |
45843 | -) echo $tmp/stdin ;; | |
45844 | [\\/$]*) | |
ac1cb8d3 VS |
45845 | # Absolute (can't be DOS-style, as IFS=:) |
45846 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
45847 | echo "$as_me: error: cannot find input file: $f" >&2;} |
45848 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 45849 | echo "$f";; |
a848cd7e | 45850 | *) # Relative |
ac1cb8d3 VS |
45851 | if test -f "$f"; then |
45852 | # Build tree | |
45853 | echo "$f" | |
45854 | elif test -f "$srcdir/$f"; then | |
45855 | # Source tree | |
45856 | echo "$srcdir/$f" | |
45857 | else | |
45858 | # /dev/null tree | |
45859 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
45860 | echo "$as_me: error: cannot find input file: $f" >&2;} |
45861 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 45862 | fi;; |
a848cd7e SC |
45863 | esac |
45864 | done` || { (exit 1); exit 1; } | |
45865 | _ACEOF | |
45866 | cat >>$CONFIG_STATUS <<_ACEOF | |
45867 | sed "$ac_vpsub | |
45868 | $extrasub | |
45869 | _ACEOF | |
45870 | cat >>$CONFIG_STATUS <<\_ACEOF | |
45871 | :t | |
45872 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
45873 | s,@configure_input@,$configure_input,;t t | |
45874 | s,@srcdir@,$ac_srcdir,;t t | |
45875 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
45876 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
45877 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
45878 | s,@builddir@,$ac_builddir,;t t | |
45879 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
45880 | s,@top_builddir@,$ac_top_builddir,;t t | |
45881 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
45882 | s,@INSTALL@,$ac_INSTALL,;t t | |
45883 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
45884 | rm -f $tmp/stdin | |
45885 | if test x"$ac_file" != x-; then | |
45886 | mv $tmp/out $ac_file | |
45887 | else | |
45888 | cat $tmp/out | |
45889 | rm -f $tmp/out | |
45890 | fi | |
45891 | ||
ceec2216 RL |
45892 | # Run the commands associated with the file. |
45893 | case $ac_file in | |
45894 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
45895 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
45896 | esac | |
a848cd7e SC |
45897 | done |
45898 | _ACEOF | |
45899 | cat >>$CONFIG_STATUS <<\_ACEOF | |
45900 | ||
45901 | # | |
45902 | # CONFIG_HEADER section. | |
45903 | # | |
45904 | ||
45905 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
45906 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
45907 | # | |
45908 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
45909 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
45910 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
45911 | ac_dC=' ' |
45912 | ac_dD=',;t' | |
45913 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 45914 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
45915 | ac_uB='$,\1#\2define\3' |
45916 | ac_uC=' ' | |
45917 | ac_uD=',;t' | |
45918 | ||
45919 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
45920 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
45921 | case $ac_file in | |
45922 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
45923 | cat >$tmp/stdin |
45924 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
45925 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 45926 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 45927 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
45928 | * ) ac_file_in=$ac_file.in ;; |
45929 | esac | |
45930 | ||
45931 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
45932 | echo "$as_me: creating $ac_file" >&6;} | |
45933 | ||
45934 | # First look for the input files in the build tree, otherwise in the | |
45935 | # src tree. | |
45936 | ac_file_inputs=`IFS=: | |
45937 | for f in $ac_file_in; do | |
45938 | case $f in | |
45939 | -) echo $tmp/stdin ;; | |
45940 | [\\/$]*) | |
ac1cb8d3 VS |
45941 | # Absolute (can't be DOS-style, as IFS=:) |
45942 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
45943 | echo "$as_me: error: cannot find input file: $f" >&2;} |
45944 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
45945 | # Do quote $f, to prevent DOS paths from being IFS'd. |
45946 | echo "$f";; | |
a848cd7e | 45947 | *) # Relative |
ac1cb8d3 VS |
45948 | if test -f "$f"; then |
45949 | # Build tree | |
45950 | echo "$f" | |
45951 | elif test -f "$srcdir/$f"; then | |
45952 | # Source tree | |
45953 | echo "$srcdir/$f" | |
45954 | else | |
45955 | # /dev/null tree | |
45956 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
45957 | echo "$as_me: error: cannot find input file: $f" >&2;} |
45958 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 45959 | fi;; |
a848cd7e SC |
45960 | esac |
45961 | done` || { (exit 1); exit 1; } | |
45962 | # Remove the trailing spaces. | |
ac1cb8d3 | 45963 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
45964 | |
45965 | _ACEOF | |
45966 | ||
45967 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
45968 | # `conftest.undefs', that substitutes the proper values into | |
45969 | # config.h.in to produce config.h. The first handles `#define' | |
45970 | # templates, and the second `#undef' templates. | |
45971 | # And first: Protect against being on the right side of a sed subst in | |
45972 | # config.status. Protect against being in an unquoted here document | |
45973 | # in config.status. | |
45974 | rm -f conftest.defines conftest.undefs | |
45975 | # Using a here document instead of a string reduces the quoting nightmare. | |
45976 | # Putting comments in sed scripts is not portable. | |
45977 | # | |
45978 | # `end' is used to avoid that the second main sed command (meant for | |
45979 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
45980 | # See the Autoconf documentation for `clear'. | |
45981 | cat >confdef2sed.sed <<\_ACEOF | |
45982 | s/[\\&,]/\\&/g | |
45983 | s,[\\$`],\\&,g | |
45984 | t clear | |
45985 | : clear | |
ac1cb8d3 | 45986 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 45987 | t end |
ac1cb8d3 | 45988 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
45989 | : end |
45990 | _ACEOF | |
45991 | # If some macros were called several times there might be several times | |
45992 | # the same #defines, which is useless. Nevertheless, we may not want to | |
45993 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
45994 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
45995 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
45996 | rm -f confdef2sed.sed | |
45997 | ||
45998 | # This sed command replaces #undef with comments. This is necessary, for | |
45999 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
46000 | # on some systems where configure will not decide to define it. | |
46001 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 46002 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
46003 | _ACEOF |
46004 | ||
46005 | # Break up conftest.defines because some shells have a limit on the size | |
46006 | # of here documents, and old seds have small limits too (100 cmds). | |
46007 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 46008 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
46009 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
46010 | echo ' :' >>$CONFIG_STATUS | |
46011 | rm -f conftest.tail | |
46012 | while grep . conftest.defines >/dev/null | |
46013 | do | |
46014 | # Write a limited-size here document to $tmp/defines.sed. | |
46015 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
46016 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 46017 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
46018 | # Work around the forget-to-reset-the-flag bug. |
46019 | echo 't clr' >>$CONFIG_STATUS | |
46020 | echo ': clr' >>$CONFIG_STATUS | |
46021 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
46022 | echo 'CEOF | |
46023 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
46024 | rm -f $tmp/in | |
46025 | mv $tmp/out $tmp/in | |
46026 | ' >>$CONFIG_STATUS | |
46027 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
46028 | rm -f conftest.defines | |
46029 | mv conftest.tail conftest.defines | |
46030 | done | |
46031 | rm -f conftest.defines | |
46032 | echo ' fi # grep' >>$CONFIG_STATUS | |
46033 | echo >>$CONFIG_STATUS | |
46034 | ||
46035 | # Break up conftest.undefs because some shells have a limit on the size | |
46036 | # of here documents, and old seds have small limits too (100 cmds). | |
46037 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
46038 | rm -f conftest.tail | |
46039 | while grep . conftest.undefs >/dev/null | |
46040 | do | |
46041 | # Write a limited-size here document to $tmp/undefs.sed. | |
46042 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
46043 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 46044 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
46045 | # Work around the forget-to-reset-the-flag bug. |
46046 | echo 't clr' >>$CONFIG_STATUS | |
46047 | echo ': clr' >>$CONFIG_STATUS | |
46048 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
46049 | echo 'CEOF | |
46050 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
46051 | rm -f $tmp/in | |
46052 | mv $tmp/out $tmp/in | |
46053 | ' >>$CONFIG_STATUS | |
46054 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
46055 | rm -f conftest.undefs | |
46056 | mv conftest.tail conftest.undefs | |
46057 | done | |
46058 | rm -f conftest.undefs | |
46059 | ||
46060 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46061 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
46062 | # use $as_me), people would be surprised to read: | |
46063 | # /* config.h. Generated by config.status. */ | |
46064 | if test x"$ac_file" = x-; then | |
46065 | echo "/* Generated by configure. */" >$tmp/config.h | |
46066 | else | |
46067 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
46068 | fi | |
46069 | cat $tmp/in >>$tmp/config.h | |
46070 | rm -f $tmp/in | |
46071 | if test x"$ac_file" != x-; then | |
46072 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
46073 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
46074 | echo "$as_me: $ac_file is unchanged" >&6;} | |
46075 | else | |
46076 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
46077 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
46078 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
46079 | X"$ac_file" : 'X\(//\)$' \| \ | |
46080 | X"$ac_file" : 'X\(/\)' \| \ | |
46081 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
46082 | echo X"$ac_file" | |
46083 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
46084 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
46085 | /^X\(\/\/\)$/{ s//\1/; q; } | |
46086 | /^X\(\/\).*/{ s//\1/; q; } | |
46087 | s/.*/./; q'` | |
46088 | { if $as_mkdir_p; then | |
46089 | mkdir -p "$ac_dir" | |
46090 | else | |
46091 | as_dir="$ac_dir" | |
46092 | as_dirs= | |
46093 | while test ! -d "$as_dir"; do | |
46094 | as_dirs="$as_dir $as_dirs" | |
46095 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
46096 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
46097 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
46098 | X"$as_dir" : 'X\(//\)$' \| \ | |
46099 | X"$as_dir" : 'X\(/\)' \| \ | |
46100 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
46101 | echo X"$as_dir" | |
46102 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
46103 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
46104 | /^X\(\/\/\)$/{ s//\1/; q; } | |
46105 | /^X\(\/\).*/{ s//\1/; q; } | |
46106 | s/.*/./; q'` | |
46107 | done | |
46108 | test ! -n "$as_dirs" || mkdir $as_dirs | |
46109 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
46110 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
46111 | { (exit 1); exit 1; }; }; } | |
46112 | ||
46113 | rm -f $ac_file | |
46114 | mv $tmp/config.h $ac_file | |
46115 | fi | |
46116 | else | |
46117 | cat $tmp/config.h | |
46118 | rm -f $tmp/config.h | |
46119 | fi | |
46120 | done | |
46121 | _ACEOF | |
46122 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46123 | ||
46124 | # | |
46125 | # CONFIG_COMMANDS section. | |
46126 | # | |
46127 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
46128 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
46129 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
46130 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
46131 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
46132 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
46133 | X"$ac_dest" : 'X\(//\)$' \| \ | |
46134 | X"$ac_dest" : 'X\(/\)' \| \ | |
46135 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
46136 | echo X"$ac_dest" | |
46137 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
46138 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
46139 | /^X\(\/\/\)$/{ s//\1/; q; } | |
46140 | /^X\(\/\).*/{ s//\1/; q; } | |
46141 | s/.*/./; q'` | |
ac1cb8d3 VS |
46142 | { if $as_mkdir_p; then |
46143 | mkdir -p "$ac_dir" | |
46144 | else | |
46145 | as_dir="$ac_dir" | |
46146 | as_dirs= | |
46147 | while test ! -d "$as_dir"; do | |
46148 | as_dirs="$as_dir $as_dirs" | |
46149 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
46150 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
46151 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
46152 | X"$as_dir" : 'X\(//\)$' \| \ | |
46153 | X"$as_dir" : 'X\(/\)' \| \ | |
46154 | . : '\(.\)' 2>/dev/null || | |
46155 | echo X"$as_dir" | | |
46156 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
46157 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
46158 | /^X\(\/\/\)$/{ s//\1/; q; } | |
46159 | /^X\(\/\).*/{ s//\1/; q; } | |
46160 | s/.*/./; q'` | |
46161 | done | |
46162 | test ! -n "$as_dirs" || mkdir $as_dirs | |
46163 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
46164 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
46165 | { (exit 1); exit 1; }; }; } | |
46166 | ||
a848cd7e SC |
46167 | ac_builddir=. |
46168 | ||
46169 | if test "$ac_dir" != .; then | |
46170 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
46171 | # A "../" for each directory in $ac_dir_suffix. | |
46172 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
46173 | else | |
46174 | ac_dir_suffix= ac_top_builddir= | |
46175 | fi | |
46176 | ||
46177 | case $srcdir in | |
46178 | .) # No --srcdir option. We are building in place. | |
46179 | ac_srcdir=. | |
46180 | if test -z "$ac_top_builddir"; then | |
46181 | ac_top_srcdir=. | |
46182 | else | |
46183 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
46184 | fi ;; | |
46185 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
46186 | ac_srcdir=$srcdir$ac_dir_suffix; | |
46187 | ac_top_srcdir=$srcdir ;; | |
46188 | *) # Relative path. | |
46189 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
46190 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
46191 | esac | |
ac1cb8d3 VS |
46192 | |
46193 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
46194 | # the directories may not exist. | |
46195 | case `pwd` in | |
46196 | .) ac_abs_builddir="$ac_dir";; | |
46197 | *) | |
46198 | case "$ac_dir" in | |
46199 | .) ac_abs_builddir=`pwd`;; | |
46200 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
46201 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
46202 | esac;; | |
46203 | esac | |
46204 | case $ac_abs_builddir in | |
46205 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
46206 | *) | |
46207 | case ${ac_top_builddir}. in | |
46208 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
46209 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
46210 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
46211 | esac;; | |
46212 | esac | |
46213 | case $ac_abs_builddir in | |
46214 | .) ac_abs_srcdir=$ac_srcdir;; | |
46215 | *) | |
46216 | case $ac_srcdir in | |
46217 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
46218 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
46219 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
46220 | esac;; | |
46221 | esac | |
46222 | case $ac_abs_builddir in | |
46223 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
46224 | *) | |
46225 | case $ac_top_srcdir in | |
46226 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
46227 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
46228 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
46229 | esac;; | |
46230 | esac | |
a848cd7e SC |
46231 | |
46232 | ||
46233 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
46234 | echo "$as_me: executing $ac_dest commands" >&6;} | |
46235 | case $ac_dest in | |
ceec2216 RL |
46236 | wx-config ) rm -f wx-config |
46237 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
46238 | ;; | |
a848cd7e SC |
46239 | esac |
46240 | done | |
46241 | _ACEOF | |
46242 | ||
46243 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46244 | ||
46245 | { (exit 0); exit 0; } | |
46246 | _ACEOF | |
46247 | chmod +x $CONFIG_STATUS | |
46248 | ac_clean_files=$ac_clean_files_save | |
46249 | ||
46250 | ||
46251 | # configure is writing to config.log, and then calls config.status. | |
46252 | # config.status does its own redirection, appending to config.log. | |
46253 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
46254 | # by configure, so config.status won't be able to write to it; its | |
46255 | # output is simply discarded. So we exec the FD to /dev/null, | |
46256 | # effectively closing config.log, so it can be properly (re)opened and | |
46257 | # appended to by config.status. When coming back to configure, we | |
46258 | # need to make the FD available again. | |
46259 | if test "$no_create" != yes; then | |
46260 | ac_cs_success=: | |
46261 | ac_config_status_args= | |
46262 | test "$silent" = yes && | |
46263 | ac_config_status_args="$ac_config_status_args --quiet" | |
46264 | exec 5>/dev/null | |
46265 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
46266 | exec 5>>config.log | |
46267 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
46268 | # would make configure fail if this is the last instruction. | |
46269 | $ac_cs_success || { (exit 1); exit 1; } | |
46270 | fi | |
46271 | ||
46272 | # | |
46273 | # CONFIG_SUBDIRS section. | |
46274 | # | |
46275 | if test "$no_recursion" != yes; then | |
46276 | ||
46277 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
46278 | ac_sub_configure_args= | |
46279 | ac_prev= | |
46280 | for ac_arg in $ac_configure_args; do | |
46281 | if test -n "$ac_prev"; then | |
46282 | ac_prev= | |
46283 | continue | |
46284 | fi | |
46285 | case $ac_arg in | |
46286 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
46287 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
46288 | ac_prev=cache_file ;; | |
46289 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
46290 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
46291 | | --c=*) | |
46292 | ;; | |
46293 | --config-cache | -C) | |
46294 | ;; | |
46295 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
46296 | ac_prev=srcdir ;; | |
46297 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
46298 | ;; | |
46299 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
46300 | ac_prev=prefix ;; | |
46301 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
46302 | ;; | |
46303 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
46304 | esac | |
46305 | done | |
46306 | ||
46307 | # Always prepend --prefix to ensure using the same prefix | |
46308 | # in subdir configurations. | |
46309 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
46310 | ||
46311 | ac_popdir=`pwd` | |
46312 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
46313 | ||
46314 | # Do not complain, so a configure script can configure whichever | |
46315 | # parts of a large source tree are present. | |
46316 | test -d $srcdir/$ac_dir || continue | |
46317 | ||
46318 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
46319 | echo "$as_me: configuring in $ac_dir" >&6;} | |
46320 | { if $as_mkdir_p; then | |
46321 | mkdir -p "$ac_dir" | |
46322 | else | |
46323 | as_dir="$ac_dir" | |
46324 | as_dirs= | |
46325 | while test ! -d "$as_dir"; do | |
46326 | as_dirs="$as_dir $as_dirs" | |
46327 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
46328 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
46329 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
46330 | X"$as_dir" : 'X\(//\)$' \| \ | |
46331 | X"$as_dir" : 'X\(/\)' \| \ | |
46332 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
46333 | echo X"$as_dir" | |
46334 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
46335 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
46336 | /^X\(\/\/\)$/{ s//\1/; q; } | |
46337 | /^X\(\/\).*/{ s//\1/; q; } | |
46338 | s/.*/./; q'` | |
46339 | done | |
46340 | test ! -n "$as_dirs" || mkdir $as_dirs | |
46341 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
46342 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
46343 | { (exit 1); exit 1; }; }; } | |
46344 | ||
46345 | ac_builddir=. | |
46346 | ||
46347 | if test "$ac_dir" != .; then | |
46348 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
46349 | # A "../" for each directory in $ac_dir_suffix. | |
46350 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
46351 | else | |
46352 | ac_dir_suffix= ac_top_builddir= | |
46353 | fi | |
46354 | ||
46355 | case $srcdir in | |
46356 | .) # No --srcdir option. We are building in place. | |
46357 | ac_srcdir=. | |
46358 | if test -z "$ac_top_builddir"; then | |
46359 | ac_top_srcdir=. | |
46360 | else | |
46361 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
46362 | fi ;; | |
46363 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
46364 | ac_srcdir=$srcdir$ac_dir_suffix; | |
46365 | ac_top_srcdir=$srcdir ;; | |
46366 | *) # Relative path. | |
46367 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
46368 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
46369 | esac | |
ac1cb8d3 VS |
46370 | |
46371 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
46372 | # the directories may not exist. | |
46373 | case `pwd` in | |
46374 | .) ac_abs_builddir="$ac_dir";; | |
46375 | *) | |
46376 | case "$ac_dir" in | |
46377 | .) ac_abs_builddir=`pwd`;; | |
46378 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
46379 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
46380 | esac;; | |
46381 | esac | |
46382 | case $ac_abs_builddir in | |
46383 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
46384 | *) | |
46385 | case ${ac_top_builddir}. in | |
46386 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
46387 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
46388 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
46389 | esac;; | |
46390 | esac | |
46391 | case $ac_abs_builddir in | |
46392 | .) ac_abs_srcdir=$ac_srcdir;; | |
46393 | *) | |
46394 | case $ac_srcdir in | |
46395 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
46396 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
46397 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
46398 | esac;; | |
46399 | esac | |
46400 | case $ac_abs_builddir in | |
46401 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
46402 | *) | |
46403 | case $ac_top_srcdir in | |
46404 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
46405 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
46406 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
46407 | esac;; | |
46408 | esac | |
a848cd7e SC |
46409 | |
46410 | ||
46411 | cd $ac_dir | |
46412 | ||
46413 | # Check for guested configure; otherwise get Cygnus style configure. | |
46414 | if test -f $ac_srcdir/configure.gnu; then | |
46415 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
46416 | elif test -f $ac_srcdir/configure; then | |
46417 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
46418 | elif test -f $ac_srcdir/configure.in; then | |
46419 | ac_sub_configure=$ac_configure | |
46420 | else | |
46421 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
46422 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
46423 | ac_sub_configure= | |
46424 | fi | |
46425 | ||
46426 | # The recursion is here. | |
46427 | if test -n "$ac_sub_configure"; then | |
46428 | # Make the cache file name correct relative to the subdirectory. | |
46429 | case $cache_file in | |
46430 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
46431 | *) # Relative path. | |
ac1cb8d3 | 46432 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
46433 | esac |
46434 | ||
46435 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
46436 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
46437 | # The eval makes quoting arguments work. | |
46438 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
46439 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
46440 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
46441 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
46442 | { (exit 1); exit 1; }; } | |
46443 | fi | |
46444 | ||
ddd14b14 | 46445 | cd $ac_popdir |
a848cd7e SC |
46446 | done |
46447 | fi | |
46448 | ||
46449 | ||
46450 | echo | |
77ffb593 | 46451 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 46452 | echo "" |
4d4ff94c | 46453 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 46454 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 46455 | |
77ffb593 JS |
46456 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
46457 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
46458 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 46459 | |
77ffb593 JS |
46460 | echo " What level of wxWidgets compatibility should be enabled?" |
46461 | echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" | |
46462 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
a848cd7e | 46463 | |
77ffb593 | 46464 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
46465 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
46466 | echo " png ${wxUSE_LIBPNG-none}" | |
46467 | echo " regex ${wxUSE_REGEX}" | |
46468 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
46469 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
46470 | echo " xpm ${wxUSE_LIBXPM-none}" | |
46471 | fi | |
46472 | echo " zlib ${wxUSE_ZLIB}" | |
46473 | echo " odbc ${wxUSE_ODBC}" | |
46474 | echo " expat ${wxUSE_EXPAT}" | |
46475 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
46476 | echo " sdl ${wxUSE_LIBSDL}" | |
6d1ce868 | 46477 | echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}" |
a848cd7e SC |
46478 | |
46479 | echo "" | |
46480 |