]>
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. | |
81f90336 | 4 | # Generated by GNU Autoconf 2.59 for wxWidgets 2.5.4. |
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' | |
81f90336 MW |
273 | PACKAGE_VERSION='2.5.4' |
274 | PACKAGE_STRING='wxWidgets 2.5.4' | |
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" | |
dae87f93 | 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_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_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_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_XRC_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_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 | |
81f90336 | 797 | \`configure' configures wxWidgets 2.5.4 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 | |
81f90336 | 863 | short | recursive ) echo "Configuration of wxWidgets 2.5.4:";; |
a848cd7e SC |
864 | esac |
865 | cat <<\_ACEOF | |
866 | ||
867 | Optional Features: | |
868 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
869 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
870 | --enable-gui use GUI classes | |
77ffb593 JS |
871 | --enable-monolithic build wxWidgets as single library |
872 | --enable-plugins build parts of wxWidgets as loadable components | |
873 | --enable-universal use wxWidgets GUI controls instead of native ones | |
a848cd7e | 874 | --enable-nanox use NanoX |
9f45f08e | 875 | --disable-gtk2 use GTK+ 1.2 instead of 2.0 |
a848cd7e SC |
876 | --enable-gpe use GNOME PDA Environment features if possible |
877 | --enable-shared create shared library code | |
878 | --enable-optimise create optimised code | |
879 | --enable-debug same as debug_flag and debug_info | |
880 | --enable-stl use STL for containers | |
881 | --enable-omf use OMF object format | |
882 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) | |
883 | --enable-debug_info create code with debugging information | |
884 | --enable-debug_gdb create code with extra GDB debugging information | |
885 | --enable-debug_cntxt use wxDebugContext | |
886 | --enable-mem_tracing create code with memory tracing | |
887 | --enable-profile create code with profiling information | |
888 | --enable-no_rtti create code without RTTI information | |
889 | --enable-no_exceptions create code without C++ exceptions handling | |
890 | --enable-permissive compile code disregarding strict ANSI | |
891 | --enable-no_deps create code without dependency information | |
77ffb593 JS |
892 | --enable-compat22 enable wxWidgets 2.2 compatibility |
893 | --disable-compat24 disable wxWidgets 2.4 compatibility | |
ffa0583f | 894 | --disable-rpath disable use of rpath for uninstalled builds |
a848cd7e SC |
895 | --enable-intl use internationalization system |
896 | --enable-config use wxConfig (and derived) classes | |
897 | --enable-protocols use wxProtocol and derived classes | |
898 | --enable-ftp use wxFTP (requires wxProtocol | |
899 | --enable-http use wxHTTP (requires wxProtocol | |
900 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
901 | --enable-sockets use socket/network classes | |
902 | --enable-ole use OLE classes (Win32 only) | |
903 | --enable-dataobj use data object classes | |
904 | --enable-ipc use interprocess communication (wxSocket etc.) | |
905 | --enable-apple_ieee use the Apple IEEE codec | |
81f90336 | 906 | --enable-arcstream use wxArchive streams |
a848cd7e | 907 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) |
eaff0f0d | 908 | --enable-backtrace use wxStackWalker class for getting backtraces |
a848cd7e SC |
909 | --enable-cmdline use wxCmdLineParser class |
910 | --enable-datetime use wxDateTime class | |
911 | --enable-dialupman use dialup network classes | |
912 | --enable-dynlib use wxLibrary class for DLL loading | |
913 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
914 | --enable-exceptions build exception-safe library | |
915 | --enable-ffile use wxFFile class | |
916 | --enable-file use wxFile class | |
917 | --enable-filesystem use virtual file systems classes | |
918 | --enable-fontmap use font encodings conversion classes | |
919 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
920 | --enable-fs_zip use virtual ZIP filesystems | |
921 | --enable-geometry use geometry class | |
922 | --enable-log use logging system | |
923 | --enable-longlong use wxLongLong class | |
924 | --enable-mimetype use wxMimeTypesManager | |
925 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
926 | --enable-snglinst use wxSingleInstanceChecker class | |
927 | --enable-streams use wxStream etc classes | |
928 | --enable-std_iostreams use standard C++ stream classes | |
929 | --enable-stopwatch use wxStopWatch class | |
930 | --enable-sysoptions use wxSystemOptions | |
931 | --enable-textbuf use wxTextBuffer class | |
932 | --enable-textfile use wxTextFile class | |
933 | --enable-timer use wxTimer class | |
934 | --enable-unicode compile wxString with Unicode support | |
935 | --enable-sound use wxSound class | |
3b57de8b | 936 | --enable-mediactrl use wxMediaCtrl class |
77ffb593 | 937 | --enable-wxprintfv use wxWidgets implementation of vprintf() |
81f90336 | 938 | --enable-zipstream use wxZip streams |
a848cd7e SC |
939 | --enable-url use wxURL class |
940 | --enable-protocol use wxProtocol class | |
941 | --enable-protocol-http HTTP support in wxProtocol | |
942 | --enable-protocol-ftp FTP support in wxProtocol | |
943 | --enable-protocol-file FILE support in wxProtocol | |
944 | --enable-threads use threads | |
945 | --enable-docview use document view architecture | |
946 | --enable-help use help subsystem | |
947 | --enable-mshtmlhelp use MS HTML Help (win32) | |
948 | --enable-html use wxHTML sub-library | |
949 | --enable-htmlhelp use wxHTML-based help | |
9a8f0513 | 950 | --enable-xrc use XRC resources sub-library |
a848cd7e SC |
951 | --enable-constraints use layout-constraints system |
952 | --enable-printarch use printing architecture | |
953 | --enable-mdi use multiple document interface architecture | |
8a7b1113 | 954 | --enable-mdidoc use docview architecture with MDI |
a848cd7e SC |
955 | --enable-loggui use standard GUI logger |
956 | --enable-logwin use wxLogWindow | |
957 | --enable-logdialog use wxLogDialog | |
646b6ec1 | 958 | --enable-webkit use wxWebKitCtrl (Mac) |
a848cd7e SC |
959 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
960 | --enable-prologio not available; see contrib | |
961 | --enable-resources not available; see contrib | |
962 | --enable-clipboard use wxClipboard class | |
963 | --enable-dnd use Drag'n'Drop classes | |
964 | --enable-metafile use win32 metafiles | |
965 | --enable-controls use all usual controls | |
966 | --enable-accel use accelerators | |
967 | --enable-button use wxButton class | |
968 | --enable-bmpbutton use wxBitmapButton class | |
969 | --enable-calendar use wxCalendarCtrl class | |
970 | --enable-caret use wxCaret class | |
971 | --enable-checkbox use wxCheckBox class | |
972 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
973 | --enable-choice use wxChoice class | |
92bbdbcd | 974 | --enable-choicebook use wxChoicebook class |
a848cd7e | 975 | --enable-combobox use wxComboBox class |
da98e9be | 976 | --enable-datepick use wxDatePickerCtrl class |
a848cd7e SC |
977 | --enable-display use wxDisplay class |
978 | --enable-gauge use wxGauge class | |
979 | --enable-grid use wxGrid class | |
980 | --enable-imaglist use wxImageList class | |
981 | --enable-listbook use wxListbook class | |
982 | --enable-listbox use wxListBox class | |
983 | --enable-listctrl use wxListCtrl class | |
984 | --enable-notebook use wxNotebook class | |
985 | --enable-radiobox use wxRadioBox class | |
986 | --enable-radiobtn use wxRadioButton class | |
987 | --enable-sash use wxSashWindow class | |
988 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
989 | --enable-slider use wxSlider class | |
990 | --enable-spinbtn use wxSpinButton class | |
991 | --enable-spinctrl use wxSpinCtrl class | |
992 | --enable-splitter use wxSplitterWindow class | |
993 | --enable-statbmp use wxStaticBitmap class | |
994 | --enable-statbox use wxStaticBox class | |
995 | --enable-statline use wxStaticLine class | |
996 | --enable-stattext use wxStaticText class | |
997 | --enable-statusbar use wxStatusBar class | |
998 | --enable-tabdialog use wxTabControl class | |
999 | --enable-textctrl use wxTextCtrl class | |
1000 | --enable-togglebtn use wxToggleButton class | |
1001 | --enable-toolbar use wxToolBar class | |
1002 | --enable-tbarnative use native wxToolBar class | |
1003 | --enable-tbarsmpl use wxToolBarSimple class | |
1004 | --enable-treectrl use wxTreeCtrl class | |
1005 | --enable-tipwindow use wxTipWindow class | |
1006 | --enable-popupwin use wxPopUpWindow class | |
1007 | --enable-commondlg use all common dialogs | |
1008 | --enable-choicedlg use wxChoiceDialog | |
1009 | --enable-coldlg use wxColourDialog | |
1010 | --enable-filedlg use wxFileDialog | |
1011 | --enable-finddlg use wxFindReplaceDialog | |
1012 | --enable-fontdlg use wxFontDialog | |
1013 | --enable-dirdlg use wxDirDialog | |
1014 | --enable-msgdlg use wxMessageDialog | |
1015 | --enable-numberdlg use wxNumberEntryDialog | |
1016 | --enable-splash use wxSplashScreen | |
1017 | --enable-textdlg use wxTextDialog | |
1018 | --enable-tipdlg use startup tips | |
1019 | --enable-progressdlg use wxProgressDialog | |
1020 | --enable-wizarddlg use wxWizard | |
1021 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1022 | --enable-miniframe use wxMiniFrame class | |
1023 | --enable-tooltips use wxToolTip class | |
1024 | --enable-splines use spline drawing code | |
1025 | --enable-validators use wxValidator and derived classes | |
1026 | --enable-busyinfo use wxBusyInfo | |
4cb1d3da | 1027 | --enable-joystick use wxJoystick |
a848cd7e SC |
1028 | --enable-metafiles use wxMetaFile (Windows only) |
1029 | --enable-dragimage use wxDragImage | |
1030 | --enable-accessibility enable accessibility support | |
1031 | --enable-palette use wxPalette class | |
1032 | --enable-image use wxImage class | |
1033 | --enable-gif use gif images (GIF file format) | |
1034 | --enable-pcx use pcx images (PCX file format) | |
1035 | --enable-iff use iff images (IFF file format) | |
1036 | --enable-pnm use pnm images (PNM file format) | |
1037 | --enable-xpm use xpm images (XPM file format) | |
1038 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1039 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1040 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1041 | --disable-largefile omit support for large files | |
1042 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1043 | --disable-gtktest Do not try to compile and run a test GTK program | |
1044 | --disable-sdltest Do not try to compile and run a test SDL program | |
1045 | --enable-omf use OMF object format (OS/2) | |
ebee3cd0 VS |
1046 | --disable-precomp-headers |
1047 | don't use precompiled headers even if compiler can | |
a848cd7e SC |
1048 | |
1049 | Optional Packages: | |
1050 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1051 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1052 | --with-gtk use GTK+ | |
1053 | --with-motif use Motif/Lesstif | |
1054 | --with-mac use Mac OS X | |
1055 | --with-cocoa use Cocoa | |
1056 | --with-wine use Wine | |
1057 | --with-msw use MS-Windows | |
1058 | --with-pm use OS/2 Presentation Manager | |
1059 | --with-mgl use SciTech MGL | |
1060 | --with-microwin use MicroWindows | |
1061 | --with-x11 use X11 | |
1062 | --with-libpng use libpng (PNG image format) | |
1063 | --with-libjpeg use libjpeg (JPEG file format) | |
1064 | --with-libtiff use libtiff (TIFF file format) | |
1065 | --with-libxpm use libxpm (XPM file format) | |
1066 | --with-libmspack use libmspack (CHM help files loading) | |
1067 | --with-sdl use SDL for audio on Unix | |
d51253e8 | 1068 | --with-gnomeprint use GNOME print for printing under Unix |
a848cd7e SC |
1069 | --with-opengl use OpenGL (or Mesa) |
1070 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1071 | --with-regex enable support for wxRegEx class | |
1072 | --with-zlib use zlib for LZW compression | |
1073 | --with-odbc use the IODBC and wxODBC classes | |
1074 | --with-expat enable XML support using expat parser | |
ceec2216 | 1075 | --with-flavour=NAME specify a name to identify this build |
a848cd7e SC |
1076 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1077 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1078 | --with-x use the X Window System | |
1079 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1080 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1081 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1082 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1083 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1084 | ||
1085 | Some influential environment variables: | |
dcc1b6ad VS |
1086 | CC C compiler command |
1087 | CFLAGS C compiler flags | |
1088 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1089 | nonstandard directory <lib dir> | |
1090 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1091 | headers in a nonstandard directory <include dir> | |
1092 | CPP C preprocessor | |
1093 | CXX C++ compiler command | |
1094 | CXXFLAGS C++ compiler flags | |
1095 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1096 | |
1097 | Use these variables to override the choices made by `configure' or to help | |
1098 | it to find libraries and programs with nonstandard names/locations. | |
1099 | ||
77ffb593 | 1100 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1101 | _ACEOF |
1102 | fi | |
1103 | ||
1104 | if test "$ac_init_help" = "recursive"; then | |
1105 | # If there are subdirs, report their specific --help. | |
1106 | ac_popdir=`pwd` | |
1107 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1108 | test -d $ac_dir || continue | |
1109 | ac_builddir=. | |
1110 | ||
1111 | if test "$ac_dir" != .; then | |
1112 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1113 | # A "../" for each directory in $ac_dir_suffix. | |
1114 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1115 | else | |
1116 | ac_dir_suffix= ac_top_builddir= | |
1117 | fi | |
1118 | ||
1119 | case $srcdir in | |
1120 | .) # No --srcdir option. We are building in place. | |
1121 | ac_srcdir=. | |
1122 | if test -z "$ac_top_builddir"; then | |
1123 | ac_top_srcdir=. | |
1124 | else | |
1125 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1126 | fi ;; | |
1127 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1128 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1129 | ac_top_srcdir=$srcdir ;; | |
1130 | *) # Relative path. | |
1131 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1132 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1133 | esac | |
ac1cb8d3 VS |
1134 | |
1135 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1136 | # the directories may not exist. | |
1137 | case `pwd` in | |
1138 | .) ac_abs_builddir="$ac_dir";; | |
1139 | *) | |
1140 | case "$ac_dir" in | |
1141 | .) ac_abs_builddir=`pwd`;; | |
1142 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1143 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1144 | esac;; | |
1145 | esac | |
1146 | case $ac_abs_builddir in | |
1147 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1148 | *) | |
1149 | case ${ac_top_builddir}. in | |
1150 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1151 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1152 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1153 | esac;; | |
1154 | esac | |
1155 | case $ac_abs_builddir in | |
1156 | .) ac_abs_srcdir=$ac_srcdir;; | |
1157 | *) | |
1158 | case $ac_srcdir in | |
1159 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1160 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1161 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1162 | esac;; | |
1163 | esac | |
1164 | case $ac_abs_builddir in | |
1165 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1166 | *) | |
1167 | case $ac_top_srcdir in | |
1168 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1169 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1170 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1171 | esac;; | |
1172 | esac | |
a848cd7e SC |
1173 | |
1174 | cd $ac_dir | |
1175 | # Check for guested configure; otherwise get Cygnus style configure. | |
1176 | if test -f $ac_srcdir/configure.gnu; then | |
1177 | echo | |
1178 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1179 | elif test -f $ac_srcdir/configure; then | |
1180 | echo | |
1181 | $SHELL $ac_srcdir/configure --help=recursive | |
1182 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1183 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1184 | echo |
1185 | $ac_configure --help | |
1186 | else | |
1187 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1188 | fi | |
89be85c2 | 1189 | cd $ac_popdir |
a848cd7e SC |
1190 | done |
1191 | fi | |
1192 | ||
1193 | test -n "$ac_init_help" && exit 0 | |
1194 | if $ac_init_version; then | |
1195 | cat <<\_ACEOF | |
81f90336 | 1196 | wxWidgets configure 2.5.4 |
ac1cb8d3 | 1197 | generated by GNU Autoconf 2.59 |
a848cd7e | 1198 | |
ac1cb8d3 | 1199 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1200 | This configure script is free software; the Free Software Foundation |
1201 | gives unlimited permission to copy, distribute and modify it. | |
1202 | _ACEOF | |
1203 | exit 0 | |
1204 | fi | |
1205 | exec 5>config.log | |
1206 | cat >&5 <<_ACEOF | |
1207 | This file contains any messages produced by compilers while | |
1208 | running configure, to aid debugging if configure makes a mistake. | |
1209 | ||
81f90336 | 1210 | It was created by wxWidgets $as_me 2.5.4, which was |
ac1cb8d3 | 1211 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1212 | |
1213 | $ $0 $@ | |
1214 | ||
1215 | _ACEOF | |
1216 | { | |
1217 | cat <<_ASUNAME | |
1218 | ## --------- ## | |
1219 | ## Platform. ## | |
1220 | ## --------- ## | |
1221 | ||
1222 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1223 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1224 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1225 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1226 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1227 | ||
1228 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1229 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1230 | ||
1231 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1232 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1233 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1234 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1235 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1236 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1237 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1238 | ||
1239 | _ASUNAME | |
1240 | ||
1241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1242 | for as_dir in $PATH | |
1243 | do | |
1244 | IFS=$as_save_IFS | |
1245 | test -z "$as_dir" && as_dir=. | |
1246 | echo "PATH: $as_dir" | |
1247 | done | |
1248 | ||
1249 | } >&5 | |
1250 | ||
1251 | cat >&5 <<_ACEOF | |
1252 | ||
1253 | ||
1254 | ## ----------- ## | |
1255 | ## Core tests. ## | |
1256 | ## ----------- ## | |
1257 | ||
1258 | _ACEOF | |
1259 | ||
1260 | ||
1261 | # Keep a trace of the command line. | |
1262 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1263 | # Strip out --silent because we don't want to record it for future runs. | |
1264 | # Also quote any args containing shell meta-characters. | |
1265 | # Make two passes to allow for proper duplicate-argument suppression. | |
1266 | ac_configure_args= | |
1267 | ac_configure_args0= | |
1268 | ac_configure_args1= | |
1269 | ac_sep= | |
1270 | ac_must_keep_next=false | |
1271 | for ac_pass in 1 2 | |
1272 | do | |
1273 | for ac_arg | |
1274 | do | |
1275 | case $ac_arg in | |
1276 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1277 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1278 | | -silent | --silent | --silen | --sile | --sil) | |
1279 | continue ;; | |
1280 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1281 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1282 | esac | |
1283 | case $ac_pass in | |
1284 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1285 | 2) | |
1286 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1287 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1288 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1289 | else |
ac1cb8d3 VS |
1290 | case $ac_arg in |
1291 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1292 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1293 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1294 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1295 | case "$ac_configure_args0 " in | |
1296 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1297 | esac | |
1298 | ;; | |
1299 | -* ) ac_must_keep_next=true ;; | |
1300 | esac | |
a848cd7e SC |
1301 | fi |
1302 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1303 | # Get rid of the leading space. | |
1304 | ac_sep=" " | |
1305 | ;; | |
1306 | esac | |
1307 | done | |
1308 | done | |
1309 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1310 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1311 | ||
1312 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1313 | # config.log. We remove comments because anyway the quotes in there | |
1314 | # would cause problems or look ugly. | |
1315 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1316 | # such as our DU 5.0 friend, will then `close' the trap. | |
1317 | trap 'exit_status=$? | |
1318 | # Save into config.log some information that might help in debugging. | |
1319 | { | |
1320 | echo | |
1321 | ||
1322 | cat <<\_ASBOX | |
1323 | ## ---------------- ## | |
1324 | ## Cache variables. ## | |
1325 | ## ---------------- ## | |
1326 | _ASBOX | |
1327 | echo | |
1328 | # The following way of writing the cache mishandles newlines in values, | |
1329 | { | |
1330 | (set) 2>&1 | | |
1331 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1332 | *ac_space=\ *) | |
1333 | sed -n \ | |
ac1cb8d3 VS |
1334 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1335 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1336 | ;; |
1337 | *) | |
1338 | sed -n \ | |
ac1cb8d3 | 1339 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1340 | ;; |
1341 | esac; | |
1342 | } | |
1343 | echo | |
1344 | ||
1345 | cat <<\_ASBOX | |
1346 | ## ----------------- ## | |
1347 | ## Output variables. ## | |
1348 | ## ----------------- ## | |
1349 | _ASBOX | |
1350 | echo | |
1351 | for ac_var in $ac_subst_vars | |
1352 | do | |
1353 | eval ac_val=$`echo $ac_var` | |
1354 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1355 | done | sort | |
1356 | echo | |
1357 | ||
1358 | if test -n "$ac_subst_files"; then | |
1359 | cat <<\_ASBOX | |
1360 | ## ------------- ## | |
1361 | ## Output files. ## | |
1362 | ## ------------- ## | |
1363 | _ASBOX | |
1364 | echo | |
1365 | for ac_var in $ac_subst_files | |
1366 | do | |
1367 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1368 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1369 | done | sort |
1370 | echo | |
1371 | fi | |
1372 | ||
1373 | if test -s confdefs.h; then | |
1374 | cat <<\_ASBOX | |
1375 | ## ----------- ## | |
1376 | ## confdefs.h. ## | |
1377 | ## ----------- ## | |
1378 | _ASBOX | |
1379 | echo | |
1380 | sed "/^$/d" confdefs.h | sort | |
1381 | echo | |
1382 | fi | |
1383 | test "$ac_signal" != 0 && | |
1384 | echo "$as_me: caught signal $ac_signal" | |
1385 | echo "$as_me: exit $exit_status" | |
1386 | } >&5 | |
ac1cb8d3 | 1387 | rm -f core *.core && |
a848cd7e SC |
1388 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1389 | exit $exit_status | |
1390 | ' 0 | |
1391 | for ac_signal in 1 2 13 15; do | |
1392 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1393 | done | |
1394 | ac_signal=0 | |
1395 | ||
1396 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1397 | rm -rf conftest* confdefs.h | |
1398 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1399 | echo >confdefs.h | |
1400 | ||
1401 | # Predefined preprocessor variables. | |
1402 | ||
1403 | cat >>confdefs.h <<_ACEOF | |
1404 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1405 | _ACEOF | |
1406 | ||
1407 | ||
1408 | cat >>confdefs.h <<_ACEOF | |
1409 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1410 | _ACEOF | |
1411 | ||
1412 | ||
1413 | cat >>confdefs.h <<_ACEOF | |
1414 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1415 | _ACEOF | |
1416 | ||
1417 | ||
1418 | cat >>confdefs.h <<_ACEOF | |
1419 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1420 | _ACEOF | |
1421 | ||
1422 | ||
1423 | cat >>confdefs.h <<_ACEOF | |
1424 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1425 | _ACEOF | |
1426 | ||
1427 | ||
1428 | # Let the site file select an alternate cache file if it wants to. | |
1429 | # Prefer explicitly selected file to automatically selected ones. | |
1430 | if test -z "$CONFIG_SITE"; then | |
1431 | if test "x$prefix" != xNONE; then | |
1432 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1433 | else | |
1434 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1435 | fi | |
1436 | fi | |
1437 | for ac_site_file in $CONFIG_SITE; do | |
1438 | if test -r "$ac_site_file"; then | |
1439 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1440 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1441 | sed 's/^/| /' "$ac_site_file" >&5 | |
1442 | . "$ac_site_file" | |
1443 | fi | |
1444 | done | |
1445 | ||
1446 | if test -r "$cache_file"; then | |
1447 | # Some versions of bash will fail to source /dev/null (special | |
1448 | # files actually), so we avoid doing that. | |
1449 | if test -f "$cache_file"; then | |
1450 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1451 | echo "$as_me: loading cache $cache_file" >&6;} | |
1452 | case $cache_file in | |
1453 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1454 | *) . ./$cache_file;; | |
1455 | esac | |
1456 | fi | |
1457 | else | |
1458 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1459 | echo "$as_me: creating cache $cache_file" >&6;} | |
1460 | >$cache_file | |
1461 | fi | |
1462 | ||
1463 | # Check that the precious variables saved in the cache have kept the same | |
1464 | # value. | |
1465 | ac_cache_corrupted=false | |
1466 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1467 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1468 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1469 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1470 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1471 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1472 | case $ac_old_set,$ac_new_set in | |
1473 | set,) | |
1474 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1475 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1476 | ac_cache_corrupted=: ;; | |
1477 | ,set) | |
1478 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1479 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1480 | ac_cache_corrupted=: ;; | |
1481 | ,);; | |
1482 | *) | |
1483 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1484 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1485 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1486 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1487 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1488 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1489 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1490 | ac_cache_corrupted=: |
a848cd7e SC |
1491 | fi;; |
1492 | esac | |
1493 | # Pass precious variables to config.status. | |
1494 | if test "$ac_new_set" = set; then | |
1495 | case $ac_new_val in | |
1496 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1497 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1498 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1499 | esac | |
1500 | case " $ac_configure_args " in | |
1501 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1502 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1503 | esac | |
1504 | fi | |
1505 | done | |
1506 | if $ac_cache_corrupted; then | |
1507 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1508 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1509 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1510 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1511 | { (exit 1); exit 1; }; } | |
1512 | fi | |
1513 | ||
1514 | ac_ext=c | |
1515 | ac_cpp='$CPP $CPPFLAGS' | |
1516 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1517 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1518 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1519 | ||
1520 | ||
1521 | ||
1522 | ||
1523 | ||
1524 | ||
1525 | ||
1526 | ||
1527 | ||
1528 | ||
1529 | ||
1530 | ||
1531 | ||
1532 | ||
1533 | ||
1534 | ||
1535 | ||
1536 | ||
1537 | ||
1538 | ||
1539 | ||
1540 | ||
1541 | ||
1542 | ||
1543 | ||
1544 | ||
1545 | ||
1546 | ||
1547 | ||
1548 | ||
1549 | ac_aux_dir= | |
1550 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1551 | if test -f $ac_dir/install-sh; then | |
1552 | ac_aux_dir=$ac_dir | |
1553 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1554 | break | |
1555 | elif test -f $ac_dir/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/shtool; then | |
1560 | ac_aux_dir=$ac_dir | |
1561 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1562 | break | |
1563 | fi | |
1564 | done | |
1565 | if test -z "$ac_aux_dir"; then | |
1566 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1567 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1568 | { (exit 1); exit 1; }; } | |
1569 | fi | |
1570 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1571 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1572 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1573 | ||
1574 | # Make sure we can run config.sub. | |
1575 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1576 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1577 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1578 | { (exit 1); exit 1; }; } | |
1579 | ||
1580 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1581 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1582 | if test "${ac_cv_build+set}" = set; then | |
1583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1584 | else | |
1585 | ac_cv_build_alias=$build_alias | |
1586 | test -z "$ac_cv_build_alias" && | |
1587 | ac_cv_build_alias=`$ac_config_guess` | |
1588 | test -z "$ac_cv_build_alias" && | |
1589 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1590 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1591 | { (exit 1); exit 1; }; } | |
1592 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1593 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1594 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1595 | { (exit 1); exit 1; }; } | |
1596 | ||
1597 | fi | |
1598 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1599 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1600 | build=$ac_cv_build | |
1601 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1602 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1603 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1604 | ||
1605 | ||
1606 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1607 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1608 | if test "${ac_cv_host+set}" = set; then | |
1609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1610 | else | |
1611 | ac_cv_host_alias=$host_alias | |
1612 | test -z "$ac_cv_host_alias" && | |
1613 | ac_cv_host_alias=$ac_cv_build_alias | |
1614 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1615 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1616 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1617 | { (exit 1); exit 1; }; } | |
1618 | ||
1619 | fi | |
1620 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1621 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1622 | host=$ac_cv_host | |
1623 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1624 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1625 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1626 | ||
1627 | ||
1628 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1629 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1630 | if test "${ac_cv_target+set}" = set; then | |
1631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1632 | else | |
1633 | ac_cv_target_alias=$target_alias | |
1634 | test "x$ac_cv_target_alias" = "x" && | |
1635 | ac_cv_target_alias=$ac_cv_host_alias | |
1636 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1637 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1638 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1639 | { (exit 1); exit 1; }; } | |
1640 | ||
1641 | fi | |
1642 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1643 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1644 | target=$ac_cv_target | |
1645 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1646 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1647 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1648 | ||
1649 | ||
1650 | # The aliases save the names the user supplied, while $host etc. | |
1651 | # will get canonicalized. | |
1652 | test -n "$target_alias" && | |
1653 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1654 | NONENONEs,x,x, && | |
1655 | program_prefix=${target_alias}- | |
1656 | ||
1657 | ||
1658 | ||
ceec2216 RL |
1659 | wx_major_version_number=2 |
1660 | wx_minor_version_number=5 | |
e41c39d6 RD |
1661 | wx_release_number=4 |
1662 | wx_subrelease_number=0 | |
a848cd7e | 1663 | |
ceec2216 RL |
1664 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
1665 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
1666 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 1667 | |
ceec2216 | 1668 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 1669 | |
e41c39d6 | 1670 | WX_CURRENT=4 |
a848cd7e | 1671 | WX_REVISION=0 |
e41c39d6 | 1672 | WX_AGE=4 |
a848cd7e SC |
1673 | |
1674 | ||
1675 | ||
1676 | USE_UNIX=1 | |
1677 | USE_OS2=0 | |
1678 | USE_WIN32=0 | |
1679 | USE_DOS=0 | |
1680 | USE_BEOS=0 | |
1681 | USE_MAC=0 | |
1682 | ||
1683 | USE_AIX= | |
1684 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1685 | USE_GNU= USE_HPUX= | |
1686 | USE_LINUX= | |
1687 | USE_NETBSD= | |
1688 | USE_OPENBSD= | |
1689 | USE_OSF= USE_SGI= | |
1690 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1691 | USE_ULTRIX= | |
1692 | USE_UNIXWARE= | |
1693 | ||
1694 | USE_ALPHA= | |
1695 | ||
1696 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1697 | ||
1698 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1699 | ||
1700 | DEFAULT_wxUSE_COCOA=0 | |
1701 | DEFAULT_wxUSE_GTK=0 | |
1702 | DEFAULT_wxUSE_MAC=0 | |
1703 | DEFAULT_wxUSE_MGL=0 | |
1704 | DEFAULT_wxUSE_MICROWIN=0 | |
1705 | DEFAULT_wxUSE_MOTIF=0 | |
1706 | DEFAULT_wxUSE_MSW=0 | |
1707 | DEFAULT_wxUSE_PM=0 | |
1708 | DEFAULT_wxUSE_X11=0 | |
1709 | ||
1710 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1711 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1712 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1713 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1714 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1715 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1716 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1717 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1718 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1719 | ||
1720 | PROGRAM_EXT= | |
1721 | SO_SUFFIX=so | |
1722 | SAMPLES_RPATH_FLAG= | |
1723 | SAMPLES_RPATH_POSTLINK= | |
1724 | ||
1725 | case "${host}" in | |
1726 | *-hp-hpux* ) | |
1727 | USE_HPUX=1 | |
1728 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1729 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1730 | SO_SUFFIX=sl | |
1731 | cat >>confdefs.h <<\_ACEOF | |
1732 | #define __HPUX__ 1 | |
1733 | _ACEOF | |
1734 | ||
1735 | ;; | |
1736 | *-*-linux* ) | |
1737 | USE_LINUX=1 | |
1738 | cat >>confdefs.h <<\_ACEOF | |
1739 | #define __LINUX__ 1 | |
1740 | _ACEOF | |
1741 | ||
1742 | TMP=`uname -m` | |
1743 | if test "x$TMP" = "xalpha"; then | |
1744 | USE_ALPHA=1 | |
1745 | cat >>confdefs.h <<\_ACEOF | |
1746 | #define __ALPHA__ 1 | |
1747 | _ACEOF | |
1748 | ||
1749 | fi | |
1750 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1751 | ;; | |
1752 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1753 | USE_GNU=1 | |
1754 | TMP=`uname -m` | |
1755 | if test "x$TMP" = "xalpha"; then | |
1756 | USE_ALPHA=1 | |
1757 | cat >>confdefs.h <<\_ACEOF | |
1758 | #define __ALPHA__ 1 | |
1759 | _ACEOF | |
1760 | ||
1761 | fi | |
1762 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1763 | ;; | |
1764 | *-*-irix5* | *-*-irix6* ) | |
1765 | USE_SGI=1 | |
1766 | USE_SVR4=1 | |
1767 | cat >>confdefs.h <<\_ACEOF | |
1768 | #define __SGI__ 1 | |
1769 | _ACEOF | |
1770 | ||
1771 | cat >>confdefs.h <<\_ACEOF | |
1772 | #define __SVR4__ 1 | |
1773 | _ACEOF | |
1774 | ||
1775 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1776 | ;; | |
1777 | *-*-solaris2* ) | |
1778 | USE_SUN=1 | |
1779 | USE_SOLARIS=1 | |
1780 | USE_SVR4=1 | |
1781 | cat >>confdefs.h <<\_ACEOF | |
1782 | #define __SUN__ 1 | |
1783 | _ACEOF | |
1784 | ||
1785 | cat >>confdefs.h <<\_ACEOF | |
1786 | #define __SOLARIS__ 1 | |
1787 | _ACEOF | |
1788 | ||
1789 | cat >>confdefs.h <<\_ACEOF | |
1790 | #define __SVR4__ 1 | |
1791 | _ACEOF | |
1792 | ||
1793 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1794 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1795 | ;; | |
1796 | *-*-sunos4* ) | |
1797 | USE_SUN=1 | |
1798 | USE_SUNOS=1 | |
1799 | USE_BSD=1 | |
1800 | cat >>confdefs.h <<\_ACEOF | |
1801 | #define __SUN__ 1 | |
1802 | _ACEOF | |
1803 | ||
1804 | cat >>confdefs.h <<\_ACEOF | |
1805 | #define __SUNOS__ 1 | |
1806 | _ACEOF | |
1807 | ||
1808 | cat >>confdefs.h <<\_ACEOF | |
1809 | #define __BSD__ 1 | |
1810 | _ACEOF | |
1811 | ||
1812 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1813 | ;; | |
1814 | *-*-freebsd*) | |
1815 | USE_BSD=1 | |
1816 | USE_FREEBSD=1 | |
1817 | cat >>confdefs.h <<\_ACEOF | |
1818 | #define __FREEBSD__ 1 | |
1819 | _ACEOF | |
1820 | ||
1821 | cat >>confdefs.h <<\_ACEOF | |
1822 | #define __BSD__ 1 | |
1823 | _ACEOF | |
1824 | ||
1825 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1826 | ;; | |
1827 | *-*-openbsd*) | |
1828 | USE_BSD=1 | |
1829 | USE_OPENBSD=1 | |
1830 | cat >>confdefs.h <<\_ACEOF | |
1831 | #define __OPENBSD__ 1 | |
1832 | _ACEOF | |
1833 | ||
1834 | cat >>confdefs.h <<\_ACEOF | |
1835 | #define __BSD__ 1 | |
1836 | _ACEOF | |
1837 | ||
1838 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1839 | ;; | |
1840 | *-*-netbsd*) | |
1841 | USE_BSD=1 | |
1842 | USE_NETBSD=1 | |
1843 | cat >>confdefs.h <<\_ACEOF | |
1844 | #define __NETBSD__ 1 | |
1845 | _ACEOF | |
1846 | ||
1847 | cat >>confdefs.h <<\_ACEOF | |
1848 | #define __BSD__ 1 | |
1849 | _ACEOF | |
1850 | ||
1851 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1852 | ;; | |
1853 | *-*-osf* ) | |
1854 | USE_ALPHA=1 | |
1855 | USE_OSF=1 | |
1856 | cat >>confdefs.h <<\_ACEOF | |
1857 | #define __ALPHA__ 1 | |
1858 | _ACEOF | |
1859 | ||
1860 | cat >>confdefs.h <<\_ACEOF | |
1861 | #define __OSF__ 1 | |
1862 | _ACEOF | |
1863 | ||
1864 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1865 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1866 | ;; | |
1867 | *-*-dgux5* ) | |
1868 | USE_ALPHA=1 | |
1869 | USE_SVR4=1 | |
1870 | cat >>confdefs.h <<\_ACEOF | |
1871 | #define __ALPHA__ 1 | |
1872 | _ACEOF | |
1873 | ||
1874 | cat >>confdefs.h <<\_ACEOF | |
1875 | #define __SVR4__ 1 | |
1876 | _ACEOF | |
1877 | ||
1878 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1879 | ;; | |
1880 | *-*-sysv5* ) | |
1881 | USE_SYSV=1 | |
1882 | USE_SVR4=1 | |
1883 | cat >>confdefs.h <<\_ACEOF | |
1884 | #define __SYSV__ 1 | |
1885 | _ACEOF | |
1886 | ||
1887 | cat >>confdefs.h <<\_ACEOF | |
1888 | #define __SVR4__ 1 | |
1889 | _ACEOF | |
1890 | ||
1891 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1892 | ;; | |
1893 | *-*-aix* ) | |
1894 | USE_AIX=1 | |
1895 | USE_SYSV=1 | |
1896 | USE_SVR4=1 | |
1897 | SO_SUFFIX=a | |
1898 | cat >>confdefs.h <<\_ACEOF | |
1899 | #define __AIX__ 1 | |
1900 | _ACEOF | |
1901 | ||
1902 | cat >>confdefs.h <<\_ACEOF | |
1903 | #define __SYSV__ 1 | |
1904 | _ACEOF | |
1905 | ||
1906 | cat >>confdefs.h <<\_ACEOF | |
1907 | #define __SVR4__ 1 | |
1908 | _ACEOF | |
1909 | ||
1910 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1911 | ;; | |
1912 | ||
1913 | *-*-*UnixWare*) | |
1914 | USE_SYSV=1 | |
1915 | USE_SVR4=1 | |
1916 | USE_UNIXWARE=1 | |
1917 | cat >>confdefs.h <<\_ACEOF | |
1918 | #define __UNIXWARE__ 1 | |
1919 | _ACEOF | |
1920 | ||
1921 | ;; | |
1922 | ||
1923 | *-*-cygwin* | *-*-mingw32* ) | |
1924 | SO_SUFFIX=dll | |
1925 | PROGRAM_EXT=".exe" | |
1926 | RESCOMP=windres | |
1927 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1928 | ;; | |
1929 | ||
1930 | *-pc-msdosdjgpp ) | |
1931 | USE_UNIX=0 | |
1932 | USE_DOS=1 | |
1933 | cat >>confdefs.h <<\_ACEOF | |
1934 | #define __DOS__ 1 | |
1935 | _ACEOF | |
1936 | ||
1937 | PROGRAM_EXT=".exe" | |
1938 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
1939 | LIBS="$LIBS -lstdc++" | |
1940 | ;; | |
1941 | ||
1942 | *-pc-os2_emx | *-pc-os2-emx ) | |
1943 | cat >>confdefs.h <<\_ACEOF | |
1944 | #define __EMX__ 1 | |
1945 | _ACEOF | |
1946 | ||
1947 | USE_OS2=1 | |
1948 | cat >>confdefs.h <<\_ACEOF | |
1949 | #define __OS2__ 1 | |
1950 | _ACEOF | |
1951 | ||
1952 | PROGRAM_EXT=".exe" | |
1953 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1954 | CXX=gcc | |
1955 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1956 | ac_executable_extensions=".exe" | |
1957 | export ac_executable_extensions | |
1958 | ac_save_IFS="$IFS" | |
1959 | IFS='\\' | |
1960 | ac_TEMP_PATH= | |
1961 | for ac_dir in $PATH; do | |
1962 | IFS=$ac_save_IFS | |
1963 | if test -z "$ac_TEMP_PATH"; then | |
1964 | ac_TEMP_PATH="$ac_dir" | |
1965 | else | |
1966 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1967 | fi | |
1968 | done | |
1969 | export PATH="$ac_TEMP_PATH" | |
1970 | unset ac_TEMP_PATH | |
1971 | ;; | |
1972 | ||
1973 | powerpc-*-darwin* ) | |
1974 | USE_BSD=1 | |
1975 | USE_DARWIN=1 | |
1976 | SO_SUFFIX=dylib | |
1977 | cat >>confdefs.h <<\_ACEOF | |
1978 | #define __BSD__ 1 | |
1979 | _ACEOF | |
1980 | ||
1981 | cat >>confdefs.h <<\_ACEOF | |
1982 | #define __DARWIN__ 1 | |
a848cd7e SC |
1983 | _ACEOF |
1984 | ||
1985 | cat >>confdefs.h <<\_ACEOF | |
1986 | #define TARGET_CARBON 1 | |
1987 | _ACEOF | |
1988 | ||
1989 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1990 | ;; | |
1e9e8aba DE |
1991 | powerpc-apple-macos* ) |
1992 | USE_UNIX=0 | |
1993 | ac_cv_c_bigendian=yes | |
1994 | SO_SUFFIX=shlib | |
1995 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1996 | ;; | |
a848cd7e SC |
1997 | |
1998 | *-*-beos* ) | |
1999 | USE_BEOS=1 | |
2000 | cat >>confdefs.h <<\_ACEOF | |
2001 | #define __BEOS__ 1 | |
2002 | _ACEOF | |
2003 | ||
2004 | ;; | |
2005 | ||
2006 | *) | |
2007 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
2008 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
2009 | { (exit 1); exit 1; }; } | |
2010 | esac | |
2011 | ||
2012 | ||
2013 | ||
2014 | ||
2015 | wx_arg_cache_file="configarg.cache" | |
2016 | echo "loading argument cache $wx_arg_cache_file" | |
2017 | rm -f ${wx_arg_cache_file}.tmp | |
2018 | touch ${wx_arg_cache_file}.tmp | |
2019 | touch ${wx_arg_cache_file} | |
2020 | ||
2021 | ||
2022 | DEBUG_CONFIGURE=0 | |
2023 | if test $DEBUG_CONFIGURE = 1; then | |
2024 | DEFAULT_wxUSE_UNIVERSAL=no | |
2025 | DEFAULT_wxUSE_STL=no | |
2026 | ||
2027 | DEFAULT_wxUSE_NANOX=no | |
2028 | ||
2029 | DEFAULT_wxUSE_THREADS=yes | |
2030 | ||
2031 | DEFAULT_wxUSE_SHARED=yes | |
2032 | DEFAULT_wxUSE_OPTIMISE=no | |
2033 | DEFAULT_wxUSE_PROFILE=no | |
2034 | DEFAULT_wxUSE_NO_DEPS=no | |
2035 | DEFAULT_wxUSE_NO_RTTI=no | |
2036 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2037 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2038 | DEFAULT_wxUSE_PERMISSIVE=no |
2039 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2040 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2041 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2042 | DEFAULT_wxUSE_MEM_TRACING=no | |
2043 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2044 | DEFAULT_wxUSE_DMALLOC=no | |
2045 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2046 | ||
2047 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2048 | DEFAULT_wxUSE_LOG=yes | |
2049 | DEFAULT_wxUSE_LOGWINDOW=no | |
2050 | DEFAULT_wxUSE_LOGGUI=no | |
2051 | DEFAULT_wxUSE_LOGDIALOG=no | |
2052 | ||
2053 | DEFAULT_wxUSE_GUI=yes | |
2054 | DEFAULT_wxUSE_CONTROLS=no | |
2055 | ||
2056 | DEFAULT_wxUSE_REGEX=no | |
2057 | DEFAULT_wxUSE_XML=no | |
2058 | DEFAULT_wxUSE_EXPAT=no | |
2059 | DEFAULT_wxUSE_ZLIB=no | |
2060 | DEFAULT_wxUSE_LIBPNG=no | |
2061 | DEFAULT_wxUSE_LIBJPEG=no | |
2062 | DEFAULT_wxUSE_LIBTIFF=no | |
2063 | DEFAULT_wxUSE_LIBXPM=no | |
2064 | DEFAULT_wxUSE_LIBMSPACK=no | |
2065 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2066 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e SC |
2067 | DEFAULT_wxUSE_ODBC=no |
2068 | DEFAULT_wxUSE_OPENGL=no | |
2069 | ||
2070 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
eaff0f0d | 2071 | DEFAULT_wxUSE_STACKWALKER=no |
a848cd7e SC |
2072 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
2073 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2074 | DEFAULT_wxUSE_CMDLINE_PARSER=no | |
2075 | DEFAULT_wxUSE_DATETIME=no | |
2076 | DEFAULT_wxUSE_TIMER=no | |
2077 | DEFAULT_wxUSE_STOPWATCH=no | |
2078 | DEFAULT_wxUSE_FILE=no | |
2079 | DEFAULT_wxUSE_FFILE=no | |
2080 | DEFAULT_wxUSE_TEXTBUFFER=no | |
2081 | DEFAULT_wxUSE_TEXTFILE=no | |
2082 | DEFAULT_wxUSE_SOUND=no | |
3b57de8b RL |
2083 | DEFAULT_wxUSE_MEDIACTRL=no |
2084 | DEFAULT_wxUSE_DIRECTSHOW=no | |
a848cd7e SC |
2085 | DEFAULT_wxUSE_INTL=no |
2086 | DEFAULT_wxUSE_CONFIG=no | |
2087 | DEFAULT_wxUSE_FONTMAP=no | |
2088 | DEFAULT_wxUSE_STREAMS=no | |
2089 | DEFAULT_wxUSE_SOCKETS=no | |
2090 | DEFAULT_wxUSE_OLE=no | |
2091 | DEFAULT_wxUSE_DATAOBJ=no | |
2092 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2093 | DEFAULT_wxUSE_JOYSTICK=no | |
2094 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2095 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2096 | DEFAULT_wxUSE_LONGLONG=no | |
2097 | DEFAULT_wxUSE_GEOMETRY=no | |
2098 | ||
2099 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2100 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2101 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2102 | ||
2103 | DEFAULT_wxUSE_CLIPBOARD=no | |
2104 | DEFAULT_wxUSE_TOOLTIPS=no | |
2105 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2106 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2107 | DEFAULT_wxUSE_SPLINES=no | |
2108 | ||
8a7b1113 | 2109 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2110 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2111 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2112 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2113 | ||
2114 | DEFAULT_wxUSE_RESOURCES=no | |
2115 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2116 | DEFAULT_wxUSE_IPC=no | |
2117 | DEFAULT_wxUSE_HELP=no | |
2118 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2119 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2120 | DEFAULT_wxUSE_TREELAYOUT=no | |
2121 | DEFAULT_wxUSE_METAFILE=no | |
2122 | DEFAULT_wxUSE_MIMETYPE=no | |
2123 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2124 | DEFAULT_wxUSE_PROTOCOL=no | |
2125 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2126 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2127 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2128 | DEFAULT_wxUSE_URL=no | |
2129 | ||
2130 | DEFAULT_wxUSE_COMMONDLGS=no | |
2131 | DEFAULT_wxUSE_CHOICEDLG=no | |
2132 | DEFAULT_wxUSE_COLOURDLG=no | |
2133 | DEFAULT_wxUSE_DIRDLG=no | |
2134 | DEFAULT_wxUSE_FILEDLG=no | |
2135 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2136 | DEFAULT_wxUSE_FONTDLG=no | |
2137 | DEFAULT_wxUSE_MSGDLG=no | |
2138 | DEFAULT_wxUSE_NUMBERDLG=no | |
2139 | DEFAULT_wxUSE_TEXTDLG=no | |
2140 | DEFAULT_wxUSE_SPLASH=no | |
2141 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2142 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2143 | DEFAULT_wxUSE_WIZARDDLG=no | |
2144 | ||
2145 | DEFAULT_wxUSE_MENUS=no | |
2146 | DEFAULT_wxUSE_MINIFRAME=no | |
2147 | DEFAULT_wxUSE_HTML=no | |
9a8f0513 | 2148 | DEFAULT_wxUSE_XRC=no |
646b6ec1 | 2149 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2150 | DEFAULT_wxUSE_FILESYSTEM=no |
2151 | DEFAULT_wxUSE_FS_INET=no | |
2152 | DEFAULT_wxUSE_FS_ZIP=no | |
2153 | DEFAULT_wxUSE_BUSYINFO=no | |
9e8e867f | 2154 | DEFAULT_wxUSE_ARCHIVE_STREAMS=no |
a848cd7e | 2155 | DEFAULT_wxUSE_ZIPSTREAM=no |
a848cd7e SC |
2156 | DEFAULT_wxUSE_VALIDATORS=no |
2157 | ||
2158 | DEFAULT_wxUSE_ACCEL=no | |
2159 | DEFAULT_wxUSE_BUTTON=no | |
2160 | DEFAULT_wxUSE_BMPBUTTON=no | |
2161 | DEFAULT_wxUSE_CALCTRL=no | |
2162 | DEFAULT_wxUSE_CARET=no | |
2163 | DEFAULT_wxUSE_CHECKBOX=no | |
2164 | DEFAULT_wxUSE_CHECKLST=no | |
2165 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2166 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e | 2167 | DEFAULT_wxUSE_COMBOBOX=no |
da98e9be | 2168 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
2169 | DEFAULT_wxUSE_DISPLAY=no |
2170 | DEFAULT_wxUSE_GAUGE=no | |
2171 | DEFAULT_wxUSE_GRID=no | |
2172 | DEFAULT_wxUSE_IMAGLIST=no | |
2173 | DEFAULT_wxUSE_LISTBOOK=no | |
2174 | DEFAULT_wxUSE_LISTBOX=no | |
2175 | DEFAULT_wxUSE_LISTCTRL=no | |
2176 | DEFAULT_wxUSE_NOTEBOOK=no | |
2177 | DEFAULT_wxUSE_RADIOBOX=no | |
2178 | DEFAULT_wxUSE_RADIOBTN=no | |
2179 | DEFAULT_wxUSE_SASH=no | |
2180 | DEFAULT_wxUSE_SCROLLBAR=no | |
2181 | DEFAULT_wxUSE_SLIDER=no | |
2182 | DEFAULT_wxUSE_SPINBTN=no | |
2183 | DEFAULT_wxUSE_SPINCTRL=no | |
2184 | DEFAULT_wxUSE_SPLITTER=no | |
2185 | DEFAULT_wxUSE_STATBMP=no | |
2186 | DEFAULT_wxUSE_STATBOX=no | |
2187 | DEFAULT_wxUSE_STATLINE=no | |
2188 | DEFAULT_wxUSE_STATTEXT=no | |
2189 | DEFAULT_wxUSE_STATUSBAR=yes | |
2190 | DEFAULT_wxUSE_TABDIALOG=no | |
2191 | DEFAULT_wxUSE_TEXTCTRL=no | |
2192 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2193 | DEFAULT_wxUSE_TOOLBAR=no | |
2194 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2195 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
2196 | DEFAULT_wxUSE_TREECTRL=no | |
2197 | DEFAULT_wxUSE_POPUPWIN=no | |
2198 | DEFAULT_wxUSE_TIPWINDOW=no | |
2199 | ||
2200 | DEFAULT_wxUSE_UNICODE=no | |
2201 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2202 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2203 | ||
2204 | DEFAULT_wxUSE_PALETTE=no | |
2205 | DEFAULT_wxUSE_IMAGE=no | |
2206 | DEFAULT_wxUSE_GIF=no | |
2207 | DEFAULT_wxUSE_PCX=no | |
2208 | DEFAULT_wxUSE_PNM=no | |
2209 | DEFAULT_wxUSE_IFF=no | |
2210 | DEFAULT_wxUSE_XPM=no | |
2211 | DEFAULT_wxUSE_ICO_CUR=no | |
2212 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2213 | ||
2214 | DEFAULT_wxUSE_MONOLITHIC=no | |
2215 | DEFAULT_wxUSE_PLUGINS=no | |
2216 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2217 | else | |
2218 | DEFAULT_wxUSE_UNIVERSAL=no | |
2219 | DEFAULT_wxUSE_STL=no | |
2220 | ||
2221 | DEFAULT_wxUSE_NANOX=no | |
2222 | ||
2223 | DEFAULT_wxUSE_THREADS=yes | |
2224 | ||
2225 | DEFAULT_wxUSE_SHARED=yes | |
2226 | DEFAULT_wxUSE_OPTIMISE=yes | |
2227 | DEFAULT_wxUSE_PROFILE=no | |
2228 | DEFAULT_wxUSE_NO_DEPS=no | |
2229 | DEFAULT_wxUSE_NO_RTTI=no | |
2230 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2231 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2232 | DEFAULT_wxUSE_PERMISSIVE=no |
2233 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2234 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2235 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2236 | DEFAULT_wxUSE_MEM_TRACING=no | |
2237 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2238 | DEFAULT_wxUSE_DMALLOC=no | |
2239 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2240 | ||
2241 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2242 | DEFAULT_wxUSE_LOG=yes | |
2243 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2244 | DEFAULT_wxUSE_LOGGUI=yes | |
2245 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2246 | ||
2247 | DEFAULT_wxUSE_GUI=yes | |
2248 | ||
2249 | DEFAULT_wxUSE_REGEX=yes | |
2250 | DEFAULT_wxUSE_XML=yes | |
2251 | DEFAULT_wxUSE_EXPAT=yes | |
2252 | DEFAULT_wxUSE_ZLIB=yes | |
2253 | DEFAULT_wxUSE_LIBPNG=yes | |
2254 | DEFAULT_wxUSE_LIBJPEG=yes | |
2255 | DEFAULT_wxUSE_LIBTIFF=yes | |
2256 | DEFAULT_wxUSE_LIBXPM=yes | |
2257 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2258 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2259 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e SC |
2260 | DEFAULT_wxUSE_ODBC=no |
2261 | DEFAULT_wxUSE_OPENGL=no | |
2262 | ||
2263 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
eaff0f0d | 2264 | DEFAULT_wxUSE_STACKWALKER=yes |
a848cd7e SC |
2265 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
2266 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2267 | DEFAULT_wxUSE_CMDLINE_PARSER=yes | |
2268 | DEFAULT_wxUSE_DATETIME=yes | |
2269 | DEFAULT_wxUSE_TIMER=yes | |
2270 | DEFAULT_wxUSE_STOPWATCH=yes | |
2271 | DEFAULT_wxUSE_FILE=yes | |
2272 | DEFAULT_wxUSE_FFILE=yes | |
2273 | DEFAULT_wxUSE_TEXTBUFFER=yes | |
2274 | DEFAULT_wxUSE_TEXTFILE=yes | |
2275 | DEFAULT_wxUSE_SOUND=yes | |
3b57de8b RL |
2276 | DEFAULT_wxUSE_MEDIACTRL=no |
2277 | DEFAULT_wxUSE_DIRECTSHOW=no | |
a848cd7e SC |
2278 | DEFAULT_wxUSE_INTL=yes |
2279 | DEFAULT_wxUSE_CONFIG=yes | |
2280 | DEFAULT_wxUSE_FONTMAP=yes | |
2281 | DEFAULT_wxUSE_STREAMS=yes | |
2282 | DEFAULT_wxUSE_SOCKETS=yes | |
2283 | DEFAULT_wxUSE_OLE=yes | |
2284 | DEFAULT_wxUSE_DATAOBJ=yes | |
2285 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2286 | DEFAULT_wxUSE_JOYSTICK=yes | |
2287 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2288 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2289 | DEFAULT_wxUSE_LONGLONG=yes | |
2290 | DEFAULT_wxUSE_GEOMETRY=yes | |
2291 | ||
2292 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2293 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2294 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2295 | ||
2296 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2297 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2298 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2299 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2300 | DEFAULT_wxUSE_SPLINES=yes | |
2301 | ||
8a7b1113 | 2302 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2303 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2304 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2305 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2306 | ||
2307 | DEFAULT_wxUSE_RESOURCES=no | |
2308 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2309 | DEFAULT_wxUSE_IPC=yes | |
2310 | DEFAULT_wxUSE_HELP=yes | |
2311 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2312 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2313 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2314 | DEFAULT_wxUSE_METAFILE=yes | |
2315 | DEFAULT_wxUSE_MIMETYPE=yes | |
2316 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2317 | DEFAULT_wxUSE_PROTOCOL=yes | |
2318 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2319 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2320 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2321 | DEFAULT_wxUSE_URL=yes | |
2322 | ||
2323 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2324 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2325 | DEFAULT_wxUSE_COLOURDLG=yes | |
2326 | DEFAULT_wxUSE_DIRDLG=yes | |
2327 | DEFAULT_wxUSE_FILEDLG=yes | |
2328 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2329 | DEFAULT_wxUSE_FONTDLG=yes | |
2330 | DEFAULT_wxUSE_MSGDLG=yes | |
2331 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2332 | DEFAULT_wxUSE_TEXTDLG=yes | |
2333 | DEFAULT_wxUSE_SPLASH=yes | |
2334 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2335 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2336 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2337 | ||
2338 | DEFAULT_wxUSE_MENUS=yes | |
2339 | DEFAULT_wxUSE_MINIFRAME=yes | |
2340 | DEFAULT_wxUSE_HTML=yes | |
9a8f0513 | 2341 | DEFAULT_wxUSE_XRC=yes |
646b6ec1 | 2342 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2343 | DEFAULT_wxUSE_FILESYSTEM=yes |
2344 | DEFAULT_wxUSE_FS_INET=yes | |
2345 | DEFAULT_wxUSE_FS_ZIP=yes | |
2346 | DEFAULT_wxUSE_BUSYINFO=yes | |
9e8e867f | 2347 | DEFAULT_wxUSE_ARCHIVE_STREAMS=yes |
a848cd7e | 2348 | DEFAULT_wxUSE_ZIPSTREAM=yes |
a848cd7e SC |
2349 | DEFAULT_wxUSE_VALIDATORS=yes |
2350 | ||
2351 | DEFAULT_wxUSE_ACCEL=yes | |
2352 | DEFAULT_wxUSE_BUTTON=yes | |
2353 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2354 | DEFAULT_wxUSE_CALCTRL=yes | |
2355 | DEFAULT_wxUSE_CARET=yes | |
2356 | DEFAULT_wxUSE_CHECKBOX=yes | |
2357 | DEFAULT_wxUSE_CHECKLST=yes | |
2358 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2359 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e | 2360 | DEFAULT_wxUSE_COMBOBOX=yes |
da98e9be | 2361 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
2362 | DEFAULT_wxUSE_DISPLAY=yes |
2363 | DEFAULT_wxUSE_GAUGE=yes | |
2364 | DEFAULT_wxUSE_GRID=yes | |
2365 | DEFAULT_wxUSE_IMAGLIST=yes | |
2366 | DEFAULT_wxUSE_LISTBOOK=yes | |
2367 | DEFAULT_wxUSE_LISTBOX=yes | |
2368 | DEFAULT_wxUSE_LISTCTRL=yes | |
2369 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2370 | DEFAULT_wxUSE_RADIOBOX=yes | |
2371 | DEFAULT_wxUSE_RADIOBTN=yes | |
2372 | DEFAULT_wxUSE_SASH=yes | |
2373 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2374 | DEFAULT_wxUSE_SLIDER=yes | |
2375 | DEFAULT_wxUSE_SPINBTN=yes | |
2376 | DEFAULT_wxUSE_SPINCTRL=yes | |
2377 | DEFAULT_wxUSE_SPLITTER=yes | |
2378 | DEFAULT_wxUSE_STATBMP=yes | |
2379 | DEFAULT_wxUSE_STATBOX=yes | |
2380 | DEFAULT_wxUSE_STATLINE=yes | |
2381 | DEFAULT_wxUSE_STATTEXT=yes | |
2382 | DEFAULT_wxUSE_STATUSBAR=yes | |
2383 | DEFAULT_wxUSE_TABDIALOG=no | |
2384 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2385 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2386 | DEFAULT_wxUSE_TOOLBAR=yes | |
2387 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2388 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
2389 | DEFAULT_wxUSE_TREECTRL=yes | |
2390 | DEFAULT_wxUSE_POPUPWIN=yes | |
2391 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2392 | ||
2393 | DEFAULT_wxUSE_UNICODE=no | |
2394 | DEFAULT_wxUSE_UNICODE_MSLU=yes | |
2395 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2396 | ||
2397 | DEFAULT_wxUSE_PALETTE=yes | |
2398 | DEFAULT_wxUSE_IMAGE=yes | |
2399 | DEFAULT_wxUSE_GIF=yes | |
2400 | DEFAULT_wxUSE_PCX=yes | |
2401 | DEFAULT_wxUSE_IFF=no | |
2402 | DEFAULT_wxUSE_PNM=yes | |
2403 | DEFAULT_wxUSE_XPM=yes | |
2404 | DEFAULT_wxUSE_ICO_CUR=yes | |
2405 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2406 | ||
2407 | DEFAULT_wxUSE_MONOLITHIC=no | |
2408 | DEFAULT_wxUSE_PLUGINS=no | |
2409 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e VS |
2410 | |
2411 | DEFAULT_wxUSE_GTK2=yes | |
a848cd7e SC |
2412 | fi |
2413 | ||
2414 | ||
2415 | ||
2416 | for toolkit in `echo $ALL_TOOLKITS`; do | |
2417 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2418 | if test "x$LINE" != "x" ; then | |
2419 | has_toolkit_in_cache=1 | |
2420 | eval "DEFAULT_$LINE" | |
2421 | eval "CACHE_$toolkit=1" | |
2422 | fi | |
2423 | done | |
2424 | ||
2425 | ||
2426 | ||
2427 | enablestring= | |
2428 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2429 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2430 | no_cache=0 | |
2431 | # Check whether --enable-gui or --disable-gui was given. | |
2432 | if test "${enable_gui+set}" = set; then | |
2433 | enableval="$enable_gui" | |
2434 | ||
2435 | if test "$enableval" = yes; then | |
2436 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2437 | else | |
2438 | ac_cv_use_gui='wxUSE_GUI=no' | |
2439 | fi | |
2440 | ||
2441 | else | |
2442 | ||
2443 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2444 | if test "x$LINE" != x ; then | |
2445 | eval "DEFAULT_$LINE" | |
2446 | else | |
2447 | no_cache=1 | |
2448 | fi | |
2449 | ||
2450 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2451 | ||
2452 | fi; | |
2453 | ||
2454 | eval "$ac_cv_use_gui" | |
2455 | if test "$no_cache" != 1; then | |
2456 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2457 | fi | |
2458 | ||
2459 | if test "$wxUSE_GUI" = yes; then | |
2460 | echo "$as_me:$LINENO: result: yes" >&5 | |
2461 | echo "${ECHO_T}yes" >&6 | |
2462 | else | |
2463 | echo "$as_me:$LINENO: result: no" >&5 | |
2464 | echo "${ECHO_T}no" >&6 | |
2465 | fi | |
2466 | ||
2467 | ||
2468 | enablestring= | |
2469 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2470 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2471 | no_cache=0 | |
2472 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2473 | if test "${enable_monolithic+set}" = set; then | |
2474 | enableval="$enable_monolithic" | |
2475 | ||
2476 | if test "$enableval" = yes; then | |
2477 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2478 | else | |
2479 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2480 | fi | |
2481 | ||
2482 | else | |
2483 | ||
2484 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2485 | if test "x$LINE" != x ; then | |
2486 | eval "DEFAULT_$LINE" | |
2487 | else | |
2488 | no_cache=1 | |
2489 | fi | |
2490 | ||
2491 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2492 | ||
2493 | fi; | |
2494 | ||
2495 | eval "$ac_cv_use_monolithic" | |
2496 | if test "$no_cache" != 1; then | |
2497 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2498 | fi | |
2499 | ||
2500 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2501 | echo "$as_me:$LINENO: result: yes" >&5 | |
2502 | echo "${ECHO_T}yes" >&6 | |
2503 | else | |
2504 | echo "$as_me:$LINENO: result: no" >&5 | |
2505 | echo "${ECHO_T}no" >&6 | |
2506 | fi | |
2507 | ||
2508 | ||
2509 | enablestring= | |
2510 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2511 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2512 | no_cache=0 | |
2513 | # Check whether --enable-plugins or --disable-plugins was given. | |
2514 | if test "${enable_plugins+set}" = set; then | |
2515 | enableval="$enable_plugins" | |
2516 | ||
2517 | if test "$enableval" = yes; then | |
2518 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2519 | else | |
2520 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2521 | fi | |
2522 | ||
2523 | else | |
2524 | ||
2525 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2526 | if test "x$LINE" != x ; then | |
2527 | eval "DEFAULT_$LINE" | |
2528 | else | |
2529 | no_cache=1 | |
2530 | fi | |
2531 | ||
2532 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2533 | ||
2534 | fi; | |
2535 | ||
2536 | eval "$ac_cv_use_plugins" | |
2537 | if test "$no_cache" != 1; then | |
2538 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2539 | fi | |
2540 | ||
2541 | if test "$wxUSE_PLUGINS" = yes; then | |
2542 | echo "$as_me:$LINENO: result: yes" >&5 | |
2543 | echo "${ECHO_T}yes" >&6 | |
2544 | else | |
2545 | echo "$as_me:$LINENO: result: no" >&5 | |
2546 | echo "${ECHO_T}no" >&6 | |
2547 | fi | |
2548 | ||
2549 | ||
2550 | if test "$wxUSE_GUI" = "yes"; then | |
2551 | ||
2552 | ||
2553 | enablestring= | |
2554 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2555 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2556 | no_cache=0 | |
2557 | # Check whether --enable-universal or --disable-universal was given. | |
2558 | if test "${enable_universal+set}" = set; then | |
2559 | enableval="$enable_universal" | |
2560 | ||
2561 | if test "$enableval" = yes; then | |
2562 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2563 | else | |
2564 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2565 | fi | |
2566 | ||
2567 | else | |
2568 | ||
2569 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2570 | if test "x$LINE" != x ; then | |
2571 | eval "DEFAULT_$LINE" | |
2572 | else | |
2573 | no_cache=1 | |
2574 | fi | |
2575 | ||
2576 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2577 | ||
2578 | fi; | |
2579 | ||
2580 | eval "$ac_cv_use_universal" | |
2581 | if test "$no_cache" != 1; then | |
2582 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2583 | fi | |
2584 | ||
2585 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2586 | echo "$as_me:$LINENO: result: yes" >&5 | |
2587 | echo "${ECHO_T}yes" >&6 | |
2588 | else | |
2589 | echo "$as_me:$LINENO: result: no" >&5 | |
2590 | echo "${ECHO_T}no" >&6 | |
2591 | fi | |
2592 | ||
2593 | ||
2594 | # Check whether --with-gtk or --without-gtk was given. | |
2595 | if test "${with_gtk+set}" = set; then | |
2596 | withval="$with_gtk" | |
2597 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2598 | fi; | |
2599 | ||
2600 | # Check whether --with-motif or --without-motif was given. | |
2601 | if test "${with_motif+set}" = set; then | |
2602 | withval="$with_motif" | |
2603 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2604 | fi; | |
2605 | ||
2606 | # Check whether --with-mac or --without-mac was given. | |
2607 | if test "${with_mac+set}" = set; then | |
2608 | withval="$with_mac" | |
c228d3a4 | 2609 | wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2610 | fi; |
2611 | ||
2612 | # Check whether --with-cocoa or --without-cocoa was given. | |
2613 | if test "${with_cocoa+set}" = set; then | |
2614 | withval="$with_cocoa" | |
c228d3a4 | 2615 | wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2616 | fi; |
2617 | ||
2618 | # Check whether --with-wine or --without-wine was given. | |
2619 | if test "${with_wine+set}" = set; then | |
2620 | withval="$with_wine" | |
2621 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2622 | fi; | |
2623 | ||
2624 | # Check whether --with-msw or --without-msw was given. | |
2625 | if test "${with_msw+set}" = set; then | |
2626 | withval="$with_msw" | |
2627 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2628 | fi; | |
2629 | ||
2630 | # Check whether --with-pm or --without-pm was given. | |
2631 | if test "${with_pm+set}" = set; then | |
2632 | withval="$with_pm" | |
2633 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2634 | fi; | |
2635 | ||
2636 | # Check whether --with-mgl or --without-mgl was given. | |
2637 | if test "${with_mgl+set}" = set; then | |
2638 | withval="$with_mgl" | |
2639 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2640 | fi; | |
2641 | ||
2642 | # Check whether --with-microwin or --without-microwin was given. | |
2643 | if test "${with_microwin+set}" = set; then | |
2644 | withval="$with_microwin" | |
2645 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2646 | fi; | |
2647 | ||
2648 | # Check whether --with-x11 or --without-x11 was given. | |
2649 | if test "${with_x11+set}" = set; then | |
2650 | withval="$with_x11" | |
2651 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2652 | fi; | |
2653 | ||
2654 | enablestring= | |
2655 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2656 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2657 | no_cache=0 | |
2658 | # Check whether --enable-nanox or --disable-nanox was given. | |
2659 | if test "${enable_nanox+set}" = set; then | |
2660 | enableval="$enable_nanox" | |
2661 | ||
2662 | if test "$enableval" = yes; then | |
2663 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2664 | else | |
2665 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2666 | fi | |
2667 | ||
2668 | else | |
2669 | ||
2670 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2671 | if test "x$LINE" != x ; then | |
2672 | eval "DEFAULT_$LINE" | |
2673 | else | |
2674 | no_cache=1 | |
2675 | fi | |
2676 | ||
2677 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2678 | ||
2679 | fi; | |
2680 | ||
2681 | eval "$ac_cv_use_nanox" | |
2682 | if test "$no_cache" != 1; then | |
2683 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2684 | fi | |
2685 | ||
2686 | if test "$wxUSE_NANOX" = yes; then | |
2687 | echo "$as_me:$LINENO: result: yes" >&5 | |
2688 | echo "${ECHO_T}yes" >&6 | |
2689 | else | |
2690 | echo "$as_me:$LINENO: result: no" >&5 | |
2691 | echo "${ECHO_T}no" >&6 | |
2692 | fi | |
2693 | ||
2694 | ||
2695 | ||
2696 | enablestring= | |
2697 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 | |
2698 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
2699 | no_cache=0 | |
2700 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
2701 | if test "${enable_gtk2+set}" = set; then | |
2702 | enableval="$enable_gtk2" | |
2703 | ||
2704 | if test "$enableval" = yes; then | |
2705 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2706 | else | |
2707 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2708 | fi | |
2709 | ||
2710 | else | |
2711 | ||
2712 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` | |
2713 | if test "x$LINE" != x ; then | |
2714 | eval "DEFAULT_$LINE" | |
2715 | else | |
2716 | no_cache=1 | |
2717 | fi | |
2718 | ||
2719 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
2720 | ||
2721 | fi; | |
2722 | ||
2723 | eval "$ac_cv_use_gtk2" | |
2724 | if test "$no_cache" != 1; then | |
2725 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2726 | fi | |
2727 | ||
2728 | if test "$wxUSE_GTK2" = yes; then | |
2729 | echo "$as_me:$LINENO: result: yes" >&5 | |
2730 | echo "${ECHO_T}yes" >&6 | |
2731 | else | |
2732 | echo "$as_me:$LINENO: result: no" >&5 | |
2733 | echo "${ECHO_T}no" >&6 | |
2734 | fi | |
2735 | ||
2736 | ||
2737 | enablestring= | |
2738 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2739 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2740 | no_cache=0 | |
2741 | # Check whether --enable-gpe or --disable-gpe was given. | |
2742 | if test "${enable_gpe+set}" = set; then | |
2743 | enableval="$enable_gpe" | |
2744 | ||
2745 | if test "$enableval" = yes; then | |
2746 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2747 | else | |
2748 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2749 | fi | |
2750 | ||
2751 | else | |
2752 | ||
2753 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2754 | if test "x$LINE" != x ; then | |
2755 | eval "DEFAULT_$LINE" | |
2756 | else | |
2757 | no_cache=1 | |
2758 | fi | |
2759 | ||
2760 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2761 | ||
2762 | fi; | |
2763 | ||
2764 | eval "$ac_cv_use_gpe" | |
2765 | if test "$no_cache" != 1; then | |
2766 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2767 | fi | |
2768 | ||
2769 | if test "$wxUSE_GPE" = yes; then | |
2770 | echo "$as_me:$LINENO: result: yes" >&5 | |
2771 | echo "${ECHO_T}yes" >&6 | |
2772 | else | |
2773 | echo "$as_me:$LINENO: result: no" >&5 | |
2774 | echo "${ECHO_T}no" >&6 | |
2775 | fi | |
2776 | ||
2777 | ||
2778 | ||
2779 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2780 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2781 | no_cache=0 | |
2782 | ||
2783 | # Check whether --with-libpng or --without-libpng was given. | |
2784 | if test "${with_libpng+set}" = set; then | |
2785 | withval="$with_libpng" | |
2786 | ||
2787 | if test "$withval" = yes; then | |
2788 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2789 | elif test "$withval" = no; then | |
2790 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2791 | elif test "$withval" = sys; then | |
2792 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2793 | elif test "$withval" = builtin; then | |
2794 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2795 | else | |
2796 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2797 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2798 | { (exit 1); exit 1; }; } | |
2799 | fi | |
2800 | ||
2801 | else | |
2802 | ||
2803 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2804 | if test "x$LINE" != x ; then | |
2805 | eval "DEFAULT_$LINE" | |
2806 | else | |
2807 | no_cache=1 | |
2808 | fi | |
2809 | ||
2810 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2811 | ||
2812 | fi; | |
2813 | ||
2814 | eval "$ac_cv_use_libpng" | |
2815 | if test "$no_cache" != 1; then | |
2816 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2817 | fi | |
2818 | ||
2819 | if test "$wxUSE_LIBPNG" = yes; then | |
2820 | echo "$as_me:$LINENO: result: yes" >&5 | |
2821 | echo "${ECHO_T}yes" >&6 | |
2822 | elif test "$wxUSE_LIBPNG" = no; then | |
2823 | echo "$as_me:$LINENO: result: no" >&5 | |
2824 | echo "${ECHO_T}no" >&6 | |
2825 | elif test "$wxUSE_LIBPNG" = sys; then | |
2826 | echo "$as_me:$LINENO: result: system version" >&5 | |
2827 | echo "${ECHO_T}system version" >&6 | |
2828 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2829 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2830 | echo "${ECHO_T}builtin version" >&6 | |
2831 | else | |
2832 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2833 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2834 | { (exit 1); exit 1; }; } | |
2835 | fi | |
2836 | ||
2837 | ||
2838 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2839 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2840 | no_cache=0 | |
2841 | ||
2842 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2843 | if test "${with_libjpeg+set}" = set; then | |
2844 | withval="$with_libjpeg" | |
2845 | ||
2846 | if test "$withval" = yes; then | |
2847 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2848 | elif test "$withval" = no; then | |
2849 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2850 | elif test "$withval" = sys; then | |
2851 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2852 | elif test "$withval" = builtin; then | |
2853 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2854 | else | |
2855 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2856 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2857 | { (exit 1); exit 1; }; } | |
2858 | fi | |
2859 | ||
2860 | else | |
2861 | ||
2862 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2863 | if test "x$LINE" != x ; then | |
2864 | eval "DEFAULT_$LINE" | |
2865 | else | |
2866 | no_cache=1 | |
2867 | fi | |
2868 | ||
2869 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2870 | ||
2871 | fi; | |
2872 | ||
2873 | eval "$ac_cv_use_libjpeg" | |
2874 | if test "$no_cache" != 1; then | |
2875 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2876 | fi | |
2877 | ||
2878 | if test "$wxUSE_LIBJPEG" = yes; then | |
2879 | echo "$as_me:$LINENO: result: yes" >&5 | |
2880 | echo "${ECHO_T}yes" >&6 | |
2881 | elif test "$wxUSE_LIBJPEG" = no; then | |
2882 | echo "$as_me:$LINENO: result: no" >&5 | |
2883 | echo "${ECHO_T}no" >&6 | |
2884 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2885 | echo "$as_me:$LINENO: result: system version" >&5 | |
2886 | echo "${ECHO_T}system version" >&6 | |
2887 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2888 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2889 | echo "${ECHO_T}builtin version" >&6 | |
2890 | else | |
2891 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2892 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2893 | { (exit 1); exit 1; }; } | |
2894 | fi | |
2895 | ||
2896 | ||
2897 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2898 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2899 | no_cache=0 | |
2900 | ||
2901 | # Check whether --with-libtiff or --without-libtiff was given. | |
2902 | if test "${with_libtiff+set}" = set; then | |
2903 | withval="$with_libtiff" | |
2904 | ||
2905 | if test "$withval" = yes; then | |
2906 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2907 | elif test "$withval" = no; then | |
2908 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2909 | elif test "$withval" = sys; then | |
2910 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2911 | elif test "$withval" = builtin; then | |
2912 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2913 | else | |
2914 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2915 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2916 | { (exit 1); exit 1; }; } | |
2917 | fi | |
2918 | ||
2919 | else | |
2920 | ||
2921 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2922 | if test "x$LINE" != x ; then | |
2923 | eval "DEFAULT_$LINE" | |
2924 | else | |
2925 | no_cache=1 | |
2926 | fi | |
2927 | ||
2928 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2929 | ||
2930 | fi; | |
2931 | ||
2932 | eval "$ac_cv_use_libtiff" | |
2933 | if test "$no_cache" != 1; then | |
2934 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2935 | fi | |
2936 | ||
2937 | if test "$wxUSE_LIBTIFF" = yes; then | |
2938 | echo "$as_me:$LINENO: result: yes" >&5 | |
2939 | echo "${ECHO_T}yes" >&6 | |
2940 | elif test "$wxUSE_LIBTIFF" = no; then | |
2941 | echo "$as_me:$LINENO: result: no" >&5 | |
2942 | echo "${ECHO_T}no" >&6 | |
2943 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2944 | echo "$as_me:$LINENO: result: system version" >&5 | |
2945 | echo "${ECHO_T}system version" >&6 | |
2946 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2947 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2948 | echo "${ECHO_T}builtin version" >&6 | |
2949 | else | |
2950 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2951 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2952 | { (exit 1); exit 1; }; } | |
2953 | fi | |
2954 | ||
2955 | ||
2956 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
2957 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2958 | no_cache=0 | |
2959 | ||
2960 | # Check whether --with-libxpm or --without-libxpm was given. | |
2961 | if test "${with_libxpm+set}" = set; then | |
2962 | withval="$with_libxpm" | |
2963 | ||
2964 | if test "$withval" = yes; then | |
2965 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2966 | elif test "$withval" = no; then | |
2967 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2968 | elif test "$withval" = sys; then | |
2969 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2970 | elif test "$withval" = builtin; then | |
2971 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2972 | else | |
2973 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2974 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2975 | { (exit 1); exit 1; }; } | |
2976 | fi | |
2977 | ||
2978 | else | |
2979 | ||
2980 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2981 | if test "x$LINE" != x ; then | |
2982 | eval "DEFAULT_$LINE" | |
2983 | else | |
2984 | no_cache=1 | |
2985 | fi | |
2986 | ||
2987 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2988 | ||
2989 | fi; | |
2990 | ||
2991 | eval "$ac_cv_use_libxpm" | |
2992 | if test "$no_cache" != 1; then | |
2993 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2994 | fi | |
2995 | ||
2996 | if test "$wxUSE_LIBXPM" = yes; then | |
2997 | echo "$as_me:$LINENO: result: yes" >&5 | |
2998 | echo "${ECHO_T}yes" >&6 | |
2999 | elif test "$wxUSE_LIBXPM" = no; then | |
3000 | echo "$as_me:$LINENO: result: no" >&5 | |
3001 | echo "${ECHO_T}no" >&6 | |
3002 | elif test "$wxUSE_LIBXPM" = sys; then | |
3003 | echo "$as_me:$LINENO: result: system version" >&5 | |
3004 | echo "${ECHO_T}system version" >&6 | |
3005 | elif test "$wxUSE_LIBXPM" = builtin; then | |
3006 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3007 | echo "${ECHO_T}builtin version" >&6 | |
3008 | else | |
3009 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3010 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3011 | { (exit 1); exit 1; }; } | |
3012 | fi | |
3013 | ||
3014 | ||
3015 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 | |
3016 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
3017 | no_cache=0 | |
3018 | ||
3019 | # Check whether --with-libmspack or --without-libmspack was given. | |
3020 | if test "${with_libmspack+set}" = set; then | |
3021 | withval="$with_libmspack" | |
3022 | ||
3023 | if test "$withval" = yes; then | |
3024 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3025 | else | |
3026 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3027 | fi | |
3028 | ||
3029 | else | |
3030 | ||
3031 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3032 | if test "x$LINE" != x ; then | |
3033 | eval "DEFAULT_$LINE" | |
3034 | else | |
3035 | no_cache=1 | |
3036 | fi | |
3037 | ||
3038 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3039 | ||
3040 | fi; | |
3041 | ||
3042 | eval "$ac_cv_use_libmspack" | |
3043 | if test "$no_cache" != 1; then | |
3044 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3045 | fi | |
3046 | ||
3047 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3048 | echo "$as_me:$LINENO: result: yes" >&5 | |
3049 | echo "${ECHO_T}yes" >&6 | |
3050 | else | |
3051 | echo "$as_me:$LINENO: result: no" >&5 | |
3052 | echo "${ECHO_T}no" >&6 | |
3053 | fi | |
3054 | ||
3055 | ||
3056 | echo "$as_me:$LINENO: checking for --with-sdl" >&5 | |
3057 | echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6 | |
3058 | no_cache=0 | |
3059 | ||
3060 | # Check whether --with-sdl or --without-sdl was given. | |
3061 | if test "${with_sdl+set}" = set; then | |
3062 | withval="$with_sdl" | |
3063 | ||
3064 | if test "$withval" = yes; then | |
3065 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3066 | else | |
3067 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3068 | fi | |
3069 | ||
3070 | else | |
3071 | ||
3072 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3073 | if test "x$LINE" != x ; then | |
3074 | eval "DEFAULT_$LINE" | |
3075 | else | |
3076 | no_cache=1 | |
3077 | fi | |
3078 | ||
3079 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3080 | ||
3081 | fi; | |
3082 | ||
3083 | eval "$ac_cv_use_sdl" | |
3084 | if test "$no_cache" != 1; then | |
3085 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3086 | fi | |
3087 | ||
3088 | if test "$wxUSE_LIBSDL" = yes; then | |
3089 | echo "$as_me:$LINENO: result: yes" >&5 | |
3090 | echo "${ECHO_T}yes" >&6 | |
3091 | else | |
3092 | echo "$as_me:$LINENO: result: no" >&5 | |
3093 | echo "${ECHO_T}no" >&6 | |
3094 | fi | |
3095 | ||
3096 | ||
d1c38808 VZ |
3097 | echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5 |
3098 | echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6 | |
3099 | no_cache=0 | |
3100 | ||
3101 | # Check whether --with-gnomeprint or --without-gnomeprint was given. | |
3102 | if test "${with_gnomeprint+set}" = set; then | |
3103 | withval="$with_gnomeprint" | |
3104 | ||
3105 | if test "$withval" = yes; then | |
3106 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' | |
3107 | else | |
3108 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' | |
3109 | fi | |
3110 | ||
3111 | else | |
3112 | ||
3113 | LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}` | |
3114 | if test "x$LINE" != x ; then | |
3115 | eval "DEFAULT_$LINE" | |
3116 | else | |
3117 | no_cache=1 | |
3118 | fi | |
3119 | ||
3120 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT | |
3121 | ||
3122 | fi; | |
3123 | ||
3124 | eval "$ac_cv_use_gnomeprint" | |
3125 | if test "$no_cache" != 1; then | |
3126 | echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp | |
3127 | fi | |
3128 | ||
3129 | if test "$wxUSE_LIBGNOMEPRINT" = yes; then | |
3130 | echo "$as_me:$LINENO: result: yes" >&5 | |
3131 | echo "${ECHO_T}yes" >&6 | |
3132 | else | |
3133 | echo "$as_me:$LINENO: result: no" >&5 | |
3134 | echo "${ECHO_T}no" >&6 | |
3135 | fi | |
3136 | ||
3137 | ||
a848cd7e SC |
3138 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 |
3139 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
3140 | no_cache=0 | |
3141 | ||
3142 | # Check whether --with-opengl or --without-opengl was given. | |
3143 | if test "${with_opengl+set}" = set; then | |
3144 | withval="$with_opengl" | |
3145 | ||
3146 | if test "$withval" = yes; then | |
3147 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3148 | else | |
3149 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3150 | fi | |
3151 | ||
3152 | else | |
3153 | ||
3154 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3155 | if test "x$LINE" != x ; then | |
3156 | eval "DEFAULT_$LINE" | |
3157 | else | |
3158 | no_cache=1 | |
3159 | fi | |
3160 | ||
3161 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3162 | ||
3163 | fi; | |
3164 | ||
3165 | eval "$ac_cv_use_opengl" | |
3166 | if test "$no_cache" != 1; then | |
3167 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3168 | fi | |
3169 | ||
3170 | if test "$wxUSE_OPENGL" = yes; then | |
3171 | echo "$as_me:$LINENO: result: yes" >&5 | |
3172 | echo "${ECHO_T}yes" >&6 | |
3173 | else | |
3174 | echo "$as_me:$LINENO: result: no" >&5 | |
3175 | echo "${ECHO_T}no" >&6 | |
3176 | fi | |
3177 | ||
3178 | ||
3179 | fi | |
3180 | ||
3181 | ||
3182 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 | |
3183 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
3184 | no_cache=0 | |
3185 | ||
3186 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3187 | if test "${with_dmalloc+set}" = set; then | |
3188 | withval="$with_dmalloc" | |
3189 | ||
3190 | if test "$withval" = yes; then | |
3191 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3192 | else | |
3193 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3194 | fi | |
3195 | ||
3196 | else | |
3197 | ||
3198 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3199 | if test "x$LINE" != x ; then | |
3200 | eval "DEFAULT_$LINE" | |
3201 | else | |
3202 | no_cache=1 | |
3203 | fi | |
3204 | ||
3205 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3206 | ||
3207 | fi; | |
3208 | ||
3209 | eval "$ac_cv_use_dmalloc" | |
3210 | if test "$no_cache" != 1; then | |
3211 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3212 | fi | |
3213 | ||
3214 | if test "$wxUSE_DMALLOC" = yes; then | |
3215 | echo "$as_me:$LINENO: result: yes" >&5 | |
3216 | echo "${ECHO_T}yes" >&6 | |
3217 | else | |
3218 | echo "$as_me:$LINENO: result: no" >&5 | |
3219 | echo "${ECHO_T}no" >&6 | |
3220 | fi | |
3221 | ||
3222 | ||
3223 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3224 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3225 | no_cache=0 | |
3226 | ||
3227 | # Check whether --with-regex or --without-regex was given. | |
3228 | if test "${with_regex+set}" = set; then | |
3229 | withval="$with_regex" | |
3230 | ||
3231 | if test "$withval" = yes; then | |
3232 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3233 | elif test "$withval" = no; then | |
3234 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3235 | elif test "$withval" = sys; then | |
3236 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3237 | elif test "$withval" = builtin; then | |
3238 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3239 | else | |
3240 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3241 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3242 | { (exit 1); exit 1; }; } | |
3243 | fi | |
3244 | ||
3245 | else | |
3246 | ||
3247 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3248 | if test "x$LINE" != x ; then | |
3249 | eval "DEFAULT_$LINE" | |
3250 | else | |
3251 | no_cache=1 | |
3252 | fi | |
3253 | ||
3254 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3255 | ||
3256 | fi; | |
3257 | ||
3258 | eval "$ac_cv_use_regex" | |
3259 | if test "$no_cache" != 1; then | |
3260 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3261 | fi | |
3262 | ||
3263 | if test "$wxUSE_REGEX" = yes; then | |
3264 | echo "$as_me:$LINENO: result: yes" >&5 | |
3265 | echo "${ECHO_T}yes" >&6 | |
3266 | elif test "$wxUSE_REGEX" = no; then | |
3267 | echo "$as_me:$LINENO: result: no" >&5 | |
3268 | echo "${ECHO_T}no" >&6 | |
3269 | elif test "$wxUSE_REGEX" = sys; then | |
3270 | echo "$as_me:$LINENO: result: system version" >&5 | |
3271 | echo "${ECHO_T}system version" >&6 | |
3272 | elif test "$wxUSE_REGEX" = builtin; then | |
3273 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3274 | echo "${ECHO_T}builtin version" >&6 | |
3275 | else | |
3276 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3277 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3278 | { (exit 1); exit 1; }; } | |
3279 | fi | |
3280 | ||
3281 | ||
3282 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3283 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3284 | no_cache=0 | |
3285 | ||
3286 | # Check whether --with-zlib or --without-zlib was given. | |
3287 | if test "${with_zlib+set}" = set; then | |
3288 | withval="$with_zlib" | |
3289 | ||
3290 | if test "$withval" = yes; then | |
3291 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3292 | elif test "$withval" = no; then | |
3293 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3294 | elif test "$withval" = sys; then | |
3295 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3296 | elif test "$withval" = builtin; then | |
3297 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3298 | else | |
3299 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3300 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3301 | { (exit 1); exit 1; }; } | |
3302 | fi | |
3303 | ||
3304 | else | |
3305 | ||
3306 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3307 | if test "x$LINE" != x ; then | |
3308 | eval "DEFAULT_$LINE" | |
3309 | else | |
3310 | no_cache=1 | |
3311 | fi | |
3312 | ||
3313 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3314 | ||
3315 | fi; | |
3316 | ||
3317 | eval "$ac_cv_use_zlib" | |
3318 | if test "$no_cache" != 1; then | |
3319 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3320 | fi | |
3321 | ||
3322 | if test "$wxUSE_ZLIB" = yes; then | |
3323 | echo "$as_me:$LINENO: result: yes" >&5 | |
3324 | echo "${ECHO_T}yes" >&6 | |
3325 | elif test "$wxUSE_ZLIB" = no; then | |
3326 | echo "$as_me:$LINENO: result: no" >&5 | |
3327 | echo "${ECHO_T}no" >&6 | |
3328 | elif test "$wxUSE_ZLIB" = sys; then | |
3329 | echo "$as_me:$LINENO: result: system version" >&5 | |
3330 | echo "${ECHO_T}system version" >&6 | |
3331 | elif test "$wxUSE_ZLIB" = builtin; then | |
3332 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3333 | echo "${ECHO_T}builtin version" >&6 | |
3334 | else | |
3335 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3336 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3337 | { (exit 1); exit 1; }; } | |
3338 | fi | |
3339 | ||
3340 | ||
3341 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3342 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3343 | no_cache=0 | |
3344 | ||
3345 | # Check whether --with-odbc or --without-odbc was given. | |
3346 | if test "${with_odbc+set}" = set; then | |
3347 | withval="$with_odbc" | |
3348 | ||
3349 | if test "$withval" = yes; then | |
3350 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3351 | elif test "$withval" = no; then | |
3352 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3353 | elif test "$withval" = sys; then | |
3354 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3355 | elif test "$withval" = builtin; then | |
3356 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3357 | else | |
3358 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3359 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3360 | { (exit 1); exit 1; }; } | |
3361 | fi | |
3362 | ||
3363 | else | |
3364 | ||
3365 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3366 | if test "x$LINE" != x ; then | |
3367 | eval "DEFAULT_$LINE" | |
3368 | else | |
3369 | no_cache=1 | |
3370 | fi | |
3371 | ||
3372 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3373 | ||
3374 | fi; | |
3375 | ||
3376 | eval "$ac_cv_use_odbc" | |
3377 | if test "$no_cache" != 1; then | |
3378 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3379 | fi | |
3380 | ||
3381 | if test "$wxUSE_ODBC" = yes; then | |
3382 | echo "$as_me:$LINENO: result: yes" >&5 | |
3383 | echo "${ECHO_T}yes" >&6 | |
3384 | elif test "$wxUSE_ODBC" = no; then | |
3385 | echo "$as_me:$LINENO: result: no" >&5 | |
3386 | echo "${ECHO_T}no" >&6 | |
3387 | elif test "$wxUSE_ODBC" = sys; then | |
3388 | echo "$as_me:$LINENO: result: system version" >&5 | |
3389 | echo "${ECHO_T}system version" >&6 | |
3390 | elif test "$wxUSE_ODBC" = builtin; then | |
3391 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3392 | echo "${ECHO_T}builtin version" >&6 | |
3393 | else | |
3394 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3395 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3396 | { (exit 1); exit 1; }; } | |
3397 | fi | |
3398 | ||
3399 | ||
3400 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3401 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3402 | no_cache=0 | |
3403 | ||
3404 | # Check whether --with-expat or --without-expat was given. | |
3405 | if test "${with_expat+set}" = set; then | |
3406 | withval="$with_expat" | |
3407 | ||
3408 | if test "$withval" = yes; then | |
3409 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3410 | elif test "$withval" = no; then | |
3411 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3412 | elif test "$withval" = sys; then | |
3413 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3414 | elif test "$withval" = builtin; then | |
3415 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3416 | else | |
3417 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3418 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3419 | { (exit 1); exit 1; }; } | |
3420 | fi | |
3421 | ||
3422 | else | |
3423 | ||
3424 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3425 | if test "x$LINE" != x ; then | |
3426 | eval "DEFAULT_$LINE" | |
3427 | else | |
3428 | no_cache=1 | |
3429 | fi | |
3430 | ||
3431 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3432 | ||
3433 | fi; | |
3434 | ||
3435 | eval "$ac_cv_use_expat" | |
3436 | if test "$no_cache" != 1; then | |
3437 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3438 | fi | |
3439 | ||
3440 | if test "$wxUSE_EXPAT" = yes; then | |
3441 | echo "$as_me:$LINENO: result: yes" >&5 | |
3442 | echo "${ECHO_T}yes" >&6 | |
3443 | elif test "$wxUSE_EXPAT" = no; then | |
3444 | echo "$as_me:$LINENO: result: no" >&5 | |
3445 | echo "${ECHO_T}no" >&6 | |
3446 | elif test "$wxUSE_EXPAT" = sys; then | |
3447 | echo "$as_me:$LINENO: result: system version" >&5 | |
3448 | echo "${ECHO_T}system version" >&6 | |
3449 | elif test "$wxUSE_EXPAT" = builtin; then | |
3450 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3451 | echo "${ECHO_T}builtin version" >&6 | |
3452 | else | |
3453 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3454 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3455 | { (exit 1); exit 1; }; } | |
3456 | fi | |
3457 | ||
3458 | ||
3459 | ||
3460 | ||
3461 | enablestring= | |
3462 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3463 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3464 | no_cache=0 | |
3465 | # Check whether --enable-shared or --disable-shared was given. | |
3466 | if test "${enable_shared+set}" = set; then | |
3467 | enableval="$enable_shared" | |
3468 | ||
3469 | if test "$enableval" = yes; then | |
3470 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3471 | else | |
3472 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3473 | fi | |
3474 | ||
3475 | else | |
3476 | ||
3477 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3478 | if test "x$LINE" != x ; then | |
3479 | eval "DEFAULT_$LINE" | |
3480 | else | |
3481 | no_cache=1 | |
3482 | fi | |
3483 | ||
3484 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3485 | ||
3486 | fi; | |
3487 | ||
3488 | eval "$ac_cv_use_shared" | |
3489 | if test "$no_cache" != 1; then | |
3490 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3491 | fi | |
3492 | ||
3493 | if test "$wxUSE_SHARED" = yes; then | |
3494 | echo "$as_me:$LINENO: result: yes" >&5 | |
3495 | echo "${ECHO_T}yes" >&6 | |
3496 | else | |
3497 | echo "$as_me:$LINENO: result: no" >&5 | |
3498 | echo "${ECHO_T}no" >&6 | |
3499 | fi | |
3500 | ||
3501 | ||
3502 | enablestring= | |
3503 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3504 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3505 | no_cache=0 | |
3506 | # Check whether --enable-optimise or --disable-optimise was given. | |
3507 | if test "${enable_optimise+set}" = set; then | |
3508 | enableval="$enable_optimise" | |
3509 | ||
3510 | if test "$enableval" = yes; then | |
3511 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3512 | else | |
3513 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3514 | fi | |
3515 | ||
3516 | else | |
3517 | ||
3518 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3519 | if test "x$LINE" != x ; then | |
3520 | eval "DEFAULT_$LINE" | |
3521 | else | |
3522 | no_cache=1 | |
3523 | fi | |
3524 | ||
3525 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3526 | ||
3527 | fi; | |
3528 | ||
3529 | eval "$ac_cv_use_optimise" | |
3530 | if test "$no_cache" != 1; then | |
3531 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3532 | fi | |
3533 | ||
3534 | if test "$wxUSE_OPTIMISE" = yes; then | |
3535 | echo "$as_me:$LINENO: result: yes" >&5 | |
3536 | echo "${ECHO_T}yes" >&6 | |
3537 | else | |
3538 | echo "$as_me:$LINENO: result: no" >&5 | |
3539 | echo "${ECHO_T}no" >&6 | |
3540 | fi | |
3541 | ||
3542 | ||
3543 | enablestring= | |
3544 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3545 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3546 | no_cache=0 | |
3547 | # Check whether --enable-debug or --disable-debug was given. | |
3548 | if test "${enable_debug+set}" = set; then | |
3549 | enableval="$enable_debug" | |
3550 | ||
3551 | if test "$enableval" = yes; then | |
3552 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3553 | else | |
3554 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3555 | fi | |
3556 | ||
3557 | else | |
3558 | ||
3559 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3560 | if test "x$LINE" != x ; then | |
3561 | eval "DEFAULT_$LINE" | |
3562 | else | |
3563 | no_cache=1 | |
3564 | fi | |
3565 | ||
3566 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3567 | ||
3568 | fi; | |
3569 | ||
3570 | eval "$ac_cv_use_debug" | |
3571 | if test "$no_cache" != 1; then | |
3572 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3573 | fi | |
3574 | ||
3575 | if test "$wxUSE_DEBUG" = yes; then | |
3576 | echo "$as_me:$LINENO: result: yes" >&5 | |
3577 | echo "${ECHO_T}yes" >&6 | |
3578 | else | |
3579 | echo "$as_me:$LINENO: result: no" >&5 | |
3580 | echo "${ECHO_T}no" >&6 | |
3581 | fi | |
3582 | ||
3583 | ||
3584 | enablestring= | |
3585 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3586 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3587 | no_cache=0 | |
3588 | # Check whether --enable-stl or --disable-stl was given. | |
3589 | if test "${enable_stl+set}" = set; then | |
3590 | enableval="$enable_stl" | |
3591 | ||
3592 | if test "$enableval" = yes; then | |
3593 | ac_cv_use_stl='wxUSE_STL=yes' | |
3594 | else | |
3595 | ac_cv_use_stl='wxUSE_STL=no' | |
3596 | fi | |
3597 | ||
3598 | else | |
3599 | ||
3600 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3601 | if test "x$LINE" != x ; then | |
3602 | eval "DEFAULT_$LINE" | |
3603 | else | |
3604 | no_cache=1 | |
3605 | fi | |
3606 | ||
3607 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3608 | ||
3609 | fi; | |
3610 | ||
3611 | eval "$ac_cv_use_stl" | |
3612 | if test "$no_cache" != 1; then | |
3613 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3614 | fi | |
3615 | ||
3616 | if test "$wxUSE_STL" = yes; then | |
3617 | echo "$as_me:$LINENO: result: yes" >&5 | |
3618 | echo "${ECHO_T}yes" >&6 | |
3619 | else | |
3620 | echo "$as_me:$LINENO: result: no" >&5 | |
3621 | echo "${ECHO_T}no" >&6 | |
3622 | fi | |
3623 | ||
3624 | if test "$USE_OS2" = "1"; then | |
3625 | ||
3626 | enablestring= | |
3627 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3628 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3629 | no_cache=0 | |
3630 | # Check whether --enable-omf or --disable-omf was given. | |
3631 | if test "${enable_omf+set}" = set; then | |
3632 | enableval="$enable_omf" | |
3633 | ||
3634 | if test "$enableval" = yes; then | |
3635 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3636 | else | |
3637 | ac_cv_use_omf='wxUSE_OMF=no' | |
3638 | fi | |
3639 | ||
3640 | else | |
3641 | ||
3642 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3643 | if test "x$LINE" != x ; then | |
3644 | eval "DEFAULT_$LINE" | |
3645 | else | |
3646 | no_cache=1 | |
3647 | fi | |
3648 | ||
3649 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3650 | ||
3651 | fi; | |
3652 | ||
3653 | eval "$ac_cv_use_omf" | |
3654 | if test "$no_cache" != 1; then | |
3655 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3656 | fi | |
3657 | ||
3658 | if test "$wxUSE_OMF" = yes; then | |
3659 | echo "$as_me:$LINENO: result: yes" >&5 | |
3660 | echo "${ECHO_T}yes" >&6 | |
3661 | else | |
3662 | echo "$as_me:$LINENO: result: no" >&5 | |
3663 | echo "${ECHO_T}no" >&6 | |
3664 | fi | |
3665 | ||
3666 | fi | |
3667 | ||
3668 | if test "$wxUSE_DEBUG" = "yes"; then | |
3669 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3670 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3671 | BUILD=debug | |
3672 | elif test "$wxUSE_DEBUG" = "no"; then | |
3673 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3674 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3675 | BUILD=release | |
3676 | fi | |
3677 | ||
3678 | ||
3679 | enablestring= | |
3680 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3681 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3682 | no_cache=0 | |
3683 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3684 | if test "${enable_debug_flag+set}" = set; then | |
3685 | enableval="$enable_debug_flag" | |
3686 | ||
3687 | if test "$enableval" = yes; then | |
3688 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3689 | else | |
3690 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3691 | fi | |
3692 | ||
3693 | else | |
3694 | ||
3695 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3696 | if test "x$LINE" != x ; then | |
3697 | eval "DEFAULT_$LINE" | |
3698 | else | |
3699 | no_cache=1 | |
3700 | fi | |
3701 | ||
3702 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3703 | ||
3704 | fi; | |
3705 | ||
3706 | eval "$ac_cv_use_debug_flag" | |
3707 | if test "$no_cache" != 1; then | |
3708 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3709 | fi | |
3710 | ||
3711 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3712 | echo "$as_me:$LINENO: result: yes" >&5 | |
3713 | echo "${ECHO_T}yes" >&6 | |
3714 | else | |
3715 | echo "$as_me:$LINENO: result: no" >&5 | |
3716 | echo "${ECHO_T}no" >&6 | |
3717 | fi | |
3718 | ||
3719 | ||
3720 | enablestring= | |
3721 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3722 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3723 | no_cache=0 | |
3724 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3725 | if test "${enable_debug_info+set}" = set; then | |
3726 | enableval="$enable_debug_info" | |
3727 | ||
3728 | if test "$enableval" = yes; then | |
3729 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3730 | else | |
3731 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3732 | fi | |
3733 | ||
3734 | else | |
3735 | ||
3736 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3737 | if test "x$LINE" != x ; then | |
3738 | eval "DEFAULT_$LINE" | |
3739 | else | |
3740 | no_cache=1 | |
3741 | fi | |
3742 | ||
3743 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3744 | ||
3745 | fi; | |
3746 | ||
3747 | eval "$ac_cv_use_debug_info" | |
3748 | if test "$no_cache" != 1; then | |
3749 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3750 | fi | |
3751 | ||
3752 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3753 | echo "$as_me:$LINENO: result: yes" >&5 | |
3754 | echo "${ECHO_T}yes" >&6 | |
3755 | else | |
3756 | echo "$as_me:$LINENO: result: no" >&5 | |
3757 | echo "${ECHO_T}no" >&6 | |
3758 | fi | |
3759 | ||
3760 | ||
3761 | enablestring= | |
3762 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3763 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3764 | no_cache=0 | |
3765 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3766 | if test "${enable_debug_gdb+set}" = set; then | |
3767 | enableval="$enable_debug_gdb" | |
3768 | ||
3769 | if test "$enableval" = yes; then | |
3770 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3771 | else | |
3772 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3773 | fi | |
3774 | ||
3775 | else | |
3776 | ||
3777 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3778 | if test "x$LINE" != x ; then | |
3779 | eval "DEFAULT_$LINE" | |
3780 | else | |
3781 | no_cache=1 | |
3782 | fi | |
3783 | ||
3784 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3785 | ||
3786 | fi; | |
3787 | ||
3788 | eval "$ac_cv_use_debug_gdb" | |
3789 | if test "$no_cache" != 1; then | |
3790 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3791 | fi | |
3792 | ||
3793 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3794 | echo "$as_me:$LINENO: result: yes" >&5 | |
3795 | echo "${ECHO_T}yes" >&6 | |
3796 | else | |
3797 | echo "$as_me:$LINENO: result: no" >&5 | |
3798 | echo "${ECHO_T}no" >&6 | |
3799 | fi | |
3800 | ||
3801 | ||
3802 | enablestring= | |
3803 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3804 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3805 | no_cache=0 | |
3806 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3807 | if test "${enable_debug_cntxt+set}" = set; then | |
3808 | enableval="$enable_debug_cntxt" | |
3809 | ||
3810 | if test "$enableval" = yes; then | |
3811 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3812 | else | |
3813 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3814 | fi | |
3815 | ||
3816 | else | |
3817 | ||
3818 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3819 | if test "x$LINE" != x ; then | |
3820 | eval "DEFAULT_$LINE" | |
3821 | else | |
3822 | no_cache=1 | |
3823 | fi | |
3824 | ||
3825 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3826 | ||
3827 | fi; | |
3828 | ||
3829 | eval "$ac_cv_use_debug_cntxt" | |
3830 | if test "$no_cache" != 1; then | |
3831 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3832 | fi | |
3833 | ||
3834 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3835 | echo "$as_me:$LINENO: result: yes" >&5 | |
3836 | echo "${ECHO_T}yes" >&6 | |
3837 | else | |
3838 | echo "$as_me:$LINENO: result: no" >&5 | |
3839 | echo "${ECHO_T}no" >&6 | |
3840 | fi | |
3841 | ||
3842 | ||
3843 | enablestring= | |
3844 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3845 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3846 | no_cache=0 | |
3847 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3848 | if test "${enable_mem_tracing+set}" = set; then | |
3849 | enableval="$enable_mem_tracing" | |
3850 | ||
3851 | if test "$enableval" = yes; then | |
3852 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3853 | else | |
3854 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3855 | fi | |
3856 | ||
3857 | else | |
3858 | ||
3859 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3860 | if test "x$LINE" != x ; then | |
3861 | eval "DEFAULT_$LINE" | |
3862 | else | |
3863 | no_cache=1 | |
3864 | fi | |
3865 | ||
3866 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3867 | ||
3868 | fi; | |
3869 | ||
3870 | eval "$ac_cv_use_mem_tracing" | |
3871 | if test "$no_cache" != 1; then | |
3872 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3873 | fi | |
3874 | ||
3875 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3876 | echo "$as_me:$LINENO: result: yes" >&5 | |
3877 | echo "${ECHO_T}yes" >&6 | |
3878 | else | |
3879 | echo "$as_me:$LINENO: result: no" >&5 | |
3880 | echo "${ECHO_T}no" >&6 | |
3881 | fi | |
3882 | ||
3883 | ||
3884 | enablestring= | |
3885 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3886 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3887 | no_cache=0 | |
3888 | # Check whether --enable-profile or --disable-profile was given. | |
3889 | if test "${enable_profile+set}" = set; then | |
3890 | enableval="$enable_profile" | |
3891 | ||
3892 | if test "$enableval" = yes; then | |
3893 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3894 | else | |
3895 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3896 | fi | |
3897 | ||
3898 | else | |
3899 | ||
3900 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
3901 | if test "x$LINE" != x ; then | |
3902 | eval "DEFAULT_$LINE" | |
3903 | else | |
3904 | no_cache=1 | |
3905 | fi | |
3906 | ||
3907 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3908 | ||
3909 | fi; | |
3910 | ||
3911 | eval "$ac_cv_use_profile" | |
3912 | if test "$no_cache" != 1; then | |
3913 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3914 | fi | |
3915 | ||
3916 | if test "$wxUSE_PROFILE" = yes; then | |
3917 | echo "$as_me:$LINENO: result: yes" >&5 | |
3918 | echo "${ECHO_T}yes" >&6 | |
3919 | else | |
3920 | echo "$as_me:$LINENO: result: no" >&5 | |
3921 | echo "${ECHO_T}no" >&6 | |
3922 | fi | |
3923 | ||
3924 | ||
3925 | enablestring= | |
3926 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
3927 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
3928 | no_cache=0 | |
3929 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3930 | if test "${enable_no_rtti+set}" = set; then | |
3931 | enableval="$enable_no_rtti" | |
3932 | ||
3933 | if test "$enableval" = yes; then | |
3934 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3935 | else | |
3936 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3937 | fi | |
3938 | ||
3939 | else | |
3940 | ||
3941 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
3942 | if test "x$LINE" != x ; then | |
3943 | eval "DEFAULT_$LINE" | |
3944 | else | |
3945 | no_cache=1 | |
3946 | fi | |
3947 | ||
3948 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
3949 | ||
3950 | fi; | |
3951 | ||
3952 | eval "$ac_cv_use_no_rtti" | |
3953 | if test "$no_cache" != 1; then | |
3954 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3955 | fi | |
3956 | ||
3957 | if test "$wxUSE_NO_RTTI" = yes; then | |
3958 | echo "$as_me:$LINENO: result: yes" >&5 | |
3959 | echo "${ECHO_T}yes" >&6 | |
3960 | else | |
3961 | echo "$as_me:$LINENO: result: no" >&5 | |
3962 | echo "${ECHO_T}no" >&6 | |
3963 | fi | |
3964 | ||
3965 | ||
3966 | enablestring= | |
3967 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
3968 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
3969 | no_cache=0 | |
3970 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3971 | if test "${enable_no_exceptions+set}" = set; then | |
3972 | enableval="$enable_no_exceptions" | |
3973 | ||
3974 | if test "$enableval" = yes; then | |
3975 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3976 | else | |
3977 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3978 | fi | |
3979 | ||
3980 | else | |
3981 | ||
3982 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
3983 | if test "x$LINE" != x ; then | |
3984 | eval "DEFAULT_$LINE" | |
3985 | else | |
3986 | no_cache=1 | |
3987 | fi | |
3988 | ||
3989 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
3990 | ||
3991 | fi; | |
3992 | ||
3993 | eval "$ac_cv_use_no_exceptions" | |
3994 | if test "$no_cache" != 1; then | |
3995 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3996 | fi | |
3997 | ||
3998 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
3999 | echo "$as_me:$LINENO: result: yes" >&5 | |
4000 | echo "${ECHO_T}yes" >&6 | |
4001 | else | |
4002 | echo "$as_me:$LINENO: result: no" >&5 | |
4003 | echo "${ECHO_T}no" >&6 | |
4004 | fi | |
4005 | ||
4006 | ||
4007 | enablestring= | |
4008 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
4009 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
4010 | no_cache=0 | |
4011 | # Check whether --enable-permissive or --disable-permissive was given. | |
4012 | if test "${enable_permissive+set}" = set; then | |
4013 | enableval="$enable_permissive" | |
4014 | ||
4015 | if test "$enableval" = yes; then | |
4016 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
4017 | else | |
4018 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
4019 | fi | |
4020 | ||
4021 | else | |
4022 | ||
4023 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
4024 | if test "x$LINE" != x ; then | |
4025 | eval "DEFAULT_$LINE" | |
4026 | else | |
4027 | no_cache=1 | |
4028 | fi | |
4029 | ||
4030 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
4031 | ||
4032 | fi; | |
4033 | ||
4034 | eval "$ac_cv_use_permissive" | |
4035 | if test "$no_cache" != 1; then | |
4036 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
4037 | fi | |
4038 | ||
4039 | if test "$wxUSE_PERMISSIVE" = yes; then | |
4040 | echo "$as_me:$LINENO: result: yes" >&5 | |
4041 | echo "${ECHO_T}yes" >&6 | |
4042 | else | |
4043 | echo "$as_me:$LINENO: result: no" >&5 | |
4044 | echo "${ECHO_T}no" >&6 | |
4045 | fi | |
4046 | ||
4047 | ||
4048 | enablestring= | |
4049 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
4050 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
4051 | no_cache=0 | |
4052 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
4053 | if test "${enable_no_deps+set}" = set; then | |
4054 | enableval="$enable_no_deps" | |
4055 | ||
4056 | if test "$enableval" = yes; then | |
4057 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
4058 | else | |
4059 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
4060 | fi | |
4061 | ||
4062 | else | |
4063 | ||
4064 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4065 | if test "x$LINE" != x ; then | |
4066 | eval "DEFAULT_$LINE" | |
4067 | else | |
4068 | no_cache=1 | |
4069 | fi | |
4070 | ||
4071 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4072 | ||
4073 | fi; | |
4074 | ||
4075 | eval "$ac_cv_use_no_deps" | |
4076 | if test "$no_cache" != 1; then | |
4077 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4078 | fi | |
4079 | ||
4080 | if test "$wxUSE_NO_DEPS" = yes; then | |
4081 | echo "$as_me:$LINENO: result: yes" >&5 | |
4082 | echo "${ECHO_T}yes" >&6 | |
4083 | else | |
4084 | echo "$as_me:$LINENO: result: no" >&5 | |
4085 | echo "${ECHO_T}no" >&6 | |
4086 | fi | |
4087 | ||
4088 | ||
4089 | ||
4090 | enablestring= | |
4091 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 | |
4092 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
4093 | no_cache=0 | |
4094 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
4095 | if test "${enable_compat22+set}" = set; then | |
4096 | enableval="$enable_compat22" | |
4097 | ||
4098 | if test "$enableval" = yes; then | |
4099 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
4100 | else | |
4101 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
4102 | fi | |
4103 | ||
4104 | else | |
4105 | ||
4106 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
4107 | if test "x$LINE" != x ; then | |
4108 | eval "DEFAULT_$LINE" | |
4109 | else | |
4110 | no_cache=1 | |
4111 | fi | |
4112 | ||
4113 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
4114 | ||
4115 | fi; | |
4116 | ||
4117 | eval "$ac_cv_use_compat22" | |
4118 | if test "$no_cache" != 1; then | |
4119 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
4120 | fi | |
4121 | ||
4122 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
4123 | echo "$as_me:$LINENO: result: yes" >&5 | |
4124 | echo "${ECHO_T}yes" >&6 | |
4125 | else | |
4126 | echo "$as_me:$LINENO: result: no" >&5 | |
4127 | echo "${ECHO_T}no" >&6 | |
4128 | fi | |
4129 | ||
4130 | ||
4131 | enablestring=disable | |
4132 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4133 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
4134 | no_cache=0 | |
4135 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
4136 | if test "${enable_compat24+set}" = set; then | |
4137 | enableval="$enable_compat24" | |
4138 | ||
4139 | if test "$enableval" = yes; then | |
4140 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
4141 | else | |
4142 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
4143 | fi | |
4144 | ||
4145 | else | |
4146 | ||
4147 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
4148 | if test "x$LINE" != x ; then | |
4149 | eval "DEFAULT_$LINE" | |
4150 | else | |
4151 | no_cache=1 | |
4152 | fi | |
4153 | ||
4154 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
4155 | ||
4156 | fi; | |
4157 | ||
4158 | eval "$ac_cv_use_compat24" | |
4159 | if test "$no_cache" != 1; then | |
4160 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
4161 | fi | |
4162 | ||
4163 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
4164 | echo "$as_me:$LINENO: result: yes" >&5 | |
4165 | echo "${ECHO_T}yes" >&6 | |
4166 | else | |
4167 | echo "$as_me:$LINENO: result: no" >&5 | |
4168 | echo "${ECHO_T}no" >&6 | |
4169 | fi | |
4170 | ||
4171 | ||
ffa0583f RL |
4172 | |
4173 | enablestring= | |
4174 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5 | |
4175 | echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6 | |
4176 | no_cache=0 | |
4177 | # Check whether --enable-rpath or --disable-rpath was given. | |
a848cd7e SC |
4178 | if test "${enable_rpath+set}" = set; then |
4179 | enableval="$enable_rpath" | |
ffa0583f RL |
4180 | |
4181 | if test "$enableval" = yes; then | |
4182 | ac_cv_use_rpath='wxUSE_RPATH=yes' | |
4183 | else | |
4184 | ac_cv_use_rpath='wxUSE_RPATH=no' | |
4185 | fi | |
4186 | ||
4187 | else | |
4188 | ||
4189 | LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}` | |
4190 | if test "x$LINE" != x ; then | |
4191 | eval "DEFAULT_$LINE" | |
4192 | else | |
4193 | no_cache=1 | |
4194 | fi | |
4195 | ||
4196 | ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH | |
4197 | ||
a848cd7e SC |
4198 | fi; |
4199 | ||
ffa0583f RL |
4200 | eval "$ac_cv_use_rpath" |
4201 | if test "$no_cache" != 1; then | |
4202 | echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp | |
4203 | fi | |
4204 | ||
4205 | if test "$wxUSE_RPATH" = yes; then | |
4206 | echo "$as_me:$LINENO: result: yes" >&5 | |
4207 | echo "${ECHO_T}yes" >&6 | |
4208 | else | |
4209 | echo "$as_me:$LINENO: result: no" >&5 | |
4210 | echo "${ECHO_T}no" >&6 | |
4211 | fi | |
4212 | ||
a848cd7e SC |
4213 | |
4214 | ||
4215 | ||
4216 | ||
4217 | enablestring= | |
4218 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4219 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4220 | no_cache=0 | |
4221 | # Check whether --enable-intl or --disable-intl was given. | |
4222 | if test "${enable_intl+set}" = set; then | |
4223 | enableval="$enable_intl" | |
4224 | ||
4225 | if test "$enableval" = yes; then | |
4226 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4227 | else | |
4228 | ac_cv_use_intl='wxUSE_INTL=no' | |
4229 | fi | |
4230 | ||
4231 | else | |
4232 | ||
4233 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4234 | if test "x$LINE" != x ; then | |
4235 | eval "DEFAULT_$LINE" | |
4236 | else | |
4237 | no_cache=1 | |
4238 | fi | |
4239 | ||
4240 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4241 | ||
4242 | fi; | |
4243 | ||
4244 | eval "$ac_cv_use_intl" | |
4245 | if test "$no_cache" != 1; then | |
4246 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4247 | fi | |
4248 | ||
4249 | if test "$wxUSE_INTL" = yes; then | |
4250 | echo "$as_me:$LINENO: result: yes" >&5 | |
4251 | echo "${ECHO_T}yes" >&6 | |
4252 | else | |
4253 | echo "$as_me:$LINENO: result: no" >&5 | |
4254 | echo "${ECHO_T}no" >&6 | |
4255 | fi | |
4256 | ||
4257 | ||
4258 | enablestring= | |
4259 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4260 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4261 | no_cache=0 | |
4262 | # Check whether --enable-config or --disable-config was given. | |
4263 | if test "${enable_config+set}" = set; then | |
4264 | enableval="$enable_config" | |
4265 | ||
4266 | if test "$enableval" = yes; then | |
4267 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4268 | else | |
4269 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4270 | fi | |
4271 | ||
4272 | else | |
4273 | ||
4274 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4275 | if test "x$LINE" != x ; then | |
4276 | eval "DEFAULT_$LINE" | |
4277 | else | |
4278 | no_cache=1 | |
4279 | fi | |
4280 | ||
4281 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4282 | ||
4283 | fi; | |
4284 | ||
4285 | eval "$ac_cv_use_config" | |
4286 | if test "$no_cache" != 1; then | |
4287 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4288 | fi | |
4289 | ||
4290 | if test "$wxUSE_CONFIG" = yes; then | |
4291 | echo "$as_me:$LINENO: result: yes" >&5 | |
4292 | echo "${ECHO_T}yes" >&6 | |
4293 | else | |
4294 | echo "$as_me:$LINENO: result: no" >&5 | |
4295 | echo "${ECHO_T}no" >&6 | |
4296 | fi | |
4297 | ||
4298 | ||
4299 | ||
4300 | enablestring= | |
4301 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4302 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4303 | no_cache=0 | |
4304 | # Check whether --enable-protocols or --disable-protocols was given. | |
4305 | if test "${enable_protocols+set}" = set; then | |
4306 | enableval="$enable_protocols" | |
4307 | ||
4308 | if test "$enableval" = yes; then | |
4309 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4310 | else | |
4311 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4312 | fi | |
4313 | ||
4314 | else | |
4315 | ||
4316 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4317 | if test "x$LINE" != x ; then | |
4318 | eval "DEFAULT_$LINE" | |
4319 | else | |
4320 | no_cache=1 | |
4321 | fi | |
4322 | ||
4323 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4324 | ||
4325 | fi; | |
4326 | ||
4327 | eval "$ac_cv_use_protocols" | |
4328 | if test "$no_cache" != 1; then | |
4329 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4330 | fi | |
4331 | ||
4332 | if test "$wxUSE_PROTOCOL" = yes; then | |
4333 | echo "$as_me:$LINENO: result: yes" >&5 | |
4334 | echo "${ECHO_T}yes" >&6 | |
4335 | else | |
4336 | echo "$as_me:$LINENO: result: no" >&5 | |
4337 | echo "${ECHO_T}no" >&6 | |
4338 | fi | |
4339 | ||
4340 | ||
4341 | enablestring= | |
4342 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4343 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4344 | no_cache=0 | |
4345 | # Check whether --enable-ftp or --disable-ftp was given. | |
4346 | if test "${enable_ftp+set}" = set; then | |
4347 | enableval="$enable_ftp" | |
4348 | ||
4349 | if test "$enableval" = yes; then | |
4350 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4351 | else | |
4352 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4353 | fi | |
4354 | ||
4355 | else | |
4356 | ||
4357 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4358 | if test "x$LINE" != x ; then | |
4359 | eval "DEFAULT_$LINE" | |
4360 | else | |
4361 | no_cache=1 | |
4362 | fi | |
4363 | ||
4364 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4365 | ||
4366 | fi; | |
4367 | ||
4368 | eval "$ac_cv_use_ftp" | |
4369 | if test "$no_cache" != 1; then | |
4370 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4371 | fi | |
4372 | ||
4373 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4374 | echo "$as_me:$LINENO: result: yes" >&5 | |
4375 | echo "${ECHO_T}yes" >&6 | |
4376 | else | |
4377 | echo "$as_me:$LINENO: result: no" >&5 | |
4378 | echo "${ECHO_T}no" >&6 | |
4379 | fi | |
4380 | ||
4381 | ||
4382 | enablestring= | |
4383 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4384 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4385 | no_cache=0 | |
4386 | # Check whether --enable-http or --disable-http was given. | |
4387 | if test "${enable_http+set}" = set; then | |
4388 | enableval="$enable_http" | |
4389 | ||
4390 | if test "$enableval" = yes; then | |
4391 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4392 | else | |
4393 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4394 | fi | |
4395 | ||
4396 | else | |
4397 | ||
4398 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4399 | if test "x$LINE" != x ; then | |
4400 | eval "DEFAULT_$LINE" | |
4401 | else | |
4402 | no_cache=1 | |
4403 | fi | |
4404 | ||
4405 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4406 | ||
4407 | fi; | |
4408 | ||
4409 | eval "$ac_cv_use_http" | |
4410 | if test "$no_cache" != 1; then | |
4411 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4412 | fi | |
4413 | ||
4414 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4415 | echo "$as_me:$LINENO: result: yes" >&5 | |
4416 | echo "${ECHO_T}yes" >&6 | |
4417 | else | |
4418 | echo "$as_me:$LINENO: result: no" >&5 | |
4419 | echo "${ECHO_T}no" >&6 | |
4420 | fi | |
4421 | ||
4422 | ||
4423 | enablestring= | |
4424 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4425 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4426 | no_cache=0 | |
4427 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4428 | if test "${enable_fileproto+set}" = set; then | |
4429 | enableval="$enable_fileproto" | |
4430 | ||
4431 | if test "$enableval" = yes; then | |
4432 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4433 | else | |
4434 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4435 | fi | |
4436 | ||
4437 | else | |
4438 | ||
4439 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4440 | if test "x$LINE" != x ; then | |
4441 | eval "DEFAULT_$LINE" | |
4442 | else | |
4443 | no_cache=1 | |
4444 | fi | |
4445 | ||
4446 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4447 | ||
4448 | fi; | |
4449 | ||
4450 | eval "$ac_cv_use_fileproto" | |
4451 | if test "$no_cache" != 1; then | |
4452 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4453 | fi | |
4454 | ||
4455 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4456 | echo "$as_me:$LINENO: result: yes" >&5 | |
4457 | echo "${ECHO_T}yes" >&6 | |
4458 | else | |
4459 | echo "$as_me:$LINENO: result: no" >&5 | |
4460 | echo "${ECHO_T}no" >&6 | |
4461 | fi | |
4462 | ||
4463 | ||
4464 | enablestring= | |
4465 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4466 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4467 | no_cache=0 | |
4468 | # Check whether --enable-sockets or --disable-sockets was given. | |
4469 | if test "${enable_sockets+set}" = set; then | |
4470 | enableval="$enable_sockets" | |
4471 | ||
4472 | if test "$enableval" = yes; then | |
4473 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4474 | else | |
4475 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4476 | fi | |
4477 | ||
4478 | else | |
4479 | ||
4480 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4481 | if test "x$LINE" != x ; then | |
4482 | eval "DEFAULT_$LINE" | |
4483 | else | |
4484 | no_cache=1 | |
4485 | fi | |
4486 | ||
4487 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4488 | ||
4489 | fi; | |
4490 | ||
4491 | eval "$ac_cv_use_sockets" | |
4492 | if test "$no_cache" != 1; then | |
4493 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4494 | fi | |
4495 | ||
4496 | if test "$wxUSE_SOCKETS" = yes; then | |
4497 | echo "$as_me:$LINENO: result: yes" >&5 | |
4498 | echo "${ECHO_T}yes" >&6 | |
4499 | else | |
4500 | echo "$as_me:$LINENO: result: no" >&5 | |
4501 | echo "${ECHO_T}no" >&6 | |
4502 | fi | |
4503 | ||
4504 | ||
4505 | enablestring= | |
4506 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4507 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4508 | no_cache=0 | |
4509 | # Check whether --enable-ole or --disable-ole was given. | |
4510 | if test "${enable_ole+set}" = set; then | |
4511 | enableval="$enable_ole" | |
4512 | ||
4513 | if test "$enableval" = yes; then | |
4514 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4515 | else | |
4516 | ac_cv_use_ole='wxUSE_OLE=no' | |
4517 | fi | |
4518 | ||
4519 | else | |
4520 | ||
4521 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4522 | if test "x$LINE" != x ; then | |
4523 | eval "DEFAULT_$LINE" | |
4524 | else | |
4525 | no_cache=1 | |
4526 | fi | |
4527 | ||
4528 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4529 | ||
4530 | fi; | |
4531 | ||
4532 | eval "$ac_cv_use_ole" | |
4533 | if test "$no_cache" != 1; then | |
4534 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4535 | fi | |
4536 | ||
4537 | if test "$wxUSE_OLE" = yes; then | |
4538 | echo "$as_me:$LINENO: result: yes" >&5 | |
4539 | echo "${ECHO_T}yes" >&6 | |
4540 | else | |
4541 | echo "$as_me:$LINENO: result: no" >&5 | |
4542 | echo "${ECHO_T}no" >&6 | |
4543 | fi | |
4544 | ||
4545 | ||
4546 | enablestring= | |
4547 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4548 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4549 | no_cache=0 | |
4550 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4551 | if test "${enable_dataobj+set}" = set; then | |
4552 | enableval="$enable_dataobj" | |
4553 | ||
4554 | if test "$enableval" = yes; then | |
4555 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4556 | else | |
4557 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4558 | fi | |
4559 | ||
4560 | else | |
4561 | ||
4562 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4563 | if test "x$LINE" != x ; then | |
4564 | eval "DEFAULT_$LINE" | |
4565 | else | |
4566 | no_cache=1 | |
4567 | fi | |
4568 | ||
4569 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4570 | ||
4571 | fi; | |
4572 | ||
4573 | eval "$ac_cv_use_dataobj" | |
4574 | if test "$no_cache" != 1; then | |
4575 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4576 | fi | |
4577 | ||
4578 | if test "$wxUSE_DATAOBJ" = yes; then | |
4579 | echo "$as_me:$LINENO: result: yes" >&5 | |
4580 | echo "${ECHO_T}yes" >&6 | |
4581 | else | |
4582 | echo "$as_me:$LINENO: result: no" >&5 | |
4583 | echo "${ECHO_T}no" >&6 | |
4584 | fi | |
4585 | ||
4586 | ||
4587 | ||
4588 | enablestring= | |
4589 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4590 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4591 | no_cache=0 | |
4592 | # Check whether --enable-ipc or --disable-ipc was given. | |
4593 | if test "${enable_ipc+set}" = set; then | |
4594 | enableval="$enable_ipc" | |
4595 | ||
4596 | if test "$enableval" = yes; then | |
4597 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4598 | else | |
4599 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4600 | fi | |
4601 | ||
4602 | else | |
4603 | ||
4604 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4605 | if test "x$LINE" != x ; then | |
4606 | eval "DEFAULT_$LINE" | |
4607 | else | |
4608 | no_cache=1 | |
4609 | fi | |
4610 | ||
4611 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4612 | ||
4613 | fi; | |
4614 | ||
4615 | eval "$ac_cv_use_ipc" | |
4616 | if test "$no_cache" != 1; then | |
4617 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4618 | fi | |
4619 | ||
4620 | if test "$wxUSE_IPC" = yes; then | |
4621 | echo "$as_me:$LINENO: result: yes" >&5 | |
4622 | echo "${ECHO_T}yes" >&6 | |
4623 | else | |
4624 | echo "$as_me:$LINENO: result: no" >&5 | |
4625 | echo "${ECHO_T}no" >&6 | |
4626 | fi | |
4627 | ||
4628 | ||
4629 | ||
4630 | enablestring= | |
4631 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4632 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4633 | no_cache=0 | |
4634 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4635 | if test "${enable_apple_ieee+set}" = set; then | |
4636 | enableval="$enable_apple_ieee" | |
4637 | ||
4638 | if test "$enableval" = yes; then | |
4639 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4640 | else | |
4641 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4642 | fi | |
4643 | ||
4644 | else | |
4645 | ||
4646 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4647 | if test "x$LINE" != x ; then | |
4648 | eval "DEFAULT_$LINE" | |
4649 | else | |
4650 | no_cache=1 | |
4651 | fi | |
4652 | ||
4653 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4654 | ||
4655 | fi; | |
4656 | ||
4657 | eval "$ac_cv_use_apple_ieee" | |
4658 | if test "$no_cache" != 1; then | |
4659 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4660 | fi | |
4661 | ||
4662 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4663 | echo "$as_me:$LINENO: result: yes" >&5 | |
4664 | echo "${ECHO_T}yes" >&6 | |
4665 | else | |
4666 | echo "$as_me:$LINENO: result: no" >&5 | |
4667 | echo "${ECHO_T}no" >&6 | |
4668 | fi | |
4669 | ||
4670 | ||
81f90336 MW |
4671 | enablestring= |
4672 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5 | |
4673 | echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6 | |
4674 | no_cache=0 | |
4675 | # Check whether --enable-arcstream or --disable-arcstream was given. | |
4676 | if test "${enable_arcstream+set}" = set; then | |
4677 | enableval="$enable_arcstream" | |
4678 | ||
4679 | if test "$enableval" = yes; then | |
9e8e867f | 4680 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes' |
81f90336 | 4681 | else |
9e8e867f | 4682 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no' |
81f90336 MW |
4683 | fi |
4684 | ||
4685 | else | |
4686 | ||
9e8e867f | 4687 | LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}` |
81f90336 MW |
4688 | if test "x$LINE" != x ; then |
4689 | eval "DEFAULT_$LINE" | |
4690 | else | |
4691 | no_cache=1 | |
4692 | fi | |
4693 | ||
9e8e867f | 4694 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS |
81f90336 MW |
4695 | |
4696 | fi; | |
4697 | ||
4698 | eval "$ac_cv_use_arcstream" | |
4699 | if test "$no_cache" != 1; then | |
4700 | echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp | |
4701 | fi | |
4702 | ||
9e8e867f | 4703 | if test "$wxUSE_ARCHIVE_STREAMS" = yes; then |
81f90336 MW |
4704 | echo "$as_me:$LINENO: result: yes" >&5 |
4705 | echo "${ECHO_T}yes" >&6 | |
4706 | else | |
4707 | echo "$as_me:$LINENO: result: no" >&5 | |
4708 | echo "${ECHO_T}no" >&6 | |
4709 | fi | |
4710 | ||
4711 | ||
a848cd7e SC |
4712 | enablestring= |
4713 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 | |
4714 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
4715 | no_cache=0 | |
4716 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4717 | if test "${enable_catch_segvs+set}" = set; then | |
4718 | enableval="$enable_catch_segvs" | |
4719 | ||
4720 | if test "$enableval" = yes; then | |
4721 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4722 | else | |
4723 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4724 | fi | |
4725 | ||
4726 | else | |
4727 | ||
4728 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` | |
4729 | if test "x$LINE" != x ; then | |
4730 | eval "DEFAULT_$LINE" | |
4731 | else | |
4732 | no_cache=1 | |
4733 | fi | |
4734 | ||
4735 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
4736 | ||
4737 | fi; | |
4738 | ||
4739 | eval "$ac_cv_use_catch_segvs" | |
4740 | if test "$no_cache" != 1; then | |
4741 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4742 | fi | |
4743 | ||
4744 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
4745 | echo "$as_me:$LINENO: result: yes" >&5 | |
4746 | echo "${ECHO_T}yes" >&6 | |
4747 | else | |
4748 | echo "$as_me:$LINENO: result: no" >&5 | |
4749 | echo "${ECHO_T}no" >&6 | |
4750 | fi | |
4751 | ||
4752 | ||
eaff0f0d VZ |
4753 | enablestring= |
4754 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5 | |
4755 | echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6 | |
4756 | no_cache=0 | |
4757 | # Check whether --enable-backtrace or --disable-backtrace was given. | |
4758 | if test "${enable_backtrace+set}" = set; then | |
4759 | enableval="$enable_backtrace" | |
4760 | ||
4761 | if test "$enableval" = yes; then | |
4762 | ac_cv_use_backtrace='wxUSE_STACKWALKER=yes' | |
4763 | else | |
4764 | ac_cv_use_backtrace='wxUSE_STACKWALKER=no' | |
4765 | fi | |
4766 | ||
4767 | else | |
4768 | ||
4769 | LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}` | |
4770 | if test "x$LINE" != x ; then | |
4771 | eval "DEFAULT_$LINE" | |
4772 | else | |
4773 | no_cache=1 | |
4774 | fi | |
4775 | ||
4776 | ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER | |
4777 | ||
4778 | fi; | |
4779 | ||
4780 | eval "$ac_cv_use_backtrace" | |
4781 | if test "$no_cache" != 1; then | |
4782 | echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp | |
4783 | fi | |
4784 | ||
4785 | if test "$wxUSE_STACKWALKER" = yes; then | |
4786 | echo "$as_me:$LINENO: result: yes" >&5 | |
4787 | echo "${ECHO_T}yes" >&6 | |
4788 | else | |
4789 | echo "$as_me:$LINENO: result: no" >&5 | |
4790 | echo "${ECHO_T}no" >&6 | |
4791 | fi | |
4792 | ||
4793 | ||
a848cd7e SC |
4794 | enablestring= |
4795 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4796 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4797 | no_cache=0 | |
4798 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4799 | if test "${enable_cmdline+set}" = set; then | |
4800 | enableval="$enable_cmdline" | |
4801 | ||
4802 | if test "$enableval" = yes; then | |
4803 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4804 | else | |
4805 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4806 | fi | |
4807 | ||
4808 | else | |
4809 | ||
4810 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4811 | if test "x$LINE" != x ; then | |
4812 | eval "DEFAULT_$LINE" | |
4813 | else | |
4814 | no_cache=1 | |
4815 | fi | |
4816 | ||
4817 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4818 | ||
4819 | fi; | |
4820 | ||
4821 | eval "$ac_cv_use_cmdline" | |
4822 | if test "$no_cache" != 1; then | |
4823 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4824 | fi | |
4825 | ||
4826 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4827 | echo "$as_me:$LINENO: result: yes" >&5 | |
4828 | echo "${ECHO_T}yes" >&6 | |
4829 | else | |
4830 | echo "$as_me:$LINENO: result: no" >&5 | |
4831 | echo "${ECHO_T}no" >&6 | |
4832 | fi | |
4833 | ||
4834 | ||
4835 | enablestring= | |
4836 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4837 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4838 | no_cache=0 | |
4839 | # Check whether --enable-datetime or --disable-datetime was given. | |
4840 | if test "${enable_datetime+set}" = set; then | |
4841 | enableval="$enable_datetime" | |
4842 | ||
4843 | if test "$enableval" = yes; then | |
4844 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4845 | else | |
4846 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4847 | fi | |
4848 | ||
4849 | else | |
4850 | ||
4851 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4852 | if test "x$LINE" != x ; then | |
4853 | eval "DEFAULT_$LINE" | |
4854 | else | |
4855 | no_cache=1 | |
4856 | fi | |
4857 | ||
4858 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4859 | ||
4860 | fi; | |
4861 | ||
4862 | eval "$ac_cv_use_datetime" | |
4863 | if test "$no_cache" != 1; then | |
4864 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4865 | fi | |
4866 | ||
4867 | if test "$wxUSE_DATETIME" = yes; then | |
4868 | echo "$as_me:$LINENO: result: yes" >&5 | |
4869 | echo "${ECHO_T}yes" >&6 | |
4870 | else | |
4871 | echo "$as_me:$LINENO: result: no" >&5 | |
4872 | echo "${ECHO_T}no" >&6 | |
4873 | fi | |
4874 | ||
4875 | ||
4876 | enablestring= | |
4877 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
4878 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
4879 | no_cache=0 | |
4880 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
4881 | if test "${enable_dialupman+set}" = set; then | |
4882 | enableval="$enable_dialupman" | |
4883 | ||
4884 | if test "$enableval" = yes; then | |
4885 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
4886 | else | |
4887 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
4888 | fi | |
4889 | ||
4890 | else | |
4891 | ||
4892 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
4893 | if test "x$LINE" != x ; then | |
4894 | eval "DEFAULT_$LINE" | |
4895 | else | |
4896 | no_cache=1 | |
4897 | fi | |
4898 | ||
4899 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
4900 | ||
4901 | fi; | |
4902 | ||
4903 | eval "$ac_cv_use_dialupman" | |
4904 | if test "$no_cache" != 1; then | |
4905 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
4906 | fi | |
4907 | ||
4908 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
4909 | echo "$as_me:$LINENO: result: yes" >&5 | |
4910 | echo "${ECHO_T}yes" >&6 | |
4911 | else | |
4912 | echo "$as_me:$LINENO: result: no" >&5 | |
4913 | echo "${ECHO_T}no" >&6 | |
4914 | fi | |
4915 | ||
4916 | ||
4917 | enablestring= | |
4918 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
4919 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
4920 | no_cache=0 | |
4921 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4922 | if test "${enable_dynlib+set}" = set; then | |
4923 | enableval="$enable_dynlib" | |
4924 | ||
4925 | if test "$enableval" = yes; then | |
4926 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4927 | else | |
4928 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4929 | fi | |
4930 | ||
4931 | else | |
4932 | ||
4933 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
4934 | if test "x$LINE" != x ; then | |
4935 | eval "DEFAULT_$LINE" | |
4936 | else | |
4937 | no_cache=1 | |
4938 | fi | |
4939 | ||
4940 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
4941 | ||
4942 | fi; | |
4943 | ||
4944 | eval "$ac_cv_use_dynlib" | |
4945 | if test "$no_cache" != 1; then | |
4946 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4947 | fi | |
4948 | ||
4949 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
4950 | echo "$as_me:$LINENO: result: yes" >&5 | |
4951 | echo "${ECHO_T}yes" >&6 | |
4952 | else | |
4953 | echo "$as_me:$LINENO: result: no" >&5 | |
4954 | echo "${ECHO_T}no" >&6 | |
4955 | fi | |
4956 | ||
4957 | ||
4958 | enablestring= | |
4959 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
4960 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
4961 | no_cache=0 | |
4962 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4963 | if test "${enable_dynamicloader+set}" = set; then | |
4964 | enableval="$enable_dynamicloader" | |
4965 | ||
4966 | if test "$enableval" = yes; then | |
4967 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4968 | else | |
4969 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4970 | fi | |
4971 | ||
4972 | else | |
4973 | ||
4974 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
4975 | if test "x$LINE" != x ; then | |
4976 | eval "DEFAULT_$LINE" | |
4977 | else | |
4978 | no_cache=1 | |
4979 | fi | |
4980 | ||
4981 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
4982 | ||
4983 | fi; | |
4984 | ||
4985 | eval "$ac_cv_use_dynamicloader" | |
4986 | if test "$no_cache" != 1; then | |
4987 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4988 | fi | |
4989 | ||
4990 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
4991 | echo "$as_me:$LINENO: result: yes" >&5 | |
4992 | echo "${ECHO_T}yes" >&6 | |
4993 | else | |
4994 | echo "$as_me:$LINENO: result: no" >&5 | |
4995 | echo "${ECHO_T}no" >&6 | |
4996 | fi | |
4997 | ||
4998 | ||
4999 | enablestring= | |
5000 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
5001 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
5002 | no_cache=0 | |
5003 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
5004 | if test "${enable_exceptions+set}" = set; then | |
5005 | enableval="$enable_exceptions" | |
5006 | ||
5007 | if test "$enableval" = yes; then | |
5008 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
5009 | else | |
5010 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
5011 | fi | |
5012 | ||
5013 | else | |
5014 | ||
5015 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
5016 | if test "x$LINE" != x ; then | |
5017 | eval "DEFAULT_$LINE" | |
5018 | else | |
5019 | no_cache=1 | |
5020 | fi | |
5021 | ||
5022 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
5023 | ||
5024 | fi; | |
5025 | ||
5026 | eval "$ac_cv_use_exceptions" | |
5027 | if test "$no_cache" != 1; then | |
5028 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
5029 | fi | |
5030 | ||
5031 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
5032 | echo "$as_me:$LINENO: result: yes" >&5 | |
5033 | echo "${ECHO_T}yes" >&6 | |
5034 | else | |
5035 | echo "$as_me:$LINENO: result: no" >&5 | |
5036 | echo "${ECHO_T}no" >&6 | |
5037 | fi | |
5038 | ||
5039 | ||
5040 | enablestring= | |
5041 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
5042 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
5043 | no_cache=0 | |
5044 | # Check whether --enable-ffile or --disable-ffile was given. | |
5045 | if test "${enable_ffile+set}" = set; then | |
5046 | enableval="$enable_ffile" | |
5047 | ||
5048 | if test "$enableval" = yes; then | |
5049 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
5050 | else | |
5051 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
5052 | fi | |
5053 | ||
5054 | else | |
5055 | ||
5056 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
5057 | if test "x$LINE" != x ; then | |
5058 | eval "DEFAULT_$LINE" | |
5059 | else | |
5060 | no_cache=1 | |
5061 | fi | |
5062 | ||
5063 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
5064 | ||
5065 | fi; | |
5066 | ||
5067 | eval "$ac_cv_use_ffile" | |
5068 | if test "$no_cache" != 1; then | |
5069 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
5070 | fi | |
5071 | ||
5072 | if test "$wxUSE_FFILE" = yes; then | |
5073 | echo "$as_me:$LINENO: result: yes" >&5 | |
5074 | echo "${ECHO_T}yes" >&6 | |
5075 | else | |
5076 | echo "$as_me:$LINENO: result: no" >&5 | |
5077 | echo "${ECHO_T}no" >&6 | |
5078 | fi | |
5079 | ||
5080 | ||
5081 | enablestring= | |
5082 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
5083 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
5084 | no_cache=0 | |
5085 | # Check whether --enable-file or --disable-file was given. | |
5086 | if test "${enable_file+set}" = set; then | |
5087 | enableval="$enable_file" | |
5088 | ||
5089 | if test "$enableval" = yes; then | |
5090 | ac_cv_use_file='wxUSE_FILE=yes' | |
5091 | else | |
5092 | ac_cv_use_file='wxUSE_FILE=no' | |
5093 | fi | |
5094 | ||
5095 | else | |
5096 | ||
5097 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
5098 | if test "x$LINE" != x ; then | |
5099 | eval "DEFAULT_$LINE" | |
5100 | else | |
5101 | no_cache=1 | |
5102 | fi | |
5103 | ||
5104 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
5105 | ||
5106 | fi; | |
5107 | ||
5108 | eval "$ac_cv_use_file" | |
5109 | if test "$no_cache" != 1; then | |
5110 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
5111 | fi | |
5112 | ||
5113 | if test "$wxUSE_FILE" = yes; then | |
5114 | echo "$as_me:$LINENO: result: yes" >&5 | |
5115 | echo "${ECHO_T}yes" >&6 | |
5116 | else | |
5117 | echo "$as_me:$LINENO: result: no" >&5 | |
5118 | echo "${ECHO_T}no" >&6 | |
5119 | fi | |
5120 | ||
5121 | ||
5122 | enablestring= | |
5123 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
5124 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
5125 | no_cache=0 | |
5126 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5127 | if test "${enable_filesystem+set}" = set; then | |
5128 | enableval="$enable_filesystem" | |
5129 | ||
5130 | if test "$enableval" = yes; then | |
5131 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5132 | else | |
5133 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5134 | fi | |
5135 | ||
5136 | else | |
5137 | ||
5138 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
5139 | if test "x$LINE" != x ; then | |
5140 | eval "DEFAULT_$LINE" | |
5141 | else | |
5142 | no_cache=1 | |
5143 | fi | |
5144 | ||
5145 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
5146 | ||
5147 | fi; | |
5148 | ||
5149 | eval "$ac_cv_use_filesystem" | |
5150 | if test "$no_cache" != 1; then | |
5151 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5152 | fi | |
5153 | ||
5154 | if test "$wxUSE_FILESYSTEM" = yes; then | |
5155 | echo "$as_me:$LINENO: result: yes" >&5 | |
5156 | echo "${ECHO_T}yes" >&6 | |
5157 | else | |
5158 | echo "$as_me:$LINENO: result: no" >&5 | |
5159 | echo "${ECHO_T}no" >&6 | |
5160 | fi | |
5161 | ||
5162 | ||
5163 | enablestring= | |
5164 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
5165 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
5166 | no_cache=0 | |
5167 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
5168 | if test "${enable_fontmap+set}" = set; then | |
5169 | enableval="$enable_fontmap" | |
5170 | ||
5171 | if test "$enableval" = yes; then | |
5172 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
5173 | else | |
5174 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
5175 | fi | |
5176 | ||
5177 | else | |
5178 | ||
5179 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5180 | if test "x$LINE" != x ; then | |
5181 | eval "DEFAULT_$LINE" | |
5182 | else | |
5183 | no_cache=1 | |
5184 | fi | |
5185 | ||
5186 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5187 | ||
5188 | fi; | |
5189 | ||
5190 | eval "$ac_cv_use_fontmap" | |
5191 | if test "$no_cache" != 1; then | |
5192 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5193 | fi | |
5194 | ||
5195 | if test "$wxUSE_FONTMAP" = yes; then | |
5196 | echo "$as_me:$LINENO: result: yes" >&5 | |
5197 | echo "${ECHO_T}yes" >&6 | |
5198 | else | |
5199 | echo "$as_me:$LINENO: result: no" >&5 | |
5200 | echo "${ECHO_T}no" >&6 | |
5201 | fi | |
5202 | ||
5203 | ||
5204 | enablestring= | |
5205 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5206 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5207 | no_cache=0 | |
5208 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5209 | if test "${enable_fs_inet+set}" = set; then | |
5210 | enableval="$enable_fs_inet" | |
5211 | ||
5212 | if test "$enableval" = yes; then | |
5213 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5214 | else | |
5215 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5216 | fi | |
5217 | ||
5218 | else | |
5219 | ||
5220 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5221 | if test "x$LINE" != x ; then | |
5222 | eval "DEFAULT_$LINE" | |
5223 | else | |
5224 | no_cache=1 | |
5225 | fi | |
5226 | ||
5227 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5228 | ||
5229 | fi; | |
5230 | ||
5231 | eval "$ac_cv_use_fs_inet" | |
5232 | if test "$no_cache" != 1; then | |
5233 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5234 | fi | |
5235 | ||
5236 | if test "$wxUSE_FS_INET" = yes; then | |
5237 | echo "$as_me:$LINENO: result: yes" >&5 | |
5238 | echo "${ECHO_T}yes" >&6 | |
5239 | else | |
5240 | echo "$as_me:$LINENO: result: no" >&5 | |
5241 | echo "${ECHO_T}no" >&6 | |
5242 | fi | |
5243 | ||
5244 | ||
5245 | enablestring= | |
5246 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5247 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5248 | no_cache=0 | |
5249 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5250 | if test "${enable_fs_zip+set}" = set; then | |
5251 | enableval="$enable_fs_zip" | |
5252 | ||
5253 | if test "$enableval" = yes; then | |
5254 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5255 | else | |
5256 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5257 | fi | |
5258 | ||
5259 | else | |
5260 | ||
5261 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5262 | if test "x$LINE" != x ; then | |
5263 | eval "DEFAULT_$LINE" | |
5264 | else | |
5265 | no_cache=1 | |
5266 | fi | |
5267 | ||
5268 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5269 | ||
5270 | fi; | |
5271 | ||
5272 | eval "$ac_cv_use_fs_zip" | |
5273 | if test "$no_cache" != 1; then | |
5274 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5275 | fi | |
5276 | ||
5277 | if test "$wxUSE_FS_ZIP" = yes; then | |
5278 | echo "$as_me:$LINENO: result: yes" >&5 | |
5279 | echo "${ECHO_T}yes" >&6 | |
5280 | else | |
5281 | echo "$as_me:$LINENO: result: no" >&5 | |
5282 | echo "${ECHO_T}no" >&6 | |
5283 | fi | |
5284 | ||
5285 | ||
5286 | enablestring= | |
5287 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5288 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5289 | no_cache=0 | |
5290 | # Check whether --enable-geometry or --disable-geometry was given. | |
5291 | if test "${enable_geometry+set}" = set; then | |
5292 | enableval="$enable_geometry" | |
5293 | ||
5294 | if test "$enableval" = yes; then | |
5295 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5296 | else | |
5297 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5298 | fi | |
5299 | ||
5300 | else | |
5301 | ||
5302 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5303 | if test "x$LINE" != x ; then | |
5304 | eval "DEFAULT_$LINE" | |
5305 | else | |
5306 | no_cache=1 | |
5307 | fi | |
5308 | ||
5309 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5310 | ||
5311 | fi; | |
5312 | ||
5313 | eval "$ac_cv_use_geometry" | |
5314 | if test "$no_cache" != 1; then | |
5315 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5316 | fi | |
5317 | ||
5318 | if test "$wxUSE_GEOMETRY" = yes; then | |
5319 | echo "$as_me:$LINENO: result: yes" >&5 | |
5320 | echo "${ECHO_T}yes" >&6 | |
5321 | else | |
5322 | echo "$as_me:$LINENO: result: no" >&5 | |
5323 | echo "${ECHO_T}no" >&6 | |
5324 | fi | |
5325 | ||
5326 | ||
5327 | enablestring= | |
5328 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5329 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5330 | no_cache=0 | |
5331 | # Check whether --enable-log or --disable-log was given. | |
5332 | if test "${enable_log+set}" = set; then | |
5333 | enableval="$enable_log" | |
5334 | ||
5335 | if test "$enableval" = yes; then | |
5336 | ac_cv_use_log='wxUSE_LOG=yes' | |
5337 | else | |
5338 | ac_cv_use_log='wxUSE_LOG=no' | |
5339 | fi | |
5340 | ||
5341 | else | |
5342 | ||
5343 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5344 | if test "x$LINE" != x ; then | |
5345 | eval "DEFAULT_$LINE" | |
5346 | else | |
5347 | no_cache=1 | |
5348 | fi | |
5349 | ||
5350 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5351 | ||
5352 | fi; | |
5353 | ||
5354 | eval "$ac_cv_use_log" | |
5355 | if test "$no_cache" != 1; then | |
5356 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5357 | fi | |
5358 | ||
5359 | if test "$wxUSE_LOG" = yes; then | |
5360 | echo "$as_me:$LINENO: result: yes" >&5 | |
5361 | echo "${ECHO_T}yes" >&6 | |
5362 | else | |
5363 | echo "$as_me:$LINENO: result: no" >&5 | |
5364 | echo "${ECHO_T}no" >&6 | |
5365 | fi | |
5366 | ||
5367 | ||
5368 | enablestring= | |
5369 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5370 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5371 | no_cache=0 | |
5372 | # Check whether --enable-longlong or --disable-longlong was given. | |
5373 | if test "${enable_longlong+set}" = set; then | |
5374 | enableval="$enable_longlong" | |
5375 | ||
5376 | if test "$enableval" = yes; then | |
5377 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5378 | else | |
5379 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5380 | fi | |
5381 | ||
5382 | else | |
5383 | ||
5384 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5385 | if test "x$LINE" != x ; then | |
5386 | eval "DEFAULT_$LINE" | |
5387 | else | |
5388 | no_cache=1 | |
5389 | fi | |
5390 | ||
5391 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5392 | ||
5393 | fi; | |
5394 | ||
5395 | eval "$ac_cv_use_longlong" | |
5396 | if test "$no_cache" != 1; then | |
5397 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5398 | fi | |
5399 | ||
5400 | if test "$wxUSE_LONGLONG" = yes; then | |
5401 | echo "$as_me:$LINENO: result: yes" >&5 | |
5402 | echo "${ECHO_T}yes" >&6 | |
5403 | else | |
5404 | echo "$as_me:$LINENO: result: no" >&5 | |
5405 | echo "${ECHO_T}no" >&6 | |
5406 | fi | |
5407 | ||
5408 | ||
5409 | enablestring= | |
5410 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5411 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5412 | no_cache=0 | |
5413 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5414 | if test "${enable_mimetype+set}" = set; then | |
5415 | enableval="$enable_mimetype" | |
5416 | ||
5417 | if test "$enableval" = yes; then | |
5418 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5419 | else | |
5420 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5421 | fi | |
5422 | ||
5423 | else | |
5424 | ||
5425 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5426 | if test "x$LINE" != x ; then | |
5427 | eval "DEFAULT_$LINE" | |
5428 | else | |
5429 | no_cache=1 | |
5430 | fi | |
5431 | ||
5432 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5433 | ||
5434 | fi; | |
5435 | ||
5436 | eval "$ac_cv_use_mimetype" | |
5437 | if test "$no_cache" != 1; then | |
5438 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5439 | fi | |
5440 | ||
5441 | if test "$wxUSE_MIMETYPE" = yes; then | |
5442 | echo "$as_me:$LINENO: result: yes" >&5 | |
5443 | echo "${ECHO_T}yes" >&6 | |
5444 | else | |
5445 | echo "$as_me:$LINENO: result: no" >&5 | |
5446 | echo "${ECHO_T}no" >&6 | |
5447 | fi | |
5448 | ||
5449 | ||
5450 | enablestring= | |
5451 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5452 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5453 | no_cache=0 | |
5454 | # Check whether --enable-mslu or --disable-mslu was given. | |
5455 | if test "${enable_mslu+set}" = set; then | |
5456 | enableval="$enable_mslu" | |
5457 | ||
5458 | if test "$enableval" = yes; then | |
5459 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5460 | else | |
5461 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5462 | fi | |
5463 | ||
5464 | else | |
5465 | ||
5466 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5467 | if test "x$LINE" != x ; then | |
5468 | eval "DEFAULT_$LINE" | |
5469 | else | |
5470 | no_cache=1 | |
5471 | fi | |
5472 | ||
5473 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5474 | ||
5475 | fi; | |
5476 | ||
5477 | eval "$ac_cv_use_mslu" | |
5478 | if test "$no_cache" != 1; then | |
5479 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5480 | fi | |
5481 | ||
5482 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5483 | echo "$as_me:$LINENO: result: yes" >&5 | |
5484 | echo "${ECHO_T}yes" >&6 | |
5485 | else | |
5486 | echo "$as_me:$LINENO: result: no" >&5 | |
5487 | echo "${ECHO_T}no" >&6 | |
5488 | fi | |
5489 | ||
5490 | ||
5491 | enablestring= | |
5492 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5493 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5494 | no_cache=0 | |
5495 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5496 | if test "${enable_snglinst+set}" = set; then | |
5497 | enableval="$enable_snglinst" | |
5498 | ||
5499 | if test "$enableval" = yes; then | |
5500 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5501 | else | |
5502 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5503 | fi | |
5504 | ||
5505 | else | |
5506 | ||
5507 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5508 | if test "x$LINE" != x ; then | |
5509 | eval "DEFAULT_$LINE" | |
5510 | else | |
5511 | no_cache=1 | |
5512 | fi | |
5513 | ||
5514 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5515 | ||
5516 | fi; | |
5517 | ||
5518 | eval "$ac_cv_use_snglinst" | |
5519 | if test "$no_cache" != 1; then | |
5520 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5521 | fi | |
5522 | ||
5523 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5524 | echo "$as_me:$LINENO: result: yes" >&5 | |
5525 | echo "${ECHO_T}yes" >&6 | |
5526 | else | |
5527 | echo "$as_me:$LINENO: result: no" >&5 | |
5528 | echo "${ECHO_T}no" >&6 | |
5529 | fi | |
5530 | ||
5531 | ||
5532 | enablestring= | |
5533 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5534 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5535 | no_cache=0 | |
5536 | # Check whether --enable-streams or --disable-streams was given. | |
5537 | if test "${enable_streams+set}" = set; then | |
5538 | enableval="$enable_streams" | |
5539 | ||
5540 | if test "$enableval" = yes; then | |
5541 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5542 | else | |
5543 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5544 | fi | |
5545 | ||
5546 | else | |
5547 | ||
5548 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5549 | if test "x$LINE" != x ; then | |
5550 | eval "DEFAULT_$LINE" | |
5551 | else | |
5552 | no_cache=1 | |
5553 | fi | |
5554 | ||
5555 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5556 | ||
5557 | fi; | |
5558 | ||
5559 | eval "$ac_cv_use_streams" | |
5560 | if test "$no_cache" != 1; then | |
5561 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5562 | fi | |
5563 | ||
5564 | if test "$wxUSE_STREAMS" = yes; then | |
5565 | echo "$as_me:$LINENO: result: yes" >&5 | |
5566 | echo "${ECHO_T}yes" >&6 | |
5567 | else | |
5568 | echo "$as_me:$LINENO: result: no" >&5 | |
5569 | echo "${ECHO_T}no" >&6 | |
5570 | fi | |
5571 | ||
5572 | ||
5573 | enablestring= | |
5574 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 | |
5575 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
5576 | no_cache=0 | |
5577 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5578 | if test "${enable_std_iostreams+set}" = set; then | |
5579 | enableval="$enable_std_iostreams" | |
5580 | ||
5581 | if test "$enableval" = yes; then | |
5582 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5583 | else | |
5584 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5585 | fi | |
5586 | ||
5587 | else | |
5588 | ||
5589 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
5590 | if test "x$LINE" != x ; then | |
5591 | eval "DEFAULT_$LINE" | |
5592 | else | |
5593 | no_cache=1 | |
5594 | fi | |
5595 | ||
5596 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
5597 | ||
5598 | fi; | |
5599 | ||
5600 | eval "$ac_cv_use_std_iostreams" | |
5601 | if test "$no_cache" != 1; then | |
5602 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5603 | fi | |
5604 | ||
5605 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
5606 | echo "$as_me:$LINENO: result: yes" >&5 | |
5607 | echo "${ECHO_T}yes" >&6 | |
5608 | else | |
5609 | echo "$as_me:$LINENO: result: no" >&5 | |
5610 | echo "${ECHO_T}no" >&6 | |
5611 | fi | |
5612 | ||
5613 | ||
5614 | enablestring= | |
5615 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5616 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5617 | no_cache=0 | |
5618 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5619 | if test "${enable_stopwatch+set}" = set; then | |
5620 | enableval="$enable_stopwatch" | |
5621 | ||
5622 | if test "$enableval" = yes; then | |
5623 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5624 | else | |
5625 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5626 | fi | |
5627 | ||
5628 | else | |
5629 | ||
5630 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5631 | if test "x$LINE" != x ; then | |
5632 | eval "DEFAULT_$LINE" | |
5633 | else | |
5634 | no_cache=1 | |
5635 | fi | |
5636 | ||
5637 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5638 | ||
5639 | fi; | |
5640 | ||
5641 | eval "$ac_cv_use_stopwatch" | |
5642 | if test "$no_cache" != 1; then | |
5643 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5644 | fi | |
5645 | ||
5646 | if test "$wxUSE_STOPWATCH" = yes; then | |
5647 | echo "$as_me:$LINENO: result: yes" >&5 | |
5648 | echo "${ECHO_T}yes" >&6 | |
5649 | else | |
5650 | echo "$as_me:$LINENO: result: no" >&5 | |
5651 | echo "${ECHO_T}no" >&6 | |
5652 | fi | |
5653 | ||
5654 | ||
5655 | enablestring= | |
5656 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5657 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5658 | no_cache=0 | |
5659 | # Check whether --enable-system_options or --disable-system_options was given. | |
5660 | if test "${enable_system_options+set}" = set; then | |
5661 | enableval="$enable_system_options" | |
5662 | ||
5663 | if test "$enableval" = yes; then | |
5664 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5665 | else | |
5666 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5667 | fi | |
5668 | ||
5669 | else | |
5670 | ||
5671 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5672 | if test "x$LINE" != x ; then | |
5673 | eval "DEFAULT_$LINE" | |
5674 | else | |
5675 | no_cache=1 | |
5676 | fi | |
5677 | ||
5678 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5679 | ||
5680 | fi; | |
5681 | ||
5682 | eval "$ac_cv_use_system_options" | |
5683 | if test "$no_cache" != 1; then | |
5684 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5685 | fi | |
5686 | ||
5687 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5688 | echo "$as_me:$LINENO: result: yes" >&5 | |
5689 | echo "${ECHO_T}yes" >&6 | |
5690 | else | |
5691 | echo "$as_me:$LINENO: result: no" >&5 | |
5692 | echo "${ECHO_T}no" >&6 | |
5693 | fi | |
5694 | ||
5695 | ||
5696 | enablestring= | |
5697 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5698 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5699 | no_cache=0 | |
5700 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5701 | if test "${enable_textbuf+set}" = set; then | |
5702 | enableval="$enable_textbuf" | |
5703 | ||
5704 | if test "$enableval" = yes; then | |
5705 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5706 | else | |
5707 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5708 | fi | |
5709 | ||
5710 | else | |
5711 | ||
5712 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
5713 | if test "x$LINE" != x ; then | |
5714 | eval "DEFAULT_$LINE" | |
5715 | else | |
5716 | no_cache=1 | |
5717 | fi | |
5718 | ||
5719 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5720 | ||
5721 | fi; | |
5722 | ||
5723 | eval "$ac_cv_use_textbuf" | |
5724 | if test "$no_cache" != 1; then | |
5725 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5726 | fi | |
5727 | ||
5728 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
5729 | echo "$as_me:$LINENO: result: yes" >&5 | |
5730 | echo "${ECHO_T}yes" >&6 | |
5731 | else | |
5732 | echo "$as_me:$LINENO: result: no" >&5 | |
5733 | echo "${ECHO_T}no" >&6 | |
5734 | fi | |
5735 | ||
5736 | ||
5737 | enablestring= | |
5738 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
5739 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
5740 | no_cache=0 | |
5741 | # Check whether --enable-textfile or --disable-textfile was given. | |
5742 | if test "${enable_textfile+set}" = set; then | |
5743 | enableval="$enable_textfile" | |
5744 | ||
5745 | if test "$enableval" = yes; then | |
5746 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
5747 | else | |
5748 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
5749 | fi | |
5750 | ||
5751 | else | |
5752 | ||
5753 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
5754 | if test "x$LINE" != x ; then | |
5755 | eval "DEFAULT_$LINE" | |
5756 | else | |
5757 | no_cache=1 | |
5758 | fi | |
5759 | ||
5760 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
5761 | ||
5762 | fi; | |
5763 | ||
5764 | eval "$ac_cv_use_textfile" | |
5765 | if test "$no_cache" != 1; then | |
5766 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
5767 | fi | |
5768 | ||
5769 | if test "$wxUSE_TEXTFILE" = yes; then | |
5770 | echo "$as_me:$LINENO: result: yes" >&5 | |
5771 | echo "${ECHO_T}yes" >&6 | |
5772 | else | |
5773 | echo "$as_me:$LINENO: result: no" >&5 | |
5774 | echo "${ECHO_T}no" >&6 | |
5775 | fi | |
5776 | ||
5777 | ||
5778 | enablestring= | |
5779 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
5780 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
5781 | no_cache=0 | |
5782 | # Check whether --enable-timer or --disable-timer was given. | |
5783 | if test "${enable_timer+set}" = set; then | |
5784 | enableval="$enable_timer" | |
5785 | ||
5786 | if test "$enableval" = yes; then | |
5787 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
5788 | else | |
5789 | ac_cv_use_timer='wxUSE_TIMER=no' | |
5790 | fi | |
5791 | ||
5792 | else | |
5793 | ||
5794 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
5795 | if test "x$LINE" != x ; then | |
5796 | eval "DEFAULT_$LINE" | |
5797 | else | |
5798 | no_cache=1 | |
5799 | fi | |
5800 | ||
5801 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
5802 | ||
5803 | fi; | |
5804 | ||
5805 | eval "$ac_cv_use_timer" | |
5806 | if test "$no_cache" != 1; then | |
5807 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
5808 | fi | |
5809 | ||
5810 | if test "$wxUSE_TIMER" = yes; then | |
5811 | echo "$as_me:$LINENO: result: yes" >&5 | |
5812 | echo "${ECHO_T}yes" >&6 | |
5813 | else | |
5814 | echo "$as_me:$LINENO: result: no" >&5 | |
5815 | echo "${ECHO_T}no" >&6 | |
5816 | fi | |
5817 | ||
5818 | ||
5819 | enablestring= | |
5820 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
5821 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
5822 | no_cache=0 | |
5823 | # Check whether --enable-unicode or --disable-unicode was given. | |
5824 | if test "${enable_unicode+set}" = set; then | |
5825 | enableval="$enable_unicode" | |
5826 | ||
5827 | if test "$enableval" = yes; then | |
5828 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
5829 | else | |
5830 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
5831 | fi | |
5832 | ||
5833 | else | |
5834 | ||
5835 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
5836 | if test "x$LINE" != x ; then | |
5837 | eval "DEFAULT_$LINE" | |
5838 | else | |
5839 | no_cache=1 | |
5840 | fi | |
5841 | ||
5842 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
5843 | ||
5844 | fi; | |
5845 | ||
5846 | eval "$ac_cv_use_unicode" | |
5847 | if test "$no_cache" != 1; then | |
5848 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
5849 | fi | |
5850 | ||
5851 | if test "$wxUSE_UNICODE" = yes; then | |
5852 | echo "$as_me:$LINENO: result: yes" >&5 | |
5853 | echo "${ECHO_T}yes" >&6 | |
5854 | else | |
5855 | echo "$as_me:$LINENO: result: no" >&5 | |
5856 | echo "${ECHO_T}no" >&6 | |
5857 | fi | |
5858 | ||
5859 | ||
5860 | enablestring= | |
5861 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
5862 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
5863 | no_cache=0 | |
5864 | # Check whether --enable-sound or --disable-sound was given. | |
5865 | if test "${enable_sound+set}" = set; then | |
5866 | enableval="$enable_sound" | |
5867 | ||
5868 | if test "$enableval" = yes; then | |
5869 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
5870 | else | |
5871 | ac_cv_use_sound='wxUSE_SOUND=no' | |
5872 | fi | |
5873 | ||
5874 | else | |
5875 | ||
5876 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
5877 | if test "x$LINE" != x ; then | |
5878 | eval "DEFAULT_$LINE" | |
5879 | else | |
5880 | no_cache=1 | |
5881 | fi | |
5882 | ||
5883 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
5884 | ||
5885 | fi; | |
5886 | ||
5887 | eval "$ac_cv_use_sound" | |
5888 | if test "$no_cache" != 1; then | |
5889 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
5890 | fi | |
5891 | ||
5892 | if test "$wxUSE_SOUND" = yes; then | |
5893 | echo "$as_me:$LINENO: result: yes" >&5 | |
5894 | echo "${ECHO_T}yes" >&6 | |
5895 | else | |
5896 | echo "$as_me:$LINENO: result: no" >&5 | |
5897 | echo "${ECHO_T}no" >&6 | |
5898 | fi | |
5899 | ||
5900 | ||
3b57de8b RL |
5901 | enablestring= |
5902 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5 | |
5903 | echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6 | |
5904 | no_cache=0 | |
5905 | # Check whether --enable-mediactrl or --disable-mediactrl was given. | |
5906 | if test "${enable_mediactrl+set}" = set; then | |
5907 | enableval="$enable_mediactrl" | |
5908 | ||
5909 | if test "$enableval" = yes; then | |
5910 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes' | |
5911 | else | |
5912 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no' | |
5913 | fi | |
5914 | ||
5915 | else | |
5916 | ||
5917 | LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}` | |
5918 | if test "x$LINE" != x ; then | |
5919 | eval "DEFAULT_$LINE" | |
5920 | else | |
5921 | no_cache=1 | |
5922 | fi | |
5923 | ||
5924 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL | |
5925 | ||
5926 | fi; | |
5927 | ||
5928 | eval "$ac_cv_use_mediactrl" | |
5929 | if test "$no_cache" != 1; then | |
5930 | echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp | |
5931 | fi | |
5932 | ||
5933 | if test "$wxUSE_MEDIACTRL" = yes; then | |
5934 | echo "$as_me:$LINENO: result: yes" >&5 | |
5935 | echo "${ECHO_T}yes" >&6 | |
5936 | else | |
5937 | echo "$as_me:$LINENO: result: no" >&5 | |
5938 | echo "${ECHO_T}no" >&6 | |
5939 | fi | |
5940 | ||
5941 | ||
a848cd7e SC |
5942 | enablestring= |
5943 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
5944 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
5945 | no_cache=0 | |
5946 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
5947 | if test "${enable_wxprintfv+set}" = set; then | |
5948 | enableval="$enable_wxprintfv" | |
5949 | ||
5950 | if test "$enableval" = yes; then | |
5951 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
5952 | else | |
5953 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
5954 | fi | |
5955 | ||
5956 | else | |
5957 | ||
5958 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
5959 | if test "x$LINE" != x ; then | |
5960 | eval "DEFAULT_$LINE" | |
5961 | else | |
5962 | no_cache=1 | |
5963 | fi | |
5964 | ||
5965 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
5966 | ||
5967 | fi; | |
5968 | ||
5969 | eval "$ac_cv_use_wxprintfv" | |
5970 | if test "$no_cache" != 1; then | |
5971 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
5972 | fi | |
5973 | ||
5974 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
5975 | echo "$as_me:$LINENO: result: yes" >&5 | |
5976 | echo "${ECHO_T}yes" >&6 | |
5977 | else | |
5978 | echo "$as_me:$LINENO: result: no" >&5 | |
5979 | echo "${ECHO_T}no" >&6 | |
5980 | fi | |
5981 | ||
5982 | ||
5983 | enablestring= | |
5984 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
5985 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
5986 | no_cache=0 | |
5987 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
5988 | if test "${enable_zipstream+set}" = set; then | |
5989 | enableval="$enable_zipstream" | |
5990 | ||
5991 | if test "$enableval" = yes; then | |
5992 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
5993 | else | |
5994 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
5995 | fi | |
5996 | ||
5997 | else | |
5998 | ||
5999 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
6000 | if test "x$LINE" != x ; then | |
6001 | eval "DEFAULT_$LINE" | |
6002 | else | |
6003 | no_cache=1 | |
6004 | fi | |
6005 | ||
6006 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
6007 | ||
6008 | fi; | |
6009 | ||
6010 | eval "$ac_cv_use_zipstream" | |
6011 | if test "$no_cache" != 1; then | |
6012 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
6013 | fi | |
6014 | ||
6015 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
6016 | echo "$as_me:$LINENO: result: yes" >&5 | |
6017 | echo "${ECHO_T}yes" >&6 | |
6018 | else | |
6019 | echo "$as_me:$LINENO: result: no" >&5 | |
6020 | echo "${ECHO_T}no" >&6 | |
6021 | fi | |
6022 | ||
6023 | ||
a848cd7e SC |
6024 | |
6025 | enablestring= | |
6026 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
6027 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
6028 | no_cache=0 | |
6029 | # Check whether --enable-url or --disable-url was given. | |
6030 | if test "${enable_url+set}" = set; then | |
6031 | enableval="$enable_url" | |
6032 | ||
6033 | if test "$enableval" = yes; then | |
6034 | ac_cv_use_url='wxUSE_URL=yes' | |
6035 | else | |
6036 | ac_cv_use_url='wxUSE_URL=no' | |
6037 | fi | |
6038 | ||
6039 | else | |
6040 | ||
6041 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
6042 | if test "x$LINE" != x ; then | |
6043 | eval "DEFAULT_$LINE" | |
6044 | else | |
6045 | no_cache=1 | |
6046 | fi | |
6047 | ||
6048 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
6049 | ||
6050 | fi; | |
6051 | ||
6052 | eval "$ac_cv_use_url" | |
6053 | if test "$no_cache" != 1; then | |
6054 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
6055 | fi | |
6056 | ||
6057 | if test "$wxUSE_URL" = yes; then | |
6058 | echo "$as_me:$LINENO: result: yes" >&5 | |
6059 | echo "${ECHO_T}yes" >&6 | |
6060 | else | |
6061 | echo "$as_me:$LINENO: result: no" >&5 | |
6062 | echo "${ECHO_T}no" >&6 | |
6063 | fi | |
6064 | ||
6065 | ||
6066 | enablestring= | |
6067 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
6068 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
6069 | no_cache=0 | |
6070 | # Check whether --enable-protocol or --disable-protocol was given. | |
6071 | if test "${enable_protocol+set}" = set; then | |
6072 | enableval="$enable_protocol" | |
6073 | ||
6074 | if test "$enableval" = yes; then | |
6075 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
6076 | else | |
6077 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
6078 | fi | |
6079 | ||
6080 | else | |
6081 | ||
6082 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
6083 | if test "x$LINE" != x ; then | |
6084 | eval "DEFAULT_$LINE" | |
6085 | else | |
6086 | no_cache=1 | |
6087 | fi | |
6088 | ||
6089 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
6090 | ||
6091 | fi; | |
6092 | ||
6093 | eval "$ac_cv_use_protocol" | |
6094 | if test "$no_cache" != 1; then | |
6095 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
6096 | fi | |
6097 | ||
6098 | if test "$wxUSE_PROTOCOL" = yes; then | |
6099 | echo "$as_me:$LINENO: result: yes" >&5 | |
6100 | echo "${ECHO_T}yes" >&6 | |
6101 | else | |
6102 | echo "$as_me:$LINENO: result: no" >&5 | |
6103 | echo "${ECHO_T}no" >&6 | |
6104 | fi | |
6105 | ||
6106 | ||
6107 | enablestring= | |
6108 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
6109 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
6110 | no_cache=0 | |
6111 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
6112 | if test "${enable_protocol_http+set}" = set; then | |
6113 | enableval="$enable_protocol_http" | |
6114 | ||
6115 | if test "$enableval" = yes; then | |
6116 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
6117 | else | |
6118 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
6119 | fi | |
6120 | ||
6121 | else | |
6122 | ||
6123 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
6124 | if test "x$LINE" != x ; then | |
6125 | eval "DEFAULT_$LINE" | |
6126 | else | |
6127 | no_cache=1 | |
6128 | fi | |
6129 | ||
6130 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
6131 | ||
6132 | fi; | |
6133 | ||
6134 | eval "$ac_cv_use_protocol_http" | |
6135 | if test "$no_cache" != 1; then | |
6136 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
6137 | fi | |
6138 | ||
6139 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
6140 | echo "$as_me:$LINENO: result: yes" >&5 | |
6141 | echo "${ECHO_T}yes" >&6 | |
6142 | else | |
6143 | echo "$as_me:$LINENO: result: no" >&5 | |
6144 | echo "${ECHO_T}no" >&6 | |
6145 | fi | |
6146 | ||
6147 | ||
6148 | enablestring= | |
6149 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
6150 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
6151 | no_cache=0 | |
6152 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
6153 | if test "${enable_protocol_ftp+set}" = set; then | |
6154 | enableval="$enable_protocol_ftp" | |
6155 | ||
6156 | if test "$enableval" = yes; then | |
6157 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
6158 | else | |
6159 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
6160 | fi | |
6161 | ||
6162 | else | |
6163 | ||
6164 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
6165 | if test "x$LINE" != x ; then | |
6166 | eval "DEFAULT_$LINE" | |
6167 | else | |
6168 | no_cache=1 | |
6169 | fi | |
6170 | ||
6171 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
6172 | ||
6173 | fi; | |
6174 | ||
6175 | eval "$ac_cv_use_protocol_ftp" | |
6176 | if test "$no_cache" != 1; then | |
6177 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
6178 | fi | |
6179 | ||
6180 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
6181 | echo "$as_me:$LINENO: result: yes" >&5 | |
6182 | echo "${ECHO_T}yes" >&6 | |
6183 | else | |
6184 | echo "$as_me:$LINENO: result: no" >&5 | |
6185 | echo "${ECHO_T}no" >&6 | |
6186 | fi | |
6187 | ||
6188 | ||
6189 | enablestring= | |
6190 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
6191 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
6192 | no_cache=0 | |
6193 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
6194 | if test "${enable_protocol_file+set}" = set; then | |
6195 | enableval="$enable_protocol_file" | |
6196 | ||
6197 | if test "$enableval" = yes; then | |
6198 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
6199 | else | |
6200 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
6201 | fi | |
6202 | ||
6203 | else | |
6204 | ||
6205 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
6206 | if test "x$LINE" != x ; then | |
6207 | eval "DEFAULT_$LINE" | |
6208 | else | |
6209 | no_cache=1 | |
6210 | fi | |
6211 | ||
6212 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
6213 | ||
6214 | fi; | |
6215 | ||
6216 | eval "$ac_cv_use_protocol_file" | |
6217 | if test "$no_cache" != 1; then | |
6218 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6219 | fi | |
6220 | ||
6221 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6222 | echo "$as_me:$LINENO: result: yes" >&5 | |
6223 | echo "${ECHO_T}yes" >&6 | |
6224 | else | |
6225 | echo "$as_me:$LINENO: result: no" >&5 | |
6226 | echo "${ECHO_T}no" >&6 | |
6227 | fi | |
6228 | ||
6229 | ||
6230 | ||
6231 | ||
6232 | ||
6233 | enablestring= | |
6234 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6235 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6236 | no_cache=0 | |
6237 | # Check whether --enable-threads or --disable-threads was given. | |
6238 | if test "${enable_threads+set}" = set; then | |
6239 | enableval="$enable_threads" | |
6240 | ||
6241 | if test "$enableval" = yes; then | |
6242 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6243 | else | |
6244 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6245 | fi | |
6246 | ||
6247 | else | |
6248 | ||
6249 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6250 | if test "x$LINE" != x ; then | |
6251 | eval "DEFAULT_$LINE" | |
6252 | else | |
6253 | no_cache=1 | |
6254 | fi | |
6255 | ||
6256 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6257 | ||
6258 | fi; | |
6259 | ||
6260 | eval "$ac_cv_use_threads" | |
6261 | if test "$no_cache" != 1; then | |
6262 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6263 | fi | |
6264 | ||
6265 | if test "$wxUSE_THREADS" = yes; then | |
6266 | echo "$as_me:$LINENO: result: yes" >&5 | |
6267 | echo "${ECHO_T}yes" >&6 | |
6268 | else | |
6269 | echo "$as_me:$LINENO: result: no" >&5 | |
6270 | echo "${ECHO_T}no" >&6 | |
6271 | fi | |
6272 | ||
6273 | ||
6274 | if test "$wxUSE_GUI" = "yes"; then | |
6275 | ||
6276 | ||
6277 | ||
6278 | enablestring= | |
6279 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6280 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6281 | no_cache=0 | |
6282 | # Check whether --enable-docview or --disable-docview was given. | |
6283 | if test "${enable_docview+set}" = set; then | |
6284 | enableval="$enable_docview" | |
6285 | ||
6286 | if test "$enableval" = yes; then | |
6287 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6288 | else | |
6289 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6290 | fi | |
6291 | ||
6292 | else | |
6293 | ||
6294 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6295 | if test "x$LINE" != x ; then | |
6296 | eval "DEFAULT_$LINE" | |
6297 | else | |
6298 | no_cache=1 | |
6299 | fi | |
6300 | ||
6301 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6302 | ||
6303 | fi; | |
6304 | ||
6305 | eval "$ac_cv_use_docview" | |
6306 | if test "$no_cache" != 1; then | |
6307 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6308 | fi | |
6309 | ||
6310 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6311 | echo "$as_me:$LINENO: result: yes" >&5 | |
6312 | echo "${ECHO_T}yes" >&6 | |
6313 | else | |
6314 | echo "$as_me:$LINENO: result: no" >&5 | |
6315 | echo "${ECHO_T}no" >&6 | |
6316 | fi | |
6317 | ||
6318 | ||
6319 | enablestring= | |
6320 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6321 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6322 | no_cache=0 | |
6323 | # Check whether --enable-help or --disable-help was given. | |
6324 | if test "${enable_help+set}" = set; then | |
6325 | enableval="$enable_help" | |
6326 | ||
6327 | if test "$enableval" = yes; then | |
6328 | ac_cv_use_help='wxUSE_HELP=yes' | |
6329 | else | |
6330 | ac_cv_use_help='wxUSE_HELP=no' | |
6331 | fi | |
6332 | ||
6333 | else | |
6334 | ||
6335 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6336 | if test "x$LINE" != x ; then | |
6337 | eval "DEFAULT_$LINE" | |
6338 | else | |
6339 | no_cache=1 | |
6340 | fi | |
6341 | ||
6342 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6343 | ||
6344 | fi; | |
6345 | ||
6346 | eval "$ac_cv_use_help" | |
6347 | if test "$no_cache" != 1; then | |
6348 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6349 | fi | |
6350 | ||
6351 | if test "$wxUSE_HELP" = yes; then | |
6352 | echo "$as_me:$LINENO: result: yes" >&5 | |
6353 | echo "${ECHO_T}yes" >&6 | |
6354 | else | |
6355 | echo "$as_me:$LINENO: result: no" >&5 | |
6356 | echo "${ECHO_T}no" >&6 | |
6357 | fi | |
6358 | ||
6359 | ||
6360 | enablestring= | |
6361 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6362 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6363 | no_cache=0 | |
6364 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6365 | if test "${enable_mshtmlhelp+set}" = set; then | |
6366 | enableval="$enable_mshtmlhelp" | |
6367 | ||
6368 | if test "$enableval" = yes; then | |
6369 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6370 | else | |
6371 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6372 | fi | |
6373 | ||
6374 | else | |
6375 | ||
6376 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6377 | if test "x$LINE" != x ; then | |
6378 | eval "DEFAULT_$LINE" | |
6379 | else | |
6380 | no_cache=1 | |
6381 | fi | |
6382 | ||
6383 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6384 | ||
6385 | fi; | |
6386 | ||
6387 | eval "$ac_cv_use_mshtmlhelp" | |
6388 | if test "$no_cache" != 1; then | |
6389 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6390 | fi | |
6391 | ||
6392 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6393 | echo "$as_me:$LINENO: result: yes" >&5 | |
6394 | echo "${ECHO_T}yes" >&6 | |
6395 | else | |
6396 | echo "$as_me:$LINENO: result: no" >&5 | |
6397 | echo "${ECHO_T}no" >&6 | |
6398 | fi | |
6399 | ||
6400 | ||
6401 | enablestring= | |
6402 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6403 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6404 | no_cache=0 | |
6405 | # Check whether --enable-html or --disable-html was given. | |
6406 | if test "${enable_html+set}" = set; then | |
6407 | enableval="$enable_html" | |
6408 | ||
6409 | if test "$enableval" = yes; then | |
6410 | ac_cv_use_html='wxUSE_HTML=yes' | |
6411 | else | |
6412 | ac_cv_use_html='wxUSE_HTML=no' | |
6413 | fi | |
6414 | ||
6415 | else | |
6416 | ||
6417 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6418 | if test "x$LINE" != x ; then | |
6419 | eval "DEFAULT_$LINE" | |
6420 | else | |
6421 | no_cache=1 | |
6422 | fi | |
6423 | ||
6424 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6425 | ||
6426 | fi; | |
6427 | ||
6428 | eval "$ac_cv_use_html" | |
6429 | if test "$no_cache" != 1; then | |
6430 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6431 | fi | |
6432 | ||
6433 | if test "$wxUSE_HTML" = yes; then | |
6434 | echo "$as_me:$LINENO: result: yes" >&5 | |
6435 | echo "${ECHO_T}yes" >&6 | |
6436 | else | |
6437 | echo "$as_me:$LINENO: result: no" >&5 | |
6438 | echo "${ECHO_T}no" >&6 | |
6439 | fi | |
6440 | ||
6441 | ||
6442 | enablestring= | |
6443 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6444 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6445 | no_cache=0 | |
6446 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6447 | if test "${enable_htmlhelp+set}" = set; then | |
6448 | enableval="$enable_htmlhelp" | |
6449 | ||
6450 | if test "$enableval" = yes; then | |
6451 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6452 | else | |
6453 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6454 | fi | |
6455 | ||
6456 | else | |
6457 | ||
6458 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6459 | if test "x$LINE" != x ; then | |
6460 | eval "DEFAULT_$LINE" | |
6461 | else | |
6462 | no_cache=1 | |
6463 | fi | |
6464 | ||
6465 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6466 | ||
6467 | fi; | |
6468 | ||
6469 | eval "$ac_cv_use_htmlhelp" | |
6470 | if test "$no_cache" != 1; then | |
6471 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6472 | fi | |
6473 | ||
6474 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6475 | echo "$as_me:$LINENO: result: yes" >&5 | |
6476 | echo "${ECHO_T}yes" >&6 | |
6477 | else | |
6478 | echo "$as_me:$LINENO: result: no" >&5 | |
6479 | echo "${ECHO_T}no" >&6 | |
6480 | fi | |
6481 | ||
6482 | ||
9a8f0513 VS |
6483 | enablestring= |
6484 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
6485 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
6486 | no_cache=0 | |
6487 | # Check whether --enable-xrc or --disable-xrc was given. | |
6488 | if test "${enable_xrc+set}" = set; then | |
6489 | enableval="$enable_xrc" | |
6490 | ||
6491 | if test "$enableval" = yes; then | |
6492 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
6493 | else | |
6494 | ac_cv_use_xrc='wxUSE_XRC=no' | |
6495 | fi | |
6496 | ||
6497 | else | |
6498 | ||
6499 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
6500 | if test "x$LINE" != x ; then | |
6501 | eval "DEFAULT_$LINE" | |
6502 | else | |
6503 | no_cache=1 | |
6504 | fi | |
6505 | ||
6506 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
6507 | ||
6508 | fi; | |
6509 | ||
6510 | eval "$ac_cv_use_xrc" | |
6511 | if test "$no_cache" != 1; then | |
6512 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
6513 | fi | |
6514 | ||
6515 | if test "$wxUSE_XRC" = yes; then | |
6516 | echo "$as_me:$LINENO: result: yes" >&5 | |
6517 | echo "${ECHO_T}yes" >&6 | |
6518 | else | |
6519 | echo "$as_me:$LINENO: result: no" >&5 | |
6520 | echo "${ECHO_T}no" >&6 | |
6521 | fi | |
6522 | ||
6523 | ||
a848cd7e SC |
6524 | enablestring= |
6525 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6526 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6527 | no_cache=0 | |
6528 | # Check whether --enable-constraints or --disable-constraints was given. | |
6529 | if test "${enable_constraints+set}" = set; then | |
6530 | enableval="$enable_constraints" | |
6531 | ||
6532 | if test "$enableval" = yes; then | |
6533 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6534 | else | |
6535 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6536 | fi | |
6537 | ||
6538 | else | |
6539 | ||
6540 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6541 | if test "x$LINE" != x ; then | |
6542 | eval "DEFAULT_$LINE" | |
6543 | else | |
6544 | no_cache=1 | |
6545 | fi | |
6546 | ||
6547 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6548 | ||
6549 | fi; | |
6550 | ||
6551 | eval "$ac_cv_use_constraints" | |
6552 | if test "$no_cache" != 1; then | |
6553 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6554 | fi | |
6555 | ||
6556 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6557 | echo "$as_me:$LINENO: result: yes" >&5 | |
6558 | echo "${ECHO_T}yes" >&6 | |
6559 | else | |
6560 | echo "$as_me:$LINENO: result: no" >&5 | |
6561 | echo "${ECHO_T}no" >&6 | |
6562 | fi | |
6563 | ||
6564 | ||
6565 | enablestring= | |
6566 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6567 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6568 | no_cache=0 | |
6569 | # Check whether --enable-printarch or --disable-printarch was given. | |
6570 | if test "${enable_printarch+set}" = set; then | |
6571 | enableval="$enable_printarch" | |
6572 | ||
6573 | if test "$enableval" = yes; then | |
6574 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6575 | else | |
6576 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6577 | fi | |
6578 | ||
6579 | else | |
6580 | ||
6581 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6582 | if test "x$LINE" != x ; then | |
6583 | eval "DEFAULT_$LINE" | |
6584 | else | |
6585 | no_cache=1 | |
6586 | fi | |
6587 | ||
6588 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6589 | ||
6590 | fi; | |
6591 | ||
6592 | eval "$ac_cv_use_printarch" | |
6593 | if test "$no_cache" != 1; then | |
6594 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6595 | fi | |
6596 | ||
6597 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6598 | echo "$as_me:$LINENO: result: yes" >&5 | |
6599 | echo "${ECHO_T}yes" >&6 | |
6600 | else | |
6601 | echo "$as_me:$LINENO: result: no" >&5 | |
6602 | echo "${ECHO_T}no" >&6 | |
6603 | fi | |
6604 | ||
6605 | ||
6606 | enablestring= | |
6607 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6608 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6609 | no_cache=0 | |
6610 | # Check whether --enable-mdi or --disable-mdi was given. | |
6611 | if test "${enable_mdi+set}" = set; then | |
6612 | enableval="$enable_mdi" | |
6613 | ||
6614 | if test "$enableval" = yes; then | |
8a7b1113 | 6615 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6616 | else |
8a7b1113 | 6617 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6618 | fi |
6619 | ||
6620 | else | |
6621 | ||
8a7b1113 | 6622 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6623 | if test "x$LINE" != x ; then |
6624 | eval "DEFAULT_$LINE" | |
6625 | else | |
6626 | no_cache=1 | |
6627 | fi | |
6628 | ||
8a7b1113 | 6629 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6630 | |
6631 | fi; | |
6632 | ||
6633 | eval "$ac_cv_use_mdi" | |
6634 | if test "$no_cache" != 1; then | |
6635 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6636 | fi | |
6637 | ||
8a7b1113 VZ |
6638 | if test "$wxUSE_MDI" = yes; then |
6639 | echo "$as_me:$LINENO: result: yes" >&5 | |
6640 | echo "${ECHO_T}yes" >&6 | |
6641 | else | |
6642 | echo "$as_me:$LINENO: result: no" >&5 | |
6643 | echo "${ECHO_T}no" >&6 | |
6644 | fi | |
6645 | ||
6646 | ||
6647 | enablestring= | |
6648 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6649 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6650 | no_cache=0 | |
6651 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6652 | if test "${enable_mdidoc+set}" = set; then | |
6653 | enableval="$enable_mdidoc" | |
6654 | ||
6655 | if test "$enableval" = yes; then | |
6656 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6657 | else | |
6658 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6659 | fi | |
6660 | ||
6661 | else | |
6662 | ||
6663 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6664 | if test "x$LINE" != x ; then | |
6665 | eval "DEFAULT_$LINE" | |
6666 | else | |
6667 | no_cache=1 | |
6668 | fi | |
6669 | ||
6670 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6671 | ||
6672 | fi; | |
6673 | ||
6674 | eval "$ac_cv_use_mdidoc" | |
6675 | if test "$no_cache" != 1; then | |
6676 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6677 | fi | |
6678 | ||
a848cd7e SC |
6679 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6680 | echo "$as_me:$LINENO: result: yes" >&5 | |
6681 | echo "${ECHO_T}yes" >&6 | |
6682 | else | |
6683 | echo "$as_me:$LINENO: result: no" >&5 | |
6684 | echo "${ECHO_T}no" >&6 | |
6685 | fi | |
6686 | ||
6687 | ||
6688 | enablestring= | |
6689 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6690 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6691 | no_cache=0 | |
6692 | # Check whether --enable-loggui or --disable-loggui was given. | |
6693 | if test "${enable_loggui+set}" = set; then | |
6694 | enableval="$enable_loggui" | |
6695 | ||
6696 | if test "$enableval" = yes; then | |
6697 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6698 | else | |
6699 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6700 | fi | |
6701 | ||
6702 | else | |
6703 | ||
6704 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6705 | if test "x$LINE" != x ; then | |
6706 | eval "DEFAULT_$LINE" | |
6707 | else | |
6708 | no_cache=1 | |
6709 | fi | |
6710 | ||
6711 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6712 | ||
6713 | fi; | |
6714 | ||
6715 | eval "$ac_cv_use_loggui" | |
6716 | if test "$no_cache" != 1; then | |
6717 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6718 | fi | |
6719 | ||
6720 | if test "$wxUSE_LOGGUI" = yes; then | |
6721 | echo "$as_me:$LINENO: result: yes" >&5 | |
6722 | echo "${ECHO_T}yes" >&6 | |
6723 | else | |
6724 | echo "$as_me:$LINENO: result: no" >&5 | |
6725 | echo "${ECHO_T}no" >&6 | |
6726 | fi | |
6727 | ||
6728 | ||
6729 | enablestring= | |
6730 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6731 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6732 | no_cache=0 | |
6733 | # Check whether --enable-logwin or --disable-logwin was given. | |
6734 | if test "${enable_logwin+set}" = set; then | |
6735 | enableval="$enable_logwin" | |
6736 | ||
6737 | if test "$enableval" = yes; then | |
6738 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6739 | else | |
6740 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6741 | fi | |
6742 | ||
6743 | else | |
6744 | ||
6745 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6746 | if test "x$LINE" != x ; then | |
6747 | eval "DEFAULT_$LINE" | |
6748 | else | |
6749 | no_cache=1 | |
6750 | fi | |
6751 | ||
6752 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6753 | ||
6754 | fi; | |
6755 | ||
6756 | eval "$ac_cv_use_logwin" | |
6757 | if test "$no_cache" != 1; then | |
6758 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6759 | fi | |
6760 | ||
6761 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6762 | echo "$as_me:$LINENO: result: yes" >&5 | |
6763 | echo "${ECHO_T}yes" >&6 | |
6764 | else | |
6765 | echo "$as_me:$LINENO: result: no" >&5 | |
6766 | echo "${ECHO_T}no" >&6 | |
6767 | fi | |
6768 | ||
6769 | ||
6770 | enablestring= | |
6771 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6772 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6773 | no_cache=0 | |
6774 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6775 | if test "${enable_logdialog+set}" = set; then | |
6776 | enableval="$enable_logdialog" | |
6777 | ||
6778 | if test "$enableval" = yes; then | |
6779 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6780 | else | |
6781 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6782 | fi | |
6783 | ||
6784 | else | |
6785 | ||
6786 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
6787 | if test "x$LINE" != x ; then | |
6788 | eval "DEFAULT_$LINE" | |
6789 | else | |
6790 | no_cache=1 | |
6791 | fi | |
6792 | ||
6793 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
6794 | ||
6795 | fi; | |
6796 | ||
6797 | eval "$ac_cv_use_logdialog" | |
6798 | if test "$no_cache" != 1; then | |
6799 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6800 | fi | |
6801 | ||
6802 | if test "$wxUSE_LOGDIALOG" = yes; then | |
6803 | echo "$as_me:$LINENO: result: yes" >&5 | |
6804 | echo "${ECHO_T}yes" >&6 | |
6805 | else | |
6806 | echo "$as_me:$LINENO: result: no" >&5 | |
6807 | echo "${ECHO_T}no" >&6 | |
6808 | fi | |
6809 | ||
6810 | ||
646b6ec1 VS |
6811 | enablestring= |
6812 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
6813 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
6814 | no_cache=0 | |
6815 | # Check whether --enable-webkit or --disable-webkit was given. | |
6816 | if test "${enable_webkit+set}" = set; then | |
6817 | enableval="$enable_webkit" | |
6818 | ||
6819 | if test "$enableval" = yes; then | |
6820 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
6821 | else | |
6822 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
6823 | fi | |
6824 | ||
6825 | else | |
6826 | ||
6827 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
6828 | if test "x$LINE" != x ; then | |
6829 | eval "DEFAULT_$LINE" | |
6830 | else | |
6831 | no_cache=1 | |
6832 | fi | |
6833 | ||
6834 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
6835 | ||
6836 | fi; | |
6837 | ||
6838 | eval "$ac_cv_use_webkit" | |
6839 | if test "$no_cache" != 1; then | |
6840 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
6841 | fi | |
6842 | ||
6843 | if test "$wxUSE_WEBKIT" = yes; then | |
6844 | echo "$as_me:$LINENO: result: yes" >&5 | |
6845 | echo "${ECHO_T}yes" >&6 | |
6846 | else | |
6847 | echo "$as_me:$LINENO: result: no" >&5 | |
6848 | echo "${ECHO_T}no" >&6 | |
6849 | fi | |
6850 | ||
6851 | ||
a848cd7e SC |
6852 | |
6853 | enablestring= | |
6854 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
6855 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
6856 | no_cache=0 | |
6857 | # Check whether --enable-postscript or --disable-postscript was given. | |
6858 | if test "${enable_postscript+set}" = set; then | |
6859 | enableval="$enable_postscript" | |
6860 | ||
6861 | if test "$enableval" = yes; then | |
6862 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6863 | else | |
6864 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6865 | fi | |
6866 | ||
6867 | else | |
6868 | ||
6869 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
6870 | if test "x$LINE" != x ; then | |
6871 | eval "DEFAULT_$LINE" | |
6872 | else | |
6873 | no_cache=1 | |
6874 | fi | |
6875 | ||
6876 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
6877 | ||
6878 | fi; | |
6879 | ||
6880 | eval "$ac_cv_use_postscript" | |
6881 | if test "$no_cache" != 1; then | |
6882 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6883 | fi | |
6884 | ||
6885 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
6886 | echo "$as_me:$LINENO: result: yes" >&5 | |
6887 | echo "${ECHO_T}yes" >&6 | |
6888 | else | |
6889 | echo "$as_me:$LINENO: result: no" >&5 | |
6890 | echo "${ECHO_T}no" >&6 | |
6891 | fi | |
6892 | ||
6893 | ||
6894 | ||
6895 | ||
6896 | ||
6897 | enablestring= | |
6898 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
6899 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
6900 | no_cache=0 | |
6901 | # Check whether --enable-prologio or --disable-prologio was given. | |
6902 | if test "${enable_prologio+set}" = set; then | |
6903 | enableval="$enable_prologio" | |
6904 | ||
6905 | if test "$enableval" = yes; then | |
6906 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
6907 | else | |
6908 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
6909 | fi | |
6910 | ||
6911 | else | |
6912 | ||
6913 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
6914 | if test "x$LINE" != x ; then | |
6915 | eval "DEFAULT_$LINE" | |
6916 | else | |
6917 | no_cache=1 | |
6918 | fi | |
6919 | ||
6920 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
6921 | ||
6922 | fi; | |
6923 | ||
6924 | eval "$ac_cv_use_prologio" | |
6925 | if test "$no_cache" != 1; then | |
6926 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
6927 | fi | |
6928 | ||
6929 | if test "$wxUSE_PROLOGIO" = yes; then | |
6930 | echo "$as_me:$LINENO: result: yes" >&5 | |
6931 | echo "${ECHO_T}yes" >&6 | |
6932 | else | |
6933 | echo "$as_me:$LINENO: result: no" >&5 | |
6934 | echo "${ECHO_T}no" >&6 | |
6935 | fi | |
6936 | ||
6937 | ||
6938 | enablestring= | |
6939 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
6940 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
6941 | no_cache=0 | |
6942 | # Check whether --enable-resources or --disable-resources was given. | |
6943 | if test "${enable_resources+set}" = set; then | |
6944 | enableval="$enable_resources" | |
6945 | ||
6946 | if test "$enableval" = yes; then | |
6947 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
6948 | else | |
6949 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
6950 | fi | |
6951 | ||
6952 | else | |
6953 | ||
6954 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
6955 | if test "x$LINE" != x ; then | |
6956 | eval "DEFAULT_$LINE" | |
6957 | else | |
6958 | no_cache=1 | |
6959 | fi | |
6960 | ||
6961 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
6962 | ||
6963 | fi; | |
6964 | ||
6965 | eval "$ac_cv_use_resources" | |
6966 | if test "$no_cache" != 1; then | |
6967 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
6968 | fi | |
6969 | ||
6970 | if test "$wxUSE_RESOURCES" = yes; then | |
6971 | echo "$as_me:$LINENO: result: yes" >&5 | |
6972 | echo "${ECHO_T}yes" >&6 | |
6973 | else | |
6974 | echo "$as_me:$LINENO: result: no" >&5 | |
6975 | echo "${ECHO_T}no" >&6 | |
6976 | fi | |
6977 | ||
6978 | ||
6979 | ||
6980 | ||
6981 | enablestring= | |
6982 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
6983 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
6984 | no_cache=0 | |
6985 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6986 | if test "${enable_clipboard+set}" = set; then | |
6987 | enableval="$enable_clipboard" | |
6988 | ||
6989 | if test "$enableval" = yes; then | |
6990 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6991 | else | |
6992 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6993 | fi | |
6994 | ||
6995 | else | |
6996 | ||
6997 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
6998 | if test "x$LINE" != x ; then | |
6999 | eval "DEFAULT_$LINE" | |
7000 | else | |
7001 | no_cache=1 | |
7002 | fi | |
7003 | ||
7004 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
7005 | ||
7006 | fi; | |
7007 | ||
7008 | eval "$ac_cv_use_clipboard" | |
7009 | if test "$no_cache" != 1; then | |
7010 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
7011 | fi | |
7012 | ||
7013 | if test "$wxUSE_CLIPBOARD" = yes; then | |
7014 | echo "$as_me:$LINENO: result: yes" >&5 | |
7015 | echo "${ECHO_T}yes" >&6 | |
7016 | else | |
7017 | echo "$as_me:$LINENO: result: no" >&5 | |
7018 | echo "${ECHO_T}no" >&6 | |
7019 | fi | |
7020 | ||
7021 | ||
7022 | enablestring= | |
7023 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
7024 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
7025 | no_cache=0 | |
7026 | # Check whether --enable-dnd or --disable-dnd was given. | |
7027 | if test "${enable_dnd+set}" = set; then | |
7028 | enableval="$enable_dnd" | |
7029 | ||
7030 | if test "$enableval" = yes; then | |
7031 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
7032 | else | |
7033 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
7034 | fi | |
7035 | ||
7036 | else | |
7037 | ||
7038 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
7039 | if test "x$LINE" != x ; then | |
7040 | eval "DEFAULT_$LINE" | |
7041 | else | |
7042 | no_cache=1 | |
7043 | fi | |
7044 | ||
7045 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
7046 | ||
7047 | fi; | |
7048 | ||
7049 | eval "$ac_cv_use_dnd" | |
7050 | if test "$no_cache" != 1; then | |
7051 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
7052 | fi | |
7053 | ||
7054 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
7055 | echo "$as_me:$LINENO: result: yes" >&5 | |
7056 | echo "${ECHO_T}yes" >&6 | |
7057 | else | |
7058 | echo "$as_me:$LINENO: result: no" >&5 | |
7059 | echo "${ECHO_T}no" >&6 | |
7060 | fi | |
7061 | ||
7062 | ||
7063 | enablestring= | |
7064 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
7065 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
7066 | no_cache=0 | |
7067 | # Check whether --enable-metafile or --disable-metafile was given. | |
7068 | if test "${enable_metafile+set}" = set; then | |
7069 | enableval="$enable_metafile" | |
7070 | ||
7071 | if test "$enableval" = yes; then | |
7072 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7073 | else | |
7074 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7075 | fi | |
7076 | ||
7077 | else | |
7078 | ||
7079 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7080 | if test "x$LINE" != x ; then | |
7081 | eval "DEFAULT_$LINE" | |
7082 | else | |
7083 | no_cache=1 | |
7084 | fi | |
7085 | ||
7086 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7087 | ||
7088 | fi; | |
7089 | ||
7090 | eval "$ac_cv_use_metafile" | |
7091 | if test "$no_cache" != 1; then | |
7092 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7093 | fi | |
7094 | ||
7095 | if test "$wxUSE_METAFILE" = yes; then | |
7096 | echo "$as_me:$LINENO: result: yes" >&5 | |
7097 | echo "${ECHO_T}yes" >&6 | |
7098 | else | |
7099 | echo "$as_me:$LINENO: result: no" >&5 | |
7100 | echo "${ECHO_T}no" >&6 | |
7101 | fi | |
7102 | ||
7103 | ||
7104 | ||
7105 | ||
7106 | ||
7107 | enablestring= | |
7108 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
7109 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
7110 | no_cache=0 | |
7111 | # Check whether --enable-controls or --disable-controls was given. | |
7112 | if test "${enable_controls+set}" = set; then | |
7113 | enableval="$enable_controls" | |
7114 | ||
7115 | if test "$enableval" = yes; then | |
7116 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
7117 | else | |
7118 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
7119 | fi | |
7120 | ||
7121 | else | |
7122 | ||
7123 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
7124 | if test "x$LINE" != x ; then | |
7125 | eval "DEFAULT_$LINE" | |
7126 | else | |
7127 | no_cache=1 | |
7128 | fi | |
7129 | ||
7130 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
7131 | ||
7132 | fi; | |
7133 | ||
7134 | eval "$ac_cv_use_controls" | |
7135 | if test "$no_cache" != 1; then | |
7136 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
7137 | fi | |
7138 | ||
7139 | if test "$wxUSE_CONTROLS" = yes; then | |
7140 | echo "$as_me:$LINENO: result: yes" >&5 | |
7141 | echo "${ECHO_T}yes" >&6 | |
7142 | else | |
7143 | echo "$as_me:$LINENO: result: no" >&5 | |
7144 | echo "${ECHO_T}no" >&6 | |
7145 | fi | |
7146 | ||
7147 | ||
7148 | if test "$wxUSE_CONTROLS" = "yes"; then | |
7149 | DEFAULT_wxUSE_ACCEL=yes | |
7150 | DEFAULT_wxUSE_BMPBUTTON=yes | |
7151 | DEFAULT_wxUSE_BUTTON=yes | |
da98e9be | 7152 | DEFAULT_wxUSE_CALCTRL=yes |
a848cd7e SC |
7153 | DEFAULT_wxUSE_CARET=yes |
7154 | DEFAULT_wxUSE_COMBOBOX=yes | |
7155 | DEFAULT_wxUSE_CHECKBOX=yes | |
7156 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
7157 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 7158 | DEFAULT_wxUSE_CHOICEBOOK=yes |
da98e9be | 7159 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
7160 | DEFAULT_wxUSE_GAUGE=yes |
7161 | DEFAULT_wxUSE_GRID=yes | |
7162 | DEFAULT_wxUSE_IMAGLIST=yes | |
7163 | DEFAULT_wxUSE_LISTBOOK=yes | |
7164 | DEFAULT_wxUSE_LISTBOX=yes | |
7165 | DEFAULT_wxUSE_LISTCTRL=yes | |
7166 | DEFAULT_wxUSE_NOTEBOOK=yes | |
7167 | DEFAULT_wxUSE_RADIOBOX=yes | |
7168 | DEFAULT_wxUSE_RADIOBTN=yes | |
7169 | DEFAULT_wxUSE_SASH=yes | |
7170 | DEFAULT_wxUSE_SCROLLBAR=yes | |
7171 | DEFAULT_wxUSE_SLIDER=yes | |
7172 | DEFAULT_wxUSE_SPINBTN=yes | |
7173 | DEFAULT_wxUSE_SPINCTRL=yes | |
7174 | DEFAULT_wxUSE_SPLITTER=yes | |
7175 | DEFAULT_wxUSE_STATBMP=yes | |
7176 | DEFAULT_wxUSE_STATBOX=yes | |
7177 | DEFAULT_wxUSE_STATLINE=yes | |
7178 | DEFAULT_wxUSE_STATUSBAR=yes | |
7179 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
7180 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
7181 | DEFAULT_wxUSE_TOOLBAR=yes | |
7182 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
7183 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
7184 | DEFAULT_wxUSE_TOOLTIPS=yes | |
7185 | DEFAULT_wxUSE_TREECTRL=yes | |
7186 | DEFAULT_wxUSE_POPUPWIN=yes | |
7187 | DEFAULT_wxUSE_TIPWINDOW=yes | |
7188 | elif test "$wxUSE_CONTROLS" = "no"; then | |
7189 | DEFAULT_wxUSE_ACCEL=no | |
7190 | DEFAULT_wxUSE_BMPBUTTON=no | |
7191 | DEFAULT_wxUSE_BUTTON=no | |
7192 | DEFAULT_wxUSE_CALCTRL=no | |
7193 | DEFAULT_wxUSE_CARET=no | |
7194 | DEFAULT_wxUSE_COMBOBOX=no | |
7195 | DEFAULT_wxUSE_CHECKBOX=no | |
7196 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
7197 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 7198 | DEFAULT_wxUSE_CHOICEBOOK=no |
da98e9be | 7199 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
7200 | DEFAULT_wxUSE_GAUGE=no |
7201 | DEFAULT_wxUSE_GRID=no | |
7202 | DEFAULT_wxUSE_IMAGLIST=no | |
7203 | DEFAULT_wxUSE_LISTBOOK=no | |
7204 | DEFAULT_wxUSE_LISTBOX=no | |
7205 | DEFAULT_wxUSE_LISTCTRL=no | |
7206 | DEFAULT_wxUSE_NOTEBOOK=no | |
7207 | DEFAULT_wxUSE_RADIOBOX=no | |
7208 | DEFAULT_wxUSE_RADIOBTN=no | |
7209 | DEFAULT_wxUSE_SASH=no | |
7210 | DEFAULT_wxUSE_SCROLLBAR=no | |
7211 | DEFAULT_wxUSE_SLIDER=no | |
7212 | DEFAULT_wxUSE_SPINBTN=no | |
7213 | DEFAULT_wxUSE_SPINCTRL=no | |
7214 | DEFAULT_wxUSE_SPLITTER=no | |
7215 | DEFAULT_wxUSE_STATBMP=no | |
7216 | DEFAULT_wxUSE_STATBOX=no | |
7217 | DEFAULT_wxUSE_STATLINE=no | |
7218 | DEFAULT_wxUSE_STATUSBAR=no | |
7219 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7220 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7221 | DEFAULT_wxUSE_TOOLBAR=no | |
7222 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
7223 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
7224 | DEFAULT_wxUSE_TOOLTIPS=no | |
7225 | DEFAULT_wxUSE_TREECTRL=no | |
7226 | DEFAULT_wxUSE_POPUPWIN=no | |
7227 | DEFAULT_wxUSE_TIPWINDOW=no | |
7228 | fi | |
7229 | ||
a848cd7e SC |
7230 | |
7231 | enablestring= | |
7232 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7233 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7234 | no_cache=0 | |
7235 | # Check whether --enable-accel or --disable-accel was given. | |
7236 | if test "${enable_accel+set}" = set; then | |
7237 | enableval="$enable_accel" | |
7238 | ||
7239 | if test "$enableval" = yes; then | |
7240 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7241 | else | |
7242 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7243 | fi | |
7244 | ||
7245 | else | |
7246 | ||
7247 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7248 | if test "x$LINE" != x ; then | |
7249 | eval "DEFAULT_$LINE" | |
7250 | else | |
7251 | no_cache=1 | |
7252 | fi | |
7253 | ||
7254 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7255 | ||
7256 | fi; | |
7257 | ||
7258 | eval "$ac_cv_use_accel" | |
7259 | if test "$no_cache" != 1; then | |
7260 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7261 | fi | |
7262 | ||
7263 | if test "$wxUSE_ACCEL" = yes; then | |
7264 | echo "$as_me:$LINENO: result: yes" >&5 | |
7265 | echo "${ECHO_T}yes" >&6 | |
7266 | else | |
7267 | echo "$as_me:$LINENO: result: no" >&5 | |
7268 | echo "${ECHO_T}no" >&6 | |
7269 | fi | |
7270 | ||
7271 | ||
7272 | enablestring= | |
7273 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7274 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7275 | no_cache=0 | |
7276 | # Check whether --enable-button or --disable-button was given. | |
7277 | if test "${enable_button+set}" = set; then | |
7278 | enableval="$enable_button" | |
7279 | ||
7280 | if test "$enableval" = yes; then | |
7281 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7282 | else | |
7283 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7284 | fi | |
7285 | ||
7286 | else | |
7287 | ||
7288 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7289 | if test "x$LINE" != x ; then | |
7290 | eval "DEFAULT_$LINE" | |
7291 | else | |
7292 | no_cache=1 | |
7293 | fi | |
7294 | ||
7295 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7296 | ||
7297 | fi; | |
7298 | ||
7299 | eval "$ac_cv_use_button" | |
7300 | if test "$no_cache" != 1; then | |
7301 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7302 | fi | |
7303 | ||
7304 | if test "$wxUSE_BUTTON" = yes; then | |
7305 | echo "$as_me:$LINENO: result: yes" >&5 | |
7306 | echo "${ECHO_T}yes" >&6 | |
7307 | else | |
7308 | echo "$as_me:$LINENO: result: no" >&5 | |
7309 | echo "${ECHO_T}no" >&6 | |
7310 | fi | |
7311 | ||
7312 | ||
7313 | enablestring= | |
7314 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7315 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7316 | no_cache=0 | |
7317 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7318 | if test "${enable_bmpbutton+set}" = set; then | |
7319 | enableval="$enable_bmpbutton" | |
7320 | ||
7321 | if test "$enableval" = yes; then | |
7322 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7323 | else | |
7324 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7325 | fi | |
7326 | ||
7327 | else | |
7328 | ||
7329 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7330 | if test "x$LINE" != x ; then | |
7331 | eval "DEFAULT_$LINE" | |
7332 | else | |
7333 | no_cache=1 | |
7334 | fi | |
7335 | ||
7336 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7337 | ||
7338 | fi; | |
7339 | ||
7340 | eval "$ac_cv_use_bmpbutton" | |
7341 | if test "$no_cache" != 1; then | |
7342 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7343 | fi | |
7344 | ||
7345 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7346 | echo "$as_me:$LINENO: result: yes" >&5 | |
7347 | echo "${ECHO_T}yes" >&6 | |
7348 | else | |
7349 | echo "$as_me:$LINENO: result: no" >&5 | |
7350 | echo "${ECHO_T}no" >&6 | |
7351 | fi | |
7352 | ||
7353 | ||
7354 | enablestring= | |
7355 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7356 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7357 | no_cache=0 | |
7358 | # Check whether --enable-calendar or --disable-calendar was given. | |
7359 | if test "${enable_calendar+set}" = set; then | |
7360 | enableval="$enable_calendar" | |
7361 | ||
7362 | if test "$enableval" = yes; then | |
7363 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7364 | else | |
7365 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7366 | fi | |
7367 | ||
7368 | else | |
7369 | ||
7370 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7371 | if test "x$LINE" != x ; then | |
7372 | eval "DEFAULT_$LINE" | |
7373 | else | |
7374 | no_cache=1 | |
7375 | fi | |
7376 | ||
7377 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7378 | ||
7379 | fi; | |
7380 | ||
7381 | eval "$ac_cv_use_calendar" | |
7382 | if test "$no_cache" != 1; then | |
7383 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7384 | fi | |
7385 | ||
7386 | if test "$wxUSE_CALCTRL" = yes; then | |
7387 | echo "$as_me:$LINENO: result: yes" >&5 | |
7388 | echo "${ECHO_T}yes" >&6 | |
7389 | else | |
7390 | echo "$as_me:$LINENO: result: no" >&5 | |
7391 | echo "${ECHO_T}no" >&6 | |
7392 | fi | |
7393 | ||
7394 | ||
7395 | enablestring= | |
7396 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7397 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7398 | no_cache=0 | |
7399 | # Check whether --enable-caret or --disable-caret was given. | |
7400 | if test "${enable_caret+set}" = set; then | |
7401 | enableval="$enable_caret" | |
7402 | ||
7403 | if test "$enableval" = yes; then | |
7404 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7405 | else | |
7406 | ac_cv_use_caret='wxUSE_CARET=no' | |
7407 | fi | |
7408 | ||
7409 | else | |
7410 | ||
7411 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7412 | if test "x$LINE" != x ; then | |
7413 | eval "DEFAULT_$LINE" | |
7414 | else | |
7415 | no_cache=1 | |
7416 | fi | |
7417 | ||
7418 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7419 | ||
7420 | fi; | |
7421 | ||
7422 | eval "$ac_cv_use_caret" | |
7423 | if test "$no_cache" != 1; then | |
7424 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7425 | fi | |
7426 | ||
7427 | if test "$wxUSE_CARET" = yes; then | |
7428 | echo "$as_me:$LINENO: result: yes" >&5 | |
7429 | echo "${ECHO_T}yes" >&6 | |
7430 | else | |
7431 | echo "$as_me:$LINENO: result: no" >&5 | |
7432 | echo "${ECHO_T}no" >&6 | |
7433 | fi | |
7434 | ||
7435 | ||
7436 | enablestring= | |
7437 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7438 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7439 | no_cache=0 | |
7440 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7441 | if test "${enable_checkbox+set}" = set; then | |
7442 | enableval="$enable_checkbox" | |
7443 | ||
7444 | if test "$enableval" = yes; then | |
7445 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7446 | else | |
7447 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7448 | fi | |
7449 | ||
7450 | else | |
7451 | ||
7452 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7453 | if test "x$LINE" != x ; then | |
7454 | eval "DEFAULT_$LINE" | |
7455 | else | |
7456 | no_cache=1 | |
7457 | fi | |
7458 | ||
7459 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7460 | ||
7461 | fi; | |
7462 | ||
7463 | eval "$ac_cv_use_checkbox" | |
7464 | if test "$no_cache" != 1; then | |
7465 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7466 | fi | |
7467 | ||
7468 | if test "$wxUSE_CHECKBOX" = yes; then | |
7469 | echo "$as_me:$LINENO: result: yes" >&5 | |
7470 | echo "${ECHO_T}yes" >&6 | |
7471 | else | |
7472 | echo "$as_me:$LINENO: result: no" >&5 | |
7473 | echo "${ECHO_T}no" >&6 | |
7474 | fi | |
7475 | ||
7476 | ||
7477 | enablestring= | |
7478 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7479 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7480 | no_cache=0 | |
7481 | # Check whether --enable-checklst or --disable-checklst was given. | |
7482 | if test "${enable_checklst+set}" = set; then | |
7483 | enableval="$enable_checklst" | |
7484 | ||
7485 | if test "$enableval" = yes; then | |
7486 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7487 | else | |
7488 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7489 | fi | |
7490 | ||
7491 | else | |
7492 | ||
7493 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7494 | if test "x$LINE" != x ; then | |
7495 | eval "DEFAULT_$LINE" | |
7496 | else | |
7497 | no_cache=1 | |
7498 | fi | |
7499 | ||
7500 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7501 | ||
7502 | fi; | |
7503 | ||
7504 | eval "$ac_cv_use_checklst" | |
7505 | if test "$no_cache" != 1; then | |
7506 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7507 | fi | |
7508 | ||
7509 | if test "$wxUSE_CHECKLST" = yes; then | |
7510 | echo "$as_me:$LINENO: result: yes" >&5 | |
7511 | echo "${ECHO_T}yes" >&6 | |
7512 | else | |
7513 | echo "$as_me:$LINENO: result: no" >&5 | |
7514 | echo "${ECHO_T}no" >&6 | |
7515 | fi | |
7516 | ||
7517 | ||
7518 | enablestring= | |
7519 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7520 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7521 | no_cache=0 | |
7522 | # Check whether --enable-choice or --disable-choice was given. | |
7523 | if test "${enable_choice+set}" = set; then | |
7524 | enableval="$enable_choice" | |
7525 | ||
7526 | if test "$enableval" = yes; then | |
7527 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7528 | else | |
7529 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7530 | fi | |
7531 | ||
7532 | else | |
7533 | ||
7534 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7535 | if test "x$LINE" != x ; then | |
7536 | eval "DEFAULT_$LINE" | |
7537 | else | |
7538 | no_cache=1 | |
7539 | fi | |
7540 | ||
7541 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7542 | ||
7543 | fi; | |
7544 | ||
7545 | eval "$ac_cv_use_choice" | |
7546 | if test "$no_cache" != 1; then | |
7547 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7548 | fi | |
7549 | ||
7550 | if test "$wxUSE_CHOICE" = yes; then | |
7551 | echo "$as_me:$LINENO: result: yes" >&5 | |
7552 | echo "${ECHO_T}yes" >&6 | |
7553 | else | |
7554 | echo "$as_me:$LINENO: result: no" >&5 | |
7555 | echo "${ECHO_T}no" >&6 | |
7556 | fi | |
7557 | ||
7558 | ||
92bbdbcd WS |
7559 | enablestring= |
7560 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
7561 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
7562 | no_cache=0 | |
7563 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
7564 | if test "${enable_choicebook+set}" = set; then | |
7565 | enableval="$enable_choicebook" | |
7566 | ||
7567 | if test "$enableval" = yes; then | |
7568 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
7569 | else | |
7570 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
7571 | fi | |
7572 | ||
7573 | else | |
7574 | ||
7575 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
7576 | if test "x$LINE" != x ; then | |
7577 | eval "DEFAULT_$LINE" | |
7578 | else | |
7579 | no_cache=1 | |
7580 | fi | |
7581 | ||
7582 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
7583 | ||
7584 | fi; | |
7585 | ||
7586 | eval "$ac_cv_use_choicebook" | |
7587 | if test "$no_cache" != 1; then | |
7588 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
7589 | fi | |
7590 | ||
7591 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
7592 | echo "$as_me:$LINENO: result: yes" >&5 | |
7593 | echo "${ECHO_T}yes" >&6 | |
7594 | else | |
7595 | echo "$as_me:$LINENO: result: no" >&5 | |
7596 | echo "${ECHO_T}no" >&6 | |
7597 | fi | |
7598 | ||
7599 | ||
a848cd7e SC |
7600 | enablestring= |
7601 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
7602 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7603 | no_cache=0 | |
7604 | # Check whether --enable-combobox or --disable-combobox was given. | |
7605 | if test "${enable_combobox+set}" = set; then | |
7606 | enableval="$enable_combobox" | |
7607 | ||
7608 | if test "$enableval" = yes; then | |
7609 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7610 | else | |
7611 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7612 | fi | |
7613 | ||
7614 | else | |
7615 | ||
7616 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
7617 | if test "x$LINE" != x ; then | |
7618 | eval "DEFAULT_$LINE" | |
7619 | else | |
7620 | no_cache=1 | |
7621 | fi | |
7622 | ||
7623 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7624 | ||
7625 | fi; | |
7626 | ||
7627 | eval "$ac_cv_use_combobox" | |
7628 | if test "$no_cache" != 1; then | |
7629 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7630 | fi | |
7631 | ||
7632 | if test "$wxUSE_COMBOBOX" = yes; then | |
7633 | echo "$as_me:$LINENO: result: yes" >&5 | |
7634 | echo "${ECHO_T}yes" >&6 | |
7635 | else | |
7636 | echo "$as_me:$LINENO: result: no" >&5 | |
7637 | echo "${ECHO_T}no" >&6 | |
7638 | fi | |
7639 | ||
7640 | ||
da98e9be VZ |
7641 | enablestring= |
7642 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5 | |
7643 | echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6 | |
7644 | no_cache=0 | |
7645 | # Check whether --enable-datepick or --disable-datepick was given. | |
7646 | if test "${enable_datepick+set}" = set; then | |
7647 | enableval="$enable_datepick" | |
7648 | ||
7649 | if test "$enableval" = yes; then | |
7650 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes' | |
7651 | else | |
7652 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no' | |
7653 | fi | |
7654 | ||
7655 | else | |
7656 | ||
7657 | LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}` | |
7658 | if test "x$LINE" != x ; then | |
7659 | eval "DEFAULT_$LINE" | |
7660 | else | |
7661 | no_cache=1 | |
7662 | fi | |
7663 | ||
7664 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL | |
7665 | ||
7666 | fi; | |
7667 | ||
7668 | eval "$ac_cv_use_datepick" | |
7669 | if test "$no_cache" != 1; then | |
7670 | echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp | |
7671 | fi | |
7672 | ||
7673 | if test "$wxUSE_DATEPICKCTRL" = yes; then | |
7674 | echo "$as_me:$LINENO: result: yes" >&5 | |
7675 | echo "${ECHO_T}yes" >&6 | |
7676 | else | |
7677 | echo "$as_me:$LINENO: result: no" >&5 | |
7678 | echo "${ECHO_T}no" >&6 | |
7679 | fi | |
7680 | ||
7681 | ||
a848cd7e SC |
7682 | enablestring= |
7683 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
7684 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
7685 | no_cache=0 | |
7686 | # Check whether --enable-display or --disable-display was given. | |
7687 | if test "${enable_display+set}" = set; then | |
7688 | enableval="$enable_display" | |
7689 | ||
7690 | if test "$enableval" = yes; then | |
7691 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7692 | else | |
7693 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7694 | fi | |
7695 | ||
7696 | else | |
7697 | ||
7698 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
7699 | if test "x$LINE" != x ; then | |
7700 | eval "DEFAULT_$LINE" | |
7701 | else | |
7702 | no_cache=1 | |
7703 | fi | |
7704 | ||
7705 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
7706 | ||
7707 | fi; | |
7708 | ||
7709 | eval "$ac_cv_use_display" | |
7710 | if test "$no_cache" != 1; then | |
7711 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7712 | fi | |
7713 | ||
7714 | if test "$wxUSE_DISPLAY" = yes; then | |
7715 | echo "$as_me:$LINENO: result: yes" >&5 | |
7716 | echo "${ECHO_T}yes" >&6 | |
7717 | else | |
7718 | echo "$as_me:$LINENO: result: no" >&5 | |
7719 | echo "${ECHO_T}no" >&6 | |
7720 | fi | |
7721 | ||
7722 | ||
7723 | enablestring= | |
7724 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
7725 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
7726 | no_cache=0 | |
7727 | # Check whether --enable-gauge or --disable-gauge was given. | |
7728 | if test "${enable_gauge+set}" = set; then | |
7729 | enableval="$enable_gauge" | |
7730 | ||
7731 | if test "$enableval" = yes; then | |
7732 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7733 | else | |
7734 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7735 | fi | |
7736 | ||
7737 | else | |
7738 | ||
7739 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
7740 | if test "x$LINE" != x ; then | |
7741 | eval "DEFAULT_$LINE" | |
7742 | else | |
7743 | no_cache=1 | |
7744 | fi | |
7745 | ||
7746 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
7747 | ||
7748 | fi; | |
7749 | ||
7750 | eval "$ac_cv_use_gauge" | |
7751 | if test "$no_cache" != 1; then | |
7752 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7753 | fi | |
7754 | ||
7755 | if test "$wxUSE_GAUGE" = yes; then | |
7756 | echo "$as_me:$LINENO: result: yes" >&5 | |
7757 | echo "${ECHO_T}yes" >&6 | |
7758 | else | |
7759 | echo "$as_me:$LINENO: result: no" >&5 | |
7760 | echo "${ECHO_T}no" >&6 | |
7761 | fi | |
7762 | ||
7763 | ||
7764 | enablestring= | |
7765 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
7766 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
7767 | no_cache=0 | |
7768 | # Check whether --enable-grid or --disable-grid was given. | |
7769 | if test "${enable_grid+set}" = set; then | |
7770 | enableval="$enable_grid" | |
7771 | ||
7772 | if test "$enableval" = yes; then | |
7773 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7774 | else | |
7775 | ac_cv_use_grid='wxUSE_GRID=no' | |
7776 | fi | |
7777 | ||
7778 | else | |
7779 | ||
7780 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
7781 | if test "x$LINE" != x ; then | |
7782 | eval "DEFAULT_$LINE" | |
7783 | else | |
7784 | no_cache=1 | |
7785 | fi | |
7786 | ||
7787 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
7788 | ||
7789 | fi; | |
7790 | ||
7791 | eval "$ac_cv_use_grid" | |
7792 | if test "$no_cache" != 1; then | |
7793 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7794 | fi | |
7795 | ||
7796 | if test "$wxUSE_GRID" = yes; then | |
7797 | echo "$as_me:$LINENO: result: yes" >&5 | |
7798 | echo "${ECHO_T}yes" >&6 | |
7799 | else | |
7800 | echo "$as_me:$LINENO: result: no" >&5 | |
7801 | echo "${ECHO_T}no" >&6 | |
7802 | fi | |
7803 | ||
7804 | ||
7805 | enablestring= | |
7806 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
7807 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
7808 | no_cache=0 | |
7809 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7810 | if test "${enable_imaglist+set}" = set; then | |
7811 | enableval="$enable_imaglist" | |
7812 | ||
7813 | if test "$enableval" = yes; then | |
7814 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7815 | else | |
7816 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7817 | fi | |
7818 | ||
7819 | else | |
7820 | ||
7821 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
7822 | if test "x$LINE" != x ; then | |
7823 | eval "DEFAULT_$LINE" | |
7824 | else | |
7825 | no_cache=1 | |
7826 | fi | |
7827 | ||
7828 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
7829 | ||
7830 | fi; | |
7831 | ||
7832 | eval "$ac_cv_use_imaglist" | |
7833 | if test "$no_cache" != 1; then | |
7834 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7835 | fi | |
7836 | ||
7837 | if test "$wxUSE_IMAGLIST" = yes; then | |
7838 | echo "$as_me:$LINENO: result: yes" >&5 | |
7839 | echo "${ECHO_T}yes" >&6 | |
7840 | else | |
7841 | echo "$as_me:$LINENO: result: no" >&5 | |
7842 | echo "${ECHO_T}no" >&6 | |
7843 | fi | |
7844 | ||
7845 | ||
7846 | enablestring= | |
7847 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7848 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7849 | no_cache=0 | |
7850 | # Check whether --enable-listbook or --disable-listbook was given. | |
7851 | if test "${enable_listbook+set}" = set; then | |
7852 | enableval="$enable_listbook" | |
7853 | ||
7854 | if test "$enableval" = yes; then | |
7855 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7856 | else | |
7857 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7858 | fi | |
7859 | ||
7860 | else | |
7861 | ||
7862 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7863 | if test "x$LINE" != x ; then | |
7864 | eval "DEFAULT_$LINE" | |
7865 | else | |
7866 | no_cache=1 | |
7867 | fi | |
7868 | ||
7869 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7870 | ||
7871 | fi; | |
7872 | ||
7873 | eval "$ac_cv_use_listbook" | |
7874 | if test "$no_cache" != 1; then | |
7875 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7876 | fi | |
7877 | ||
7878 | if test "$wxUSE_LISTBOOK" = yes; then | |
7879 | echo "$as_me:$LINENO: result: yes" >&5 | |
7880 | echo "${ECHO_T}yes" >&6 | |
7881 | else | |
7882 | echo "$as_me:$LINENO: result: no" >&5 | |
7883 | echo "${ECHO_T}no" >&6 | |
7884 | fi | |
7885 | ||
7886 | ||
7887 | enablestring= | |
7888 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
7889 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
7890 | no_cache=0 | |
7891 | # Check whether --enable-listbox or --disable-listbox was given. | |
7892 | if test "${enable_listbox+set}" = set; then | |
7893 | enableval="$enable_listbox" | |
7894 | ||
7895 | if test "$enableval" = yes; then | |
7896 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7897 | else | |
7898 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7899 | fi | |
7900 | ||
7901 | else | |
7902 | ||
7903 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
7904 | if test "x$LINE" != x ; then | |
7905 | eval "DEFAULT_$LINE" | |
7906 | else | |
7907 | no_cache=1 | |
7908 | fi | |
7909 | ||
7910 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
7911 | ||
7912 | fi; | |
7913 | ||
7914 | eval "$ac_cv_use_listbox" | |
7915 | if test "$no_cache" != 1; then | |
7916 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7917 | fi | |
7918 | ||
7919 | if test "$wxUSE_LISTBOX" = yes; then | |
7920 | echo "$as_me:$LINENO: result: yes" >&5 | |
7921 | echo "${ECHO_T}yes" >&6 | |
7922 | else | |
7923 | echo "$as_me:$LINENO: result: no" >&5 | |
7924 | echo "${ECHO_T}no" >&6 | |
7925 | fi | |
7926 | ||
7927 | ||
7928 | enablestring= | |
7929 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
7930 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
7931 | no_cache=0 | |
7932 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7933 | if test "${enable_listctrl+set}" = set; then | |
7934 | enableval="$enable_listctrl" | |
7935 | ||
7936 | if test "$enableval" = yes; then | |
7937 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7938 | else | |
7939 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7940 | fi | |
7941 | ||
7942 | else | |
7943 | ||
7944 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
7945 | if test "x$LINE" != x ; then | |
7946 | eval "DEFAULT_$LINE" | |
7947 | else | |
7948 | no_cache=1 | |
7949 | fi | |
7950 | ||
7951 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
7952 | ||
7953 | fi; | |
7954 | ||
7955 | eval "$ac_cv_use_listctrl" | |
7956 | if test "$no_cache" != 1; then | |
7957 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7958 | fi | |
7959 | ||
7960 | if test "$wxUSE_LISTCTRL" = yes; then | |
7961 | echo "$as_me:$LINENO: result: yes" >&5 | |
7962 | echo "${ECHO_T}yes" >&6 | |
7963 | else | |
7964 | echo "$as_me:$LINENO: result: no" >&5 | |
7965 | echo "${ECHO_T}no" >&6 | |
7966 | fi | |
7967 | ||
7968 | ||
7969 | enablestring= | |
7970 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
7971 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
7972 | no_cache=0 | |
7973 | # Check whether --enable-notebook or --disable-notebook was given. | |
7974 | if test "${enable_notebook+set}" = set; then | |
7975 | enableval="$enable_notebook" | |
7976 | ||
7977 | if test "$enableval" = yes; then | |
7978 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7979 | else | |
7980 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7981 | fi | |
7982 | ||
7983 | else | |
7984 | ||
7985 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
7986 | if test "x$LINE" != x ; then | |
7987 | eval "DEFAULT_$LINE" | |
7988 | else | |
7989 | no_cache=1 | |
7990 | fi | |
7991 | ||
7992 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
7993 | ||
7994 | fi; | |
7995 | ||
7996 | eval "$ac_cv_use_notebook" | |
7997 | if test "$no_cache" != 1; then | |
7998 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7999 | fi | |
8000 | ||
8001 | if test "$wxUSE_NOTEBOOK" = yes; then | |
8002 | echo "$as_me:$LINENO: result: yes" >&5 | |
8003 | echo "${ECHO_T}yes" >&6 | |
8004 | else | |
8005 | echo "$as_me:$LINENO: result: no" >&5 | |
8006 | echo "${ECHO_T}no" >&6 | |
8007 | fi | |
8008 | ||
8009 | ||
8010 | enablestring= | |
8011 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
8012 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
8013 | no_cache=0 | |
8014 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
8015 | if test "${enable_radiobox+set}" = set; then | |
8016 | enableval="$enable_radiobox" | |
8017 | ||
8018 | if test "$enableval" = yes; then | |
8019 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
8020 | else | |
8021 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
8022 | fi | |
8023 | ||
8024 | else | |
8025 | ||
8026 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
8027 | if test "x$LINE" != x ; then | |
8028 | eval "DEFAULT_$LINE" | |
8029 | else | |
8030 | no_cache=1 | |
8031 | fi | |
8032 | ||
8033 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
8034 | ||
8035 | fi; | |
8036 | ||
8037 | eval "$ac_cv_use_radiobox" | |
8038 | if test "$no_cache" != 1; then | |
8039 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
8040 | fi | |
8041 | ||
8042 | if test "$wxUSE_RADIOBOX" = yes; then | |
8043 | echo "$as_me:$LINENO: result: yes" >&5 | |
8044 | echo "${ECHO_T}yes" >&6 | |
8045 | else | |
8046 | echo "$as_me:$LINENO: result: no" >&5 | |
8047 | echo "${ECHO_T}no" >&6 | |
8048 | fi | |
8049 | ||
8050 | ||
8051 | enablestring= | |
8052 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
8053 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
8054 | no_cache=0 | |
8055 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
8056 | if test "${enable_radiobtn+set}" = set; then | |
8057 | enableval="$enable_radiobtn" | |
8058 | ||
8059 | if test "$enableval" = yes; then | |
8060 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
8061 | else | |
8062 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
8063 | fi | |
8064 | ||
8065 | else | |
8066 | ||
8067 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
8068 | if test "x$LINE" != x ; then | |
8069 | eval "DEFAULT_$LINE" | |
8070 | else | |
8071 | no_cache=1 | |
8072 | fi | |
8073 | ||
8074 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
8075 | ||
8076 | fi; | |
8077 | ||
8078 | eval "$ac_cv_use_radiobtn" | |
8079 | if test "$no_cache" != 1; then | |
8080 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
8081 | fi | |
8082 | ||
8083 | if test "$wxUSE_RADIOBTN" = yes; then | |
8084 | echo "$as_me:$LINENO: result: yes" >&5 | |
8085 | echo "${ECHO_T}yes" >&6 | |
8086 | else | |
8087 | echo "$as_me:$LINENO: result: no" >&5 | |
8088 | echo "${ECHO_T}no" >&6 | |
8089 | fi | |
8090 | ||
8091 | ||
8092 | enablestring= | |
8093 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
8094 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
8095 | no_cache=0 | |
8096 | # Check whether --enable-sash or --disable-sash was given. | |
8097 | if test "${enable_sash+set}" = set; then | |
8098 | enableval="$enable_sash" | |
8099 | ||
8100 | if test "$enableval" = yes; then | |
8101 | ac_cv_use_sash='wxUSE_SASH=yes' | |
8102 | else | |
8103 | ac_cv_use_sash='wxUSE_SASH=no' | |
8104 | fi | |
8105 | ||
8106 | else | |
8107 | ||
8108 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
8109 | if test "x$LINE" != x ; then | |
8110 | eval "DEFAULT_$LINE" | |
8111 | else | |
8112 | no_cache=1 | |
8113 | fi | |
8114 | ||
8115 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
8116 | ||
8117 | fi; | |
8118 | ||
8119 | eval "$ac_cv_use_sash" | |
8120 | if test "$no_cache" != 1; then | |
8121 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
8122 | fi | |
8123 | ||
8124 | if test "$wxUSE_SASH" = yes; then | |
8125 | echo "$as_me:$LINENO: result: yes" >&5 | |
8126 | echo "${ECHO_T}yes" >&6 | |
8127 | else | |
8128 | echo "$as_me:$LINENO: result: no" >&5 | |
8129 | echo "${ECHO_T}no" >&6 | |
8130 | fi | |
8131 | ||
8132 | ||
8133 | enablestring= | |
8134 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
8135 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
8136 | no_cache=0 | |
8137 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
8138 | if test "${enable_scrollbar+set}" = set; then | |
8139 | enableval="$enable_scrollbar" | |
8140 | ||
8141 | if test "$enableval" = yes; then | |
8142 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
8143 | else | |
8144 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
8145 | fi | |
8146 | ||
8147 | else | |
8148 | ||
8149 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
8150 | if test "x$LINE" != x ; then | |
8151 | eval "DEFAULT_$LINE" | |
8152 | else | |
8153 | no_cache=1 | |
8154 | fi | |
8155 | ||
8156 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
8157 | ||
8158 | fi; | |
8159 | ||
8160 | eval "$ac_cv_use_scrollbar" | |
8161 | if test "$no_cache" != 1; then | |
8162 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
8163 | fi | |
8164 | ||
8165 | if test "$wxUSE_SCROLLBAR" = yes; then | |
8166 | echo "$as_me:$LINENO: result: yes" >&5 | |
8167 | echo "${ECHO_T}yes" >&6 | |
8168 | else | |
8169 | echo "$as_me:$LINENO: result: no" >&5 | |
8170 | echo "${ECHO_T}no" >&6 | |
8171 | fi | |
8172 | ||
8173 | ||
8174 | enablestring= | |
8175 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
8176 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
8177 | no_cache=0 | |
8178 | # Check whether --enable-slider or --disable-slider was given. | |
8179 | if test "${enable_slider+set}" = set; then | |
8180 | enableval="$enable_slider" | |
8181 | ||
8182 | if test "$enableval" = yes; then | |
8183 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
8184 | else | |
8185 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
8186 | fi | |
8187 | ||
8188 | else | |
8189 | ||
8190 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
8191 | if test "x$LINE" != x ; then | |
8192 | eval "DEFAULT_$LINE" | |
8193 | else | |
8194 | no_cache=1 | |
8195 | fi | |
8196 | ||
8197 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
8198 | ||
8199 | fi; | |
8200 | ||
8201 | eval "$ac_cv_use_slider" | |
8202 | if test "$no_cache" != 1; then | |
8203 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
8204 | fi | |
8205 | ||
8206 | if test "$wxUSE_SLIDER" = yes; then | |
8207 | echo "$as_me:$LINENO: result: yes" >&5 | |
8208 | echo "${ECHO_T}yes" >&6 | |
8209 | else | |
8210 | echo "$as_me:$LINENO: result: no" >&5 | |
8211 | echo "${ECHO_T}no" >&6 | |
8212 | fi | |
8213 | ||
8214 | ||
8215 | enablestring= | |
8216 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
8217 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
8218 | no_cache=0 | |
8219 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
8220 | if test "${enable_spinbtn+set}" = set; then | |
8221 | enableval="$enable_spinbtn" | |
8222 | ||
8223 | if test "$enableval" = yes; then | |
8224 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
8225 | else | |
8226 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
8227 | fi | |
8228 | ||
8229 | else | |
8230 | ||
8231 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
8232 | if test "x$LINE" != x ; then | |
8233 | eval "DEFAULT_$LINE" | |
8234 | else | |
8235 | no_cache=1 | |
8236 | fi | |
8237 | ||
8238 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
8239 | ||
8240 | fi; | |
8241 | ||
8242 | eval "$ac_cv_use_spinbtn" | |
8243 | if test "$no_cache" != 1; then | |
8244 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
8245 | fi | |
8246 | ||
8247 | if test "$wxUSE_SPINBTN" = yes; then | |
8248 | echo "$as_me:$LINENO: result: yes" >&5 | |
8249 | echo "${ECHO_T}yes" >&6 | |
8250 | else | |
8251 | echo "$as_me:$LINENO: result: no" >&5 | |
8252 | echo "${ECHO_T}no" >&6 | |
8253 | fi | |
8254 | ||
8255 | ||
8256 | enablestring= | |
8257 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
8258 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
8259 | no_cache=0 | |
8260 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
8261 | if test "${enable_spinctrl+set}" = set; then | |
8262 | enableval="$enable_spinctrl" | |
8263 | ||
8264 | if test "$enableval" = yes; then | |
8265 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
8266 | else | |
8267 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
8268 | fi | |
8269 | ||
8270 | else | |
8271 | ||
8272 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
8273 | if test "x$LINE" != x ; then | |
8274 | eval "DEFAULT_$LINE" | |
8275 | else | |
8276 | no_cache=1 | |
8277 | fi | |
8278 | ||
8279 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
8280 | ||
8281 | fi; | |
8282 | ||
8283 | eval "$ac_cv_use_spinctrl" | |
8284 | if test "$no_cache" != 1; then | |
8285 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
8286 | fi | |
8287 | ||
8288 | if test "$wxUSE_SPINCTRL" = yes; then | |
8289 | echo "$as_me:$LINENO: result: yes" >&5 | |
8290 | echo "${ECHO_T}yes" >&6 | |
8291 | else | |
8292 | echo "$as_me:$LINENO: result: no" >&5 | |
8293 | echo "${ECHO_T}no" >&6 | |
8294 | fi | |
8295 | ||
8296 | ||
8297 | enablestring= | |
8298 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
8299 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
8300 | no_cache=0 | |
8301 | # Check whether --enable-splitter or --disable-splitter was given. | |
8302 | if test "${enable_splitter+set}" = set; then | |
8303 | enableval="$enable_splitter" | |
8304 | ||
8305 | if test "$enableval" = yes; then | |
8306 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
8307 | else | |
8308 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
8309 | fi | |
8310 | ||
8311 | else | |
8312 | ||
8313 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
8314 | if test "x$LINE" != x ; then | |
8315 | eval "DEFAULT_$LINE" | |
8316 | else | |
8317 | no_cache=1 | |
8318 | fi | |
8319 | ||
8320 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
8321 | ||
8322 | fi; | |
8323 | ||
8324 | eval "$ac_cv_use_splitter" | |
8325 | if test "$no_cache" != 1; then | |
8326 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
8327 | fi | |
8328 | ||
8329 | if test "$wxUSE_SPLITTER" = yes; then | |
8330 | echo "$as_me:$LINENO: result: yes" >&5 | |
8331 | echo "${ECHO_T}yes" >&6 | |
8332 | else | |
8333 | echo "$as_me:$LINENO: result: no" >&5 | |
8334 | echo "${ECHO_T}no" >&6 | |
8335 | fi | |
8336 | ||
8337 | ||
8338 | enablestring= | |
8339 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
8340 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
8341 | no_cache=0 | |
8342 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
8343 | if test "${enable_statbmp+set}" = set; then | |
8344 | enableval="$enable_statbmp" | |
8345 | ||
8346 | if test "$enableval" = yes; then | |
8347 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8348 | else | |
8349 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8350 | fi | |
8351 | ||
8352 | else | |
8353 | ||
8354 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8355 | if test "x$LINE" != x ; then | |
8356 | eval "DEFAULT_$LINE" | |
8357 | else | |
8358 | no_cache=1 | |
8359 | fi | |
8360 | ||
8361 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8362 | ||
8363 | fi; | |
8364 | ||
8365 | eval "$ac_cv_use_statbmp" | |
8366 | if test "$no_cache" != 1; then | |
8367 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8368 | fi | |
8369 | ||
8370 | if test "$wxUSE_STATBMP" = yes; then | |
8371 | echo "$as_me:$LINENO: result: yes" >&5 | |
8372 | echo "${ECHO_T}yes" >&6 | |
8373 | else | |
8374 | echo "$as_me:$LINENO: result: no" >&5 | |
8375 | echo "${ECHO_T}no" >&6 | |
8376 | fi | |
8377 | ||
8378 | ||
8379 | enablestring= | |
8380 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8381 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8382 | no_cache=0 | |
8383 | # Check whether --enable-statbox or --disable-statbox was given. | |
8384 | if test "${enable_statbox+set}" = set; then | |
8385 | enableval="$enable_statbox" | |
8386 | ||
8387 | if test "$enableval" = yes; then | |
8388 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8389 | else | |
8390 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8391 | fi | |
8392 | ||
8393 | else | |
8394 | ||
8395 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8396 | if test "x$LINE" != x ; then | |
8397 | eval "DEFAULT_$LINE" | |
8398 | else | |
8399 | no_cache=1 | |
8400 | fi | |
8401 | ||
8402 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8403 | ||
8404 | fi; | |
8405 | ||
8406 | eval "$ac_cv_use_statbox" | |
8407 | if test "$no_cache" != 1; then | |
8408 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8409 | fi | |
8410 | ||
8411 | if test "$wxUSE_STATBOX" = yes; then | |
8412 | echo "$as_me:$LINENO: result: yes" >&5 | |
8413 | echo "${ECHO_T}yes" >&6 | |
8414 | else | |
8415 | echo "$as_me:$LINENO: result: no" >&5 | |
8416 | echo "${ECHO_T}no" >&6 | |
8417 | fi | |
8418 | ||
8419 | ||
8420 | enablestring= | |
8421 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8422 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8423 | no_cache=0 | |
8424 | # Check whether --enable-statline or --disable-statline was given. | |
8425 | if test "${enable_statline+set}" = set; then | |
8426 | enableval="$enable_statline" | |
8427 | ||
8428 | if test "$enableval" = yes; then | |
8429 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8430 | else | |
8431 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8432 | fi | |
8433 | ||
8434 | else | |
8435 | ||
8436 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8437 | if test "x$LINE" != x ; then | |
8438 | eval "DEFAULT_$LINE" | |
8439 | else | |
8440 | no_cache=1 | |
8441 | fi | |
8442 | ||
8443 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8444 | ||
8445 | fi; | |
8446 | ||
8447 | eval "$ac_cv_use_statline" | |
8448 | if test "$no_cache" != 1; then | |
8449 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8450 | fi | |
8451 | ||
8452 | if test "$wxUSE_STATLINE" = yes; then | |
8453 | echo "$as_me:$LINENO: result: yes" >&5 | |
8454 | echo "${ECHO_T}yes" >&6 | |
8455 | else | |
8456 | echo "$as_me:$LINENO: result: no" >&5 | |
8457 | echo "${ECHO_T}no" >&6 | |
8458 | fi | |
8459 | ||
8460 | ||
8461 | enablestring= | |
8462 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8463 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8464 | no_cache=0 | |
8465 | # Check whether --enable-stattext or --disable-stattext was given. | |
8466 | if test "${enable_stattext+set}" = set; then | |
8467 | enableval="$enable_stattext" | |
8468 | ||
8469 | if test "$enableval" = yes; then | |
8470 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8471 | else | |
8472 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8473 | fi | |
8474 | ||
8475 | else | |
8476 | ||
8477 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8478 | if test "x$LINE" != x ; then | |
8479 | eval "DEFAULT_$LINE" | |
8480 | else | |
8481 | no_cache=1 | |
8482 | fi | |
8483 | ||
8484 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8485 | ||
8486 | fi; | |
8487 | ||
8488 | eval "$ac_cv_use_stattext" | |
8489 | if test "$no_cache" != 1; then | |
8490 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8491 | fi | |
8492 | ||
8493 | if test "$wxUSE_STATTEXT" = yes; then | |
8494 | echo "$as_me:$LINENO: result: yes" >&5 | |
8495 | echo "${ECHO_T}yes" >&6 | |
8496 | else | |
8497 | echo "$as_me:$LINENO: result: no" >&5 | |
8498 | echo "${ECHO_T}no" >&6 | |
8499 | fi | |
8500 | ||
8501 | ||
8502 | enablestring= | |
8503 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8504 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8505 | no_cache=0 | |
8506 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8507 | if test "${enable_statusbar+set}" = set; then | |
8508 | enableval="$enable_statusbar" | |
8509 | ||
8510 | if test "$enableval" = yes; then | |
8511 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8512 | else | |
8513 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8514 | fi | |
8515 | ||
8516 | else | |
8517 | ||
8518 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8519 | if test "x$LINE" != x ; then | |
8520 | eval "DEFAULT_$LINE" | |
8521 | else | |
8522 | no_cache=1 | |
8523 | fi | |
8524 | ||
8525 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8526 | ||
8527 | fi; | |
8528 | ||
8529 | eval "$ac_cv_use_statusbar" | |
8530 | if test "$no_cache" != 1; then | |
8531 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8532 | fi | |
8533 | ||
8534 | if test "$wxUSE_STATUSBAR" = yes; then | |
8535 | echo "$as_me:$LINENO: result: yes" >&5 | |
8536 | echo "${ECHO_T}yes" >&6 | |
8537 | else | |
8538 | echo "$as_me:$LINENO: result: no" >&5 | |
8539 | echo "${ECHO_T}no" >&6 | |
8540 | fi | |
8541 | ||
8542 | ||
8543 | enablestring= | |
8544 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8545 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8546 | no_cache=0 | |
8547 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8548 | if test "${enable_tabdialog+set}" = set; then | |
8549 | enableval="$enable_tabdialog" | |
8550 | ||
8551 | if test "$enableval" = yes; then | |
8552 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8553 | else | |
8554 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8555 | fi | |
8556 | ||
8557 | else | |
8558 | ||
8559 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
8560 | if test "x$LINE" != x ; then | |
8561 | eval "DEFAULT_$LINE" | |
8562 | else | |
8563 | no_cache=1 | |
8564 | fi | |
8565 | ||
8566 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8567 | ||
8568 | fi; | |
8569 | ||
8570 | eval "$ac_cv_use_tabdialog" | |
8571 | if test "$no_cache" != 1; then | |
8572 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8573 | fi | |
8574 | ||
8575 | if test "$wxUSE_TABDIALOG" = yes; then | |
8576 | echo "$as_me:$LINENO: result: yes" >&5 | |
8577 | echo "${ECHO_T}yes" >&6 | |
8578 | else | |
8579 | echo "$as_me:$LINENO: result: no" >&5 | |
8580 | echo "${ECHO_T}no" >&6 | |
8581 | fi | |
8582 | ||
8583 | ||
8584 | enablestring= | |
8585 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
8586 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8587 | no_cache=0 | |
8588 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8589 | if test "${enable_textctrl+set}" = set; then | |
8590 | enableval="$enable_textctrl" | |
8591 | ||
8592 | if test "$enableval" = yes; then | |
8593 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8594 | else | |
8595 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8596 | fi | |
8597 | ||
8598 | else | |
8599 | ||
8600 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
8601 | if test "x$LINE" != x ; then | |
8602 | eval "DEFAULT_$LINE" | |
8603 | else | |
8604 | no_cache=1 | |
8605 | fi | |
8606 | ||
8607 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8608 | ||
8609 | fi; | |
8610 | ||
8611 | eval "$ac_cv_use_textctrl" | |
8612 | if test "$no_cache" != 1; then | |
8613 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8614 | fi | |
8615 | ||
8616 | if test "$wxUSE_TEXTCTRL" = yes; then | |
8617 | echo "$as_me:$LINENO: result: yes" >&5 | |
8618 | echo "${ECHO_T}yes" >&6 | |
8619 | else | |
8620 | echo "$as_me:$LINENO: result: no" >&5 | |
8621 | echo "${ECHO_T}no" >&6 | |
8622 | fi | |
8623 | ||
8624 | ||
8625 | enablestring= | |
8626 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
8627 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
8628 | no_cache=0 | |
8629 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8630 | if test "${enable_togglebtn+set}" = set; then | |
8631 | enableval="$enable_togglebtn" | |
8632 | ||
8633 | if test "$enableval" = yes; then | |
8634 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8635 | else | |
8636 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8637 | fi | |
8638 | ||
8639 | else | |
8640 | ||
8641 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
8642 | if test "x$LINE" != x ; then | |
8643 | eval "DEFAULT_$LINE" | |
8644 | else | |
8645 | no_cache=1 | |
8646 | fi | |
8647 | ||
8648 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8649 | ||
8650 | fi; | |
8651 | ||
8652 | eval "$ac_cv_use_togglebtn" | |
8653 | if test "$no_cache" != 1; then | |
8654 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8655 | fi | |
8656 | ||
8657 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
8658 | echo "$as_me:$LINENO: result: yes" >&5 | |
8659 | echo "${ECHO_T}yes" >&6 | |
8660 | else | |
8661 | echo "$as_me:$LINENO: result: no" >&5 | |
8662 | echo "${ECHO_T}no" >&6 | |
8663 | fi | |
8664 | ||
8665 | ||
8666 | enablestring= | |
8667 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
8668 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
8669 | no_cache=0 | |
8670 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8671 | if test "${enable_toolbar+set}" = set; then | |
8672 | enableval="$enable_toolbar" | |
8673 | ||
8674 | if test "$enableval" = yes; then | |
8675 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8676 | else | |
8677 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8678 | fi | |
8679 | ||
8680 | else | |
8681 | ||
8682 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
8683 | if test "x$LINE" != x ; then | |
8684 | eval "DEFAULT_$LINE" | |
8685 | else | |
8686 | no_cache=1 | |
8687 | fi | |
8688 | ||
8689 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8690 | ||
8691 | fi; | |
8692 | ||
8693 | eval "$ac_cv_use_toolbar" | |
8694 | if test "$no_cache" != 1; then | |
8695 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8696 | fi | |
8697 | ||
8698 | if test "$wxUSE_TOOLBAR" = yes; then | |
8699 | echo "$as_me:$LINENO: result: yes" >&5 | |
8700 | echo "${ECHO_T}yes" >&6 | |
8701 | else | |
8702 | echo "$as_me:$LINENO: result: no" >&5 | |
8703 | echo "${ECHO_T}no" >&6 | |
8704 | fi | |
8705 | ||
8706 | ||
8707 | enablestring= | |
8708 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
8709 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
8710 | no_cache=0 | |
8711 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8712 | if test "${enable_tbarnative+set}" = set; then | |
8713 | enableval="$enable_tbarnative" | |
8714 | ||
8715 | if test "$enableval" = yes; then | |
8716 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8717 | else | |
8718 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8719 | fi | |
8720 | ||
8721 | else | |
8722 | ||
8723 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
8724 | if test "x$LINE" != x ; then | |
8725 | eval "DEFAULT_$LINE" | |
8726 | else | |
8727 | no_cache=1 | |
8728 | fi | |
8729 | ||
8730 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
8731 | ||
8732 | fi; | |
8733 | ||
8734 | eval "$ac_cv_use_tbarnative" | |
8735 | if test "$no_cache" != 1; then | |
8736 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8737 | fi | |
8738 | ||
8739 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
8740 | echo "$as_me:$LINENO: result: yes" >&5 | |
8741 | echo "${ECHO_T}yes" >&6 | |
8742 | else | |
8743 | echo "$as_me:$LINENO: result: no" >&5 | |
8744 | echo "${ECHO_T}no" >&6 | |
8745 | fi | |
8746 | ||
8747 | ||
8748 | enablestring= | |
8749 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
8750 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
8751 | no_cache=0 | |
8752 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8753 | if test "${enable_tbarsmpl+set}" = set; then | |
8754 | enableval="$enable_tbarsmpl" | |
8755 | ||
8756 | if test "$enableval" = yes; then | |
8757 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8758 | else | |
8759 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8760 | fi | |
8761 | ||
8762 | else | |
8763 | ||
8764 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
8765 | if test "x$LINE" != x ; then | |
8766 | eval "DEFAULT_$LINE" | |
8767 | else | |
8768 | no_cache=1 | |
8769 | fi | |
8770 | ||
8771 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
8772 | ||
8773 | fi; | |
8774 | ||
8775 | eval "$ac_cv_use_tbarsmpl" | |
8776 | if test "$no_cache" != 1; then | |
8777 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8778 | fi | |
8779 | ||
8780 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
8781 | echo "$as_me:$LINENO: result: yes" >&5 | |
8782 | echo "${ECHO_T}yes" >&6 | |
8783 | else | |
8784 | echo "$as_me:$LINENO: result: no" >&5 | |
8785 | echo "${ECHO_T}no" >&6 | |
8786 | fi | |
8787 | ||
8788 | ||
8789 | enablestring= | |
8790 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
8791 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
8792 | no_cache=0 | |
8793 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8794 | if test "${enable_treectrl+set}" = set; then | |
8795 | enableval="$enable_treectrl" | |
8796 | ||
8797 | if test "$enableval" = yes; then | |
8798 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8799 | else | |
8800 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8801 | fi | |
8802 | ||
8803 | else | |
8804 | ||
8805 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
8806 | if test "x$LINE" != x ; then | |
8807 | eval "DEFAULT_$LINE" | |
8808 | else | |
8809 | no_cache=1 | |
8810 | fi | |
8811 | ||
8812 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
8813 | ||
8814 | fi; | |
8815 | ||
8816 | eval "$ac_cv_use_treectrl" | |
8817 | if test "$no_cache" != 1; then | |
8818 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8819 | fi | |
8820 | ||
8821 | if test "$wxUSE_TREECTRL" = yes; then | |
8822 | echo "$as_me:$LINENO: result: yes" >&5 | |
8823 | echo "${ECHO_T}yes" >&6 | |
8824 | else | |
8825 | echo "$as_me:$LINENO: result: no" >&5 | |
8826 | echo "${ECHO_T}no" >&6 | |
8827 | fi | |
8828 | ||
8829 | ||
8830 | enablestring= | |
8831 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
8832 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
8833 | no_cache=0 | |
8834 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8835 | if test "${enable_tipwindow+set}" = set; then | |
8836 | enableval="$enable_tipwindow" | |
8837 | ||
8838 | if test "$enableval" = yes; then | |
8839 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8840 | else | |
8841 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8842 | fi | |
8843 | ||
8844 | else | |
8845 | ||
8846 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
8847 | if test "x$LINE" != x ; then | |
8848 | eval "DEFAULT_$LINE" | |
8849 | else | |
8850 | no_cache=1 | |
8851 | fi | |
8852 | ||
8853 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
8854 | ||
8855 | fi; | |
8856 | ||
8857 | eval "$ac_cv_use_tipwindow" | |
8858 | if test "$no_cache" != 1; then | |
8859 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8860 | fi | |
8861 | ||
8862 | if test "$wxUSE_TIPWINDOW" = yes; then | |
8863 | echo "$as_me:$LINENO: result: yes" >&5 | |
8864 | echo "${ECHO_T}yes" >&6 | |
8865 | else | |
8866 | echo "$as_me:$LINENO: result: no" >&5 | |
8867 | echo "${ECHO_T}no" >&6 | |
8868 | fi | |
8869 | ||
8870 | ||
8871 | enablestring= | |
8872 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
8873 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
8874 | no_cache=0 | |
8875 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8876 | if test "${enable_popupwin+set}" = set; then | |
8877 | enableval="$enable_popupwin" | |
8878 | ||
8879 | if test "$enableval" = yes; then | |
8880 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8881 | else | |
8882 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8883 | fi | |
8884 | ||
8885 | else | |
8886 | ||
8887 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
8888 | if test "x$LINE" != x ; then | |
8889 | eval "DEFAULT_$LINE" | |
8890 | else | |
8891 | no_cache=1 | |
8892 | fi | |
8893 | ||
8894 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
8895 | ||
8896 | fi; | |
8897 | ||
8898 | eval "$ac_cv_use_popupwin" | |
8899 | if test "$no_cache" != 1; then | |
8900 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8901 | fi | |
8902 | ||
8903 | if test "$wxUSE_POPUPWIN" = yes; then | |
8904 | echo "$as_me:$LINENO: result: yes" >&5 | |
8905 | echo "${ECHO_T}yes" >&6 | |
8906 | else | |
8907 | echo "$as_me:$LINENO: result: no" >&5 | |
8908 | echo "${ECHO_T}no" >&6 | |
8909 | fi | |
8910 | ||
8911 | ||
8912 | ||
8913 | ||
8914 | enablestring= | |
8915 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
8916 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
8917 | no_cache=0 | |
8918 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8919 | if test "${enable_commondlg+set}" = set; then | |
8920 | enableval="$enable_commondlg" | |
8921 | ||
8922 | if test "$enableval" = yes; then | |
8923 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8924 | else | |
8925 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8926 | fi | |
8927 | ||
8928 | else | |
8929 | ||
8930 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
8931 | if test "x$LINE" != x ; then | |
8932 | eval "DEFAULT_$LINE" | |
8933 | else | |
8934 | no_cache=1 | |
8935 | fi | |
8936 | ||
8937 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
8938 | ||
8939 | fi; | |
8940 | ||
8941 | eval "$ac_cv_use_commondlg" | |
8942 | if test "$no_cache" != 1; then | |
8943 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8944 | fi | |
8945 | ||
8946 | if test "$wxUSE_COMMONDLGS" = yes; then | |
8947 | echo "$as_me:$LINENO: result: yes" >&5 | |
8948 | echo "${ECHO_T}yes" >&6 | |
8949 | else | |
8950 | echo "$as_me:$LINENO: result: no" >&5 | |
8951 | echo "${ECHO_T}no" >&6 | |
8952 | fi | |
8953 | ||
8954 | ||
8955 | enablestring= | |
8956 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
8957 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
8958 | no_cache=0 | |
8959 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8960 | if test "${enable_choicedlg+set}" = set; then | |
8961 | enableval="$enable_choicedlg" | |
8962 | ||
8963 | if test "$enableval" = yes; then | |
8964 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8965 | else | |
8966 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8967 | fi | |
8968 | ||
8969 | else | |
8970 | ||
8971 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
8972 | if test "x$LINE" != x ; then | |
8973 | eval "DEFAULT_$LINE" | |
8974 | else | |
8975 | no_cache=1 | |
8976 | fi | |
8977 | ||
8978 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
8979 | ||
8980 | fi; | |
8981 | ||
8982 | eval "$ac_cv_use_choicedlg" | |
8983 | if test "$no_cache" != 1; then | |
8984 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8985 | fi | |
8986 | ||
8987 | if test "$wxUSE_CHOICEDLG" = yes; then | |
8988 | echo "$as_me:$LINENO: result: yes" >&5 | |
8989 | echo "${ECHO_T}yes" >&6 | |
8990 | else | |
8991 | echo "$as_me:$LINENO: result: no" >&5 | |
8992 | echo "${ECHO_T}no" >&6 | |
8993 | fi | |
8994 | ||
8995 | ||
8996 | enablestring= | |
8997 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
8998 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
8999 | no_cache=0 | |
9000 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
9001 | if test "${enable_coldlg+set}" = set; then | |
9002 | enableval="$enable_coldlg" | |
9003 | ||
9004 | if test "$enableval" = yes; then | |
9005 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
9006 | else | |
9007 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
9008 | fi | |
9009 | ||
9010 | else | |
9011 | ||
9012 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
9013 | if test "x$LINE" != x ; then | |
9014 | eval "DEFAULT_$LINE" | |
9015 | else | |
9016 | no_cache=1 | |
9017 | fi | |
9018 | ||
9019 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
9020 | ||
9021 | fi; | |
9022 | ||
9023 | eval "$ac_cv_use_coldlg" | |
9024 | if test "$no_cache" != 1; then | |
9025 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
9026 | fi | |
9027 | ||
9028 | if test "$wxUSE_COLOURDLG" = yes; then | |
9029 | echo "$as_me:$LINENO: result: yes" >&5 | |
9030 | echo "${ECHO_T}yes" >&6 | |
9031 | else | |
9032 | echo "$as_me:$LINENO: result: no" >&5 | |
9033 | echo "${ECHO_T}no" >&6 | |
9034 | fi | |
9035 | ||
9036 | ||
9037 | enablestring= | |
9038 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
9039 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
9040 | no_cache=0 | |
9041 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
9042 | if test "${enable_filedlg+set}" = set; then | |
9043 | enableval="$enable_filedlg" | |
9044 | ||
9045 | if test "$enableval" = yes; then | |
9046 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
9047 | else | |
9048 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
9049 | fi | |
9050 | ||
9051 | else | |
9052 | ||
9053 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
9054 | if test "x$LINE" != x ; then | |
9055 | eval "DEFAULT_$LINE" | |
9056 | else | |
9057 | no_cache=1 | |
9058 | fi | |
9059 | ||
9060 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
9061 | ||
9062 | fi; | |
9063 | ||
9064 | eval "$ac_cv_use_filedlg" | |
9065 | if test "$no_cache" != 1; then | |
9066 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
9067 | fi | |
9068 | ||
9069 | if test "$wxUSE_FILEDLG" = yes; then | |
9070 | echo "$as_me:$LINENO: result: yes" >&5 | |
9071 | echo "${ECHO_T}yes" >&6 | |
9072 | else | |
9073 | echo "$as_me:$LINENO: result: no" >&5 | |
9074 | echo "${ECHO_T}no" >&6 | |
9075 | fi | |
9076 | ||
9077 | ||
9078 | enablestring= | |
9079 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
9080 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
9081 | no_cache=0 | |
9082 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
9083 | if test "${enable_finddlg+set}" = set; then | |
9084 | enableval="$enable_finddlg" | |
9085 | ||
9086 | if test "$enableval" = yes; then | |
9087 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
9088 | else | |
9089 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
9090 | fi | |
9091 | ||
9092 | else | |
9093 | ||
9094 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
9095 | if test "x$LINE" != x ; then | |
9096 | eval "DEFAULT_$LINE" | |
9097 | else | |
9098 | no_cache=1 | |
9099 | fi | |
9100 | ||
9101 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
9102 | ||
9103 | fi; | |
9104 | ||
9105 | eval "$ac_cv_use_finddlg" | |
9106 | if test "$no_cache" != 1; then | |
9107 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
9108 | fi | |
9109 | ||
9110 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
9111 | echo "$as_me:$LINENO: result: yes" >&5 | |
9112 | echo "${ECHO_T}yes" >&6 | |
9113 | else | |
9114 | echo "$as_me:$LINENO: result: no" >&5 | |
9115 | echo "${ECHO_T}no" >&6 | |
9116 | fi | |
9117 | ||
9118 | ||
9119 | enablestring= | |
9120 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
9121 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
9122 | no_cache=0 | |
9123 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
9124 | if test "${enable_fontdlg+set}" = set; then | |
9125 | enableval="$enable_fontdlg" | |
9126 | ||
9127 | if test "$enableval" = yes; then | |
9128 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
9129 | else | |
9130 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
9131 | fi | |
9132 | ||
9133 | else | |
9134 | ||
9135 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
9136 | if test "x$LINE" != x ; then | |
9137 | eval "DEFAULT_$LINE" | |
9138 | else | |
9139 | no_cache=1 | |
9140 | fi | |
9141 | ||
9142 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
9143 | ||
9144 | fi; | |
9145 | ||
9146 | eval "$ac_cv_use_fontdlg" | |
9147 | if test "$no_cache" != 1; then | |
9148 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
9149 | fi | |
9150 | ||
9151 | if test "$wxUSE_FONTDLG" = yes; then | |
9152 | echo "$as_me:$LINENO: result: yes" >&5 | |
9153 | echo "${ECHO_T}yes" >&6 | |
9154 | else | |
9155 | echo "$as_me:$LINENO: result: no" >&5 | |
9156 | echo "${ECHO_T}no" >&6 | |
9157 | fi | |
9158 | ||
9159 | ||
9160 | enablestring= | |
9161 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
9162 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
9163 | no_cache=0 | |
9164 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
9165 | if test "${enable_dirdlg+set}" = set; then | |
9166 | enableval="$enable_dirdlg" | |
9167 | ||
9168 | if test "$enableval" = yes; then | |
9169 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
9170 | else | |
9171 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
9172 | fi | |
9173 | ||
9174 | else | |
9175 | ||
9176 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
9177 | if test "x$LINE" != x ; then | |
9178 | eval "DEFAULT_$LINE" | |
9179 | else | |
9180 | no_cache=1 | |
9181 | fi | |
9182 | ||
9183 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
9184 | ||
9185 | fi; | |
9186 | ||
9187 | eval "$ac_cv_use_dirdlg" | |
9188 | if test "$no_cache" != 1; then | |
9189 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
9190 | fi | |
9191 | ||
9192 | if test "$wxUSE_DIRDLG" = yes; then | |
9193 | echo "$as_me:$LINENO: result: yes" >&5 | |
9194 | echo "${ECHO_T}yes" >&6 | |
9195 | else | |
9196 | echo "$as_me:$LINENO: result: no" >&5 | |
9197 | echo "${ECHO_T}no" >&6 | |
9198 | fi | |
9199 | ||
9200 | ||
9201 | enablestring= | |
9202 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
9203 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
9204 | no_cache=0 | |
9205 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
9206 | if test "${enable_msgdlg+set}" = set; then | |
9207 | enableval="$enable_msgdlg" | |
9208 | ||
9209 | if test "$enableval" = yes; then | |
9210 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
9211 | else | |
9212 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
9213 | fi | |
9214 | ||
9215 | else | |
9216 | ||
9217 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
9218 | if test "x$LINE" != x ; then | |
9219 | eval "DEFAULT_$LINE" | |
9220 | else | |
9221 | no_cache=1 | |
9222 | fi | |
9223 | ||
9224 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
9225 | ||
9226 | fi; | |
9227 | ||
9228 | eval "$ac_cv_use_msgdlg" | |
9229 | if test "$no_cache" != 1; then | |
9230 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
9231 | fi | |
9232 | ||
9233 | if test "$wxUSE_MSGDLG" = yes; then | |
9234 | echo "$as_me:$LINENO: result: yes" >&5 | |
9235 | echo "${ECHO_T}yes" >&6 | |
9236 | else | |
9237 | echo "$as_me:$LINENO: result: no" >&5 | |
9238 | echo "${ECHO_T}no" >&6 | |
9239 | fi | |
9240 | ||
9241 | ||
9242 | enablestring= | |
9243 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
9244 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
9245 | no_cache=0 | |
9246 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
9247 | if test "${enable_numberdlg+set}" = set; then | |
9248 | enableval="$enable_numberdlg" | |
9249 | ||
9250 | if test "$enableval" = yes; then | |
9251 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
9252 | else | |
9253 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
9254 | fi | |
9255 | ||
9256 | else | |
9257 | ||
9258 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
9259 | if test "x$LINE" != x ; then | |
9260 | eval "DEFAULT_$LINE" | |
9261 | else | |
9262 | no_cache=1 | |
9263 | fi | |
9264 | ||
9265 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
9266 | ||
9267 | fi; | |
9268 | ||
9269 | eval "$ac_cv_use_numberdlg" | |
9270 | if test "$no_cache" != 1; then | |
9271 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
9272 | fi | |
9273 | ||
9274 | if test "$wxUSE_NUMBERDLG" = yes; then | |
9275 | echo "$as_me:$LINENO: result: yes" >&5 | |
9276 | echo "${ECHO_T}yes" >&6 | |
9277 | else | |
9278 | echo "$as_me:$LINENO: result: no" >&5 | |
9279 | echo "${ECHO_T}no" >&6 | |
9280 | fi | |
9281 | ||
9282 | ||
9283 | enablestring= | |
9284 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
9285 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
9286 | no_cache=0 | |
9287 | # Check whether --enable-splash or --disable-splash was given. | |
9288 | if test "${enable_splash+set}" = set; then | |
9289 | enableval="$enable_splash" | |
9290 | ||
9291 | if test "$enableval" = yes; then | |
9292 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
9293 | else | |
9294 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
9295 | fi | |
9296 | ||
9297 | else | |
9298 | ||
9299 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
9300 | if test "x$LINE" != x ; then | |
9301 | eval "DEFAULT_$LINE" | |
9302 | else | |
9303 | no_cache=1 | |
9304 | fi | |
9305 | ||
9306 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
9307 | ||
9308 | fi; | |
9309 | ||
9310 | eval "$ac_cv_use_splash" | |
9311 | if test "$no_cache" != 1; then | |
9312 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
9313 | fi | |
9314 | ||
9315 | if test "$wxUSE_SPLASH" = yes; then | |
9316 | echo "$as_me:$LINENO: result: yes" >&5 | |
9317 | echo "${ECHO_T}yes" >&6 | |
9318 | else | |
9319 | echo "$as_me:$LINENO: result: no" >&5 | |
9320 | echo "${ECHO_T}no" >&6 | |
9321 | fi | |
9322 | ||
9323 | ||
9324 | enablestring= | |
9325 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
9326 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
9327 | no_cache=0 | |
9328 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
9329 | if test "${enable_textdlg+set}" = set; then | |
9330 | enableval="$enable_textdlg" | |
9331 | ||
9332 | if test "$enableval" = yes; then | |
9333 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
9334 | else | |
9335 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
9336 | fi | |
9337 | ||
9338 | else | |
9339 | ||
9340 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
9341 | if test "x$LINE" != x ; then | |
9342 | eval "DEFAULT_$LINE" | |
9343 | else | |
9344 | no_cache=1 | |
9345 | fi | |
9346 | ||
9347 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9348 | ||
9349 | fi; | |
9350 | ||
9351 | eval "$ac_cv_use_textdlg" | |
9352 | if test "$no_cache" != 1; then | |
9353 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9354 | fi | |
9355 | ||
9356 | if test "$wxUSE_TEXTDLG" = yes; then | |
9357 | echo "$as_me:$LINENO: result: yes" >&5 | |
9358 | echo "${ECHO_T}yes" >&6 | |
9359 | else | |
9360 | echo "$as_me:$LINENO: result: no" >&5 | |
9361 | echo "${ECHO_T}no" >&6 | |
9362 | fi | |
9363 | ||
9364 | ||
9365 | enablestring= | |
9366 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9367 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9368 | no_cache=0 | |
9369 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9370 | if test "${enable_tipdlg+set}" = set; then | |
9371 | enableval="$enable_tipdlg" | |
9372 | ||
9373 | if test "$enableval" = yes; then | |
9374 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9375 | else | |
9376 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9377 | fi | |
9378 | ||
9379 | else | |
9380 | ||
9381 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9382 | if test "x$LINE" != x ; then | |
9383 | eval "DEFAULT_$LINE" | |
9384 | else | |
9385 | no_cache=1 | |
9386 | fi | |
9387 | ||
9388 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9389 | ||
9390 | fi; | |
9391 | ||
9392 | eval "$ac_cv_use_tipdlg" | |
9393 | if test "$no_cache" != 1; then | |
9394 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9395 | fi | |
9396 | ||
9397 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
9398 | echo "$as_me:$LINENO: result: yes" >&5 | |
9399 | echo "${ECHO_T}yes" >&6 | |
9400 | else | |
9401 | echo "$as_me:$LINENO: result: no" >&5 | |
9402 | echo "${ECHO_T}no" >&6 | |
9403 | fi | |
9404 | ||
9405 | ||
9406 | enablestring= | |
9407 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
9408 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9409 | no_cache=0 | |
9410 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9411 | if test "${enable_progressdlg+set}" = set; then | |
9412 | enableval="$enable_progressdlg" | |
9413 | ||
9414 | if test "$enableval" = yes; then | |
9415 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9416 | else | |
9417 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9418 | fi | |
9419 | ||
9420 | else | |
9421 | ||
9422 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9423 | if test "x$LINE" != x ; then | |
9424 | eval "DEFAULT_$LINE" | |
9425 | else | |
9426 | no_cache=1 | |
9427 | fi | |
9428 | ||
9429 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9430 | ||
9431 | fi; | |
9432 | ||
9433 | eval "$ac_cv_use_progressdlg" | |
9434 | if test "$no_cache" != 1; then | |
9435 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9436 | fi | |
9437 | ||
9438 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9439 | echo "$as_me:$LINENO: result: yes" >&5 | |
9440 | echo "${ECHO_T}yes" >&6 | |
9441 | else | |
9442 | echo "$as_me:$LINENO: result: no" >&5 | |
9443 | echo "${ECHO_T}no" >&6 | |
9444 | fi | |
9445 | ||
9446 | ||
9447 | enablestring= | |
9448 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9449 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9450 | no_cache=0 | |
9451 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9452 | if test "${enable_wizarddlg+set}" = set; then | |
9453 | enableval="$enable_wizarddlg" | |
9454 | ||
9455 | if test "$enableval" = yes; then | |
9456 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9457 | else | |
9458 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9459 | fi | |
9460 | ||
9461 | else | |
9462 | ||
9463 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9464 | if test "x$LINE" != x ; then | |
9465 | eval "DEFAULT_$LINE" | |
9466 | else | |
9467 | no_cache=1 | |
9468 | fi | |
9469 | ||
9470 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9471 | ||
9472 | fi; | |
9473 | ||
9474 | eval "$ac_cv_use_wizarddlg" | |
9475 | if test "$no_cache" != 1; then | |
9476 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9477 | fi | |
9478 | ||
9479 | if test "$wxUSE_WIZARDDLG" = yes; then | |
9480 | echo "$as_me:$LINENO: result: yes" >&5 | |
9481 | echo "${ECHO_T}yes" >&6 | |
9482 | else | |
9483 | echo "$as_me:$LINENO: result: no" >&5 | |
9484 | echo "${ECHO_T}no" >&6 | |
9485 | fi | |
9486 | ||
9487 | ||
9488 | ||
9489 | ||
9490 | enablestring= | |
9491 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9492 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9493 | no_cache=0 | |
9494 | # Check whether --enable-menus or --disable-menus was given. | |
9495 | if test "${enable_menus+set}" = set; then | |
9496 | enableval="$enable_menus" | |
9497 | ||
9498 | if test "$enableval" = yes; then | |
9499 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9500 | else | |
9501 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9502 | fi | |
9503 | ||
9504 | else | |
9505 | ||
9506 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9507 | if test "x$LINE" != x ; then | |
9508 | eval "DEFAULT_$LINE" | |
9509 | else | |
9510 | no_cache=1 | |
9511 | fi | |
9512 | ||
9513 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9514 | ||
9515 | fi; | |
9516 | ||
9517 | eval "$ac_cv_use_menus" | |
9518 | if test "$no_cache" != 1; then | |
9519 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9520 | fi | |
9521 | ||
9522 | if test "$wxUSE_MENUS" = yes; then | |
9523 | echo "$as_me:$LINENO: result: yes" >&5 | |
9524 | echo "${ECHO_T}yes" >&6 | |
9525 | else | |
9526 | echo "$as_me:$LINENO: result: no" >&5 | |
9527 | echo "${ECHO_T}no" >&6 | |
9528 | fi | |
9529 | ||
9530 | ||
9531 | enablestring= | |
9532 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
9533 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
9534 | no_cache=0 | |
9535 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9536 | if test "${enable_miniframe+set}" = set; then | |
9537 | enableval="$enable_miniframe" | |
9538 | ||
9539 | if test "$enableval" = yes; then | |
9540 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9541 | else | |
9542 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9543 | fi | |
9544 | ||
9545 | else | |
9546 | ||
9547 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
9548 | if test "x$LINE" != x ; then | |
9549 | eval "DEFAULT_$LINE" | |
9550 | else | |
9551 | no_cache=1 | |
9552 | fi | |
9553 | ||
9554 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
9555 | ||
9556 | fi; | |
9557 | ||
9558 | eval "$ac_cv_use_miniframe" | |
9559 | if test "$no_cache" != 1; then | |
9560 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9561 | fi | |
9562 | ||
9563 | if test "$wxUSE_MINIFRAME" = yes; then | |
9564 | echo "$as_me:$LINENO: result: yes" >&5 | |
9565 | echo "${ECHO_T}yes" >&6 | |
9566 | else | |
9567 | echo "$as_me:$LINENO: result: no" >&5 | |
9568 | echo "${ECHO_T}no" >&6 | |
9569 | fi | |
9570 | ||
9571 | ||
9572 | enablestring= | |
9573 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
9574 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
9575 | no_cache=0 | |
9576 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9577 | if test "${enable_tooltips+set}" = set; then | |
9578 | enableval="$enable_tooltips" | |
9579 | ||
9580 | if test "$enableval" = yes; then | |
9581 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9582 | else | |
9583 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9584 | fi | |
9585 | ||
9586 | else | |
9587 | ||
9588 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
9589 | if test "x$LINE" != x ; then | |
9590 | eval "DEFAULT_$LINE" | |
9591 | else | |
9592 | no_cache=1 | |
9593 | fi | |
9594 | ||
9595 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
9596 | ||
9597 | fi; | |
9598 | ||
9599 | eval "$ac_cv_use_tooltips" | |
9600 | if test "$no_cache" != 1; then | |
9601 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9602 | fi | |
9603 | ||
9604 | if test "$wxUSE_TOOLTIPS" = yes; then | |
9605 | echo "$as_me:$LINENO: result: yes" >&5 | |
9606 | echo "${ECHO_T}yes" >&6 | |
9607 | else | |
9608 | echo "$as_me:$LINENO: result: no" >&5 | |
9609 | echo "${ECHO_T}no" >&6 | |
9610 | fi | |
9611 | ||
9612 | ||
9613 | enablestring= | |
9614 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
9615 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
9616 | no_cache=0 | |
9617 | # Check whether --enable-splines or --disable-splines was given. | |
9618 | if test "${enable_splines+set}" = set; then | |
9619 | enableval="$enable_splines" | |
9620 | ||
9621 | if test "$enableval" = yes; then | |
9622 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9623 | else | |
9624 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9625 | fi | |
9626 | ||
9627 | else | |
9628 | ||
9629 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
9630 | if test "x$LINE" != x ; then | |
9631 | eval "DEFAULT_$LINE" | |
9632 | else | |
9633 | no_cache=1 | |
9634 | fi | |
9635 | ||
9636 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
9637 | ||
9638 | fi; | |
9639 | ||
9640 | eval "$ac_cv_use_splines" | |
9641 | if test "$no_cache" != 1; then | |
9642 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9643 | fi | |
9644 | ||
9645 | if test "$wxUSE_SPLINES" = yes; then | |
9646 | echo "$as_me:$LINENO: result: yes" >&5 | |
9647 | echo "${ECHO_T}yes" >&6 | |
9648 | else | |
9649 | echo "$as_me:$LINENO: result: no" >&5 | |
9650 | echo "${ECHO_T}no" >&6 | |
9651 | fi | |
9652 | ||
9653 | ||
9654 | enablestring= | |
9655 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
9656 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
9657 | no_cache=0 | |
9658 | # Check whether --enable-validators or --disable-validators was given. | |
9659 | if test "${enable_validators+set}" = set; then | |
9660 | enableval="$enable_validators" | |
9661 | ||
9662 | if test "$enableval" = yes; then | |
9663 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9664 | else | |
9665 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9666 | fi | |
9667 | ||
9668 | else | |
9669 | ||
9670 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
9671 | if test "x$LINE" != x ; then | |
9672 | eval "DEFAULT_$LINE" | |
9673 | else | |
9674 | no_cache=1 | |
9675 | fi | |
9676 | ||
9677 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
9678 | ||
9679 | fi; | |
9680 | ||
9681 | eval "$ac_cv_use_validators" | |
9682 | if test "$no_cache" != 1; then | |
9683 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9684 | fi | |
9685 | ||
9686 | if test "$wxUSE_VALIDATORS" = yes; then | |
9687 | echo "$as_me:$LINENO: result: yes" >&5 | |
9688 | echo "${ECHO_T}yes" >&6 | |
9689 | else | |
9690 | echo "$as_me:$LINENO: result: no" >&5 | |
9691 | echo "${ECHO_T}no" >&6 | |
9692 | fi | |
9693 | ||
9694 | ||
9695 | enablestring= | |
9696 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
9697 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
9698 | no_cache=0 | |
9699 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9700 | if test "${enable_busyinfo+set}" = set; then | |
9701 | enableval="$enable_busyinfo" | |
9702 | ||
9703 | if test "$enableval" = yes; then | |
9704 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9705 | else | |
9706 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9707 | fi | |
9708 | ||
9709 | else | |
9710 | ||
9711 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
9712 | if test "x$LINE" != x ; then | |
9713 | eval "DEFAULT_$LINE" | |
9714 | else | |
9715 | no_cache=1 | |
9716 | fi | |
9717 | ||
9718 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
9719 | ||
9720 | fi; | |
9721 | ||
9722 | eval "$ac_cv_use_busyinfo" | |
9723 | if test "$no_cache" != 1; then | |
9724 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9725 | fi | |
9726 | ||
9727 | if test "$wxUSE_BUSYINFO" = yes; then | |
9728 | echo "$as_me:$LINENO: result: yes" >&5 | |
9729 | echo "${ECHO_T}yes" >&6 | |
9730 | else | |
9731 | echo "$as_me:$LINENO: result: no" >&5 | |
9732 | echo "${ECHO_T}no" >&6 | |
9733 | fi | |
9734 | ||
9735 | ||
9736 | enablestring= | |
9737 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
9738 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
9739 | no_cache=0 | |
9740 | # Check whether --enable-joystick or --disable-joystick was given. | |
9741 | if test "${enable_joystick+set}" = set; then | |
9742 | enableval="$enable_joystick" | |
9743 | ||
9744 | if test "$enableval" = yes; then | |
9745 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9746 | else | |
9747 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9748 | fi | |
9749 | ||
9750 | else | |
9751 | ||
9752 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
9753 | if test "x$LINE" != x ; then | |
9754 | eval "DEFAULT_$LINE" | |
9755 | else | |
9756 | no_cache=1 | |
9757 | fi | |
9758 | ||
9759 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
9760 | ||
9761 | fi; | |
9762 | ||
9763 | eval "$ac_cv_use_joystick" | |
9764 | if test "$no_cache" != 1; then | |
9765 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9766 | fi | |
9767 | ||
9768 | if test "$wxUSE_JOYSTICK" = yes; then | |
9769 | echo "$as_me:$LINENO: result: yes" >&5 | |
9770 | echo "${ECHO_T}yes" >&6 | |
9771 | else | |
9772 | echo "$as_me:$LINENO: result: no" >&5 | |
9773 | echo "${ECHO_T}no" >&6 | |
9774 | fi | |
9775 | ||
9776 | ||
9777 | enablestring= | |
9778 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
9779 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
9780 | no_cache=0 | |
9781 | # Check whether --enable-metafile or --disable-metafile was given. | |
9782 | if test "${enable_metafile+set}" = set; then | |
9783 | enableval="$enable_metafile" | |
9784 | ||
9785 | if test "$enableval" = yes; then | |
9786 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9787 | else | |
9788 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9789 | fi | |
9790 | ||
9791 | else | |
9792 | ||
9793 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
9794 | if test "x$LINE" != x ; then | |
9795 | eval "DEFAULT_$LINE" | |
9796 | else | |
9797 | no_cache=1 | |
9798 | fi | |
9799 | ||
9800 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
9801 | ||
9802 | fi; | |
9803 | ||
9804 | eval "$ac_cv_use_metafile" | |
9805 | if test "$no_cache" != 1; then | |
9806 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9807 | fi | |
9808 | ||
9809 | if test "$wxUSE_METAFILE" = yes; then | |
9810 | echo "$as_me:$LINENO: result: yes" >&5 | |
9811 | echo "${ECHO_T}yes" >&6 | |
9812 | else | |
9813 | echo "$as_me:$LINENO: result: no" >&5 | |
9814 | echo "${ECHO_T}no" >&6 | |
9815 | fi | |
9816 | ||
9817 | ||
9818 | enablestring= | |
9819 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
9820 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
9821 | no_cache=0 | |
9822 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9823 | if test "${enable_dragimage+set}" = set; then | |
9824 | enableval="$enable_dragimage" | |
9825 | ||
9826 | if test "$enableval" = yes; then | |
9827 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9828 | else | |
9829 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9830 | fi | |
9831 | ||
9832 | else | |
9833 | ||
9834 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
9835 | if test "x$LINE" != x ; then | |
9836 | eval "DEFAULT_$LINE" | |
9837 | else | |
9838 | no_cache=1 | |
9839 | fi | |
9840 | ||
9841 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
9842 | ||
9843 | fi; | |
9844 | ||
9845 | eval "$ac_cv_use_dragimage" | |
9846 | if test "$no_cache" != 1; then | |
9847 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9848 | fi | |
9849 | ||
9850 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
9851 | echo "$as_me:$LINENO: result: yes" >&5 | |
9852 | echo "${ECHO_T}yes" >&6 | |
9853 | else | |
9854 | echo "$as_me:$LINENO: result: no" >&5 | |
9855 | echo "${ECHO_T}no" >&6 | |
9856 | fi | |
9857 | ||
9858 | ||
9859 | enablestring= | |
9860 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
9861 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
9862 | no_cache=0 | |
9863 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9864 | if test "${enable_accessibility+set}" = set; then | |
9865 | enableval="$enable_accessibility" | |
9866 | ||
9867 | if test "$enableval" = yes; then | |
9868 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9869 | else | |
9870 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9871 | fi | |
9872 | ||
9873 | else | |
9874 | ||
9875 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
9876 | if test "x$LINE" != x ; then | |
9877 | eval "DEFAULT_$LINE" | |
9878 | else | |
9879 | no_cache=1 | |
9880 | fi | |
9881 | ||
9882 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
9883 | ||
9884 | fi; | |
9885 | ||
9886 | eval "$ac_cv_use_accessibility" | |
9887 | if test "$no_cache" != 1; then | |
9888 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9889 | fi | |
9890 | ||
9891 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
9892 | echo "$as_me:$LINENO: result: yes" >&5 | |
9893 | echo "${ECHO_T}yes" >&6 | |
9894 | else | |
9895 | echo "$as_me:$LINENO: result: no" >&5 | |
9896 | echo "${ECHO_T}no" >&6 | |
9897 | fi | |
9898 | ||
9899 | ||
9900 | ||
9901 | ||
9902 | enablestring= | |
9903 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
9904 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
9905 | no_cache=0 | |
9906 | # Check whether --enable-palette or --disable-palette was given. | |
9907 | if test "${enable_palette+set}" = set; then | |
9908 | enableval="$enable_palette" | |
9909 | ||
9910 | if test "$enableval" = yes; then | |
9911 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9912 | else | |
9913 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9914 | fi | |
9915 | ||
9916 | else | |
9917 | ||
9918 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
9919 | if test "x$LINE" != x ; then | |
9920 | eval "DEFAULT_$LINE" | |
9921 | else | |
9922 | no_cache=1 | |
9923 | fi | |
9924 | ||
9925 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
9926 | ||
9927 | fi; | |
9928 | ||
9929 | eval "$ac_cv_use_palette" | |
9930 | if test "$no_cache" != 1; then | |
9931 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9932 | fi | |
9933 | ||
9934 | if test "$wxUSE_PALETTE" = yes; then | |
9935 | echo "$as_me:$LINENO: result: yes" >&5 | |
9936 | echo "${ECHO_T}yes" >&6 | |
9937 | else | |
9938 | echo "$as_me:$LINENO: result: no" >&5 | |
9939 | echo "${ECHO_T}no" >&6 | |
9940 | fi | |
9941 | ||
9942 | ||
9943 | enablestring= | |
9944 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
9945 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
9946 | no_cache=0 | |
9947 | # Check whether --enable-image or --disable-image was given. | |
9948 | if test "${enable_image+set}" = set; then | |
9949 | enableval="$enable_image" | |
9950 | ||
9951 | if test "$enableval" = yes; then | |
9952 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9953 | else | |
9954 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9955 | fi | |
9956 | ||
9957 | else | |
9958 | ||
9959 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
9960 | if test "x$LINE" != x ; then | |
9961 | eval "DEFAULT_$LINE" | |
9962 | else | |
9963 | no_cache=1 | |
9964 | fi | |
9965 | ||
9966 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
9967 | ||
9968 | fi; | |
9969 | ||
9970 | eval "$ac_cv_use_image" | |
9971 | if test "$no_cache" != 1; then | |
9972 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9973 | fi | |
9974 | ||
9975 | if test "$wxUSE_IMAGE" = yes; then | |
9976 | echo "$as_me:$LINENO: result: yes" >&5 | |
9977 | echo "${ECHO_T}yes" >&6 | |
9978 | else | |
9979 | echo "$as_me:$LINENO: result: no" >&5 | |
9980 | echo "${ECHO_T}no" >&6 | |
9981 | fi | |
9982 | ||
9983 | ||
9984 | enablestring= | |
9985 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
9986 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
9987 | no_cache=0 | |
9988 | # Check whether --enable-gif or --disable-gif was given. | |
9989 | if test "${enable_gif+set}" = set; then | |
9990 | enableval="$enable_gif" | |
9991 | ||
9992 | if test "$enableval" = yes; then | |
9993 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9994 | else | |
9995 | ac_cv_use_gif='wxUSE_GIF=no' | |
9996 | fi | |
9997 | ||
9998 | else | |
9999 | ||
10000 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
10001 | if test "x$LINE" != x ; then | |
10002 | eval "DEFAULT_$LINE" | |
10003 | else | |
10004 | no_cache=1 | |
10005 | fi | |
10006 | ||
10007 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10008 | ||
10009 | fi; | |
10010 | ||
10011 | eval "$ac_cv_use_gif" | |
10012 | if test "$no_cache" != 1; then | |
10013 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
10014 | fi | |
10015 | ||
10016 | if test "$wxUSE_GIF" = yes; then | |
10017 | echo "$as_me:$LINENO: result: yes" >&5 | |
10018 | echo "${ECHO_T}yes" >&6 | |
10019 | else | |
10020 | echo "$as_me:$LINENO: result: no" >&5 | |
10021 | echo "${ECHO_T}no" >&6 | |
10022 | fi | |
10023 | ||
10024 | ||
10025 | enablestring= | |
10026 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
10027 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10028 | no_cache=0 | |
10029 | # Check whether --enable-pcx or --disable-pcx was given. | |
10030 | if test "${enable_pcx+set}" = set; then | |
10031 | enableval="$enable_pcx" | |
10032 | ||
10033 | if test "$enableval" = yes; then | |
10034 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
10035 | else | |
10036 | ac_cv_use_pcx='wxUSE_PCX=no' | |
10037 | fi | |
10038 | ||
10039 | else | |
10040 | ||
10041 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
10042 | if test "x$LINE" != x ; then | |
10043 | eval "DEFAULT_$LINE" | |
10044 | else | |
10045 | no_cache=1 | |
10046 | fi | |
10047 | ||
10048 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10049 | ||
10050 | fi; | |
10051 | ||
10052 | eval "$ac_cv_use_pcx" | |
10053 | if test "$no_cache" != 1; then | |
10054 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
10055 | fi | |
10056 | ||
10057 | if test "$wxUSE_PCX" = yes; then | |
10058 | echo "$as_me:$LINENO: result: yes" >&5 | |
10059 | echo "${ECHO_T}yes" >&6 | |
10060 | else | |
10061 | echo "$as_me:$LINENO: result: no" >&5 | |
10062 | echo "${ECHO_T}no" >&6 | |
10063 | fi | |
10064 | ||
10065 | ||
10066 | enablestring= | |
10067 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
10068 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
10069 | no_cache=0 | |
10070 | # Check whether --enable-iff or --disable-iff was given. | |
10071 | if test "${enable_iff+set}" = set; then | |
10072 | enableval="$enable_iff" | |
10073 | ||
10074 | if test "$enableval" = yes; then | |
10075 | ac_cv_use_iff='wxUSE_IFF=yes' | |
10076 | else | |
10077 | ac_cv_use_iff='wxUSE_IFF=no' | |
10078 | fi | |
10079 | ||
10080 | else | |
10081 | ||
10082 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
10083 | if test "x$LINE" != x ; then | |
10084 | eval "DEFAULT_$LINE" | |
10085 | else | |
10086 | no_cache=1 | |
10087 | fi | |
10088 | ||
10089 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
10090 | ||
10091 | fi; | |
10092 | ||
10093 | eval "$ac_cv_use_iff" | |
10094 | if test "$no_cache" != 1; then | |
10095 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
10096 | fi | |
10097 | ||
10098 | if test "$wxUSE_IFF" = yes; then | |
10099 | echo "$as_me:$LINENO: result: yes" >&5 | |
10100 | echo "${ECHO_T}yes" >&6 | |
10101 | else | |
10102 | echo "$as_me:$LINENO: result: no" >&5 | |
10103 | echo "${ECHO_T}no" >&6 | |
10104 | fi | |
10105 | ||
10106 | ||
10107 | enablestring= | |
10108 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
10109 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10110 | no_cache=0 | |
10111 | # Check whether --enable-pnm or --disable-pnm was given. | |
10112 | if test "${enable_pnm+set}" = set; then | |
10113 | enableval="$enable_pnm" | |
10114 | ||
10115 | if test "$enableval" = yes; then | |
10116 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
10117 | else | |
10118 | ac_cv_use_pnm='wxUSE_PNM=no' | |
10119 | fi | |
10120 | ||
10121 | else | |
10122 | ||
10123 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
10124 | if test "x$LINE" != x ; then | |
10125 | eval "DEFAULT_$LINE" | |
10126 | else | |
10127 | no_cache=1 | |
10128 | fi | |
10129 | ||
10130 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10131 | ||
10132 | fi; | |
10133 | ||
10134 | eval "$ac_cv_use_pnm" | |
10135 | if test "$no_cache" != 1; then | |
10136 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
10137 | fi | |
10138 | ||
10139 | if test "$wxUSE_PNM" = yes; then | |
10140 | echo "$as_me:$LINENO: result: yes" >&5 | |
10141 | echo "${ECHO_T}yes" >&6 | |
10142 | else | |
10143 | echo "$as_me:$LINENO: result: no" >&5 | |
10144 | echo "${ECHO_T}no" >&6 | |
10145 | fi | |
10146 | ||
10147 | ||
10148 | enablestring= | |
10149 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
10150 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
10151 | no_cache=0 | |
10152 | # Check whether --enable-xpm or --disable-xpm was given. | |
10153 | if test "${enable_xpm+set}" = set; then | |
10154 | enableval="$enable_xpm" | |
10155 | ||
10156 | if test "$enableval" = yes; then | |
10157 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
10158 | else | |
10159 | ac_cv_use_xpm='wxUSE_XPM=no' | |
10160 | fi | |
10161 | ||
10162 | else | |
10163 | ||
10164 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
10165 | if test "x$LINE" != x ; then | |
10166 | eval "DEFAULT_$LINE" | |
10167 | else | |
10168 | no_cache=1 | |
10169 | fi | |
10170 | ||
10171 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
10172 | ||
10173 | fi; | |
10174 | ||
10175 | eval "$ac_cv_use_xpm" | |
10176 | if test "$no_cache" != 1; then | |
10177 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
10178 | fi | |
10179 | ||
10180 | if test "$wxUSE_XPM" = yes; then | |
10181 | echo "$as_me:$LINENO: result: yes" >&5 | |
10182 | echo "${ECHO_T}yes" >&6 | |
10183 | else | |
10184 | echo "$as_me:$LINENO: result: no" >&5 | |
10185 | echo "${ECHO_T}no" >&6 | |
10186 | fi | |
10187 | ||
10188 | ||
10189 | enablestring= | |
10190 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
10191 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
10192 | no_cache=0 | |
10193 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
10194 | if test "${enable_ico_cur+set}" = set; then | |
10195 | enableval="$enable_ico_cur" | |
10196 | ||
10197 | if test "$enableval" = yes; then | |
10198 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
10199 | else | |
10200 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
10201 | fi | |
10202 | ||
10203 | else | |
10204 | ||
10205 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
10206 | if test "x$LINE" != x ; then | |
10207 | eval "DEFAULT_$LINE" | |
10208 | else | |
10209 | no_cache=1 | |
10210 | fi | |
10211 | ||
10212 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
10213 | ||
10214 | fi; | |
10215 | ||
10216 | eval "$ac_cv_use_ico_cur" | |
10217 | if test "$no_cache" != 1; then | |
10218 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
10219 | fi | |
10220 | ||
10221 | if test "$wxUSE_ICO_CUR" = yes; then | |
10222 | echo "$as_me:$LINENO: result: yes" >&5 | |
10223 | echo "${ECHO_T}yes" >&6 | |
10224 | else | |
10225 | echo "$as_me:$LINENO: result: no" >&5 | |
10226 | echo "${ECHO_T}no" >&6 | |
10227 | fi | |
10228 | ||
10229 | ||
10230 | fi | |
10231 | ||
10232 | ||
10233 | ||
ceec2216 RL |
10234 | # Check whether --with-flavour or --without-flavour was given. |
10235 | if test "${with_flavour+set}" = set; then | |
10236 | withval="$with_flavour" | |
10237 | WX_FLAVOUR="$withval" | |
10238 | fi; | |
10239 | ||
10240 | ||
10241 | ||
a848cd7e SC |
10242 | enablestring= |
10243 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
10244 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
10245 | no_cache=0 | |
10246 | # Check whether --enable-official_build or --disable-official_build was given. | |
10247 | if test "${enable_official_build+set}" = set; then | |
10248 | enableval="$enable_official_build" | |
10249 | ||
10250 | if test "$enableval" = yes; then | |
10251 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
10252 | else | |
10253 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
10254 | fi | |
10255 | ||
10256 | else | |
10257 | ||
10258 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
10259 | if test "x$LINE" != x ; then | |
10260 | eval "DEFAULT_$LINE" | |
10261 | else | |
10262 | no_cache=1 | |
10263 | fi | |
10264 | ||
10265 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
10266 | ||
10267 | fi; | |
10268 | ||
10269 | eval "$ac_cv_use_official_build" | |
10270 | if test "$no_cache" != 1; then | |
10271 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
10272 | fi | |
10273 | ||
10274 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
10275 | echo "$as_me:$LINENO: result: yes" >&5 | |
10276 | echo "${ECHO_T}yes" >&6 | |
10277 | else | |
10278 | echo "$as_me:$LINENO: result: no" >&5 | |
10279 | echo "${ECHO_T}no" >&6 | |
10280 | fi | |
10281 | ||
10282 | # Check whether --enable-vendor or --disable-vendor was given. | |
10283 | if test "${enable_vendor+set}" = set; then | |
10284 | enableval="$enable_vendor" | |
10285 | VENDOR="$enableval" | |
10286 | fi; | |
10287 | if test "x$VENDOR" = "x"; then | |
10288 | VENDOR="custom" | |
10289 | fi | |
10290 | ||
a848cd7e SC |
10291 | |
10292 | ||
10293 | ||
10294 | echo "saving argument cache $wx_arg_cache_file" | |
10295 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
10296 | ||
10297 | ||
10298 | ||
10299 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
10300 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
10301 | ||
10302 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
10303 | if test "$wxUSE_WINE" = "yes"; then | |
10304 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
10305 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
10306 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
10307 | wxUSE_SHARED=no | |
10308 | fi | |
10309 | ||
10310 | if test "$wxUSE_GUI" = "yes"; then | |
10311 | ||
10312 | if test "$USE_BEOS" = 1; then | |
10313 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
10314 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
10315 | { (exit 1); exit 1; }; } | |
10316 | fi | |
10317 | ||
10318 | if test "$TOOLKIT_GIVEN" = 1; then | |
10319 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10320 | var=wxUSE_$toolkit | |
10321 | eval "value=\$${var}" | |
10322 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
10323 | done | |
10324 | else | |
10325 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10326 | if test "$has_toolkit_in_cache" != 1; then | |
10327 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
10328 | else | |
10329 | var=DEFAULT_wxUSE_$toolkit | |
10330 | fi | |
10331 | eval "wxUSE_$toolkit=\$${var}" | |
10332 | done | |
10333 | fi | |
10334 | ||
10335 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
10336 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
10337 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10338 | ||
10339 | case "${host}" in | |
10340 | *-pc-os2_emx | *-pc-os2-emx ) | |
10341 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
10342 | esac | |
10343 | ||
10344 | case "$NUM_TOOLKITS" in | |
10345 | 1) | |
10346 | ;; | |
10347 | 0) | |
10348 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10349 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10350 | { (exit 1); exit 1; }; } | |
10351 | ;; | |
10352 | *) | |
10353 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10354 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10355 | { (exit 1); exit 1; }; } | |
10356 | esac | |
10357 | ||
10358 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10359 | var=wxUSE_$toolkit | |
10360 | eval "value=\$${var}" | |
10361 | if test "x$value" != x; then | |
10362 | cache_var=CACHE_$toolkit | |
10363 | eval "cache=\$${cache_var}" | |
10364 | if test "$cache" = 1; then | |
10365 | echo "$var=$value" >> ${wx_arg_cache_file} | |
10366 | fi | |
10367 | if test "$value" = 1; then | |
10368 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
10369 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
10370 | echo "${ECHO_T}$toolkit_echo" >&6 | |
10371 | fi | |
10372 | fi | |
10373 | done | |
10374 | else | |
10375 | if test "x$host_alias" != "x"; then | |
10376 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
10377 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10378 | else | |
10379 | echo "$as_me:$LINENO: result: base only" >&5 | |
10380 | echo "${ECHO_T}base only" >&6 | |
10381 | fi | |
10382 | fi | |
10383 | ||
10384 | wants_win32=0 | |
10385 | doesnt_want_win32=0 | |
10386 | case "${host}" in | |
10387 | *-*-cygwin*) | |
10388 | if test "$wxUSE_MSW" = 1 ; then | |
10389 | wants_win32=1 | |
10390 | else | |
10391 | doesnt_want_win32=1 | |
10392 | fi | |
10393 | ;; | |
10394 | *-*-mingw*) | |
10395 | wants_win32=1 | |
10396 | ;; | |
10397 | esac | |
10398 | ||
10399 | if test "$wxUSE_WINE" = "yes"; then | |
10400 | wants_win32=1 | |
10401 | CC=winegcc | |
10402 | CXX=wineg++ | |
10403 | RESCOMP=wrc | |
10404 | LDFLAGS_GUI="-mwindows" | |
10405 | fi | |
10406 | ||
10407 | if test "$wants_win32" = 1 ; then | |
10408 | USE_UNIX=0 | |
10409 | USE_WIN32=1 | |
10410 | cat >>confdefs.h <<\_ACEOF | |
10411 | #define __WIN32__ 1 | |
10412 | _ACEOF | |
10413 | ||
10414 | cat >>confdefs.h <<\_ACEOF | |
10415 | #define __WIN95__ 1 | |
10416 | _ACEOF | |
10417 | ||
10418 | cat >>confdefs.h <<\_ACEOF | |
10419 | #define __WINDOWS__ 1 | |
10420 | _ACEOF | |
10421 | ||
10422 | cat >>confdefs.h <<\_ACEOF | |
10423 | #define __GNUWIN32__ 1 | |
10424 | _ACEOF | |
10425 | ||
10426 | cat >>confdefs.h <<\_ACEOF | |
10427 | #define STRICT 1 | |
10428 | _ACEOF | |
10429 | ||
10430 | cat >>confdefs.h <<\_ACEOF | |
10431 | #define WINVER 0x0400 | |
10432 | _ACEOF | |
10433 | ||
10434 | fi | |
10435 | if test "$doesnt_want_win32" = 1 ; then | |
10436 | USE_UNIX=1 | |
10437 | USE_WIN32=0 | |
10438 | fi | |
10439 | ||
10440 | if test "$USE_UNIX" = 1 ; then | |
10441 | wxUSE_UNIX=yes | |
10442 | cat >>confdefs.h <<\_ACEOF | |
10443 | #define __UNIX__ 1 | |
10444 | _ACEOF | |
10445 | ||
10446 | fi | |
10447 | ||
10448 | ||
10449 | cat >confcache <<\_ACEOF | |
10450 | # This file is a shell script that caches the results of configure | |
10451 | # tests run on this system so they can be shared between configure | |
10452 | # scripts and configure runs, see configure's option --config-cache. | |
10453 | # It is not useful on other systems. If it contains results you don't | |
10454 | # want to keep, you may remove or edit it. | |
10455 | # | |
10456 | # config.status only pays attention to the cache file if you give it | |
10457 | # the --recheck option to rerun configure. | |
10458 | # | |
10459 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10460 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10461 | # following values. | |
10462 | ||
10463 | _ACEOF | |
10464 | ||
10465 | # The following way of writing the cache mishandles newlines in values, | |
10466 | # but we know of no workaround that is simple, portable, and efficient. | |
10467 | # So, don't put newlines in cache variables' values. | |
10468 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10469 | # and sets the high bit in the cache file unless we assign to the vars. | |
10470 | { | |
10471 | (set) 2>&1 | | |
10472 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10473 | *ac_space=\ *) | |
10474 | # `set' does not quote correctly, so add quotes (double-quote | |
10475 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10476 | sed -n \ | |
ac1cb8d3 VS |
10477 | "s/'/'\\\\''/g; |
10478 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
10479 | ;; |
10480 | *) | |
10481 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10482 | sed -n \ | |
ac1cb8d3 | 10483 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
10484 | ;; |
10485 | esac; | |
10486 | } | | |
10487 | sed ' | |
10488 | t clear | |
10489 | : clear | |
10490 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10491 | t end | |
10492 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10493 | : end' >>confcache | |
10494 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10495 | if test -w $cache_file; then | |
10496 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10497 | cat confcache >$cache_file | |
10498 | else | |
10499 | echo "not updating unwritable cache $cache_file" | |
10500 | fi | |
10501 | fi | |
10502 | rm -f confcache | |
10503 | ||
10504 | if test "$build" != "$host" ; then | |
1e9e8aba | 10505 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then |
a848cd7e SC |
10506 | CC=$host_alias-gcc |
10507 | CXX=$host_alias-c++ | |
10508 | AR=$host_alias-ar | |
10509 | RANLIB=$host_alias-ranlib | |
10510 | DLLTOOL=$host_alias-dlltool | |
10511 | RESCOMP=$host_alias-windres | |
a848cd7e | 10512 | STRIP=$host_alias-strip |
1e9e8aba DE |
10513 | elif test "x$CC" '!=' "x"; then |
10514 | echo "You set CC, I assume you know what you are doing." | |
a848cd7e SC |
10515 | else |
10516 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 | |
10517 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
10518 | { (exit 1); exit 1; }; } | |
10519 | fi | |
10520 | fi | |
10521 | ||
10522 | CFLAGS=${CFLAGS:=} | |
10523 | ac_ext=c | |
10524 | ac_cpp='$CPP $CPPFLAGS' | |
10525 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10526 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10527 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10528 | if test -n "$ac_tool_prefix"; then | |
10529 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10530 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10531 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10532 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10533 | if test "${ac_cv_prog_CC+set}" = set; then | |
10534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10535 | else | |
10536 | if test -n "$CC"; then | |
10537 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10538 | else | |
10539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10540 | for as_dir in $PATH | |
10541 | do | |
10542 | IFS=$as_save_IFS | |
10543 | test -z "$as_dir" && as_dir=. | |
10544 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10545 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10546 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10547 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10548 | break 2 | |
10549 | fi | |
10550 | done | |
10551 | done | |
10552 | ||
10553 | fi | |
10554 | fi | |
10555 | CC=$ac_cv_prog_CC | |
10556 | if test -n "$CC"; then | |
10557 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10558 | echo "${ECHO_T}$CC" >&6 | |
10559 | else | |
10560 | echo "$as_me:$LINENO: result: no" >&5 | |
10561 | echo "${ECHO_T}no" >&6 | |
10562 | fi | |
10563 | ||
10564 | fi | |
10565 | if test -z "$ac_cv_prog_CC"; then | |
10566 | ac_ct_CC=$CC | |
10567 | # Extract the first word of "gcc", so it can be a program name with args. | |
10568 | set dummy gcc; ac_word=$2 | |
10569 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10570 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10571 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10573 | else | |
10574 | if test -n "$ac_ct_CC"; then | |
10575 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10576 | else | |
10577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10578 | for as_dir in $PATH | |
10579 | do | |
10580 | IFS=$as_save_IFS | |
10581 | test -z "$as_dir" && as_dir=. | |
10582 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10583 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10584 | ac_cv_prog_ac_ct_CC="gcc" | |
10585 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10586 | break 2 | |
10587 | fi | |
10588 | done | |
10589 | done | |
10590 | ||
10591 | fi | |
10592 | fi | |
10593 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10594 | if test -n "$ac_ct_CC"; then | |
10595 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10596 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10597 | else | |
10598 | echo "$as_me:$LINENO: result: no" >&5 | |
10599 | echo "${ECHO_T}no" >&6 | |
10600 | fi | |
10601 | ||
10602 | CC=$ac_ct_CC | |
10603 | else | |
10604 | CC="$ac_cv_prog_CC" | |
10605 | fi | |
10606 | ||
10607 | if test -z "$CC"; then | |
10608 | if test -n "$ac_tool_prefix"; then | |
10609 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10610 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10611 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10612 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10613 | if test "${ac_cv_prog_CC+set}" = set; then | |
10614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10615 | else | |
10616 | if test -n "$CC"; then | |
10617 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10618 | else | |
10619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10620 | for as_dir in $PATH | |
10621 | do | |
10622 | IFS=$as_save_IFS | |
10623 | test -z "$as_dir" && as_dir=. | |
10624 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10625 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10626 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10627 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10628 | break 2 | |
10629 | fi | |
10630 | done | |
10631 | done | |
10632 | ||
10633 | fi | |
10634 | fi | |
10635 | CC=$ac_cv_prog_CC | |
10636 | if test -n "$CC"; then | |
10637 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10638 | echo "${ECHO_T}$CC" >&6 | |
10639 | else | |
10640 | echo "$as_me:$LINENO: result: no" >&5 | |
10641 | echo "${ECHO_T}no" >&6 | |
10642 | fi | |
10643 | ||
10644 | fi | |
10645 | if test -z "$ac_cv_prog_CC"; then | |
10646 | ac_ct_CC=$CC | |
10647 | # Extract the first word of "cc", so it can be a program name with args. | |
10648 | set dummy cc; ac_word=$2 | |
10649 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10650 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10651 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10653 | else | |
10654 | if test -n "$ac_ct_CC"; then | |
10655 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10656 | else | |
10657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10658 | for as_dir in $PATH | |
10659 | do | |
10660 | IFS=$as_save_IFS | |
10661 | test -z "$as_dir" && as_dir=. | |
10662 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10663 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10664 | ac_cv_prog_ac_ct_CC="cc" | |
10665 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10666 | break 2 | |
10667 | fi | |
10668 | done | |
10669 | done | |
10670 | ||
10671 | fi | |
10672 | fi | |
10673 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10674 | if test -n "$ac_ct_CC"; then | |
10675 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10676 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10677 | else | |
10678 | echo "$as_me:$LINENO: result: no" >&5 | |
10679 | echo "${ECHO_T}no" >&6 | |
10680 | fi | |
10681 | ||
10682 | CC=$ac_ct_CC | |
10683 | else | |
10684 | CC="$ac_cv_prog_CC" | |
10685 | fi | |
10686 | ||
10687 | fi | |
10688 | if test -z "$CC"; then | |
10689 | # Extract the first word of "cc", so it can be a program name with args. | |
10690 | set dummy cc; ac_word=$2 | |
10691 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10692 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10693 | if test "${ac_cv_prog_CC+set}" = set; then | |
10694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10695 | else | |
10696 | if test -n "$CC"; then | |
10697 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10698 | else | |
10699 | ac_prog_rejected=no | |
10700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10701 | for as_dir in $PATH | |
10702 | do | |
10703 | IFS=$as_save_IFS | |
10704 | test -z "$as_dir" && as_dir=. | |
10705 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10706 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10707 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10708 | ac_prog_rejected=yes | |
10709 | continue | |
10710 | fi | |
10711 | ac_cv_prog_CC="cc" | |
10712 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10713 | break 2 | |
10714 | fi | |
10715 | done | |
10716 | done | |
10717 | ||
10718 | if test $ac_prog_rejected = yes; then | |
10719 | # We found a bogon in the path, so make sure we never use it. | |
10720 | set dummy $ac_cv_prog_CC | |
10721 | shift | |
10722 | if test $# != 0; then | |
10723 | # We chose a different compiler from the bogus one. | |
10724 | # However, it has the same basename, so the bogon will be chosen | |
10725 | # first if we set CC to just the basename; use the full file name. | |
10726 | shift | |
10727 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
10728 | fi | |
10729 | fi | |
10730 | fi | |
10731 | fi | |
10732 | CC=$ac_cv_prog_CC | |
10733 | if test -n "$CC"; then | |
10734 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10735 | echo "${ECHO_T}$CC" >&6 | |
10736 | else | |
10737 | echo "$as_me:$LINENO: result: no" >&5 | |
10738 | echo "${ECHO_T}no" >&6 | |
10739 | fi | |
10740 | ||
10741 | fi | |
10742 | if test -z "$CC"; then | |
10743 | if test -n "$ac_tool_prefix"; then | |
10744 | for ac_prog in cl | |
10745 | do | |
10746 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10747 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10748 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10749 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10750 | if test "${ac_cv_prog_CC+set}" = set; then | |
10751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10752 | else | |
10753 | if test -n "$CC"; then | |
10754 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10755 | else | |
10756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10757 | for as_dir in $PATH | |
10758 | do | |
10759 | IFS=$as_save_IFS | |
10760 | test -z "$as_dir" && as_dir=. | |
10761 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10762 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10763 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10764 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10765 | break 2 | |
10766 | fi | |
10767 | done | |
10768 | done | |
10769 | ||
10770 | fi | |
10771 | fi | |
10772 | CC=$ac_cv_prog_CC | |
10773 | if test -n "$CC"; then | |
10774 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10775 | echo "${ECHO_T}$CC" >&6 | |
10776 | else | |
10777 | echo "$as_me:$LINENO: result: no" >&5 | |
10778 | echo "${ECHO_T}no" >&6 | |
10779 | fi | |
10780 | ||
10781 | test -n "$CC" && break | |
10782 | done | |
10783 | fi | |
10784 | if test -z "$CC"; then | |
10785 | ac_ct_CC=$CC | |
10786 | for ac_prog in cl | |
10787 | do | |
10788 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10789 | set dummy $ac_prog; ac_word=$2 | |
10790 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10791 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10792 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10794 | else | |
10795 | if test -n "$ac_ct_CC"; then | |
10796 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10797 | else | |
10798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10799 | for as_dir in $PATH | |
10800 | do | |
10801 | IFS=$as_save_IFS | |
10802 | test -z "$as_dir" && as_dir=. | |
10803 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10804 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10805 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10806 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10807 | break 2 | |
10808 | fi | |
10809 | done | |
10810 | done | |
10811 | ||
10812 | fi | |
10813 | fi | |
10814 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10815 | if test -n "$ac_ct_CC"; then | |
10816 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10817 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10818 | else | |
10819 | echo "$as_me:$LINENO: result: no" >&5 | |
10820 | echo "${ECHO_T}no" >&6 | |
10821 | fi | |
10822 | ||
10823 | test -n "$ac_ct_CC" && break | |
10824 | done | |
10825 | ||
10826 | CC=$ac_ct_CC | |
10827 | fi | |
10828 | ||
10829 | fi | |
10830 | ||
10831 | ||
10832 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
10833 | See \`config.log' for more details." >&5 | |
10834 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
10835 | See \`config.log' for more details." >&2;} | |
10836 | { (exit 1); exit 1; }; } | |
10837 | ||
10838 | # Provide some information about the compiler. | |
10839 | echo "$as_me:$LINENO:" \ | |
10840 | "checking for C compiler version" >&5 | |
10841 | ac_compiler=`set X $ac_compile; echo $2` | |
10842 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10843 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10844 | ac_status=$? | |
10845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10846 | (exit $ac_status); } | |
10847 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10848 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10849 | ac_status=$? | |
10850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10851 | (exit $ac_status); } | |
10852 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10853 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10854 | ac_status=$? | |
10855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10856 | (exit $ac_status); } | |
10857 | ||
10858 | cat >conftest.$ac_ext <<_ACEOF | |
10859 | /* confdefs.h. */ | |
10860 | _ACEOF | |
10861 | cat confdefs.h >>conftest.$ac_ext | |
10862 | cat >>conftest.$ac_ext <<_ACEOF | |
10863 | /* end confdefs.h. */ | |
10864 | ||
10865 | int | |
10866 | main () | |
10867 | { | |
10868 | ||
10869 | ; | |
10870 | return 0; | |
10871 | } | |
10872 | _ACEOF | |
10873 | ac_clean_files_save=$ac_clean_files | |
10874 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10875 | # Try to create an executable without -o first, disregard a.out. | |
10876 | # It will help us diagnose broken compilers, and finding out an intuition | |
10877 | # of exeext. | |
ac1cb8d3 VS |
10878 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
10879 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
10880 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
10881 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10882 | (eval $ac_link_default) 2>&5 | |
10883 | ac_status=$? | |
10884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10885 | (exit $ac_status); }; then | |
10886 | # Find the output, starting from the most likely. This scheme is | |
10887 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10888 | # resort. | |
10889 | ||
10890 | # Be careful to initialize this variable, since it used to be cached. | |
10891 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10892 | ac_cv_exeext= | |
10893 | # b.out is created by i960 compilers. | |
10894 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10895 | do | |
10896 | test -f "$ac_file" || continue | |
10897 | case $ac_file in | |
10898 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 10899 | ;; |
a848cd7e | 10900 | conftest.$ac_ext ) |
ac1cb8d3 VS |
10901 | # This is the source file. |
10902 | ;; | |
a848cd7e | 10903 | [ab].out ) |
ac1cb8d3 VS |
10904 | # We found the default executable, but exeext='' is most |
10905 | # certainly right. | |
10906 | break;; | |
a848cd7e | 10907 | *.* ) |
ac1cb8d3 VS |
10908 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
10909 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10910 | # but it would be cool to find out if it's true. Does anybody | |
10911 | # maintain Libtool? --akim. | |
10912 | export ac_cv_exeext | |
10913 | break;; | |
a848cd7e | 10914 | * ) |
ac1cb8d3 | 10915 | break;; |
a848cd7e SC |
10916 | esac |
10917 | done | |
10918 | else | |
10919 | echo "$as_me: failed program was:" >&5 | |
10920 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10921 | ||
10922 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10923 | See \`config.log' for more details." >&5 | |
10924 | echo "$as_me: error: C compiler cannot create executables | |
10925 | See \`config.log' for more details." >&2;} | |
10926 | { (exit 77); exit 77; }; } | |
10927 | fi | |
10928 | ||
10929 | ac_exeext=$ac_cv_exeext | |
10930 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10931 | echo "${ECHO_T}$ac_file" >&6 | |
10932 | ||
10933 | # Check the compiler produces executables we can run. If not, either | |
10934 | # the compiler is broken, or we cross compile. | |
10935 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10936 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10937 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10938 | # If not cross compiling, check that we can run a simple program. | |
10939 | if test "$cross_compiling" != yes; then | |
10940 | if { ac_try='./$ac_file' | |
10941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10942 | (eval $ac_try) 2>&5 | |
10943 | ac_status=$? | |
10944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10945 | (exit $ac_status); }; }; then | |
10946 | cross_compiling=no | |
10947 | else | |
10948 | if test "$cross_compiling" = maybe; then | |
10949 | cross_compiling=yes | |
10950 | else | |
10951 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10952 | If you meant to cross compile, use \`--host'. | |
10953 | See \`config.log' for more details." >&5 | |
10954 | echo "$as_me: error: cannot run C compiled programs. | |
10955 | If you meant to cross compile, use \`--host'. | |
10956 | See \`config.log' for more details." >&2;} | |
10957 | { (exit 1); exit 1; }; } | |
10958 | fi | |
10959 | fi | |
10960 | fi | |
10961 | echo "$as_me:$LINENO: result: yes" >&5 | |
10962 | echo "${ECHO_T}yes" >&6 | |
10963 | ||
10964 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10965 | ac_clean_files=$ac_clean_files_save | |
10966 | # Check the compiler produces executables we can run. If not, either | |
10967 | # the compiler is broken, or we cross compile. | |
10968 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10969 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10970 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10971 | echo "${ECHO_T}$cross_compiling" >&6 | |
10972 | ||
10973 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10974 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10975 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10976 | (eval $ac_link) 2>&5 | |
10977 | ac_status=$? | |
10978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10979 | (exit $ac_status); }; then | |
10980 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10981 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10982 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10983 | # `rm'. | |
10984 | for ac_file in conftest.exe conftest conftest.*; do | |
10985 | test -f "$ac_file" || continue | |
10986 | case $ac_file in | |
10987 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10988 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
10989 | export ac_cv_exeext |
10990 | break;; | |
a848cd7e SC |
10991 | * ) break;; |
10992 | esac | |
10993 | done | |
10994 | else | |
10995 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
10996 | See \`config.log' for more details." >&5 | |
10997 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10998 | See \`config.log' for more details." >&2;} | |
10999 | { (exit 1); exit 1; }; } | |
11000 | fi | |
11001 | ||
11002 | rm -f conftest$ac_cv_exeext | |
11003 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
11004 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
11005 | ||
11006 | rm -f conftest.$ac_ext | |
11007 | EXEEXT=$ac_cv_exeext | |
11008 | ac_exeext=$EXEEXT | |
11009 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
11010 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
11011 | if test "${ac_cv_objext+set}" = set; then | |
11012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11013 | else | |
11014 | cat >conftest.$ac_ext <<_ACEOF | |
11015 | /* confdefs.h. */ | |
11016 | _ACEOF | |
11017 | cat confdefs.h >>conftest.$ac_ext | |
11018 | cat >>conftest.$ac_ext <<_ACEOF | |
11019 | /* end confdefs.h. */ | |
11020 | ||
11021 | int | |
11022 | main () | |
11023 | { | |
11024 | ||
11025 | ; | |
11026 | return 0; | |
11027 | } | |
11028 | _ACEOF | |
11029 | rm -f conftest.o conftest.obj | |
11030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11031 | (eval $ac_compile) 2>&5 | |
11032 | ac_status=$? | |
11033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11034 | (exit $ac_status); }; then | |
11035 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
11036 | case $ac_file in | |
11037 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
11038 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
11039 | break;; | |
11040 | esac | |
11041 | done | |
11042 | else | |
11043 | echo "$as_me: failed program was:" >&5 | |
11044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11045 | ||
11046 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
11047 | See \`config.log' for more details." >&5 | |
11048 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
11049 | See \`config.log' for more details." >&2;} | |
11050 | { (exit 1); exit 1; }; } | |
11051 | fi | |
11052 | ||
11053 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
11054 | fi | |
11055 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
11056 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
11057 | OBJEXT=$ac_cv_objext | |
11058 | ac_objext=$OBJEXT | |
11059 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
11060 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
11061 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
11062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11063 | else | |
11064 | cat >conftest.$ac_ext <<_ACEOF | |
11065 | /* confdefs.h. */ | |
11066 | _ACEOF | |
11067 | cat confdefs.h >>conftest.$ac_ext | |
11068 | cat >>conftest.$ac_ext <<_ACEOF | |
11069 | /* end confdefs.h. */ | |
11070 | ||
11071 | int | |
11072 | main () | |
11073 | { | |
11074 | #ifndef __GNUC__ | |
11075 | choke me | |
11076 | #endif | |
11077 | ||
11078 | ; | |
11079 | return 0; | |
11080 | } | |
11081 | _ACEOF | |
11082 | rm -f conftest.$ac_objext | |
11083 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11084 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11085 | ac_status=$? |
ac1cb8d3 VS |
11086 | grep -v '^ *+' conftest.er1 >conftest.err |
11087 | rm -f conftest.er1 | |
11088 | cat conftest.err >&5 | |
a848cd7e SC |
11089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11090 | (exit $ac_status); } && | |
89be85c2 VS |
11091 | { ac_try='test -z "$ac_c_werror_flag" |
11092 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11094 | (eval $ac_try) 2>&5 | |
11095 | ac_status=$? | |
11096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11097 | (exit $ac_status); }; } && | |
11098 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11100 | (eval $ac_try) 2>&5 | |
11101 | ac_status=$? | |
11102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11103 | (exit $ac_status); }; }; then | |
11104 | ac_compiler_gnu=yes | |
11105 | else | |
11106 | echo "$as_me: failed program was:" >&5 | |
11107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11108 | ||
11109 | ac_compiler_gnu=no | |
11110 | fi | |
ac1cb8d3 | 11111 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11112 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
11113 | ||
11114 | fi | |
11115 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
11116 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
11117 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
11118 | ac_test_CFLAGS=${CFLAGS+set} | |
11119 | ac_save_CFLAGS=$CFLAGS | |
11120 | CFLAGS="-g" | |
11121 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
11122 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11123 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11125 | else | |
11126 | cat >conftest.$ac_ext <<_ACEOF | |
11127 | /* confdefs.h. */ | |
11128 | _ACEOF | |
11129 | cat confdefs.h >>conftest.$ac_ext | |
11130 | cat >>conftest.$ac_ext <<_ACEOF | |
11131 | /* end confdefs.h. */ | |
11132 | ||
11133 | int | |
11134 | main () | |
11135 | { | |
11136 | ||
11137 | ; | |
11138 | return 0; | |
11139 | } | |
11140 | _ACEOF | |
11141 | rm -f conftest.$ac_objext | |
11142 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11143 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11144 | ac_status=$? |
ac1cb8d3 VS |
11145 | grep -v '^ *+' conftest.er1 >conftest.err |
11146 | rm -f conftest.er1 | |
11147 | cat conftest.err >&5 | |
a848cd7e SC |
11148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11149 | (exit $ac_status); } && | |
89be85c2 VS |
11150 | { ac_try='test -z "$ac_c_werror_flag" |
11151 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11153 | (eval $ac_try) 2>&5 | |
11154 | ac_status=$? | |
11155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11156 | (exit $ac_status); }; } && | |
11157 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11159 | (eval $ac_try) 2>&5 | |
11160 | ac_status=$? | |
11161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11162 | (exit $ac_status); }; }; then | |
11163 | ac_cv_prog_cc_g=yes | |
11164 | else | |
11165 | echo "$as_me: failed program was:" >&5 | |
11166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11167 | ||
11168 | ac_cv_prog_cc_g=no | |
11169 | fi | |
ac1cb8d3 | 11170 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11171 | fi |
11172 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11173 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11174 | if test "$ac_test_CFLAGS" = set; then | |
11175 | CFLAGS=$ac_save_CFLAGS | |
11176 | elif test $ac_cv_prog_cc_g = yes; then | |
11177 | if test "$GCC" = yes; then | |
11178 | CFLAGS="-g -O2" | |
11179 | else | |
11180 | CFLAGS="-g" | |
11181 | fi | |
11182 | else | |
11183 | if test "$GCC" = yes; then | |
11184 | CFLAGS="-O2" | |
11185 | else | |
11186 | CFLAGS= | |
11187 | fi | |
11188 | fi | |
11189 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
11190 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
11191 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
11192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11193 | else | |
11194 | ac_cv_prog_cc_stdc=no | |
11195 | ac_save_CC=$CC | |
11196 | cat >conftest.$ac_ext <<_ACEOF | |
11197 | /* confdefs.h. */ | |
11198 | _ACEOF | |
11199 | cat confdefs.h >>conftest.$ac_ext | |
11200 | cat >>conftest.$ac_ext <<_ACEOF | |
11201 | /* end confdefs.h. */ | |
11202 | #include <stdarg.h> | |
11203 | #include <stdio.h> | |
11204 | #include <sys/types.h> | |
11205 | #include <sys/stat.h> | |
11206 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
11207 | struct buf { int x; }; | |
11208 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
11209 | static char *e (p, i) | |
11210 | char **p; | |
11211 | int i; | |
11212 | { | |
11213 | return p[i]; | |
11214 | } | |
11215 | static char *f (char * (*g) (char **, int), char **p, ...) | |
11216 | { | |
11217 | char *s; | |
11218 | va_list v; | |
11219 | va_start (v,p); | |
11220 | s = g (p, va_arg (v,int)); | |
11221 | va_end (v); | |
11222 | return s; | |
11223 | } | |
ac1cb8d3 VS |
11224 | |
11225 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
11226 | function prototypes and stuff, but not '\xHH' hex character constants. | |
11227 | These don't provoke an error unfortunately, instead are silently treated | |
11228 | as 'x'. The following induces an error, until -std1 is added to get | |
11229 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
11230 | array size at least. It's necessary to write '\x00'==0 to get something | |
11231 | that's true only with -std1. */ | |
11232 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
11233 | ||
a848cd7e SC |
11234 | int test (int i, double x); |
11235 | struct s1 {int (*f) (int a);}; | |
11236 | struct s2 {int (*f) (double a);}; | |
11237 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
11238 | int argc; | |
11239 | char **argv; | |
11240 | int | |
11241 | main () | |
11242 | { | |
11243 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
11244 | ; | |
11245 | return 0; | |
11246 | } | |
11247 | _ACEOF | |
11248 | # Don't try gcc -ansi; that turns off useful extensions and | |
11249 | # breaks some systems' header files. | |
11250 | # AIX -qlanglvl=ansi | |
11251 | # Ultrix and OSF/1 -std1 | |
11252 | # HP-UX 10.20 and later -Ae | |
11253 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
11254 | # SVR4 -Xc -D__EXTENSIONS__ | |
11255 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
11256 | do | |
11257 | CC="$ac_save_CC $ac_arg" | |
11258 | rm -f conftest.$ac_objext | |
11259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11260 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11261 | ac_status=$? |
ac1cb8d3 VS |
11262 | grep -v '^ *+' conftest.er1 >conftest.err |
11263 | rm -f conftest.er1 | |
11264 | cat conftest.err >&5 | |
a848cd7e SC |
11265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11266 | (exit $ac_status); } && | |
89be85c2 VS |
11267 | { ac_try='test -z "$ac_c_werror_flag" |
11268 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11270 | (eval $ac_try) 2>&5 | |
11271 | ac_status=$? | |
11272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11273 | (exit $ac_status); }; } && | |
11274 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11276 | (eval $ac_try) 2>&5 | |
11277 | ac_status=$? | |
11278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11279 | (exit $ac_status); }; }; then | |
11280 | ac_cv_prog_cc_stdc=$ac_arg | |
11281 | break | |
11282 | else | |
11283 | echo "$as_me: failed program was:" >&5 | |
11284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11285 | ||
11286 | fi | |
ac1cb8d3 | 11287 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
11288 | done |
11289 | rm -f conftest.$ac_ext conftest.$ac_objext | |
11290 | CC=$ac_save_CC | |
11291 | ||
11292 | fi | |
11293 | ||
11294 | case "x$ac_cv_prog_cc_stdc" in | |
11295 | x|xno) | |
11296 | echo "$as_me:$LINENO: result: none needed" >&5 | |
11297 | echo "${ECHO_T}none needed" >&6 ;; | |
11298 | *) | |
11299 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
11300 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
11301 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
11302 | esac | |
11303 | ||
11304 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
11305 | # in C++ we need to declare it. In case someone uses the same compiler | |
11306 | # for both compiling C and C++ we need to have the C++ compiler decide | |
11307 | # the declaration of exit, since it's the most demanding environment. | |
11308 | cat >conftest.$ac_ext <<_ACEOF | |
11309 | #ifndef __cplusplus | |
11310 | choke me | |
11311 | #endif | |
11312 | _ACEOF | |
11313 | rm -f conftest.$ac_objext | |
11314 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11315 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11316 | ac_status=$? |
ac1cb8d3 VS |
11317 | grep -v '^ *+' conftest.er1 >conftest.err |
11318 | rm -f conftest.er1 | |
11319 | cat conftest.err >&5 | |
a848cd7e SC |
11320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11321 | (exit $ac_status); } && | |
89be85c2 VS |
11322 | { ac_try='test -z "$ac_c_werror_flag" |
11323 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11325 | (eval $ac_try) 2>&5 | |
11326 | ac_status=$? | |
11327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11328 | (exit $ac_status); }; } && | |
11329 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11331 | (eval $ac_try) 2>&5 | |
11332 | ac_status=$? | |
11333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11334 | (exit $ac_status); }; }; then | |
11335 | for ac_declaration in \ | |
ac1cb8d3 | 11336 | '' \ |
a848cd7e SC |
11337 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11338 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11339 | 'extern "C" void exit (int) throw ();' \ | |
11340 | 'extern "C" void exit (int);' \ | |
11341 | 'void exit (int);' | |
11342 | do | |
11343 | cat >conftest.$ac_ext <<_ACEOF | |
11344 | /* confdefs.h. */ | |
11345 | _ACEOF | |
11346 | cat confdefs.h >>conftest.$ac_ext | |
11347 | cat >>conftest.$ac_ext <<_ACEOF | |
11348 | /* end confdefs.h. */ | |
de59c161 | 11349 | $ac_declaration |
ac1cb8d3 | 11350 | #include <stdlib.h> |
a848cd7e SC |
11351 | int |
11352 | main () | |
11353 | { | |
11354 | exit (42); | |
11355 | ; | |
11356 | return 0; | |
11357 | } | |
11358 | _ACEOF | |
11359 | rm -f conftest.$ac_objext | |
11360 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11361 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11362 | ac_status=$? |
ac1cb8d3 VS |
11363 | grep -v '^ *+' conftest.er1 >conftest.err |
11364 | rm -f conftest.er1 | |
11365 | cat conftest.err >&5 | |
a848cd7e SC |
11366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11367 | (exit $ac_status); } && | |
89be85c2 VS |
11368 | { ac_try='test -z "$ac_c_werror_flag" |
11369 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11371 | (eval $ac_try) 2>&5 | |
11372 | ac_status=$? | |
11373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11374 | (exit $ac_status); }; } && | |
11375 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11377 | (eval $ac_try) 2>&5 | |
11378 | ac_status=$? | |
11379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11380 | (exit $ac_status); }; }; then | |
11381 | : | |
11382 | else | |
11383 | echo "$as_me: failed program was:" >&5 | |
11384 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11385 | ||
11386 | continue | |
11387 | fi | |
ac1cb8d3 | 11388 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11389 | cat >conftest.$ac_ext <<_ACEOF |
11390 | /* confdefs.h. */ | |
11391 | _ACEOF | |
11392 | cat confdefs.h >>conftest.$ac_ext | |
11393 | cat >>conftest.$ac_ext <<_ACEOF | |
11394 | /* end confdefs.h. */ | |
11395 | $ac_declaration | |
11396 | int | |
11397 | main () | |
11398 | { | |
11399 | exit (42); | |
11400 | ; | |
11401 | return 0; | |
11402 | } | |
11403 | _ACEOF | |
11404 | rm -f conftest.$ac_objext | |
11405 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11406 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11407 | ac_status=$? |
ac1cb8d3 VS |
11408 | grep -v '^ *+' conftest.er1 >conftest.err |
11409 | rm -f conftest.er1 | |
11410 | cat conftest.err >&5 | |
a848cd7e SC |
11411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11412 | (exit $ac_status); } && | |
89be85c2 VS |
11413 | { ac_try='test -z "$ac_c_werror_flag" |
11414 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11416 | (eval $ac_try) 2>&5 | |
11417 | ac_status=$? | |
11418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11419 | (exit $ac_status); }; } && | |
11420 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11422 | (eval $ac_try) 2>&5 | |
11423 | ac_status=$? | |
11424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11425 | (exit $ac_status); }; }; then | |
11426 | break | |
11427 | else | |
11428 | echo "$as_me: failed program was:" >&5 | |
11429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11430 | ||
11431 | fi | |
ac1cb8d3 | 11432 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11433 | done |
11434 | rm -f conftest* | |
11435 | if test -n "$ac_declaration"; then | |
11436 | echo '#ifdef __cplusplus' >>confdefs.h | |
11437 | echo $ac_declaration >>confdefs.h | |
11438 | echo '#endif' >>confdefs.h | |
11439 | fi | |
11440 | ||
11441 | else | |
11442 | echo "$as_me: failed program was:" >&5 | |
11443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11444 | ||
11445 | fi | |
ac1cb8d3 | 11446 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11447 | ac_ext=c |
11448 | ac_cpp='$CPP $CPPFLAGS' | |
11449 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11450 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11451 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11452 | ||
480ccd21 DE |
11453 | echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5 |
11454 | echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6 | |
11455 | if test "${wx_cv_c_exto+set}" = set; then | |
11456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11457 | else | |
11458 | cat >conftest.$ac_ext <<_ACEOF | |
11459 | /* confdefs.h. */ | |
11460 | _ACEOF | |
11461 | cat confdefs.h >>conftest.$ac_ext | |
11462 | cat >>conftest.$ac_ext <<_ACEOF | |
11463 | /* end confdefs.h. */ | |
11464 | ||
11465 | int | |
11466 | main () | |
11467 | { | |
11468 | ||
11469 | ; | |
11470 | return 0; | |
11471 | } | |
11472 | _ACEOF | |
11473 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
11474 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11475 | (eval $ac_compile) 2>&5 | |
11476 | ac_status=$? | |
11477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11478 | (exit $ac_status); }; then | |
11479 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
11480 | case $ac_file in | |
11481 | conftest.$ac_ext.o) | |
11482 | wx_cv_c_exto="-ext o" | |
11483 | ;; | |
11484 | *) | |
11485 | ;; | |
11486 | esac | |
11487 | done | |
11488 | else | |
11489 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
11490 | See \`config.log' for more details." >&5 | |
11491 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
11492 | See \`config.log' for more details." >&2;} | |
11493 | { (exit 1); exit 1; }; } | |
11494 | ||
11495 | fi | |
11496 | ||
11497 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
11498 | ||
11499 | fi | |
11500 | echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5 | |
11501 | echo "${ECHO_T}$wx_cv_c_exto" >&6 | |
11502 | if test "x$wx_cv_c_exto" '!=' "x"; then | |
11503 | if test "c" = "c"; then | |
11504 | CFLAGS="$wx_cv_c_exto $CFLAGS" | |
11505 | fi | |
11506 | if test "c" = "cxx"; then | |
11507 | CXXFLAGS="$wx_cv_c_exto $CXXFLAGS" | |
11508 | fi | |
11509 | fi | |
11510 | ||
11511 | if test "x$wx_cv_c_exto" '!=' "x"; then | |
11512 | unset ac_cv_prog_cc_g | |
11513 | ac_test_CFLAGS=${CFLAGS+set} | |
11514 | ac_save_CFLAGS=$CFLAGS | |
11515 | CFLAGS="-g" | |
11516 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
11517 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11518 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11520 | else | |
11521 | cat >conftest.$ac_ext <<_ACEOF | |
11522 | /* confdefs.h. */ | |
11523 | _ACEOF | |
11524 | cat confdefs.h >>conftest.$ac_ext | |
11525 | cat >>conftest.$ac_ext <<_ACEOF | |
11526 | /* end confdefs.h. */ | |
11527 | ||
11528 | int | |
11529 | main () | |
11530 | { | |
11531 | ||
11532 | ; | |
11533 | return 0; | |
11534 | } | |
11535 | _ACEOF | |
11536 | rm -f conftest.$ac_objext | |
11537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11538 | (eval $ac_compile) 2>conftest.er1 | |
11539 | ac_status=$? | |
11540 | grep -v '^ *+' conftest.er1 >conftest.err | |
11541 | rm -f conftest.er1 | |
11542 | cat conftest.err >&5 | |
11543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11544 | (exit $ac_status); } && | |
11545 | { ac_try='test -z "$ac_c_werror_flag" | |
11546 | || test ! -s conftest.err' | |
11547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11548 | (eval $ac_try) 2>&5 | |
11549 | ac_status=$? | |
11550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11551 | (exit $ac_status); }; } && | |
11552 | { ac_try='test -s conftest.$ac_objext' | |
11553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11554 | (eval $ac_try) 2>&5 | |
11555 | ac_status=$? | |
11556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11557 | (exit $ac_status); }; }; then | |
11558 | ac_cv_prog_cc_g=yes | |
11559 | else | |
11560 | echo "$as_me: failed program was:" >&5 | |
11561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11562 | ||
11563 | ac_cv_prog_cc_g=no | |
11564 | fi | |
11565 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11566 | fi | |
11567 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11568 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11569 | if test "$ac_test_CFLAGS" = set; then | |
11570 | CFLAGS=$ac_save_CFLAGS | |
11571 | elif test $ac_cv_prog_cc_g = yes; then | |
11572 | if test "$GCC" = yes; then | |
11573 | CFLAGS="-g -O2" | |
11574 | else | |
11575 | CFLAGS="-g" | |
11576 | fi | |
11577 | else | |
11578 | if test "$GCC" = yes; then | |
11579 | CFLAGS="-O2" | |
11580 | else | |
11581 | CFLAGS= | |
11582 | fi | |
11583 | fi | |
11584 | fi | |
a848cd7e | 11585 | |
95986553 DE |
11586 | ac_ext=c |
11587 | ac_cpp='$CPP $CPPFLAGS' | |
11588 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11589 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11590 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11591 | ||
11592 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5 | |
11593 | echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6 | |
11594 | if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then | |
11595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11596 | else | |
11597 | cat >conftest.$ac_ext <<_ACEOF | |
11598 | /* confdefs.h. */ | |
11599 | _ACEOF | |
11600 | cat confdefs.h >>conftest.$ac_ext | |
11601 | cat >>conftest.$ac_ext <<_ACEOF | |
11602 | /* end confdefs.h. */ | |
11603 | ||
11604 | int | |
11605 | main () | |
11606 | { | |
11607 | #ifndef __MWERKS__ | |
11608 | choke me | |
11609 | #endif | |
11610 | ||
11611 | ; | |
11612 | return 0; | |
11613 | } | |
11614 | _ACEOF | |
11615 | rm -f conftest.$ac_objext | |
11616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11617 | (eval $ac_compile) 2>conftest.er1 | |
11618 | ac_status=$? | |
11619 | grep -v '^ *+' conftest.er1 >conftest.err | |
11620 | rm -f conftest.er1 | |
11621 | cat conftest.err >&5 | |
11622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11623 | (exit $ac_status); } && | |
89be85c2 VS |
11624 | { ac_try='test -z "$ac_c_werror_flag" |
11625 | || test ! -s conftest.err' | |
95986553 DE |
11626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11627 | (eval $ac_try) 2>&5 | |
11628 | ac_status=$? | |
11629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11630 | (exit $ac_status); }; } && | |
11631 | { ac_try='test -s conftest.$ac_objext' | |
11632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11633 | (eval $ac_try) 2>&5 | |
11634 | ac_status=$? | |
11635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11636 | (exit $ac_status); }; }; then | |
11637 | bakefile_compiler_mwerks=yes | |
11638 | else | |
11639 | echo "$as_me: failed program was:" >&5 | |
11640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11641 | ||
11642 | bakefile_compiler_mwerks=no | |
11643 | fi | |
11644 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11645 | bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks | |
11646 | ||
11647 | fi | |
11648 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5 | |
11649 | echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6 | |
11650 | ||
11651 | MWCC=`test $bakefile_compiler_mwerks = yes && echo yes` | |
11652 | ac_ext=c | |
11653 | ac_cpp='$CPP $CPPFLAGS' | |
11654 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11655 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11656 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11657 | ||
11658 | ||
9273ffba DE |
11659 | ac_ext=c |
11660 | ac_cpp='$CPP $CPPFLAGS' | |
11661 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11662 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11663 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11664 | ||
11665 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
11666 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
11667 | if test "${wx_cv_c_compiler_xlc+set}" = set; then | |
11668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11669 | else | |
11670 | cat >conftest.$ac_ext <<_ACEOF | |
11671 | /* confdefs.h. */ | |
11672 | _ACEOF | |
11673 | cat confdefs.h >>conftest.$ac_ext | |
11674 | cat >>conftest.$ac_ext <<_ACEOF | |
11675 | /* end confdefs.h. */ | |
11676 | ||
11677 | int | |
11678 | main () | |
11679 | { | |
11680 | #ifndef __xlC__ | |
11681 | choke me | |
11682 | #endif | |
11683 | ||
11684 | ; | |
11685 | return 0; | |
11686 | } | |
11687 | _ACEOF | |
11688 | rm -f conftest.$ac_objext | |
11689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11690 | (eval $ac_compile) 2>conftest.er1 | |
11691 | ac_status=$? | |
11692 | grep -v '^ *+' conftest.er1 >conftest.err | |
11693 | rm -f conftest.er1 | |
11694 | cat conftest.err >&5 | |
11695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11696 | (exit $ac_status); } && | |
11697 | { ac_try='test -z "$ac_c_werror_flag" | |
11698 | || test ! -s conftest.err' | |
11699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11700 | (eval $ac_try) 2>&5 | |
11701 | ac_status=$? | |
11702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11703 | (exit $ac_status); }; } && | |
11704 | { ac_try='test -s conftest.$ac_objext' | |
11705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11706 | (eval $ac_try) 2>&5 | |
11707 | ac_status=$? | |
11708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11709 | (exit $ac_status); }; }; then | |
11710 | wx_compiler_xlc=yes | |
11711 | else | |
11712 | echo "$as_me: failed program was:" >&5 | |
11713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11714 | ||
11715 | wx_compiler_xlc=no | |
11716 | fi | |
11717 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11718 | wx_cv_c_compiler_xlc=$wx_compiler_xlc | |
11719 | ||
11720 | fi | |
11721 | echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5 | |
11722 | echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6 | |
11723 | ||
11724 | XLCC=`test $wx_compiler_xlc = yes && echo yes` | |
11725 | ac_ext=c | |
11726 | ac_cpp='$CPP $CPPFLAGS' | |
11727 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11728 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11729 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11730 | ||
11731 | ||
a848cd7e SC |
11732 | |
11733 | ac_ext=c | |
11734 | ac_cpp='$CPP $CPPFLAGS' | |
11735 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11736 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11737 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11738 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
11739 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
11740 | # On Suns, sometimes $CPP names a directory. | |
11741 | if test -n "$CPP" && test -d "$CPP"; then | |
11742 | CPP= | |
11743 | fi | |
11744 | if test -z "$CPP"; then | |
11745 | if test "${ac_cv_prog_CPP+set}" = set; then | |
11746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11747 | else | |
11748 | # Double quotes because CPP needs to be expanded | |
11749 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
11750 | do | |
11751 | ac_preproc_ok=false | |
11752 | for ac_c_preproc_warn_flag in '' yes | |
11753 | do | |
11754 | # Use a header file that comes with gcc, so configuring glibc | |
11755 | # with a fresh cross-compiler works. | |
11756 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11757 | # <limits.h> exists even on freestanding compilers. | |
11758 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11759 | # not just through cpp. "Syntax error" is here to catch this case. | |
11760 | cat >conftest.$ac_ext <<_ACEOF | |
11761 | /* confdefs.h. */ | |
11762 | _ACEOF | |
11763 | cat confdefs.h >>conftest.$ac_ext | |
11764 | cat >>conftest.$ac_ext <<_ACEOF | |
11765 | /* end confdefs.h. */ | |
11766 | #ifdef __STDC__ | |
11767 | # include <limits.h> | |
11768 | #else | |
11769 | # include <assert.h> | |
11770 | #endif | |
ac1cb8d3 | 11771 | Syntax error |
a848cd7e SC |
11772 | _ACEOF |
11773 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11774 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11775 | ac_status=$? | |
11776 | grep -v '^ *+' conftest.er1 >conftest.err | |
11777 | rm -f conftest.er1 | |
11778 | cat conftest.err >&5 | |
11779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11780 | (exit $ac_status); } >/dev/null; then | |
11781 | if test -s conftest.err; then | |
11782 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11783 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11784 | else |
11785 | ac_cpp_err= | |
11786 | fi | |
11787 | else | |
11788 | ac_cpp_err=yes | |
11789 | fi | |
11790 | if test -z "$ac_cpp_err"; then | |
11791 | : | |
11792 | else | |
11793 | echo "$as_me: failed program was:" >&5 | |
11794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11795 | ||
11796 | # Broken: fails on valid input. | |
11797 | continue | |
11798 | fi | |
11799 | rm -f conftest.err conftest.$ac_ext | |
11800 | ||
11801 | # OK, works on sane cases. Now check whether non-existent headers | |
11802 | # can be detected and how. | |
11803 | cat >conftest.$ac_ext <<_ACEOF | |
11804 | /* confdefs.h. */ | |
11805 | _ACEOF | |
11806 | cat confdefs.h >>conftest.$ac_ext | |
11807 | cat >>conftest.$ac_ext <<_ACEOF | |
11808 | /* end confdefs.h. */ | |
11809 | #include <ac_nonexistent.h> | |
11810 | _ACEOF | |
11811 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11812 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11813 | ac_status=$? | |
11814 | grep -v '^ *+' conftest.er1 >conftest.err | |
11815 | rm -f conftest.er1 | |
11816 | cat conftest.err >&5 | |
11817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11818 | (exit $ac_status); } >/dev/null; then | |
11819 | if test -s conftest.err; then | |
11820 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11821 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11822 | else |
11823 | ac_cpp_err= | |
11824 | fi | |
11825 | else | |
11826 | ac_cpp_err=yes | |
11827 | fi | |
11828 | if test -z "$ac_cpp_err"; then | |
11829 | # Broken: success on invalid input. | |
11830 | continue | |
11831 | else | |
11832 | echo "$as_me: failed program was:" >&5 | |
11833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11834 | ||
11835 | # Passes both tests. | |
11836 | ac_preproc_ok=: | |
11837 | break | |
11838 | fi | |
11839 | rm -f conftest.err conftest.$ac_ext | |
11840 | ||
11841 | done | |
11842 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11843 | rm -f conftest.err conftest.$ac_ext | |
11844 | if $ac_preproc_ok; then | |
11845 | break | |
11846 | fi | |
11847 | ||
11848 | done | |
11849 | ac_cv_prog_CPP=$CPP | |
11850 | ||
11851 | fi | |
11852 | CPP=$ac_cv_prog_CPP | |
11853 | else | |
11854 | ac_cv_prog_CPP=$CPP | |
11855 | fi | |
11856 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
11857 | echo "${ECHO_T}$CPP" >&6 | |
11858 | ac_preproc_ok=false | |
11859 | for ac_c_preproc_warn_flag in '' yes | |
11860 | do | |
11861 | # Use a header file that comes with gcc, so configuring glibc | |
11862 | # with a fresh cross-compiler works. | |
11863 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11864 | # <limits.h> exists even on freestanding compilers. | |
11865 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11866 | # not just through cpp. "Syntax error" is here to catch this case. | |
11867 | cat >conftest.$ac_ext <<_ACEOF | |
11868 | /* confdefs.h. */ | |
11869 | _ACEOF | |
11870 | cat confdefs.h >>conftest.$ac_ext | |
11871 | cat >>conftest.$ac_ext <<_ACEOF | |
11872 | /* end confdefs.h. */ | |
11873 | #ifdef __STDC__ | |
11874 | # include <limits.h> | |
11875 | #else | |
11876 | # include <assert.h> | |
11877 | #endif | |
ac1cb8d3 | 11878 | Syntax error |
a848cd7e SC |
11879 | _ACEOF |
11880 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11881 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11882 | ac_status=$? | |
11883 | grep -v '^ *+' conftest.er1 >conftest.err | |
11884 | rm -f conftest.er1 | |
11885 | cat conftest.err >&5 | |
11886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11887 | (exit $ac_status); } >/dev/null; then | |
11888 | if test -s conftest.err; then | |
11889 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11890 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11891 | else |
11892 | ac_cpp_err= | |
11893 | fi | |
11894 | else | |
11895 | ac_cpp_err=yes | |
11896 | fi | |
11897 | if test -z "$ac_cpp_err"; then | |
11898 | : | |
11899 | else | |
11900 | echo "$as_me: failed program was:" >&5 | |
11901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11902 | ||
11903 | # Broken: fails on valid input. | |
11904 | continue | |
11905 | fi | |
11906 | rm -f conftest.err conftest.$ac_ext | |
11907 | ||
11908 | # OK, works on sane cases. Now check whether non-existent headers | |
11909 | # can be detected and how. | |
11910 | cat >conftest.$ac_ext <<_ACEOF | |
11911 | /* confdefs.h. */ | |
11912 | _ACEOF | |
11913 | cat confdefs.h >>conftest.$ac_ext | |
11914 | cat >>conftest.$ac_ext <<_ACEOF | |
11915 | /* end confdefs.h. */ | |
11916 | #include <ac_nonexistent.h> | |
11917 | _ACEOF | |
11918 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11919 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11920 | ac_status=$? | |
11921 | grep -v '^ *+' conftest.er1 >conftest.err | |
11922 | rm -f conftest.er1 | |
11923 | cat conftest.err >&5 | |
11924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11925 | (exit $ac_status); } >/dev/null; then | |
11926 | if test -s conftest.err; then | |
11927 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11928 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11929 | else |
11930 | ac_cpp_err= | |
11931 | fi | |
11932 | else | |
11933 | ac_cpp_err=yes | |
11934 | fi | |
11935 | if test -z "$ac_cpp_err"; then | |
11936 | # Broken: success on invalid input. | |
11937 | continue | |
11938 | else | |
11939 | echo "$as_me: failed program was:" >&5 | |
11940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11941 | ||
11942 | # Passes both tests. | |
11943 | ac_preproc_ok=: | |
11944 | break | |
11945 | fi | |
11946 | rm -f conftest.err conftest.$ac_ext | |
11947 | ||
11948 | done | |
11949 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11950 | rm -f conftest.err conftest.$ac_ext | |
11951 | if $ac_preproc_ok; then | |
11952 | : | |
11953 | else | |
11954 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
11955 | See \`config.log' for more details." >&5 | |
11956 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
11957 | See \`config.log' for more details." >&2;} | |
11958 | { (exit 1); exit 1; }; } | |
11959 | fi | |
11960 | ||
11961 | ac_ext=c | |
11962 | ac_cpp='$CPP $CPPFLAGS' | |
11963 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11964 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11965 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11966 | ||
11967 | ||
11968 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
11969 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
11970 | if test "${ac_cv_prog_egrep+set}" = set; then | |
11971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11972 | else | |
11973 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
11974 | then ac_cv_prog_egrep='grep -E' | |
11975 | else ac_cv_prog_egrep='egrep' | |
11976 | fi | |
11977 | fi | |
11978 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
11979 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
11980 | EGREP=$ac_cv_prog_egrep | |
11981 | ||
11982 | ||
11983 | if test $ac_cv_c_compiler_gnu = yes; then | |
11984 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
11985 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
11986 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
11987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11988 | else | |
11989 | ac_pattern="Autoconf.*'x'" | |
11990 | cat >conftest.$ac_ext <<_ACEOF | |
11991 | /* confdefs.h. */ | |
11992 | _ACEOF | |
11993 | cat confdefs.h >>conftest.$ac_ext | |
11994 | cat >>conftest.$ac_ext <<_ACEOF | |
11995 | /* end confdefs.h. */ | |
11996 | #include <sgtty.h> | |
11997 | Autoconf TIOCGETP | |
11998 | _ACEOF | |
11999 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12000 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
12001 | ac_cv_prog_gcc_traditional=yes | |
12002 | else | |
12003 | ac_cv_prog_gcc_traditional=no | |
12004 | fi | |
12005 | rm -f conftest* | |
12006 | ||
12007 | ||
12008 | if test $ac_cv_prog_gcc_traditional = no; then | |
12009 | cat >conftest.$ac_ext <<_ACEOF | |
12010 | /* confdefs.h. */ | |
12011 | _ACEOF | |
12012 | cat confdefs.h >>conftest.$ac_ext | |
12013 | cat >>conftest.$ac_ext <<_ACEOF | |
12014 | /* end confdefs.h. */ | |
12015 | #include <termio.h> | |
12016 | Autoconf TCGETA | |
12017 | _ACEOF | |
12018 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12019 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
12020 | ac_cv_prog_gcc_traditional=yes | |
12021 | fi | |
12022 | rm -f conftest* | |
12023 | ||
12024 | fi | |
12025 | fi | |
12026 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
12027 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
12028 | if test $ac_cv_prog_gcc_traditional = yes; then | |
12029 | CC="$CC -traditional" | |
12030 | fi | |
12031 | fi | |
12032 | ||
12033 | ||
12034 | ||
12035 | ||
12036 | ac_ext=cc | |
12037 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12038 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12039 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12040 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12041 | ||
12042 | ||
12043 | CXXFLAGS=${CXXFLAGS:=} | |
12044 | ac_ext=cc | |
12045 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12046 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12047 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12048 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12049 | if test -n "$ac_tool_prefix"; then | |
12050 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
12051 | do | |
12052 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
12053 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
12054 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12055 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12056 | if test "${ac_cv_prog_CXX+set}" = set; then | |
12057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12058 | else | |
12059 | if test -n "$CXX"; then | |
12060 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
12061 | else | |
12062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12063 | for as_dir in $PATH | |
12064 | do | |
12065 | IFS=$as_save_IFS | |
12066 | test -z "$as_dir" && as_dir=. | |
12067 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12068 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12069 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
12070 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12071 | break 2 | |
12072 | fi | |
12073 | done | |
12074 | done | |
12075 | ||
12076 | fi | |
12077 | fi | |
12078 | CXX=$ac_cv_prog_CXX | |
12079 | if test -n "$CXX"; then | |
12080 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
12081 | echo "${ECHO_T}$CXX" >&6 | |
12082 | else | |
12083 | echo "$as_me:$LINENO: result: no" >&5 | |
12084 | echo "${ECHO_T}no" >&6 | |
12085 | fi | |
12086 | ||
12087 | test -n "$CXX" && break | |
12088 | done | |
12089 | fi | |
12090 | if test -z "$CXX"; then | |
12091 | ac_ct_CXX=$CXX | |
12092 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
12093 | do | |
12094 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12095 | set dummy $ac_prog; ac_word=$2 | |
12096 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12097 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12098 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
12099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12100 | else | |
12101 | if test -n "$ac_ct_CXX"; then | |
12102 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
12103 | else | |
12104 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12105 | for as_dir in $PATH | |
12106 | do | |
12107 | IFS=$as_save_IFS | |
12108 | test -z "$as_dir" && as_dir=. | |
12109 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12110 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12111 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
12112 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12113 | break 2 | |
12114 | fi | |
12115 | done | |
12116 | done | |
12117 | ||
12118 | fi | |
12119 | fi | |
12120 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
12121 | if test -n "$ac_ct_CXX"; then | |
12122 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
12123 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
12124 | else | |
12125 | echo "$as_me:$LINENO: result: no" >&5 | |
12126 | echo "${ECHO_T}no" >&6 | |
12127 | fi | |
12128 | ||
12129 | test -n "$ac_ct_CXX" && break | |
12130 | done | |
12131 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
12132 | ||
12133 | CXX=$ac_ct_CXX | |
12134 | fi | |
12135 | ||
12136 | ||
12137 | # Provide some information about the compiler. | |
12138 | echo "$as_me:$LINENO:" \ | |
12139 | "checking for C++ compiler version" >&5 | |
12140 | ac_compiler=`set X $ac_compile; echo $2` | |
12141 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
12142 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
12143 | ac_status=$? | |
12144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12145 | (exit $ac_status); } | |
12146 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
12147 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
12148 | ac_status=$? | |
12149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12150 | (exit $ac_status); } | |
12151 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
12152 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
12153 | ac_status=$? | |
12154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12155 | (exit $ac_status); } | |
12156 | ||
12157 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
12158 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
12159 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
12160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12161 | else | |
12162 | cat >conftest.$ac_ext <<_ACEOF | |
12163 | /* confdefs.h. */ | |
12164 | _ACEOF | |
12165 | cat confdefs.h >>conftest.$ac_ext | |
12166 | cat >>conftest.$ac_ext <<_ACEOF | |
12167 | /* end confdefs.h. */ | |
12168 | ||
12169 | int | |
12170 | main () | |
12171 | { | |
12172 | #ifndef __GNUC__ | |
12173 | choke me | |
12174 | #endif | |
12175 | ||
12176 | ; | |
12177 | return 0; | |
12178 | } | |
12179 | _ACEOF | |
12180 | rm -f conftest.$ac_objext | |
12181 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12182 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12183 | ac_status=$? |
ac1cb8d3 VS |
12184 | grep -v '^ *+' conftest.er1 >conftest.err |
12185 | rm -f conftest.er1 | |
12186 | cat conftest.err >&5 | |
a848cd7e SC |
12187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12188 | (exit $ac_status); } && | |
89be85c2 VS |
12189 | { ac_try='test -z "$ac_cxx_werror_flag" |
12190 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12192 | (eval $ac_try) 2>&5 | |
12193 | ac_status=$? | |
12194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12195 | (exit $ac_status); }; } && | |
12196 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12198 | (eval $ac_try) 2>&5 | |
12199 | ac_status=$? | |
12200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12201 | (exit $ac_status); }; }; then | |
12202 | ac_compiler_gnu=yes | |
12203 | else | |
12204 | echo "$as_me: failed program was:" >&5 | |
12205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12206 | ||
12207 | ac_compiler_gnu=no | |
12208 | fi | |
ac1cb8d3 | 12209 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12210 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
12211 | ||
12212 | fi | |
12213 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
12214 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
12215 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
12216 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
12217 | ac_save_CXXFLAGS=$CXXFLAGS | |
12218 | CXXFLAGS="-g" | |
12219 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
12220 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
12221 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
12222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12223 | else | |
12224 | cat >conftest.$ac_ext <<_ACEOF | |
12225 | /* confdefs.h. */ | |
12226 | _ACEOF | |
12227 | cat confdefs.h >>conftest.$ac_ext | |
12228 | cat >>conftest.$ac_ext <<_ACEOF | |
12229 | /* end confdefs.h. */ | |
12230 | ||
12231 | int | |
12232 | main () | |
12233 | { | |
12234 | ||
12235 | ; | |
12236 | return 0; | |
12237 | } | |
12238 | _ACEOF | |
12239 | rm -f conftest.$ac_objext | |
12240 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12241 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12242 | ac_status=$? |
ac1cb8d3 VS |
12243 | grep -v '^ *+' conftest.er1 >conftest.err |
12244 | rm -f conftest.er1 | |
12245 | cat conftest.err >&5 | |
a848cd7e SC |
12246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12247 | (exit $ac_status); } && | |
89be85c2 VS |
12248 | { ac_try='test -z "$ac_cxx_werror_flag" |
12249 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12251 | (eval $ac_try) 2>&5 | |
12252 | ac_status=$? | |
12253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12254 | (exit $ac_status); }; } && | |
12255 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12257 | (eval $ac_try) 2>&5 | |
12258 | ac_status=$? | |
12259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12260 | (exit $ac_status); }; }; then | |
12261 | ac_cv_prog_cxx_g=yes | |
12262 | else | |
12263 | echo "$as_me: failed program was:" >&5 | |
12264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12265 | ||
12266 | ac_cv_prog_cxx_g=no | |
12267 | fi | |
ac1cb8d3 | 12268 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12269 | fi |
12270 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
12271 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
12272 | if test "$ac_test_CXXFLAGS" = set; then | |
12273 | CXXFLAGS=$ac_save_CXXFLAGS | |
12274 | elif test $ac_cv_prog_cxx_g = yes; then | |
12275 | if test "$GXX" = yes; then | |
12276 | CXXFLAGS="-g -O2" | |
12277 | else | |
12278 | CXXFLAGS="-g" | |
12279 | fi | |
12280 | else | |
12281 | if test "$GXX" = yes; then | |
12282 | CXXFLAGS="-O2" | |
12283 | else | |
12284 | CXXFLAGS= | |
12285 | fi | |
12286 | fi | |
12287 | for ac_declaration in \ | |
ac1cb8d3 | 12288 | '' \ |
a848cd7e SC |
12289 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
12290 | 'extern "C" void std::exit (int); using std::exit;' \ | |
12291 | 'extern "C" void exit (int) throw ();' \ | |
12292 | 'extern "C" void exit (int);' \ | |
12293 | 'void exit (int);' | |
12294 | do | |
12295 | cat >conftest.$ac_ext <<_ACEOF | |
12296 | /* confdefs.h. */ | |
12297 | _ACEOF | |
12298 | cat confdefs.h >>conftest.$ac_ext | |
12299 | cat >>conftest.$ac_ext <<_ACEOF | |
12300 | /* end confdefs.h. */ | |
de59c161 | 12301 | $ac_declaration |
ac1cb8d3 | 12302 | #include <stdlib.h> |
a848cd7e SC |
12303 | int |
12304 | main () | |
12305 | { | |
12306 | exit (42); | |
12307 | ; | |
12308 | return 0; | |
12309 | } | |
12310 | _ACEOF | |
12311 | rm -f conftest.$ac_objext | |
12312 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12313 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12314 | ac_status=$? |
ac1cb8d3 VS |
12315 | grep -v '^ *+' conftest.er1 >conftest.err |
12316 | rm -f conftest.er1 | |
12317 | cat conftest.err >&5 | |
a848cd7e SC |
12318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12319 | (exit $ac_status); } && | |
89be85c2 VS |
12320 | { ac_try='test -z "$ac_cxx_werror_flag" |
12321 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12323 | (eval $ac_try) 2>&5 | |
12324 | ac_status=$? | |
12325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12326 | (exit $ac_status); }; } && | |
12327 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12329 | (eval $ac_try) 2>&5 | |
12330 | ac_status=$? | |
12331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12332 | (exit $ac_status); }; }; then | |
12333 | : | |
12334 | else | |
12335 | echo "$as_me: failed program was:" >&5 | |
12336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12337 | ||
12338 | continue | |
12339 | fi | |
ac1cb8d3 | 12340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12341 | cat >conftest.$ac_ext <<_ACEOF |
12342 | /* confdefs.h. */ | |
12343 | _ACEOF | |
12344 | cat confdefs.h >>conftest.$ac_ext | |
12345 | cat >>conftest.$ac_ext <<_ACEOF | |
12346 | /* end confdefs.h. */ | |
12347 | $ac_declaration | |
12348 | int | |
12349 | main () | |
12350 | { | |
12351 | exit (42); | |
12352 | ; | |
12353 | return 0; | |
12354 | } | |
12355 | _ACEOF | |
12356 | rm -f conftest.$ac_objext | |
12357 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12358 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12359 | ac_status=$? |
ac1cb8d3 VS |
12360 | grep -v '^ *+' conftest.er1 >conftest.err |
12361 | rm -f conftest.er1 | |
12362 | cat conftest.err >&5 | |
a848cd7e SC |
12363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12364 | (exit $ac_status); } && | |
89be85c2 VS |
12365 | { ac_try='test -z "$ac_cxx_werror_flag" |
12366 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12368 | (eval $ac_try) 2>&5 | |
12369 | ac_status=$? | |
12370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12371 | (exit $ac_status); }; } && | |
12372 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12374 | (eval $ac_try) 2>&5 | |
12375 | ac_status=$? | |
12376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12377 | (exit $ac_status); }; }; then | |
12378 | break | |
12379 | else | |
12380 | echo "$as_me: failed program was:" >&5 | |
12381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12382 | ||
12383 | fi | |
ac1cb8d3 | 12384 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12385 | done |
12386 | rm -f conftest* | |
12387 | if test -n "$ac_declaration"; then | |
12388 | echo '#ifdef __cplusplus' >>confdefs.h | |
12389 | echo $ac_declaration >>confdefs.h | |
12390 | echo '#endif' >>confdefs.h | |
12391 | fi | |
12392 | ||
12393 | ac_ext=cc | |
12394 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12395 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12396 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12397 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12398 | ||
480ccd21 DE |
12399 | echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5 |
12400 | echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6 | |
12401 | if test "${wx_cv_cxx_exto+set}" = set; then | |
12402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12403 | else | |
12404 | cat >conftest.$ac_ext <<_ACEOF | |
12405 | /* confdefs.h. */ | |
12406 | _ACEOF | |
12407 | cat confdefs.h >>conftest.$ac_ext | |
12408 | cat >>conftest.$ac_ext <<_ACEOF | |
12409 | /* end confdefs.h. */ | |
12410 | ||
12411 | int | |
12412 | main () | |
12413 | { | |
12414 | ||
12415 | ; | |
12416 | return 0; | |
12417 | } | |
12418 | _ACEOF | |
12419 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
12420 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12421 | (eval $ac_compile) 2>&5 | |
12422 | ac_status=$? | |
12423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12424 | (exit $ac_status); }; then | |
12425 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
12426 | case $ac_file in | |
12427 | conftest.$ac_ext.o) | |
12428 | wx_cv_cxx_exto="-ext o" | |
12429 | ;; | |
12430 | *) | |
12431 | ;; | |
12432 | esac | |
12433 | done | |
12434 | else | |
12435 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
12436 | See \`config.log' for more details." >&5 | |
12437 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
12438 | See \`config.log' for more details." >&2;} | |
12439 | { (exit 1); exit 1; }; } | |
12440 | ||
12441 | fi | |
12442 | ||
12443 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
12444 | ||
12445 | fi | |
12446 | echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5 | |
12447 | echo "${ECHO_T}$wx_cv_cxx_exto" >&6 | |
12448 | if test "x$wx_cv_cxx_exto" '!=' "x"; then | |
12449 | if test "cxx" = "c"; then | |
12450 | CFLAGS="$wx_cv_cxx_exto $CFLAGS" | |
12451 | fi | |
12452 | if test "cxx" = "cxx"; then | |
12453 | CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS" | |
12454 | fi | |
12455 | fi | |
12456 | ||
12457 | if test "x$wx_cv_cxx_exto" '!=' "x"; then | |
12458 | unset ac_cv_prog_cxx_g | |
12459 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
12460 | ac_save_CXXFLAGS=$CXXFLAGS | |
12461 | CXXFLAGS="-g" | |
12462 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
12463 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
12464 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
12465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12466 | else | |
12467 | cat >conftest.$ac_ext <<_ACEOF | |
12468 | /* confdefs.h. */ | |
12469 | _ACEOF | |
12470 | cat confdefs.h >>conftest.$ac_ext | |
12471 | cat >>conftest.$ac_ext <<_ACEOF | |
12472 | /* end confdefs.h. */ | |
12473 | ||
12474 | int | |
12475 | main () | |
12476 | { | |
12477 | ||
12478 | ; | |
12479 | return 0; | |
12480 | } | |
12481 | _ACEOF | |
12482 | rm -f conftest.$ac_objext | |
12483 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12484 | (eval $ac_compile) 2>conftest.er1 | |
12485 | ac_status=$? | |
12486 | grep -v '^ *+' conftest.er1 >conftest.err | |
12487 | rm -f conftest.er1 | |
12488 | cat conftest.err >&5 | |
12489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12490 | (exit $ac_status); } && | |
12491 | { ac_try='test -z "$ac_cxx_werror_flag" | |
12492 | || test ! -s conftest.err' | |
12493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12494 | (eval $ac_try) 2>&5 | |
12495 | ac_status=$? | |
12496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12497 | (exit $ac_status); }; } && | |
12498 | { ac_try='test -s conftest.$ac_objext' | |
12499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12500 | (eval $ac_try) 2>&5 | |
12501 | ac_status=$? | |
12502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12503 | (exit $ac_status); }; }; then | |
12504 | ac_cv_prog_cxx_g=yes | |
12505 | else | |
12506 | echo "$as_me: failed program was:" >&5 | |
12507 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12508 | ||
12509 | ac_cv_prog_cxx_g=no | |
12510 | fi | |
12511 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12512 | fi | |
12513 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
12514 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
12515 | if test "$ac_test_CXXFLAGS" = set; then | |
12516 | CXXFLAGS=$ac_save_CXXFLAGS | |
12517 | elif test $ac_cv_prog_cxx_g = yes; then | |
12518 | if test "$GXX" = yes; then | |
12519 | CXXFLAGS="-g -O2" | |
12520 | else | |
12521 | CXXFLAGS="-g" | |
12522 | fi | |
12523 | else | |
12524 | if test "$GXX" = yes; then | |
12525 | CXXFLAGS="-O2" | |
12526 | else | |
12527 | CXXFLAGS= | |
12528 | fi | |
12529 | fi | |
12530 | fi | |
a848cd7e | 12531 | |
95986553 DE |
12532 | ac_ext=cc |
12533 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12534 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12535 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12536 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12537 | ||
12538 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5 | |
12539 | echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6 | |
12540 | if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then | |
12541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12542 | else | |
12543 | cat >conftest.$ac_ext <<_ACEOF | |
12544 | /* confdefs.h. */ | |
12545 | _ACEOF | |
12546 | cat confdefs.h >>conftest.$ac_ext | |
12547 | cat >>conftest.$ac_ext <<_ACEOF | |
12548 | /* end confdefs.h. */ | |
12549 | ||
12550 | int | |
12551 | main () | |
12552 | { | |
12553 | #ifndef __MWERKS__ | |
12554 | choke me | |
12555 | #endif | |
12556 | ||
12557 | ; | |
12558 | return 0; | |
12559 | } | |
12560 | _ACEOF | |
12561 | rm -f conftest.$ac_objext | |
12562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12563 | (eval $ac_compile) 2>conftest.er1 | |
12564 | ac_status=$? | |
12565 | grep -v '^ *+' conftest.er1 >conftest.err | |
12566 | rm -f conftest.er1 | |
12567 | cat conftest.err >&5 | |
12568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12569 | (exit $ac_status); } && | |
89be85c2 VS |
12570 | { ac_try='test -z "$ac_cxx_werror_flag" |
12571 | || test ! -s conftest.err' | |
95986553 DE |
12572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12573 | (eval $ac_try) 2>&5 | |
12574 | ac_status=$? | |
12575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12576 | (exit $ac_status); }; } && | |
12577 | { ac_try='test -s conftest.$ac_objext' | |
12578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12579 | (eval $ac_try) 2>&5 | |
12580 | ac_status=$? | |
12581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12582 | (exit $ac_status); }; }; then | |
12583 | bakefile_compiler_mwerks=yes | |
12584 | else | |
12585 | echo "$as_me: failed program was:" >&5 | |
12586 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12587 | ||
12588 | bakefile_compiler_mwerks=no | |
12589 | fi | |
12590 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12591 | bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks | |
12592 | ||
12593 | fi | |
12594 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5 | |
12595 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6 | |
12596 | ||
12597 | MWCXX=`test $bakefile_compiler_mwerks = yes && echo yes` | |
12598 | ac_ext=cc | |
12599 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12600 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12601 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12602 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12603 | ||
12604 | ||
9273ffba DE |
12605 | ac_ext=cc |
12606 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12607 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12608 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12609 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12610 | ||
12611 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
12612 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
12613 | if test "${wx_cv_cxx_compiler_xlc+set}" = set; then | |
12614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12615 | else | |
12616 | cat >conftest.$ac_ext <<_ACEOF | |
12617 | /* confdefs.h. */ | |
12618 | _ACEOF | |
12619 | cat confdefs.h >>conftest.$ac_ext | |
12620 | cat >>conftest.$ac_ext <<_ACEOF | |
12621 | /* end confdefs.h. */ | |
12622 | ||
12623 | int | |
12624 | main () | |
12625 | { | |
12626 | #ifndef __xlC__ | |
12627 | choke me | |
12628 | #endif | |
12629 | ||
12630 | ; | |
12631 | return 0; | |
12632 | } | |
12633 | _ACEOF | |
12634 | rm -f conftest.$ac_objext | |
12635 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12636 | (eval $ac_compile) 2>conftest.er1 | |
12637 | ac_status=$? | |
12638 | grep -v '^ *+' conftest.er1 >conftest.err | |
12639 | rm -f conftest.er1 | |
12640 | cat conftest.err >&5 | |
12641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12642 | (exit $ac_status); } && | |
12643 | { ac_try='test -z "$ac_cxx_werror_flag" | |
12644 | || test ! -s conftest.err' | |
12645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12646 | (eval $ac_try) 2>&5 | |
12647 | ac_status=$? | |
12648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12649 | (exit $ac_status); }; } && | |
12650 | { ac_try='test -s conftest.$ac_objext' | |
12651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12652 | (eval $ac_try) 2>&5 | |
12653 | ac_status=$? | |
12654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12655 | (exit $ac_status); }; }; then | |
12656 | wx_compiler_xlc=yes | |
12657 | else | |
12658 | echo "$as_me: failed program was:" >&5 | |
12659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12660 | ||
12661 | wx_compiler_xlc=no | |
12662 | fi | |
12663 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12664 | wx_cv_cxx_compiler_xlc=$wx_compiler_xlc | |
12665 | ||
12666 | fi | |
12667 | echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5 | |
12668 | echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6 | |
12669 | ||
12670 | XLCXX=`test $wx_compiler_xlc = yes && echo yes` | |
12671 | ac_ext=cc | |
12672 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12673 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12674 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12675 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12676 | ||
12677 | ||
95986553 | 12678 | |
a848cd7e SC |
12679 | ac_ext=c |
12680 | ac_cpp='$CPP $CPPFLAGS' | |
12681 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12682 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12683 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12684 | ||
12685 | ||
a848cd7e SC |
12686 | if test -n "$ac_tool_prefix"; then |
12687 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
12688 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
12689 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12690 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12691 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
12692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12693 | else | |
12694 | if test -n "$RANLIB"; then | |
12695 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
12696 | else | |
12697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12698 | for as_dir in $PATH | |
12699 | do | |
12700 | IFS=$as_save_IFS | |
12701 | test -z "$as_dir" && as_dir=. | |
12702 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12703 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12704 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
12705 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12706 | break 2 | |
12707 | fi | |
12708 | done | |
12709 | done | |
12710 | ||
12711 | fi | |
12712 | fi | |
12713 | RANLIB=$ac_cv_prog_RANLIB | |
12714 | if test -n "$RANLIB"; then | |
12715 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
12716 | echo "${ECHO_T}$RANLIB" >&6 | |
12717 | else | |
12718 | echo "$as_me:$LINENO: result: no" >&5 | |
12719 | echo "${ECHO_T}no" >&6 | |
12720 | fi | |
12721 | ||
12722 | fi | |
12723 | if test -z "$ac_cv_prog_RANLIB"; then | |
12724 | ac_ct_RANLIB=$RANLIB | |
12725 | # Extract the first word of "ranlib", so it can be a program name with args. | |
12726 | set dummy ranlib; ac_word=$2 | |
12727 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12728 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12729 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
12730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12731 | else | |
12732 | if test -n "$ac_ct_RANLIB"; then | |
12733 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
12734 | else | |
12735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12736 | for as_dir in $PATH | |
12737 | do | |
12738 | IFS=$as_save_IFS | |
12739 | test -z "$as_dir" && as_dir=. | |
12740 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12741 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12742 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
12743 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12744 | break 2 | |
12745 | fi | |
12746 | done | |
12747 | done | |
12748 | ||
12749 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
12750 | fi | |
12751 | fi | |
12752 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
12753 | if test -n "$ac_ct_RANLIB"; then | |
12754 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
12755 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
12756 | else | |
12757 | echo "$as_me:$LINENO: result: no" >&5 | |
12758 | echo "${ECHO_T}no" >&6 | |
12759 | fi | |
12760 | ||
12761 | RANLIB=$ac_ct_RANLIB | |
12762 | else | |
12763 | RANLIB="$ac_cv_prog_RANLIB" | |
12764 | fi | |
12765 | ||
12766 | ||
12767 | # Extract the first word of "ar", so it can be a program name with args. | |
12768 | set dummy ar; ac_word=$2 | |
12769 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12770 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12771 | if test "${ac_cv_prog_AR+set}" = set; then | |
12772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12773 | else | |
12774 | if test -n "$AR"; then | |
12775 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
12776 | else | |
12777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12778 | for as_dir in $PATH | |
12779 | do | |
12780 | IFS=$as_save_IFS | |
12781 | test -z "$as_dir" && as_dir=. | |
12782 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12783 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12784 | ac_cv_prog_AR="ar" | |
12785 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12786 | break 2 | |
12787 | fi | |
12788 | done | |
12789 | done | |
12790 | ||
12791 | fi | |
12792 | fi | |
12793 | AR=$ac_cv_prog_AR | |
12794 | if test -n "$AR"; then | |
12795 | echo "$as_me:$LINENO: result: $AR" >&5 | |
12796 | echo "${ECHO_T}$AR" >&6 | |
12797 | else | |
12798 | echo "$as_me:$LINENO: result: no" >&5 | |
12799 | echo "${ECHO_T}no" >&6 | |
12800 | fi | |
12801 | ||
12802 | if test "x$AR" = "x" ; then | |
77ffb593 JS |
12803 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
12804 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
12805 | { (exit 1); exit 1; }; } |
12806 | fi | |
12807 | ||
12808 | # Find a good install program. We prefer a C program (faster), | |
12809 | # so one script is as good as another. But avoid the broken or | |
12810 | # incompatible versions: | |
12811 | # SysV /etc/install, /usr/sbin/install | |
12812 | # SunOS /usr/etc/install | |
12813 | # IRIX /sbin/install | |
12814 | # AIX /bin/install | |
12815 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
12816 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
12817 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
12818 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 12819 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
12820 | # ./install, which can be erroneously created by make from ./install.sh. |
12821 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
12822 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
12823 | if test -z "$INSTALL"; then | |
12824 | if test "${ac_cv_path_install+set}" = set; then | |
12825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12826 | else | |
12827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12828 | for as_dir in $PATH | |
12829 | do | |
12830 | IFS=$as_save_IFS | |
12831 | test -z "$as_dir" && as_dir=. | |
12832 | # Account for people who put trailing slashes in PATH elements. | |
12833 | case $as_dir/ in | |
12834 | ./ | .// | /cC/* | \ | |
12835 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 12836 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
12837 | /usr/ucb/* ) ;; |
12838 | *) | |
12839 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
12840 | # Don't use installbsd from OSF since it installs stuff as root | |
12841 | # by default. | |
12842 | for ac_prog in ginstall scoinst install; do | |
12843 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
12844 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
12845 | if test $ac_prog = install && | |
12846 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
12847 | # AIX install. It has an incompatible calling convention. | |
12848 | : | |
12849 | elif test $ac_prog = install && | |
12850 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
12851 | # program-specific install script used by HP pwplus--don't use. | |
12852 | : | |
12853 | else | |
12854 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
12855 | break 3 | |
12856 | fi | |
12857 | fi | |
a848cd7e SC |
12858 | done |
12859 | done | |
12860 | ;; | |
12861 | esac | |
12862 | done | |
12863 | ||
12864 | ||
12865 | fi | |
12866 | if test "${ac_cv_path_install+set}" = set; then | |
12867 | INSTALL=$ac_cv_path_install | |
12868 | else | |
12869 | # As a last resort, use the slow shell script. We don't cache a | |
12870 | # path for INSTALL within a source directory, because that will | |
12871 | # break other packages using the cache if that directory is | |
12872 | # removed, or if the path is relative. | |
12873 | INSTALL=$ac_install_sh | |
12874 | fi | |
12875 | fi | |
12876 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
12877 | echo "${ECHO_T}$INSTALL" >&6 | |
12878 | ||
12879 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
12880 | # It thinks the first close brace ends the variable substitution. | |
12881 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
12882 | ||
12883 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
12884 | ||
12885 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
12886 | ||
12887 | ||
12888 | case ${INSTALL} in | |
12889 | /* ) # Absolute | |
12890 | ;; | |
12891 | ?:* ) # Drive letter, considered as absolute. | |
12892 | ;; | |
12893 | *) | |
12894 | INSTALL=`pwd`/${INSTALL} ;; | |
12895 | esac | |
12896 | ||
a848cd7e SC |
12897 | |
12898 | case "${host}" in | |
12899 | ||
12900 | powerpc-*-darwin* ) | |
12901 | INSTALL_PROGRAM="cp -fp" | |
12902 | INSTALL_DATA="cp -fp" | |
12903 | ;; | |
12904 | *) | |
12905 | ;; | |
12906 | esac | |
12907 | ||
12908 | # Extract the first word of "strip", so it can be a program name with args. | |
12909 | set dummy strip; ac_word=$2 | |
12910 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12911 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12912 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
12913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12914 | else | |
12915 | if test -n "$STRIP"; then | |
12916 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12917 | else | |
12918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12919 | for as_dir in $PATH | |
12920 | do | |
12921 | IFS=$as_save_IFS | |
12922 | test -z "$as_dir" && as_dir=. | |
12923 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12924 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12925 | ac_cv_prog_STRIP="strip" | |
12926 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12927 | break 2 | |
12928 | fi | |
12929 | done | |
12930 | done | |
12931 | ||
12932 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
12933 | fi | |
12934 | fi | |
12935 | STRIP=$ac_cv_prog_STRIP | |
12936 | if test -n "$STRIP"; then | |
12937 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
12938 | echo "${ECHO_T}$STRIP" >&6 | |
12939 | else | |
12940 | echo "$as_me:$LINENO: result: no" >&5 | |
12941 | echo "${ECHO_T}no" >&6 | |
12942 | fi | |
12943 | ||
12944 | ||
12945 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
12946 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
12947 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
12948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12949 | else | |
12950 | ||
12951 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
12952 | egrep -s GNU > /dev/null); then | |
12953 | wx_cv_prog_makeisgnu="yes" | |
12954 | else | |
12955 | wx_cv_prog_makeisgnu="no" | |
12956 | fi | |
12957 | ||
12958 | fi | |
12959 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
12960 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
12961 | ||
12962 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
12963 | IF_GNU_MAKE="" | |
12964 | else | |
12965 | IF_GNU_MAKE="#" | |
12966 | fi | |
12967 | ||
12968 | ||
12969 | ||
12970 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
12971 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
12972 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
12973 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
12974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12975 | else | |
12976 | ||
12977 | cat - << EOF > confMake | |
12978 | check : file | |
12979 | cp \$? \$@ | |
12980 | cp \$? final_file | |
12981 | EOF | |
12982 | ||
12983 | if test ! -d sub ; then | |
12984 | mkdir sub | |
12985 | fi | |
12986 | echo dummy > sub/file | |
12987 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
12988 | RESULT=$? | |
12989 | rm -f sub/file check final_file confMake | |
12990 | rmdir sub | |
12991 | if test "$RESULT" = 0; then | |
12992 | wx_cv_prog_makevpath="yes" | |
12993 | else | |
12994 | wx_cv_prog_makevpath="no" | |
12995 | fi | |
12996 | ||
12997 | fi | |
12998 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
12999 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
13000 | ||
13001 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
13002 | { { echo "$as_me:$LINENO: error: | |
13003 | You need a make-utility that is able to use the variable | |
13004 | VPATH correctly. | |
13005 | If your version of make does not support VPATH correctly, | |
13006 | please install GNU-make (possibly as gmake), and start | |
13007 | configure with the following command: | |
13008 | export MAKE=gmake; ./configure for sh-type shells | |
13009 | setenv MAKE gmake; ./configure for csh-type shells | |
13010 | Also please do remember to use gmake in this case every time | |
13011 | you are trying to compile. | |
13012 | " >&5 | |
13013 | echo "$as_me: error: | |
13014 | You need a make-utility that is able to use the variable | |
13015 | VPATH correctly. | |
13016 | If your version of make does not support VPATH correctly, | |
13017 | please install GNU-make (possibly as gmake), and start | |
13018 | configure with the following command: | |
13019 | export MAKE=gmake; ./configure for sh-type shells | |
13020 | setenv MAKE gmake; ./configure for csh-type shells | |
13021 | Also please do remember to use gmake in this case every time | |
13022 | you are trying to compile. | |
13023 | " >&2;} | |
13024 | { (exit 1); exit 1; }; } | |
13025 | fi fi | |
13026 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
13027 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
13028 | LN_S=$as_ln_s | |
13029 | if test "$LN_S" = "ln -s"; then | |
13030 | echo "$as_me:$LINENO: result: yes" >&5 | |
13031 | echo "${ECHO_T}yes" >&6 | |
13032 | else | |
13033 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
13034 | echo "${ECHO_T}no, using $LN_S" >&6 | |
13035 | fi | |
13036 | ||
13037 | ||
13038 | ||
9273ffba DE |
13039 | if test "x$XLCXX" = "xyes"; then |
13040 | CXXFLAGS="$CXXFLAGS -qunique" | |
13041 | fi | |
13042 | ||
13043 | ||
4d7ec9f1 DE |
13044 | case "${host}" in |
13045 | powerpc-*-darwin* ) | |
13046 | echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5 | |
13047 | echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6 | |
13048 | cat >conftest.$ac_ext <<_ACEOF | |
13049 | /* confdefs.h. */ | |
13050 | _ACEOF | |
13051 | cat confdefs.h >>conftest.$ac_ext | |
13052 | cat >>conftest.$ac_ext <<_ACEOF | |
13053 | /* end confdefs.h. */ | |
13054 | ||
13055 | int | |
13056 | main () | |
13057 | { | |
13058 | #ifndef __POWERPC__ | |
13059 | choke me for lack of PowerPC | |
13060 | #endif | |
13061 | ||
13062 | ; | |
13063 | return 0; | |
13064 | } | |
13065 | _ACEOF | |
13066 | rm -f conftest.$ac_objext | |
13067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13068 | (eval $ac_compile) 2>conftest.er1 | |
13069 | ac_status=$? | |
13070 | grep -v '^ *+' conftest.er1 >conftest.err | |
13071 | rm -f conftest.er1 | |
13072 | cat conftest.err >&5 | |
13073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13074 | (exit $ac_status); } && | |
13075 | { ac_try='test -z "$ac_c_werror_flag" | |
13076 | || test ! -s conftest.err' | |
13077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13078 | (eval $ac_try) 2>&5 | |
13079 | ac_status=$? | |
13080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13081 | (exit $ac_status); }; } && | |
13082 | { ac_try='test -s conftest.$ac_objext' | |
13083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13084 | (eval $ac_try) 2>&5 | |
13085 | ac_status=$? | |
13086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13087 | (exit $ac_status); }; }; then | |
13088 | echo "$as_me:$LINENO: result: yes" >&5 | |
13089 | echo "${ECHO_T}yes" >&6 | |
13090 | else | |
13091 | echo "$as_me: failed program was:" >&5 | |
13092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13093 | ||
13094 | echo "$as_me:$LINENO: result: no" >&5 | |
13095 | echo "${ECHO_T}no" >&6 | |
13096 | cat >>confdefs.h <<\_ACEOF | |
13097 | #define __POWERPC__ 1 | |
13098 | _ACEOF | |
13099 | ||
13100 | ||
13101 | fi | |
13102 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13103 | echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5 | |
13104 | echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6 | |
13105 | cat >conftest.$ac_ext <<_ACEOF | |
13106 | /* confdefs.h. */ | |
13107 | _ACEOF | |
13108 | cat confdefs.h >>conftest.$ac_ext | |
13109 | cat >>conftest.$ac_ext <<_ACEOF | |
13110 | /* end confdefs.h. */ | |
13111 | #include <CoreFoundation/CFBase.h> | |
13112 | ||
13113 | int | |
13114 | main () | |
13115 | { | |
13116 | ||
13117 | ; | |
13118 | return 0; | |
13119 | } | |
13120 | _ACEOF | |
13121 | rm -f conftest.$ac_objext | |
13122 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13123 | (eval $ac_compile) 2>conftest.er1 | |
13124 | ac_status=$? | |
13125 | grep -v '^ *+' conftest.er1 >conftest.err | |
13126 | rm -f conftest.er1 | |
13127 | cat conftest.err >&5 | |
13128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13129 | (exit $ac_status); } && | |
13130 | { ac_try='test -z "$ac_c_werror_flag" | |
13131 | || test ! -s conftest.err' | |
13132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13133 | (eval $ac_try) 2>&5 | |
13134 | ac_status=$? | |
13135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13136 | (exit $ac_status); }; } && | |
13137 | { ac_try='test -s conftest.$ac_objext' | |
13138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13139 | (eval $ac_try) 2>&5 | |
13140 | ac_status=$? | |
13141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13142 | (exit $ac_status); }; }; then | |
13143 | echo "$as_me:$LINENO: result: yes" >&5 | |
13144 | echo "${ECHO_T}yes" >&6 | |
13145 | else | |
13146 | echo "$as_me: failed program was:" >&5 | |
13147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13148 | ||
13149 | echo "$as_me:$LINENO: result: no" >&5 | |
13150 | echo "${ECHO_T}no" >&6 | |
13151 | echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5 | |
13152 | echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6 | |
13153 | cat >conftest.$ac_ext <<_ACEOF | |
13154 | /* confdefs.h. */ | |
13155 | _ACEOF | |
13156 | cat confdefs.h >>conftest.$ac_ext | |
13157 | cat >>conftest.$ac_ext <<_ACEOF | |
13158 | /* end confdefs.h. */ | |
13159 | #define __CF_USE_FRAMEWORK_INCLUDES__ | |
13160 | #include <CoreFoundation/CFBase.h> | |
13161 | ||
13162 | int | |
13163 | main () | |
13164 | { | |
13165 | ||
13166 | ; | |
13167 | return 0; | |
13168 | } | |
13169 | _ACEOF | |
13170 | rm -f conftest.$ac_objext | |
13171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13172 | (eval $ac_compile) 2>conftest.er1 | |
13173 | ac_status=$? | |
13174 | grep -v '^ *+' conftest.er1 >conftest.err | |
13175 | rm -f conftest.er1 | |
13176 | cat conftest.err >&5 | |
13177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13178 | (exit $ac_status); } && | |
13179 | { ac_try='test -z "$ac_c_werror_flag" | |
13180 | || test ! -s conftest.err' | |
13181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13182 | (eval $ac_try) 2>&5 | |
13183 | ac_status=$? | |
13184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13185 | (exit $ac_status); }; } && | |
13186 | { ac_try='test -s conftest.$ac_objext' | |
13187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13188 | (eval $ac_try) 2>&5 | |
13189 | ac_status=$? | |
13190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13191 | (exit $ac_status); }; }; then | |
13192 | echo "$as_me:$LINENO: result: yes" >&5 | |
13193 | echo "${ECHO_T}yes" >&6 | |
13194 | CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__" | |
13195 | else | |
13196 | echo "$as_me: failed program was:" >&5 | |
13197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13198 | ||
13199 | { { echo "$as_me:$LINENO: error: no. CoreFoundation not available. | |
13200 | See \`config.log' for more details." >&5 | |
13201 | echo "$as_me: error: no. CoreFoundation not available. | |
13202 | See \`config.log' for more details." >&2;} | |
13203 | { (exit 1); exit 1; }; } | |
13204 | ||
13205 | fi | |
13206 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13207 | ||
13208 | ||
13209 | fi | |
13210 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13211 | ;; | |
13212 | esac | |
13213 | ||
a848cd7e SC |
13214 | case "${host}" in |
13215 | *-pc-os2_emx | *-pc-os2-emx ) | |
13216 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
13217 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
13218 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
13219 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
13220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13221 | else | |
13222 | ac_check_lib_save_LIBS=$LIBS | |
13223 | LIBS="-lcExt $LIBS" | |
13224 | cat >conftest.$ac_ext <<_ACEOF | |
13225 | /* confdefs.h. */ | |
13226 | _ACEOF | |
13227 | cat confdefs.h >>conftest.$ac_ext | |
13228 | cat >>conftest.$ac_ext <<_ACEOF | |
13229 | /* end confdefs.h. */ | |
13230 | ||
13231 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13232 | #ifdef __cplusplus | |
13233 | extern "C" | |
13234 | #endif | |
13235 | /* We use char because int might match the return type of a gcc2 | |
13236 | builtin and then its argument prototype would still apply. */ | |
13237 | char drand48 (); | |
13238 | int | |
13239 | main () | |
13240 | { | |
13241 | drand48 (); | |
13242 | ; | |
13243 | return 0; | |
13244 | } | |
13245 | _ACEOF | |
13246 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13247 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13248 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13249 | ac_status=$? |
ac1cb8d3 VS |
13250 | grep -v '^ *+' conftest.er1 >conftest.err |
13251 | rm -f conftest.er1 | |
13252 | cat conftest.err >&5 | |
a848cd7e SC |
13253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13254 | (exit $ac_status); } && | |
89be85c2 VS |
13255 | { ac_try='test -z "$ac_c_werror_flag" |
13256 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13258 | (eval $ac_try) 2>&5 | |
13259 | ac_status=$? | |
13260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13261 | (exit $ac_status); }; } && | |
13262 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13264 | (eval $ac_try) 2>&5 | |
13265 | ac_status=$? | |
13266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13267 | (exit $ac_status); }; }; then | |
13268 | ac_cv_lib_cExt_drand48=yes | |
13269 | else | |
13270 | echo "$as_me: failed program was:" >&5 | |
13271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13272 | ||
13273 | ac_cv_lib_cExt_drand48=no | |
13274 | fi | |
ac1cb8d3 VS |
13275 | rm -f conftest.err conftest.$ac_objext \ |
13276 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13277 | LIBS=$ac_check_lib_save_LIBS |
13278 | fi | |
13279 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
13280 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
13281 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
13282 | LIBS="$LIBS -lcExt" | |
13283 | fi | |
13284 | ||
13285 | else | |
13286 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
13287 | fi | |
391a765e | 13288 | echo "$as_me:$LINENO: checking for gcc version" >&5 |
a848cd7e SC |
13289 | echo $ECHO_N "checking for gcc version... $ECHO_C" >&6 |
13290 | if test "${wx_cv_gccversion+set}" = set; then | |
13291 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13292 | else | |
13293 | ||
391a765e VS |
13294 | if test "$cross_compiling" = yes; then |
13295 | wx_cv_gccversion="EMX2" | |
13296 | ||
13297 | else | |
13298 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
13299 | /* confdefs.h. */ |
13300 | _ACEOF | |
13301 | cat confdefs.h >>conftest.$ac_ext | |
13302 | cat >>conftest.$ac_ext <<_ACEOF | |
13303 | /* end confdefs.h. */ | |
13304 | ||
391a765e | 13305 | #include <stdio.h> |
a848cd7e | 13306 | |
391a765e VS |
13307 | int main() |
13308 | { | |
13309 | FILE *f=fopen("conftestval", "w"); | |
13310 | if (!f) exit(1); | |
13311 | fprintf(f, | |
a848cd7e | 13312 | #if (__GNUC__ < 3) |
391a765e VS |
13313 | "EMX2" |
13314 | #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
13315 | "EMX3" | |
13316 | #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2) | |
13317 | "Innotek5" | |
13318 | #else | |
13319 | "Innotek6" | |
a848cd7e | 13320 | #endif |
391a765e VS |
13321 | ); |
13322 | exit(0); | |
13323 | } | |
a848cd7e | 13324 | |
a848cd7e | 13325 | _ACEOF |
391a765e VS |
13326 | rm -f conftest$ac_exeext |
13327 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13328 | (eval $ac_link) 2>&5 | |
ac1cb8d3 VS |
13329 | ac_status=$? |
13330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
391a765e | 13331 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a848cd7e SC |
13332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13333 | (eval $ac_try) 2>&5 | |
13334 | ac_status=$? | |
13335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13336 | (exit $ac_status); }; }; then | |
391a765e | 13337 | wx_cv_gccversion=`cat conftestval` |
a848cd7e | 13338 | else |
391a765e VS |
13339 | echo "$as_me: program exited with status $ac_status" >&5 |
13340 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
13341 | sed 's/^/| /' conftest.$ac_ext >&5 |
13342 | ||
391a765e VS |
13343 | ( exit $ac_status ) |
13344 | wx_cv_gccversion="EMX2" | |
a848cd7e | 13345 | fi |
391a765e | 13346 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 13347 | fi |
a848cd7e SC |
13348 | |
13349 | fi | |
13350 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
13351 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
391a765e | 13352 | if test "$wx_cv_gccversion" = "EMX2"; then |
a848cd7e SC |
13353 | LIBS="$LIBS -lstdcpp" |
13354 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
13355 | else | |
391a765e | 13356 | if test "$wx_cv_gccversion" = "EMX3"; then |
a848cd7e SC |
13357 | LIBS="$LIBS -lstdcxx" |
13358 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
13359 | else | |
13360 | LIBS="$LIBS -lstdc++" | |
13361 | fi | |
13362 | fi | |
94acd38e DE |
13363 | if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then |
13364 | { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5 | |
13365 | echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;} | |
13366 | wxUSE_OMF=yes | |
13367 | fi | |
a848cd7e | 13368 | if test "$wxUSE_OMF" = "yes"; then |
de59c161 | 13369 | LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK" |
a848cd7e SC |
13370 | fi |
13371 | ;; | |
13372 | *) | |
13373 | ||
13374 | ||
13375 | ||
13376 | ac_ext=cc | |
13377 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13378 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13379 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13380 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13381 | ||
13382 | ||
95986553 | 13383 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 |
a848cd7e SC |
13384 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 |
13385 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
13386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13387 | else | |
13388 | ||
13389 | cat >conftest.$ac_ext <<_ACEOF | |
13390 | /* confdefs.h. */ | |
13391 | _ACEOF | |
13392 | cat confdefs.h >>conftest.$ac_ext | |
13393 | cat >>conftest.$ac_ext <<_ACEOF | |
13394 | /* end confdefs.h. */ | |
13395 | ||
13396 | #include <string.h> | |
13397 | ||
13398 | int | |
13399 | main () | |
13400 | { | |
13401 | ||
13402 | strcasecmp("foo", "bar"); | |
13403 | ||
13404 | ; | |
13405 | return 0; | |
13406 | } | |
13407 | _ACEOF | |
13408 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13409 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13410 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13411 | ac_status=$? |
ac1cb8d3 VS |
13412 | grep -v '^ *+' conftest.er1 >conftest.err |
13413 | rm -f conftest.er1 | |
13414 | cat conftest.err >&5 | |
a848cd7e SC |
13415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13416 | (exit $ac_status); } && | |
89be85c2 VS |
13417 | { ac_try='test -z "$ac_cxx_werror_flag" |
13418 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13420 | (eval $ac_try) 2>&5 | |
13421 | ac_status=$? | |
13422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13423 | (exit $ac_status); }; } && | |
13424 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13426 | (eval $ac_try) 2>&5 | |
13427 | ac_status=$? | |
13428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13429 | (exit $ac_status); }; }; then | |
13430 | ac_cv_string_strcasecmp=yes | |
13431 | else | |
13432 | echo "$as_me: failed program was:" >&5 | |
13433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13434 | ||
13435 | ac_cv_string_strcasecmp=no | |
13436 | ||
13437 | fi | |
ac1cb8d3 VS |
13438 | rm -f conftest.err conftest.$ac_objext \ |
13439 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13440 | |
13441 | fi | |
13442 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
13443 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
13444 | ||
13445 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
13446 | cat >>confdefs.h <<\_ACEOF | |
13447 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
13448 | _ACEOF | |
13449 | ||
13450 | else | |
13451 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
13452 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
13453 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
13454 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13455 | else | |
13456 | ||
13457 | cat >conftest.$ac_ext <<_ACEOF | |
13458 | /* confdefs.h. */ | |
13459 | _ACEOF | |
13460 | cat confdefs.h >>conftest.$ac_ext | |
13461 | cat >>conftest.$ac_ext <<_ACEOF | |
13462 | /* end confdefs.h. */ | |
13463 | ||
13464 | #include <strings.h> | |
13465 | ||
13466 | int | |
13467 | main () | |
13468 | { | |
13469 | ||
13470 | strcasecmp("foo", "bar"); | |
13471 | ||
13472 | ; | |
13473 | return 0; | |
13474 | } | |
13475 | _ACEOF | |
13476 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13477 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13478 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13479 | ac_status=$? |
ac1cb8d3 VS |
13480 | grep -v '^ *+' conftest.er1 >conftest.err |
13481 | rm -f conftest.er1 | |
13482 | cat conftest.err >&5 | |
a848cd7e SC |
13483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13484 | (exit $ac_status); } && | |
89be85c2 VS |
13485 | { ac_try='test -z "$ac_cxx_werror_flag" |
13486 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13488 | (eval $ac_try) 2>&5 | |
13489 | ac_status=$? | |
13490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13491 | (exit $ac_status); }; } && | |
13492 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13494 | (eval $ac_try) 2>&5 | |
13495 | ac_status=$? | |
13496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13497 | (exit $ac_status); }; }; then | |
13498 | ac_cv_strings_strcasecmp=yes | |
13499 | else | |
13500 | echo "$as_me: failed program was:" >&5 | |
13501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13502 | ||
13503 | ac_cv_strings_strcasecmp=no | |
13504 | ||
13505 | fi | |
ac1cb8d3 VS |
13506 | rm -f conftest.err conftest.$ac_objext \ |
13507 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13508 | |
13509 | fi | |
13510 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
13511 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
13512 | ||
0c3c69fc | 13513 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
13514 | cat >>confdefs.h <<\_ACEOF |
13515 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
13516 | _ACEOF | |
13517 | ||
13518 | else | |
13519 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
13520 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
13521 | { (exit 1); exit 1; }; } | |
13522 | fi | |
13523 | fi | |
13524 | ||
13525 | ac_ext=c | |
13526 | ac_cpp='$CPP $CPPFLAGS' | |
13527 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13528 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13529 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13530 | ||
13531 | ;; | |
13532 | esac | |
13533 | ||
13534 | ||
13535 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
13536 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
13537 | if test "${ac_cv_header_stdc+set}" = set; then | |
13538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13539 | else | |
13540 | cat >conftest.$ac_ext <<_ACEOF | |
13541 | /* confdefs.h. */ | |
13542 | _ACEOF | |
13543 | cat confdefs.h >>conftest.$ac_ext | |
13544 | cat >>conftest.$ac_ext <<_ACEOF | |
13545 | /* end confdefs.h. */ | |
13546 | #include <stdlib.h> | |
13547 | #include <stdarg.h> | |
13548 | #include <string.h> | |
13549 | #include <float.h> | |
13550 | ||
13551 | int | |
13552 | main () | |
13553 | { | |
13554 | ||
13555 | ; | |
13556 | return 0; | |
13557 | } | |
13558 | _ACEOF | |
13559 | rm -f conftest.$ac_objext | |
13560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13561 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13562 | ac_status=$? |
ac1cb8d3 VS |
13563 | grep -v '^ *+' conftest.er1 >conftest.err |
13564 | rm -f conftest.er1 | |
13565 | cat conftest.err >&5 | |
a848cd7e SC |
13566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13567 | (exit $ac_status); } && | |
89be85c2 VS |
13568 | { ac_try='test -z "$ac_c_werror_flag" |
13569 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13571 | (eval $ac_try) 2>&5 | |
13572 | ac_status=$? | |
13573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13574 | (exit $ac_status); }; } && | |
13575 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13577 | (eval $ac_try) 2>&5 | |
13578 | ac_status=$? | |
13579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13580 | (exit $ac_status); }; }; then | |
13581 | ac_cv_header_stdc=yes | |
13582 | else | |
13583 | echo "$as_me: failed program was:" >&5 | |
13584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13585 | ||
13586 | ac_cv_header_stdc=no | |
13587 | fi | |
ac1cb8d3 | 13588 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13589 | |
13590 | if test $ac_cv_header_stdc = yes; then | |
13591 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
13592 | cat >conftest.$ac_ext <<_ACEOF | |
13593 | /* confdefs.h. */ | |
13594 | _ACEOF | |
13595 | cat confdefs.h >>conftest.$ac_ext | |
13596 | cat >>conftest.$ac_ext <<_ACEOF | |
13597 | /* end confdefs.h. */ | |
13598 | #include <string.h> | |
13599 | ||
13600 | _ACEOF | |
13601 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13602 | $EGREP "memchr" >/dev/null 2>&1; then | |
13603 | : | |
13604 | else | |
13605 | ac_cv_header_stdc=no | |
13606 | fi | |
13607 | rm -f conftest* | |
13608 | ||
13609 | fi | |
13610 | ||
13611 | if test $ac_cv_header_stdc = yes; then | |
13612 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
13613 | cat >conftest.$ac_ext <<_ACEOF | |
13614 | /* confdefs.h. */ | |
13615 | _ACEOF | |
13616 | cat confdefs.h >>conftest.$ac_ext | |
13617 | cat >>conftest.$ac_ext <<_ACEOF | |
13618 | /* end confdefs.h. */ | |
13619 | #include <stdlib.h> | |
13620 | ||
13621 | _ACEOF | |
13622 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13623 | $EGREP "free" >/dev/null 2>&1; then | |
13624 | : | |
13625 | else | |
13626 | ac_cv_header_stdc=no | |
13627 | fi | |
13628 | rm -f conftest* | |
13629 | ||
13630 | fi | |
13631 | ||
13632 | if test $ac_cv_header_stdc = yes; then | |
13633 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
13634 | if test "$cross_compiling" = yes; then | |
13635 | : | |
13636 | else | |
13637 | cat >conftest.$ac_ext <<_ACEOF | |
13638 | /* confdefs.h. */ | |
13639 | _ACEOF | |
13640 | cat confdefs.h >>conftest.$ac_ext | |
13641 | cat >>conftest.$ac_ext <<_ACEOF | |
13642 | /* end confdefs.h. */ | |
13643 | #include <ctype.h> | |
13644 | #if ((' ' & 0x0FF) == 0x020) | |
13645 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
13646 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
13647 | #else | |
13648 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
13649 | (('a' <= (c) && (c) <= 'i') \ |
13650 | || ('j' <= (c) && (c) <= 'r') \ | |
13651 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
13652 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
13653 | #endif | |
13654 | ||
13655 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
13656 | int | |
13657 | main () | |
13658 | { | |
13659 | int i; | |
13660 | for (i = 0; i < 256; i++) | |
13661 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 13662 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
13663 | exit(2); |
13664 | exit (0); | |
13665 | } | |
13666 | _ACEOF | |
13667 | rm -f conftest$ac_exeext | |
13668 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13669 | (eval $ac_link) 2>&5 | |
13670 | ac_status=$? | |
13671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13672 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13674 | (eval $ac_try) 2>&5 | |
13675 | ac_status=$? | |
13676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13677 | (exit $ac_status); }; }; then | |
13678 | : | |
13679 | else | |
13680 | echo "$as_me: program exited with status $ac_status" >&5 | |
13681 | echo "$as_me: failed program was:" >&5 | |
13682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13683 | ||
13684 | ( exit $ac_status ) | |
13685 | ac_cv_header_stdc=no | |
13686 | fi | |
ac1cb8d3 | 13687 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13688 | fi |
13689 | fi | |
13690 | fi | |
13691 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
13692 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
13693 | if test $ac_cv_header_stdc = yes; then | |
13694 | ||
13695 | cat >>confdefs.h <<\_ACEOF | |
13696 | #define STDC_HEADERS 1 | |
13697 | _ACEOF | |
13698 | ||
13699 | fi | |
13700 | ||
13701 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
13702 | ||
13703 | ||
13704 | ||
13705 | ||
13706 | ||
13707 | ||
13708 | ||
13709 | ||
13710 | ||
13711 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 13712 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
13713 | do |
13714 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13715 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13716 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13717 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13718 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13719 | else | |
13720 | cat >conftest.$ac_ext <<_ACEOF | |
13721 | /* confdefs.h. */ | |
13722 | _ACEOF | |
13723 | cat confdefs.h >>conftest.$ac_ext | |
13724 | cat >>conftest.$ac_ext <<_ACEOF | |
13725 | /* end confdefs.h. */ | |
13726 | $ac_includes_default | |
13727 | ||
13728 | #include <$ac_header> | |
13729 | _ACEOF | |
13730 | rm -f conftest.$ac_objext | |
13731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13732 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13733 | ac_status=$? |
ac1cb8d3 VS |
13734 | grep -v '^ *+' conftest.er1 >conftest.err |
13735 | rm -f conftest.er1 | |
13736 | cat conftest.err >&5 | |
a848cd7e SC |
13737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13738 | (exit $ac_status); } && | |
89be85c2 VS |
13739 | { ac_try='test -z "$ac_c_werror_flag" |
13740 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13742 | (eval $ac_try) 2>&5 | |
13743 | ac_status=$? | |
13744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13745 | (exit $ac_status); }; } && | |
13746 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13748 | (eval $ac_try) 2>&5 | |
13749 | ac_status=$? | |
13750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13751 | (exit $ac_status); }; }; then | |
13752 | eval "$as_ac_Header=yes" | |
13753 | else | |
13754 | echo "$as_me: failed program was:" >&5 | |
13755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13756 | ||
13757 | eval "$as_ac_Header=no" | |
13758 | fi | |
ac1cb8d3 | 13759 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13760 | fi |
13761 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13762 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13763 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13764 | cat >>confdefs.h <<_ACEOF | |
13765 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13766 | _ACEOF | |
13767 | ||
13768 | fi | |
13769 | ||
13770 | done | |
13771 | ||
13772 | ||
13773 | ||
13774 | for ac_header in stdlib.h | |
13775 | do | |
13776 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13777 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13778 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13779 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13780 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13782 | fi | |
13783 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13784 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13785 | else | |
13786 | # Is the header compilable? | |
13787 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13788 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13789 | cat >conftest.$ac_ext <<_ACEOF | |
13790 | /* confdefs.h. */ | |
13791 | _ACEOF | |
13792 | cat confdefs.h >>conftest.$ac_ext | |
13793 | cat >>conftest.$ac_ext <<_ACEOF | |
13794 | /* end confdefs.h. */ | |
13795 | $ac_includes_default | |
13796 | #include <$ac_header> | |
13797 | _ACEOF | |
13798 | rm -f conftest.$ac_objext | |
13799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13800 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13801 | ac_status=$? |
ac1cb8d3 VS |
13802 | grep -v '^ *+' conftest.er1 >conftest.err |
13803 | rm -f conftest.er1 | |
13804 | cat conftest.err >&5 | |
a848cd7e SC |
13805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13806 | (exit $ac_status); } && | |
89be85c2 VS |
13807 | { ac_try='test -z "$ac_c_werror_flag" |
13808 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13810 | (eval $ac_try) 2>&5 | |
13811 | ac_status=$? | |
13812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13813 | (exit $ac_status); }; } && | |
13814 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13816 | (eval $ac_try) 2>&5 | |
13817 | ac_status=$? | |
13818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13819 | (exit $ac_status); }; }; then | |
13820 | ac_header_compiler=yes | |
13821 | else | |
13822 | echo "$as_me: failed program was:" >&5 | |
13823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13824 | ||
13825 | ac_header_compiler=no | |
13826 | fi | |
ac1cb8d3 | 13827 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13828 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13829 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13830 | ||
13831 | # Is the header present? | |
13832 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13833 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13834 | cat >conftest.$ac_ext <<_ACEOF | |
13835 | /* confdefs.h. */ | |
13836 | _ACEOF | |
13837 | cat confdefs.h >>conftest.$ac_ext | |
13838 | cat >>conftest.$ac_ext <<_ACEOF | |
13839 | /* end confdefs.h. */ | |
13840 | #include <$ac_header> | |
13841 | _ACEOF | |
13842 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13843 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13844 | ac_status=$? | |
13845 | grep -v '^ *+' conftest.er1 >conftest.err | |
13846 | rm -f conftest.er1 | |
13847 | cat conftest.err >&5 | |
13848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13849 | (exit $ac_status); } >/dev/null; then | |
13850 | if test -s conftest.err; then | |
13851 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13852 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13853 | else |
13854 | ac_cpp_err= | |
13855 | fi | |
13856 | else | |
13857 | ac_cpp_err=yes | |
13858 | fi | |
13859 | if test -z "$ac_cpp_err"; then | |
13860 | ac_header_preproc=yes | |
13861 | else | |
13862 | echo "$as_me: failed program was:" >&5 | |
13863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13864 | ||
13865 | ac_header_preproc=no | |
13866 | fi | |
13867 | rm -f conftest.err conftest.$ac_ext | |
13868 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13869 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13870 | ||
13871 | # So? What about this header? | |
ac1cb8d3 VS |
13872 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13873 | yes:no: ) | |
a848cd7e SC |
13874 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13875 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13876 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13877 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13878 | ac_header_preproc=yes | |
a848cd7e | 13879 | ;; |
ac1cb8d3 | 13880 | no:yes:* ) |
a848cd7e SC |
13881 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13882 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13883 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13884 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13885 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13886 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13887 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13888 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13889 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13890 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13891 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13892 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13893 | ( |
13894 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13895 | ## ----------------------------------------- ## |
13896 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13897 | ## ----------------------------------------- ## | |
a848cd7e SC |
13898 | _ASBOX |
13899 | ) | | |
13900 | sed "s/^/$as_me: WARNING: /" >&2 | |
13901 | ;; | |
13902 | esac | |
13903 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13904 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13905 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13907 | else | |
ac1cb8d3 | 13908 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13909 | fi |
13910 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13911 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13912 | ||
13913 | fi | |
13914 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13915 | cat >>confdefs.h <<_ACEOF | |
13916 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13917 | _ACEOF | |
13918 | ||
13919 | fi | |
13920 | ||
13921 | done | |
13922 | ||
13923 | ||
13924 | for ac_header in malloc.h | |
13925 | do | |
13926 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13927 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13928 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13929 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13930 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13932 | fi | |
13933 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13934 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13935 | else | |
13936 | # Is the header compilable? | |
13937 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13938 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13939 | cat >conftest.$ac_ext <<_ACEOF | |
13940 | /* confdefs.h. */ | |
13941 | _ACEOF | |
13942 | cat confdefs.h >>conftest.$ac_ext | |
13943 | cat >>conftest.$ac_ext <<_ACEOF | |
13944 | /* end confdefs.h. */ | |
13945 | $ac_includes_default | |
13946 | #include <$ac_header> | |
13947 | _ACEOF | |
13948 | rm -f conftest.$ac_objext | |
13949 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13950 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13951 | ac_status=$? |
ac1cb8d3 VS |
13952 | grep -v '^ *+' conftest.er1 >conftest.err |
13953 | rm -f conftest.er1 | |
13954 | cat conftest.err >&5 | |
a848cd7e SC |
13955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13956 | (exit $ac_status); } && | |
89be85c2 VS |
13957 | { ac_try='test -z "$ac_c_werror_flag" |
13958 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13960 | (eval $ac_try) 2>&5 | |
13961 | ac_status=$? | |
13962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13963 | (exit $ac_status); }; } && | |
13964 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13966 | (eval $ac_try) 2>&5 | |
13967 | ac_status=$? | |
13968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13969 | (exit $ac_status); }; }; then | |
13970 | ac_header_compiler=yes | |
13971 | else | |
13972 | echo "$as_me: failed program was:" >&5 | |
13973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13974 | ||
13975 | ac_header_compiler=no | |
13976 | fi | |
ac1cb8d3 | 13977 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13978 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13979 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13980 | ||
13981 | # Is the header present? | |
13982 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13983 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13984 | cat >conftest.$ac_ext <<_ACEOF | |
13985 | /* confdefs.h. */ | |
13986 | _ACEOF | |
13987 | cat confdefs.h >>conftest.$ac_ext | |
13988 | cat >>conftest.$ac_ext <<_ACEOF | |
13989 | /* end confdefs.h. */ | |
13990 | #include <$ac_header> | |
13991 | _ACEOF | |
13992 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13993 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13994 | ac_status=$? | |
13995 | grep -v '^ *+' conftest.er1 >conftest.err | |
13996 | rm -f conftest.er1 | |
13997 | cat conftest.err >&5 | |
13998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13999 | (exit $ac_status); } >/dev/null; then | |
14000 | if test -s conftest.err; then | |
14001 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14002 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14003 | else |
14004 | ac_cpp_err= | |
14005 | fi | |
14006 | else | |
14007 | ac_cpp_err=yes | |
14008 | fi | |
14009 | if test -z "$ac_cpp_err"; then | |
14010 | ac_header_preproc=yes | |
14011 | else | |
14012 | echo "$as_me: failed program was:" >&5 | |
14013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14014 | ||
14015 | ac_header_preproc=no | |
14016 | fi | |
14017 | rm -f conftest.err conftest.$ac_ext | |
14018 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14019 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14020 | ||
14021 | # So? What about this header? | |
ac1cb8d3 VS |
14022 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14023 | yes:no: ) | |
a848cd7e SC |
14024 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14025 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14026 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14027 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14028 | ac_header_preproc=yes | |
a848cd7e | 14029 | ;; |
ac1cb8d3 | 14030 | no:yes:* ) |
a848cd7e SC |
14031 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14032 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14033 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14034 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14035 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14036 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14037 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14038 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14039 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14040 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14041 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14042 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14043 | ( |
14044 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14045 | ## ----------------------------------------- ## |
14046 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14047 | ## ----------------------------------------- ## | |
a848cd7e SC |
14048 | _ASBOX |
14049 | ) | | |
14050 | sed "s/^/$as_me: WARNING: /" >&2 | |
14051 | ;; | |
14052 | esac | |
14053 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14054 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14055 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14057 | else | |
ac1cb8d3 | 14058 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14059 | fi |
14060 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14061 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14062 | ||
14063 | fi | |
14064 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14065 | cat >>confdefs.h <<_ACEOF | |
14066 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14067 | _ACEOF | |
14068 | ||
14069 | fi | |
14070 | ||
14071 | done | |
14072 | ||
14073 | ||
14074 | for ac_header in unistd.h | |
14075 | do | |
14076 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14077 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14078 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14079 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14080 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14082 | fi | |
14083 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14084 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14085 | else | |
14086 | # Is the header compilable? | |
14087 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14088 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14089 | cat >conftest.$ac_ext <<_ACEOF | |
14090 | /* confdefs.h. */ | |
14091 | _ACEOF | |
14092 | cat confdefs.h >>conftest.$ac_ext | |
14093 | cat >>conftest.$ac_ext <<_ACEOF | |
14094 | /* end confdefs.h. */ | |
14095 | $ac_includes_default | |
14096 | #include <$ac_header> | |
14097 | _ACEOF | |
14098 | rm -f conftest.$ac_objext | |
14099 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14100 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14101 | ac_status=$? |
ac1cb8d3 VS |
14102 | grep -v '^ *+' conftest.er1 >conftest.err |
14103 | rm -f conftest.er1 | |
14104 | cat conftest.err >&5 | |
a848cd7e SC |
14105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14106 | (exit $ac_status); } && | |
89be85c2 VS |
14107 | { ac_try='test -z "$ac_c_werror_flag" |
14108 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14110 | (eval $ac_try) 2>&5 | |
14111 | ac_status=$? | |
14112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14113 | (exit $ac_status); }; } && | |
14114 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14116 | (eval $ac_try) 2>&5 | |
14117 | ac_status=$? | |
14118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14119 | (exit $ac_status); }; }; then | |
14120 | ac_header_compiler=yes | |
14121 | else | |
14122 | echo "$as_me: failed program was:" >&5 | |
14123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14124 | ||
14125 | ac_header_compiler=no | |
14126 | fi | |
ac1cb8d3 | 14127 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14128 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14129 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14130 | ||
14131 | # Is the header present? | |
14132 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14133 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14134 | cat >conftest.$ac_ext <<_ACEOF | |
14135 | /* confdefs.h. */ | |
14136 | _ACEOF | |
14137 | cat confdefs.h >>conftest.$ac_ext | |
14138 | cat >>conftest.$ac_ext <<_ACEOF | |
14139 | /* end confdefs.h. */ | |
14140 | #include <$ac_header> | |
14141 | _ACEOF | |
14142 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14143 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14144 | ac_status=$? | |
14145 | grep -v '^ *+' conftest.er1 >conftest.err | |
14146 | rm -f conftest.er1 | |
14147 | cat conftest.err >&5 | |
14148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14149 | (exit $ac_status); } >/dev/null; then | |
14150 | if test -s conftest.err; then | |
14151 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14152 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14153 | else |
14154 | ac_cpp_err= | |
14155 | fi | |
14156 | else | |
14157 | ac_cpp_err=yes | |
14158 | fi | |
14159 | if test -z "$ac_cpp_err"; then | |
14160 | ac_header_preproc=yes | |
14161 | else | |
14162 | echo "$as_me: failed program was:" >&5 | |
14163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14164 | ||
14165 | ac_header_preproc=no | |
14166 | fi | |
14167 | rm -f conftest.err conftest.$ac_ext | |
14168 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14169 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14170 | ||
14171 | # So? What about this header? | |
ac1cb8d3 VS |
14172 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14173 | yes:no: ) | |
a848cd7e SC |
14174 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14175 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14176 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14177 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14178 | ac_header_preproc=yes | |
a848cd7e | 14179 | ;; |
ac1cb8d3 | 14180 | no:yes:* ) |
a848cd7e SC |
14181 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14182 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14183 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14184 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14185 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14186 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14187 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14188 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14189 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14190 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14191 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14192 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14193 | ( |
14194 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14195 | ## ----------------------------------------- ## |
14196 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14197 | ## ----------------------------------------- ## | |
a848cd7e SC |
14198 | _ASBOX |
14199 | ) | | |
14200 | sed "s/^/$as_me: WARNING: /" >&2 | |
14201 | ;; | |
14202 | esac | |
14203 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14204 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14205 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14206 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14207 | else | |
ac1cb8d3 | 14208 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14209 | fi |
14210 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14211 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14212 | ||
14213 | fi | |
14214 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14215 | cat >>confdefs.h <<_ACEOF | |
14216 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14217 | _ACEOF | |
14218 | ||
14219 | fi | |
14220 | ||
14221 | done | |
14222 | ||
14223 | ||
14224 | for ac_header in wchar.h | |
14225 | do | |
14226 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14227 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14228 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14229 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14230 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14232 | fi | |
14233 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14234 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14235 | else | |
14236 | # Is the header compilable? | |
14237 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14238 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14239 | cat >conftest.$ac_ext <<_ACEOF | |
14240 | /* confdefs.h. */ | |
14241 | _ACEOF | |
14242 | cat confdefs.h >>conftest.$ac_ext | |
14243 | cat >>conftest.$ac_ext <<_ACEOF | |
14244 | /* end confdefs.h. */ | |
14245 | $ac_includes_default | |
14246 | #include <$ac_header> | |
14247 | _ACEOF | |
14248 | rm -f conftest.$ac_objext | |
14249 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14250 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14251 | ac_status=$? |
ac1cb8d3 VS |
14252 | grep -v '^ *+' conftest.er1 >conftest.err |
14253 | rm -f conftest.er1 | |
14254 | cat conftest.err >&5 | |
a848cd7e SC |
14255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14256 | (exit $ac_status); } && | |
89be85c2 VS |
14257 | { ac_try='test -z "$ac_c_werror_flag" |
14258 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14260 | (eval $ac_try) 2>&5 | |
14261 | ac_status=$? | |
14262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14263 | (exit $ac_status); }; } && | |
14264 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14266 | (eval $ac_try) 2>&5 | |
14267 | ac_status=$? | |
14268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14269 | (exit $ac_status); }; }; then | |
14270 | ac_header_compiler=yes | |
14271 | else | |
14272 | echo "$as_me: failed program was:" >&5 | |
14273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14274 | ||
14275 | ac_header_compiler=no | |
14276 | fi | |
ac1cb8d3 | 14277 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14278 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14279 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14280 | ||
14281 | # Is the header present? | |
14282 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14283 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14284 | cat >conftest.$ac_ext <<_ACEOF | |
14285 | /* confdefs.h. */ | |
14286 | _ACEOF | |
14287 | cat confdefs.h >>conftest.$ac_ext | |
14288 | cat >>conftest.$ac_ext <<_ACEOF | |
14289 | /* end confdefs.h. */ | |
14290 | #include <$ac_header> | |
14291 | _ACEOF | |
14292 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14293 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14294 | ac_status=$? | |
14295 | grep -v '^ *+' conftest.er1 >conftest.err | |
14296 | rm -f conftest.er1 | |
14297 | cat conftest.err >&5 | |
14298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14299 | (exit $ac_status); } >/dev/null; then | |
14300 | if test -s conftest.err; then | |
14301 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14302 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14303 | else |
14304 | ac_cpp_err= | |
14305 | fi | |
14306 | else | |
14307 | ac_cpp_err=yes | |
14308 | fi | |
14309 | if test -z "$ac_cpp_err"; then | |
14310 | ac_header_preproc=yes | |
14311 | else | |
14312 | echo "$as_me: failed program was:" >&5 | |
14313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14314 | ||
14315 | ac_header_preproc=no | |
14316 | fi | |
14317 | rm -f conftest.err conftest.$ac_ext | |
14318 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14319 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14320 | ||
14321 | # So? What about this header? | |
ac1cb8d3 VS |
14322 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14323 | yes:no: ) | |
a848cd7e SC |
14324 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14325 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14326 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14327 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14328 | ac_header_preproc=yes | |
a848cd7e | 14329 | ;; |
ac1cb8d3 | 14330 | no:yes:* ) |
a848cd7e SC |
14331 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14332 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14333 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14334 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14335 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14336 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14337 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14338 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14339 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14340 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14341 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14342 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14343 | ( |
14344 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14345 | ## ----------------------------------------- ## |
14346 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14347 | ## ----------------------------------------- ## | |
a848cd7e SC |
14348 | _ASBOX |
14349 | ) | | |
14350 | sed "s/^/$as_me: WARNING: /" >&2 | |
14351 | ;; | |
14352 | esac | |
14353 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14354 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14355 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14357 | else | |
ac1cb8d3 | 14358 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14359 | fi |
14360 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14361 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14362 | ||
14363 | fi | |
14364 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14365 | cat >>confdefs.h <<_ACEOF | |
14366 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14367 | _ACEOF | |
14368 | ||
14369 | fi | |
14370 | ||
14371 | done | |
14372 | ||
14373 | ||
14374 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
14375 | ||
14376 | for ac_header in wcstr.h | |
14377 | do | |
14378 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14379 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14380 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14381 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14382 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14384 | fi | |
14385 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14386 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14387 | else | |
14388 | # Is the header compilable? | |
14389 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14390 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14391 | cat >conftest.$ac_ext <<_ACEOF | |
14392 | /* confdefs.h. */ | |
14393 | _ACEOF | |
14394 | cat confdefs.h >>conftest.$ac_ext | |
14395 | cat >>conftest.$ac_ext <<_ACEOF | |
14396 | /* end confdefs.h. */ | |
14397 | $ac_includes_default | |
14398 | #include <$ac_header> | |
14399 | _ACEOF | |
14400 | rm -f conftest.$ac_objext | |
14401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14402 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14403 | ac_status=$? |
ac1cb8d3 VS |
14404 | grep -v '^ *+' conftest.er1 >conftest.err |
14405 | rm -f conftest.er1 | |
14406 | cat conftest.err >&5 | |
a848cd7e SC |
14407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14408 | (exit $ac_status); } && | |
89be85c2 VS |
14409 | { ac_try='test -z "$ac_c_werror_flag" |
14410 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14412 | (eval $ac_try) 2>&5 | |
14413 | ac_status=$? | |
14414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14415 | (exit $ac_status); }; } && | |
14416 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14418 | (eval $ac_try) 2>&5 | |
14419 | ac_status=$? | |
14420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14421 | (exit $ac_status); }; }; then | |
14422 | ac_header_compiler=yes | |
14423 | else | |
14424 | echo "$as_me: failed program was:" >&5 | |
14425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14426 | ||
14427 | ac_header_compiler=no | |
14428 | fi | |
ac1cb8d3 | 14429 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14430 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14431 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14432 | ||
14433 | # Is the header present? | |
14434 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14435 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14436 | cat >conftest.$ac_ext <<_ACEOF | |
14437 | /* confdefs.h. */ | |
14438 | _ACEOF | |
14439 | cat confdefs.h >>conftest.$ac_ext | |
14440 | cat >>conftest.$ac_ext <<_ACEOF | |
14441 | /* end confdefs.h. */ | |
14442 | #include <$ac_header> | |
14443 | _ACEOF | |
14444 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14445 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14446 | ac_status=$? | |
14447 | grep -v '^ *+' conftest.er1 >conftest.err | |
14448 | rm -f conftest.er1 | |
14449 | cat conftest.err >&5 | |
14450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14451 | (exit $ac_status); } >/dev/null; then | |
14452 | if test -s conftest.err; then | |
14453 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14454 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14455 | else |
14456 | ac_cpp_err= | |
14457 | fi | |
14458 | else | |
14459 | ac_cpp_err=yes | |
14460 | fi | |
14461 | if test -z "$ac_cpp_err"; then | |
14462 | ac_header_preproc=yes | |
14463 | else | |
14464 | echo "$as_me: failed program was:" >&5 | |
14465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14466 | ||
14467 | ac_header_preproc=no | |
14468 | fi | |
14469 | rm -f conftest.err conftest.$ac_ext | |
14470 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14471 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14472 | ||
14473 | # So? What about this header? | |
ac1cb8d3 VS |
14474 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14475 | yes:no: ) | |
a848cd7e SC |
14476 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14477 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14478 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14479 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14480 | ac_header_preproc=yes | |
a848cd7e | 14481 | ;; |
ac1cb8d3 | 14482 | no:yes:* ) |
a848cd7e SC |
14483 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14484 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14485 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14486 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14487 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14488 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14489 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14490 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14491 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14492 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14493 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14494 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14495 | ( |
14496 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14497 | ## ----------------------------------------- ## |
14498 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14499 | ## ----------------------------------------- ## | |
a848cd7e SC |
14500 | _ASBOX |
14501 | ) | | |
14502 | sed "s/^/$as_me: WARNING: /" >&2 | |
14503 | ;; | |
14504 | esac | |
14505 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14506 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14507 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14509 | else | |
ac1cb8d3 | 14510 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14511 | fi |
14512 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14513 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14514 | ||
14515 | fi | |
14516 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14517 | cat >>confdefs.h <<_ACEOF | |
14518 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14519 | _ACEOF | |
14520 | ||
14521 | fi | |
14522 | ||
14523 | done | |
14524 | ||
14525 | fi | |
14526 | ||
14527 | ||
14528 | for ac_header in fnmatch.h | |
14529 | do | |
14530 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14531 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14532 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14533 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14534 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14536 | fi | |
14537 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14538 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14539 | else | |
14540 | # Is the header compilable? | |
14541 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14542 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14543 | cat >conftest.$ac_ext <<_ACEOF | |
14544 | /* confdefs.h. */ | |
14545 | _ACEOF | |
14546 | cat confdefs.h >>conftest.$ac_ext | |
14547 | cat >>conftest.$ac_ext <<_ACEOF | |
14548 | /* end confdefs.h. */ | |
14549 | $ac_includes_default | |
14550 | #include <$ac_header> | |
14551 | _ACEOF | |
14552 | rm -f conftest.$ac_objext | |
14553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14554 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14555 | ac_status=$? |
ac1cb8d3 VS |
14556 | grep -v '^ *+' conftest.er1 >conftest.err |
14557 | rm -f conftest.er1 | |
14558 | cat conftest.err >&5 | |
a848cd7e SC |
14559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14560 | (exit $ac_status); } && | |
89be85c2 VS |
14561 | { ac_try='test -z "$ac_c_werror_flag" |
14562 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14564 | (eval $ac_try) 2>&5 | |
14565 | ac_status=$? | |
14566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14567 | (exit $ac_status); }; } && | |
14568 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14570 | (eval $ac_try) 2>&5 | |
14571 | ac_status=$? | |
14572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14573 | (exit $ac_status); }; }; then | |
14574 | ac_header_compiler=yes | |
14575 | else | |
14576 | echo "$as_me: failed program was:" >&5 | |
14577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14578 | ||
14579 | ac_header_compiler=no | |
14580 | fi | |
ac1cb8d3 | 14581 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14582 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14583 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14584 | ||
14585 | # Is the header present? | |
14586 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14587 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14588 | cat >conftest.$ac_ext <<_ACEOF | |
14589 | /* confdefs.h. */ | |
14590 | _ACEOF | |
14591 | cat confdefs.h >>conftest.$ac_ext | |
14592 | cat >>conftest.$ac_ext <<_ACEOF | |
14593 | /* end confdefs.h. */ | |
14594 | #include <$ac_header> | |
14595 | _ACEOF | |
14596 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14597 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14598 | ac_status=$? | |
14599 | grep -v '^ *+' conftest.er1 >conftest.err | |
14600 | rm -f conftest.er1 | |
14601 | cat conftest.err >&5 | |
14602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14603 | (exit $ac_status); } >/dev/null; then | |
14604 | if test -s conftest.err; then | |
14605 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14606 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14607 | else |
14608 | ac_cpp_err= | |
14609 | fi | |
14610 | else | |
14611 | ac_cpp_err=yes | |
14612 | fi | |
14613 | if test -z "$ac_cpp_err"; then | |
14614 | ac_header_preproc=yes | |
14615 | else | |
14616 | echo "$as_me: failed program was:" >&5 | |
14617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14618 | ||
14619 | ac_header_preproc=no | |
14620 | fi | |
14621 | rm -f conftest.err conftest.$ac_ext | |
14622 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14623 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14624 | ||
14625 | # So? What about this header? | |
ac1cb8d3 VS |
14626 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14627 | yes:no: ) | |
a848cd7e SC |
14628 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14629 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14630 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14631 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14632 | ac_header_preproc=yes | |
a848cd7e | 14633 | ;; |
ac1cb8d3 | 14634 | no:yes:* ) |
a848cd7e SC |
14635 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14636 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14637 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14638 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14639 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14640 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14641 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14642 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14643 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14644 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14645 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14646 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14647 | ( |
14648 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14649 | ## ----------------------------------------- ## |
14650 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14651 | ## ----------------------------------------- ## | |
a848cd7e SC |
14652 | _ASBOX |
14653 | ) | | |
14654 | sed "s/^/$as_me: WARNING: /" >&2 | |
14655 | ;; | |
14656 | esac | |
14657 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14658 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14659 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14661 | else | |
ac1cb8d3 | 14662 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14663 | fi |
14664 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14665 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14666 | ||
14667 | fi | |
14668 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14669 | cat >>confdefs.h <<_ACEOF | |
14670 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14671 | _ACEOF | |
14672 | ||
14673 | fi | |
14674 | ||
14675 | done | |
14676 | ||
14677 | ||
14678 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then | |
14679 | ||
14680 | for ac_func in fnmatch | |
14681 | do | |
14682 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14683 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14684 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
14685 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14687 | else | |
14688 | cat >conftest.$ac_ext <<_ACEOF | |
14689 | /* confdefs.h. */ | |
14690 | _ACEOF | |
14691 | cat confdefs.h >>conftest.$ac_ext | |
14692 | cat >>conftest.$ac_ext <<_ACEOF | |
14693 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
14694 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14695 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14696 | #define $ac_func innocuous_$ac_func | |
14697 | ||
a848cd7e SC |
14698 | /* System header to define __stub macros and hopefully few prototypes, |
14699 | which can conflict with char $ac_func (); below. | |
14700 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14701 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 14702 | |
a848cd7e SC |
14703 | #ifdef __STDC__ |
14704 | # include <limits.h> | |
14705 | #else | |
14706 | # include <assert.h> | |
14707 | #endif | |
ac1cb8d3 VS |
14708 | |
14709 | #undef $ac_func | |
14710 | ||
a848cd7e SC |
14711 | /* Override any gcc2 internal prototype to avoid an error. */ |
14712 | #ifdef __cplusplus | |
14713 | extern "C" | |
14714 | { | |
14715 | #endif | |
14716 | /* We use char because int might match the return type of a gcc2 | |
14717 | builtin and then its argument prototype would still apply. */ | |
14718 | char $ac_func (); | |
14719 | /* The GNU C library defines this for functions which it implements | |
14720 | to always fail with ENOSYS. Some functions are actually named | |
14721 | something starting with __ and the normal name is an alias. */ | |
14722 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14723 | choke me | |
14724 | #else | |
14725 | char (*f) () = $ac_func; | |
14726 | #endif | |
14727 | #ifdef __cplusplus | |
14728 | } | |
14729 | #endif | |
14730 | ||
14731 | int | |
14732 | main () | |
14733 | { | |
14734 | return f != $ac_func; | |
14735 | ; | |
14736 | return 0; | |
14737 | } | |
14738 | _ACEOF | |
14739 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14740 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 14741 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 14742 | ac_status=$? |
ac1cb8d3 VS |
14743 | grep -v '^ *+' conftest.er1 >conftest.err |
14744 | rm -f conftest.er1 | |
14745 | cat conftest.err >&5 | |
a848cd7e SC |
14746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14747 | (exit $ac_status); } && | |
89be85c2 VS |
14748 | { ac_try='test -z "$ac_c_werror_flag" |
14749 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14751 | (eval $ac_try) 2>&5 | |
14752 | ac_status=$? | |
14753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14754 | (exit $ac_status); }; } && | |
14755 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
14756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14757 | (eval $ac_try) 2>&5 | |
14758 | ac_status=$? | |
14759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14760 | (exit $ac_status); }; }; then | |
14761 | eval "$as_ac_var=yes" | |
14762 | else | |
14763 | echo "$as_me: failed program was:" >&5 | |
14764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14765 | ||
14766 | eval "$as_ac_var=no" | |
14767 | fi | |
ac1cb8d3 VS |
14768 | rm -f conftest.err conftest.$ac_objext \ |
14769 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
14770 | fi |
14771 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
14772 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
14773 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
14774 | cat >>confdefs.h <<_ACEOF | |
14775 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14776 | _ACEOF | |
14777 | ||
14778 | fi | |
14779 | done | |
14780 | ||
14781 | fi | |
14782 | ||
14783 | ||
14784 | for ac_header in langinfo.h | |
14785 | do | |
14786 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14787 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14788 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14789 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14790 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14792 | fi | |
14793 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14794 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14795 | else | |
14796 | # Is the header compilable? | |
14797 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14798 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14799 | cat >conftest.$ac_ext <<_ACEOF | |
14800 | /* confdefs.h. */ | |
14801 | _ACEOF | |
14802 | cat confdefs.h >>conftest.$ac_ext | |
14803 | cat >>conftest.$ac_ext <<_ACEOF | |
14804 | /* end confdefs.h. */ | |
14805 | $ac_includes_default | |
14806 | #include <$ac_header> | |
14807 | _ACEOF | |
14808 | rm -f conftest.$ac_objext | |
14809 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14810 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14811 | ac_status=$? |
ac1cb8d3 VS |
14812 | grep -v '^ *+' conftest.er1 >conftest.err |
14813 | rm -f conftest.er1 | |
14814 | cat conftest.err >&5 | |
a848cd7e SC |
14815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14816 | (exit $ac_status); } && | |
89be85c2 VS |
14817 | { ac_try='test -z "$ac_c_werror_flag" |
14818 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14820 | (eval $ac_try) 2>&5 | |
14821 | ac_status=$? | |
14822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14823 | (exit $ac_status); }; } && | |
14824 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14826 | (eval $ac_try) 2>&5 | |
14827 | ac_status=$? | |
14828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14829 | (exit $ac_status); }; }; then | |
14830 | ac_header_compiler=yes | |
14831 | else | |
14832 | echo "$as_me: failed program was:" >&5 | |
14833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14834 | ||
14835 | ac_header_compiler=no | |
14836 | fi | |
ac1cb8d3 | 14837 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14838 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14839 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14840 | ||
14841 | # Is the header present? | |
14842 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14843 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14844 | cat >conftest.$ac_ext <<_ACEOF | |
14845 | /* confdefs.h. */ | |
14846 | _ACEOF | |
14847 | cat confdefs.h >>conftest.$ac_ext | |
14848 | cat >>conftest.$ac_ext <<_ACEOF | |
14849 | /* end confdefs.h. */ | |
14850 | #include <$ac_header> | |
14851 | _ACEOF | |
14852 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14853 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14854 | ac_status=$? | |
14855 | grep -v '^ *+' conftest.er1 >conftest.err | |
14856 | rm -f conftest.er1 | |
14857 | cat conftest.err >&5 | |
14858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14859 | (exit $ac_status); } >/dev/null; then | |
14860 | if test -s conftest.err; then | |
14861 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14862 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14863 | else |
14864 | ac_cpp_err= | |
14865 | fi | |
14866 | else | |
14867 | ac_cpp_err=yes | |
14868 | fi | |
14869 | if test -z "$ac_cpp_err"; then | |
14870 | ac_header_preproc=yes | |
14871 | else | |
14872 | echo "$as_me: failed program was:" >&5 | |
14873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14874 | ||
14875 | ac_header_preproc=no | |
14876 | fi | |
14877 | rm -f conftest.err conftest.$ac_ext | |
14878 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14879 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14880 | ||
14881 | # So? What about this header? | |
ac1cb8d3 VS |
14882 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14883 | yes:no: ) | |
a848cd7e SC |
14884 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14885 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14886 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14887 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14888 | ac_header_preproc=yes | |
a848cd7e | 14889 | ;; |
ac1cb8d3 | 14890 | no:yes:* ) |
a848cd7e SC |
14891 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14892 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14893 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14894 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14895 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14896 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14897 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14898 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14899 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14900 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14901 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14902 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14903 | ( |
14904 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14905 | ## ----------------------------------------- ## |
14906 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14907 | ## ----------------------------------------- ## | |
a848cd7e SC |
14908 | _ASBOX |
14909 | ) | | |
14910 | sed "s/^/$as_me: WARNING: /" >&2 | |
14911 | ;; | |
14912 | esac | |
14913 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14914 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14915 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14916 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14917 | else | |
ac1cb8d3 | 14918 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14919 | fi |
14920 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14921 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14922 | ||
14923 | fi | |
14924 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14925 | cat >>confdefs.h <<_ACEOF | |
14926 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14927 | _ACEOF | |
14928 | ||
14929 | fi | |
14930 | ||
14931 | done | |
14932 | ||
14933 | ||
14934 | case "${host}" in | |
14935 | *-pc-os2_emx | *-pc-os2-emx ) | |
391a765e VS |
14936 | if test $ac_cv_header_langinfo_h = "yes" \ |
14937 | -a \( "$wx_cv_gccversion" = "EMX2" \ | |
14938 | -o "$wx_cv_gccversion" = "EMX3" \ | |
14939 | -o "$wx_cv_gccversion" = "Innotek5" \); then | |
a848cd7e SC |
14940 | LIBS="$LIBS -lintl" |
14941 | fi | |
14942 | ;; | |
14943 | esac | |
14944 | ||
14945 | if test "$wxUSE_GUI" = "yes"; then | |
14946 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
14947 | ||
14948 | for ac_header in X11/Xlib.h | |
14949 | do | |
14950 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14951 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14952 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14953 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14954 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14956 | fi | |
14957 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14958 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14959 | else | |
14960 | # Is the header compilable? | |
14961 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14962 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14963 | cat >conftest.$ac_ext <<_ACEOF | |
14964 | /* confdefs.h. */ | |
14965 | _ACEOF | |
14966 | cat confdefs.h >>conftest.$ac_ext | |
14967 | cat >>conftest.$ac_ext <<_ACEOF | |
14968 | /* end confdefs.h. */ | |
14969 | $ac_includes_default | |
14970 | #include <$ac_header> | |
14971 | _ACEOF | |
14972 | rm -f conftest.$ac_objext | |
14973 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14974 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14975 | ac_status=$? |
ac1cb8d3 VS |
14976 | grep -v '^ *+' conftest.er1 >conftest.err |
14977 | rm -f conftest.er1 | |
14978 | cat conftest.err >&5 | |
a848cd7e SC |
14979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14980 | (exit $ac_status); } && | |
89be85c2 VS |
14981 | { ac_try='test -z "$ac_c_werror_flag" |
14982 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14984 | (eval $ac_try) 2>&5 | |
14985 | ac_status=$? | |
14986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14987 | (exit $ac_status); }; } && | |
14988 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14990 | (eval $ac_try) 2>&5 | |
14991 | ac_status=$? | |
14992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14993 | (exit $ac_status); }; }; then | |
14994 | ac_header_compiler=yes | |
14995 | else | |
14996 | echo "$as_me: failed program was:" >&5 | |
14997 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14998 | ||
14999 | ac_header_compiler=no | |
15000 | fi | |
ac1cb8d3 | 15001 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15002 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15003 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15004 | ||
15005 | # Is the header present? | |
15006 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15007 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15008 | cat >conftest.$ac_ext <<_ACEOF | |
15009 | /* confdefs.h. */ | |
15010 | _ACEOF | |
15011 | cat confdefs.h >>conftest.$ac_ext | |
15012 | cat >>conftest.$ac_ext <<_ACEOF | |
15013 | /* end confdefs.h. */ | |
15014 | #include <$ac_header> | |
15015 | _ACEOF | |
15016 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15017 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15018 | ac_status=$? | |
15019 | grep -v '^ *+' conftest.er1 >conftest.err | |
15020 | rm -f conftest.er1 | |
15021 | cat conftest.err >&5 | |
15022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15023 | (exit $ac_status); } >/dev/null; then | |
15024 | if test -s conftest.err; then | |
15025 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15026 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15027 | else |
15028 | ac_cpp_err= | |
15029 | fi | |
15030 | else | |
15031 | ac_cpp_err=yes | |
15032 | fi | |
15033 | if test -z "$ac_cpp_err"; then | |
15034 | ac_header_preproc=yes | |
15035 | else | |
15036 | echo "$as_me: failed program was:" >&5 | |
15037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15038 | ||
15039 | ac_header_preproc=no | |
15040 | fi | |
15041 | rm -f conftest.err conftest.$ac_ext | |
15042 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15043 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15044 | ||
15045 | # So? What about this header? | |
ac1cb8d3 VS |
15046 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15047 | yes:no: ) | |
a848cd7e SC |
15048 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15049 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15050 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15051 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15052 | ac_header_preproc=yes | |
a848cd7e | 15053 | ;; |
ac1cb8d3 | 15054 | no:yes:* ) |
a848cd7e SC |
15055 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15056 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15057 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15058 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15059 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15060 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15061 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15062 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15063 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15064 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15065 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15066 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15067 | ( |
15068 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15069 | ## ----------------------------------------- ## |
15070 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15071 | ## ----------------------------------------- ## | |
a848cd7e SC |
15072 | _ASBOX |
15073 | ) | | |
15074 | sed "s/^/$as_me: WARNING: /" >&2 | |
15075 | ;; | |
15076 | esac | |
15077 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15078 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15079 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15081 | else | |
ac1cb8d3 | 15082 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15083 | fi |
15084 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15085 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15086 | ||
15087 | fi | |
15088 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15089 | cat >>confdefs.h <<_ACEOF | |
15090 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15091 | _ACEOF | |
15092 | ||
15093 | fi | |
15094 | ||
15095 | done | |
15096 | ||
15097 | ||
15098 | for ac_header in X11/XKBlib.h | |
15099 | do | |
15100 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15101 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15102 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15103 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15105 | else | |
15106 | cat >conftest.$ac_ext <<_ACEOF | |
15107 | /* confdefs.h. */ | |
15108 | _ACEOF | |
15109 | cat confdefs.h >>conftest.$ac_ext | |
15110 | cat >>conftest.$ac_ext <<_ACEOF | |
15111 | /* end confdefs.h. */ | |
15112 | ||
15113 | #if HAVE_X11_XLIB_H | |
15114 | #include <X11/Xlib.h> | |
15115 | #endif | |
15116 | ||
15117 | ||
15118 | #include <$ac_header> | |
15119 | _ACEOF | |
15120 | rm -f conftest.$ac_objext | |
15121 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15122 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15123 | ac_status=$? |
ac1cb8d3 VS |
15124 | grep -v '^ *+' conftest.er1 >conftest.err |
15125 | rm -f conftest.er1 | |
15126 | cat conftest.err >&5 | |
a848cd7e SC |
15127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15128 | (exit $ac_status); } && | |
89be85c2 VS |
15129 | { ac_try='test -z "$ac_c_werror_flag" |
15130 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15132 | (eval $ac_try) 2>&5 | |
15133 | ac_status=$? | |
15134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15135 | (exit $ac_status); }; } && | |
15136 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15138 | (eval $ac_try) 2>&5 | |
15139 | ac_status=$? | |
15140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15141 | (exit $ac_status); }; }; then | |
15142 | eval "$as_ac_Header=yes" | |
15143 | else | |
15144 | echo "$as_me: failed program was:" >&5 | |
15145 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15146 | ||
15147 | eval "$as_ac_Header=no" | |
15148 | fi | |
ac1cb8d3 | 15149 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15150 | fi |
15151 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15152 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15153 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15154 | cat >>confdefs.h <<_ACEOF | |
15155 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15156 | _ACEOF | |
15157 | ||
15158 | fi | |
15159 | ||
15160 | done | |
15161 | ||
15162 | fi | |
15163 | fi | |
15164 | ||
15165 | ||
15166 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
15167 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
15168 | if test "${ac_cv_c_const+set}" = set; then | |
15169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15170 | else | |
15171 | cat >conftest.$ac_ext <<_ACEOF | |
15172 | /* confdefs.h. */ | |
15173 | _ACEOF | |
15174 | cat confdefs.h >>conftest.$ac_ext | |
15175 | cat >>conftest.$ac_ext <<_ACEOF | |
15176 | /* end confdefs.h. */ | |
15177 | ||
15178 | int | |
15179 | main () | |
15180 | { | |
15181 | /* FIXME: Include the comments suggested by Paul. */ | |
15182 | #ifndef __cplusplus | |
15183 | /* Ultrix mips cc rejects this. */ | |
15184 | typedef int charset[2]; | |
15185 | const charset x; | |
15186 | /* SunOS 4.1.1 cc rejects this. */ | |
15187 | char const *const *ccp; | |
15188 | char **p; | |
15189 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
15190 | struct point {int x, y;}; | |
15191 | static struct point const zero = {0,0}; | |
15192 | /* AIX XL C 1.02.0.0 rejects this. | |
15193 | It does not let you subtract one const X* pointer from another in | |
15194 | an arm of an if-expression whose if-part is not a constant | |
15195 | expression */ | |
15196 | const char *g = "string"; | |
15197 | ccp = &g + (g ? g-g : 0); | |
15198 | /* HPUX 7.0 cc rejects these. */ | |
15199 | ++ccp; | |
15200 | p = (char**) ccp; | |
15201 | ccp = (char const *const *) p; | |
15202 | { /* SCO 3.2v4 cc rejects this. */ | |
15203 | char *t; | |
15204 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
15205 | ||
15206 | *t++ = 0; | |
15207 | } | |
15208 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
15209 | int x[] = {25, 17}; | |
15210 | const int *foo = &x[0]; | |
15211 | ++foo; | |
15212 | } | |
15213 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
15214 | typedef const int *iptr; | |
15215 | iptr p = 0; | |
15216 | ++p; | |
15217 | } | |
15218 | { /* AIX XL C 1.02.0.0 rejects this saying | |
15219 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
15220 | struct s { int j; const int *ap[3]; }; | |
15221 | struct s *b; b->j = 5; | |
15222 | } | |
15223 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
15224 | const int foo = 10; | |
15225 | } | |
15226 | #endif | |
15227 | ||
15228 | ; | |
15229 | return 0; | |
15230 | } | |
15231 | _ACEOF | |
15232 | rm -f conftest.$ac_objext | |
15233 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15234 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15235 | ac_status=$? |
ac1cb8d3 VS |
15236 | grep -v '^ *+' conftest.er1 >conftest.err |
15237 | rm -f conftest.er1 | |
15238 | cat conftest.err >&5 | |
a848cd7e SC |
15239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15240 | (exit $ac_status); } && | |
89be85c2 VS |
15241 | { ac_try='test -z "$ac_c_werror_flag" |
15242 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15244 | (eval $ac_try) 2>&5 | |
15245 | ac_status=$? | |
15246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15247 | (exit $ac_status); }; } && | |
15248 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15250 | (eval $ac_try) 2>&5 | |
15251 | ac_status=$? | |
15252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15253 | (exit $ac_status); }; }; then | |
15254 | ac_cv_c_const=yes | |
15255 | else | |
15256 | echo "$as_me: failed program was:" >&5 | |
15257 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15258 | ||
15259 | ac_cv_c_const=no | |
15260 | fi | |
ac1cb8d3 | 15261 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15262 | fi |
15263 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
15264 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
15265 | if test $ac_cv_c_const = no; then | |
15266 | ||
15267 | cat >>confdefs.h <<\_ACEOF | |
15268 | #define const | |
15269 | _ACEOF | |
15270 | ||
15271 | fi | |
15272 | ||
15273 | echo "$as_me:$LINENO: checking for inline" >&5 | |
15274 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
15275 | if test "${ac_cv_c_inline+set}" = set; then | |
15276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15277 | else | |
15278 | ac_cv_c_inline=no | |
15279 | for ac_kw in inline __inline__ __inline; do | |
15280 | cat >conftest.$ac_ext <<_ACEOF | |
15281 | /* confdefs.h. */ | |
15282 | _ACEOF | |
15283 | cat confdefs.h >>conftest.$ac_ext | |
15284 | cat >>conftest.$ac_ext <<_ACEOF | |
15285 | /* end confdefs.h. */ | |
15286 | #ifndef __cplusplus | |
15287 | typedef int foo_t; | |
15288 | static $ac_kw foo_t static_foo () {return 0; } | |
15289 | $ac_kw foo_t foo () {return 0; } | |
15290 | #endif | |
15291 | ||
15292 | _ACEOF | |
15293 | rm -f conftest.$ac_objext | |
15294 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15295 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15296 | ac_status=$? |
ac1cb8d3 VS |
15297 | grep -v '^ *+' conftest.er1 >conftest.err |
15298 | rm -f conftest.er1 | |
15299 | cat conftest.err >&5 | |
a848cd7e SC |
15300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15301 | (exit $ac_status); } && | |
89be85c2 VS |
15302 | { ac_try='test -z "$ac_c_werror_flag" |
15303 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15305 | (eval $ac_try) 2>&5 | |
15306 | ac_status=$? | |
15307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15308 | (exit $ac_status); }; } && | |
15309 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15311 | (eval $ac_try) 2>&5 | |
15312 | ac_status=$? | |
15313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15314 | (exit $ac_status); }; }; then | |
15315 | ac_cv_c_inline=$ac_kw; break | |
15316 | else | |
15317 | echo "$as_me: failed program was:" >&5 | |
15318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15319 | ||
15320 | fi | |
ac1cb8d3 | 15321 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15322 | done |
15323 | ||
15324 | fi | |
15325 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
15326 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
15327 | |
15328 | ||
a848cd7e SC |
15329 | case $ac_cv_c_inline in |
15330 | inline | yes) ;; | |
ac1cb8d3 VS |
15331 | *) |
15332 | case $ac_cv_c_inline in | |
15333 | no) ac_val=;; | |
15334 | *) ac_val=$ac_cv_c_inline;; | |
15335 | esac | |
15336 | cat >>confdefs.h <<_ACEOF | |
15337 | #ifndef __cplusplus | |
15338 | #define inline $ac_val | |
15339 | #endif | |
de59c161 | 15340 | _ACEOF |
ac1cb8d3 | 15341 | ;; |
a848cd7e SC |
15342 | esac |
15343 | ||
15344 | ||
15345 | echo "$as_me:$LINENO: checking for char" >&5 | |
15346 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
15347 | if test "${ac_cv_type_char+set}" = set; then | |
15348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15349 | else | |
15350 | cat >conftest.$ac_ext <<_ACEOF | |
15351 | /* confdefs.h. */ | |
15352 | _ACEOF | |
15353 | cat confdefs.h >>conftest.$ac_ext | |
15354 | cat >>conftest.$ac_ext <<_ACEOF | |
15355 | /* end confdefs.h. */ | |
15356 | $ac_includes_default | |
15357 | int | |
15358 | main () | |
15359 | { | |
15360 | if ((char *) 0) | |
15361 | return 0; | |
15362 | if (sizeof (char)) | |
15363 | return 0; | |
15364 | ; | |
15365 | return 0; | |
15366 | } | |
15367 | _ACEOF | |
15368 | rm -f conftest.$ac_objext | |
15369 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15370 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15371 | ac_status=$? |
ac1cb8d3 VS |
15372 | grep -v '^ *+' conftest.er1 >conftest.err |
15373 | rm -f conftest.er1 | |
15374 | cat conftest.err >&5 | |
a848cd7e SC |
15375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15376 | (exit $ac_status); } && | |
89be85c2 VS |
15377 | { ac_try='test -z "$ac_c_werror_flag" |
15378 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15380 | (eval $ac_try) 2>&5 | |
15381 | ac_status=$? | |
15382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15383 | (exit $ac_status); }; } && | |
15384 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15386 | (eval $ac_try) 2>&5 | |
15387 | ac_status=$? | |
15388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15389 | (exit $ac_status); }; }; then | |
15390 | ac_cv_type_char=yes | |
15391 | else | |
15392 | echo "$as_me: failed program was:" >&5 | |
15393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15394 | ||
15395 | ac_cv_type_char=no | |
15396 | fi | |
ac1cb8d3 | 15397 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15398 | fi |
15399 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
15400 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
15401 | ||
15402 | echo "$as_me:$LINENO: checking size of char" >&5 | |
15403 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
15404 | if test "${ac_cv_sizeof_char+set}" = set; then | |
15405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15406 | else | |
15407 | if test "$ac_cv_type_char" = yes; then | |
15408 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15409 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15410 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15411 | # This bug is HP SR number 8606223364. | |
15412 | if test "$cross_compiling" = yes; then | |
15413 | # Depending upon the size, compute the lo and hi bounds. | |
15414 | cat >conftest.$ac_ext <<_ACEOF | |
15415 | /* confdefs.h. */ | |
15416 | _ACEOF | |
15417 | cat confdefs.h >>conftest.$ac_ext | |
15418 | cat >>conftest.$ac_ext <<_ACEOF | |
15419 | /* end confdefs.h. */ | |
15420 | $ac_includes_default | |
15421 | int | |
15422 | main () | |
15423 | { | |
15424 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
15425 | test_array [0] = 0 | |
15426 | ||
15427 | ; | |
15428 | return 0; | |
15429 | } | |
15430 | _ACEOF | |
15431 | rm -f conftest.$ac_objext | |
15432 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15433 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15434 | ac_status=$? |
ac1cb8d3 VS |
15435 | grep -v '^ *+' conftest.er1 >conftest.err |
15436 | rm -f conftest.er1 | |
15437 | cat conftest.err >&5 | |
a848cd7e SC |
15438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15439 | (exit $ac_status); } && | |
89be85c2 VS |
15440 | { ac_try='test -z "$ac_c_werror_flag" |
15441 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15443 | (eval $ac_try) 2>&5 | |
15444 | ac_status=$? | |
15445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15446 | (exit $ac_status); }; } && | |
15447 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15449 | (eval $ac_try) 2>&5 | |
15450 | ac_status=$? | |
15451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15452 | (exit $ac_status); }; }; then | |
15453 | ac_lo=0 ac_mid=0 | |
15454 | while :; do | |
15455 | cat >conftest.$ac_ext <<_ACEOF | |
15456 | /* confdefs.h. */ | |
15457 | _ACEOF | |
15458 | cat confdefs.h >>conftest.$ac_ext | |
15459 | cat >>conftest.$ac_ext <<_ACEOF | |
15460 | /* end confdefs.h. */ | |
15461 | $ac_includes_default | |
15462 | int | |
15463 | main () | |
15464 | { | |
15465 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
15466 | test_array [0] = 0 | |
15467 | ||
15468 | ; | |
15469 | return 0; | |
15470 | } | |
15471 | _ACEOF | |
15472 | rm -f conftest.$ac_objext | |
15473 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15474 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15475 | ac_status=$? |
ac1cb8d3 VS |
15476 | grep -v '^ *+' conftest.er1 >conftest.err |
15477 | rm -f conftest.er1 | |
15478 | cat conftest.err >&5 | |
a848cd7e SC |
15479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15480 | (exit $ac_status); } && | |
89be85c2 VS |
15481 | { ac_try='test -z "$ac_c_werror_flag" |
15482 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15484 | (eval $ac_try) 2>&5 | |
15485 | ac_status=$? | |
15486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15487 | (exit $ac_status); }; } && | |
15488 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15490 | (eval $ac_try) 2>&5 | |
15491 | ac_status=$? | |
15492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15493 | (exit $ac_status); }; }; then | |
15494 | ac_hi=$ac_mid; break | |
15495 | else | |
15496 | echo "$as_me: failed program was:" >&5 | |
15497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15498 | ||
15499 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15500 | if test $ac_lo -le $ac_mid; then |
15501 | ac_lo= ac_hi= | |
15502 | break | |
15503 | fi | |
15504 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15505 | fi |
ac1cb8d3 | 15506 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15507 | done |
15508 | else | |
15509 | echo "$as_me: failed program was:" >&5 | |
15510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15511 | ||
15512 | cat >conftest.$ac_ext <<_ACEOF | |
15513 | /* confdefs.h. */ | |
15514 | _ACEOF | |
15515 | cat confdefs.h >>conftest.$ac_ext | |
15516 | cat >>conftest.$ac_ext <<_ACEOF | |
15517 | /* end confdefs.h. */ | |
15518 | $ac_includes_default | |
15519 | int | |
15520 | main () | |
15521 | { | |
15522 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
15523 | test_array [0] = 0 | |
15524 | ||
15525 | ; | |
15526 | return 0; | |
15527 | } | |
15528 | _ACEOF | |
15529 | rm -f conftest.$ac_objext | |
15530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15531 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15532 | ac_status=$? |
ac1cb8d3 VS |
15533 | grep -v '^ *+' conftest.er1 >conftest.err |
15534 | rm -f conftest.er1 | |
15535 | cat conftest.err >&5 | |
a848cd7e SC |
15536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15537 | (exit $ac_status); } && | |
89be85c2 VS |
15538 | { ac_try='test -z "$ac_c_werror_flag" |
15539 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15541 | (eval $ac_try) 2>&5 | |
15542 | ac_status=$? | |
15543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15544 | (exit $ac_status); }; } && | |
15545 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15547 | (eval $ac_try) 2>&5 | |
15548 | ac_status=$? | |
15549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15550 | (exit $ac_status); }; }; then | |
15551 | ac_hi=-1 ac_mid=-1 | |
15552 | while :; do | |
15553 | cat >conftest.$ac_ext <<_ACEOF | |
15554 | /* confdefs.h. */ | |
15555 | _ACEOF | |
15556 | cat confdefs.h >>conftest.$ac_ext | |
15557 | cat >>conftest.$ac_ext <<_ACEOF | |
15558 | /* end confdefs.h. */ | |
15559 | $ac_includes_default | |
15560 | int | |
15561 | main () | |
15562 | { | |
15563 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
15564 | test_array [0] = 0 | |
15565 | ||
15566 | ; | |
15567 | return 0; | |
15568 | } | |
15569 | _ACEOF | |
15570 | rm -f conftest.$ac_objext | |
15571 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15572 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15573 | ac_status=$? |
ac1cb8d3 VS |
15574 | grep -v '^ *+' conftest.er1 >conftest.err |
15575 | rm -f conftest.er1 | |
15576 | cat conftest.err >&5 | |
a848cd7e SC |
15577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15578 | (exit $ac_status); } && | |
89be85c2 VS |
15579 | { ac_try='test -z "$ac_c_werror_flag" |
15580 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15582 | (eval $ac_try) 2>&5 | |
15583 | ac_status=$? | |
15584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15585 | (exit $ac_status); }; } && | |
15586 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15588 | (eval $ac_try) 2>&5 | |
15589 | ac_status=$? | |
15590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15591 | (exit $ac_status); }; }; then | |
15592 | ac_lo=$ac_mid; break | |
15593 | else | |
15594 | echo "$as_me: failed program was:" >&5 | |
15595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15596 | ||
15597 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15598 | if test $ac_mid -le $ac_hi; then |
15599 | ac_lo= ac_hi= | |
15600 | break | |
15601 | fi | |
15602 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15603 | fi |
ac1cb8d3 | 15604 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15605 | done |
15606 | else | |
15607 | echo "$as_me: failed program was:" >&5 | |
15608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15609 | ||
15610 | ac_lo= ac_hi= | |
15611 | fi | |
ac1cb8d3 | 15612 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15613 | fi |
ac1cb8d3 | 15614 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15615 | # Binary search between lo and hi bounds. |
15616 | while test "x$ac_lo" != "x$ac_hi"; do | |
15617 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15618 | cat >conftest.$ac_ext <<_ACEOF | |
15619 | /* confdefs.h. */ | |
15620 | _ACEOF | |
15621 | cat confdefs.h >>conftest.$ac_ext | |
15622 | cat >>conftest.$ac_ext <<_ACEOF | |
15623 | /* end confdefs.h. */ | |
15624 | $ac_includes_default | |
15625 | int | |
15626 | main () | |
15627 | { | |
15628 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
15629 | test_array [0] = 0 | |
15630 | ||
15631 | ; | |
15632 | return 0; | |
15633 | } | |
15634 | _ACEOF | |
15635 | rm -f conftest.$ac_objext | |
15636 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15637 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15638 | ac_status=$? |
ac1cb8d3 VS |
15639 | grep -v '^ *+' conftest.er1 >conftest.err |
15640 | rm -f conftest.er1 | |
15641 | cat conftest.err >&5 | |
a848cd7e SC |
15642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15643 | (exit $ac_status); } && | |
89be85c2 VS |
15644 | { ac_try='test -z "$ac_c_werror_flag" |
15645 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15647 | (eval $ac_try) 2>&5 | |
15648 | ac_status=$? | |
15649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15650 | (exit $ac_status); }; } && | |
15651 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15653 | (eval $ac_try) 2>&5 | |
15654 | ac_status=$? | |
15655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15656 | (exit $ac_status); }; }; then | |
15657 | ac_hi=$ac_mid | |
15658 | else | |
15659 | echo "$as_me: failed program was:" >&5 | |
15660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15661 | ||
15662 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15663 | fi | |
ac1cb8d3 | 15664 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15665 | done |
15666 | case $ac_lo in | |
15667 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
15668 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
15669 | See \`config.log' for more details." >&5 | |
15670 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
15671 | See \`config.log' for more details." >&2;} | |
15672 | { (exit 1); exit 1; }; } ;; | |
15673 | esac | |
15674 | else | |
15675 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
15676 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
15677 | See \`config.log' for more details." >&5 | |
15678 | echo "$as_me: error: cannot run test program while cross compiling | |
15679 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
15680 | { (exit 1); exit 1; }; } |
15681 | else | |
15682 | cat >conftest.$ac_ext <<_ACEOF | |
15683 | /* confdefs.h. */ | |
15684 | _ACEOF | |
15685 | cat confdefs.h >>conftest.$ac_ext | |
15686 | cat >>conftest.$ac_ext <<_ACEOF | |
15687 | /* end confdefs.h. */ | |
15688 | $ac_includes_default | |
15689 | long longval () { return (long) (sizeof (char)); } | |
15690 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
15691 | #include <stdio.h> | |
15692 | #include <stdlib.h> | |
15693 | int | |
15694 | main () | |
15695 | { | |
15696 | ||
15697 | FILE *f = fopen ("conftest.val", "w"); | |
15698 | if (! f) | |
15699 | exit (1); | |
15700 | if (((long) (sizeof (char))) < 0) | |
15701 | { | |
15702 | long i = longval (); | |
15703 | if (i != ((long) (sizeof (char)))) | |
15704 | exit (1); | |
15705 | fprintf (f, "%ld\n", i); | |
15706 | } | |
15707 | else | |
15708 | { | |
15709 | unsigned long i = ulongval (); | |
15710 | if (i != ((long) (sizeof (char)))) | |
15711 | exit (1); | |
15712 | fprintf (f, "%lu\n", i); | |
15713 | } | |
15714 | exit (ferror (f) || fclose (f) != 0); | |
15715 | ||
15716 | ; | |
15717 | return 0; | |
15718 | } | |
15719 | _ACEOF | |
15720 | rm -f conftest$ac_exeext | |
15721 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15722 | (eval $ac_link) 2>&5 | |
15723 | ac_status=$? | |
15724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15725 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15727 | (eval $ac_try) 2>&5 | |
15728 | ac_status=$? | |
15729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15730 | (exit $ac_status); }; }; then | |
15731 | ac_cv_sizeof_char=`cat conftest.val` | |
15732 | else | |
15733 | echo "$as_me: program exited with status $ac_status" >&5 | |
15734 | echo "$as_me: failed program was:" >&5 | |
15735 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15736 | ||
15737 | ( exit $ac_status ) | |
15738 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
15739 | See \`config.log' for more details." >&5 | |
15740 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
15741 | See \`config.log' for more details." >&2;} | |
15742 | { (exit 1); exit 1; }; } | |
15743 | fi | |
ac1cb8d3 | 15744 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15745 | fi |
15746 | fi | |
15747 | rm -f conftest.val | |
15748 | else | |
15749 | ac_cv_sizeof_char=0 | |
15750 | fi | |
15751 | fi | |
15752 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
15753 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
15754 | cat >>confdefs.h <<_ACEOF | |
15755 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
15756 | _ACEOF | |
15757 | ||
15758 | ||
15759 | echo "$as_me:$LINENO: checking for short" >&5 | |
15760 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
15761 | if test "${ac_cv_type_short+set}" = set; then | |
15762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15763 | else | |
15764 | cat >conftest.$ac_ext <<_ACEOF | |
15765 | /* confdefs.h. */ | |
15766 | _ACEOF | |
15767 | cat confdefs.h >>conftest.$ac_ext | |
15768 | cat >>conftest.$ac_ext <<_ACEOF | |
15769 | /* end confdefs.h. */ | |
15770 | $ac_includes_default | |
15771 | int | |
15772 | main () | |
15773 | { | |
15774 | if ((short *) 0) | |
15775 | return 0; | |
15776 | if (sizeof (short)) | |
15777 | return 0; | |
15778 | ; | |
15779 | return 0; | |
15780 | } | |
15781 | _ACEOF | |
15782 | rm -f conftest.$ac_objext | |
15783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15784 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15785 | ac_status=$? |
ac1cb8d3 VS |
15786 | grep -v '^ *+' conftest.er1 >conftest.err |
15787 | rm -f conftest.er1 | |
15788 | cat conftest.err >&5 | |
a848cd7e SC |
15789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15790 | (exit $ac_status); } && | |
89be85c2 VS |
15791 | { ac_try='test -z "$ac_c_werror_flag" |
15792 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15794 | (eval $ac_try) 2>&5 | |
15795 | ac_status=$? | |
15796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15797 | (exit $ac_status); }; } && | |
15798 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15800 | (eval $ac_try) 2>&5 | |
15801 | ac_status=$? | |
15802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15803 | (exit $ac_status); }; }; then | |
15804 | ac_cv_type_short=yes | |
15805 | else | |
15806 | echo "$as_me: failed program was:" >&5 | |
15807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15808 | ||
15809 | ac_cv_type_short=no | |
15810 | fi | |
ac1cb8d3 | 15811 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15812 | fi |
15813 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
15814 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
15815 | ||
15816 | echo "$as_me:$LINENO: checking size of short" >&5 | |
15817 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
15818 | if test "${ac_cv_sizeof_short+set}" = set; then | |
15819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15820 | else | |
15821 | if test "$ac_cv_type_short" = yes; then | |
15822 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15823 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15824 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15825 | # This bug is HP SR number 8606223364. | |
15826 | if test "$cross_compiling" = yes; then | |
15827 | # Depending upon the size, compute the lo and hi bounds. | |
15828 | cat >conftest.$ac_ext <<_ACEOF | |
15829 | /* confdefs.h. */ | |
15830 | _ACEOF | |
15831 | cat confdefs.h >>conftest.$ac_ext | |
15832 | cat >>conftest.$ac_ext <<_ACEOF | |
15833 | /* end confdefs.h. */ | |
15834 | $ac_includes_default | |
15835 | int | |
15836 | main () | |
15837 | { | |
15838 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
15839 | test_array [0] = 0 | |
15840 | ||
15841 | ; | |
15842 | return 0; | |
15843 | } | |
15844 | _ACEOF | |
15845 | rm -f conftest.$ac_objext | |
15846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15847 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15848 | ac_status=$? |
ac1cb8d3 VS |
15849 | grep -v '^ *+' conftest.er1 >conftest.err |
15850 | rm -f conftest.er1 | |
15851 | cat conftest.err >&5 | |
a848cd7e SC |
15852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15853 | (exit $ac_status); } && | |
89be85c2 VS |
15854 | { ac_try='test -z "$ac_c_werror_flag" |
15855 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15857 | (eval $ac_try) 2>&5 | |
15858 | ac_status=$? | |
15859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15860 | (exit $ac_status); }; } && | |
15861 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15863 | (eval $ac_try) 2>&5 | |
15864 | ac_status=$? | |
15865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15866 | (exit $ac_status); }; }; then | |
15867 | ac_lo=0 ac_mid=0 | |
15868 | while :; do | |
15869 | cat >conftest.$ac_ext <<_ACEOF | |
15870 | /* confdefs.h. */ | |
15871 | _ACEOF | |
15872 | cat confdefs.h >>conftest.$ac_ext | |
15873 | cat >>conftest.$ac_ext <<_ACEOF | |
15874 | /* end confdefs.h. */ | |
15875 | $ac_includes_default | |
15876 | int | |
15877 | main () | |
15878 | { | |
15879 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
15880 | test_array [0] = 0 | |
15881 | ||
15882 | ; | |
15883 | return 0; | |
15884 | } | |
15885 | _ACEOF | |
15886 | rm -f conftest.$ac_objext | |
15887 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15888 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15889 | ac_status=$? |
ac1cb8d3 VS |
15890 | grep -v '^ *+' conftest.er1 >conftest.err |
15891 | rm -f conftest.er1 | |
15892 | cat conftest.err >&5 | |
a848cd7e SC |
15893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15894 | (exit $ac_status); } && | |
89be85c2 VS |
15895 | { ac_try='test -z "$ac_c_werror_flag" |
15896 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15898 | (eval $ac_try) 2>&5 | |
15899 | ac_status=$? | |
15900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15901 | (exit $ac_status); }; } && | |
15902 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15904 | (eval $ac_try) 2>&5 | |
15905 | ac_status=$? | |
15906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15907 | (exit $ac_status); }; }; then | |
15908 | ac_hi=$ac_mid; break | |
15909 | else | |
15910 | echo "$as_me: failed program was:" >&5 | |
15911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15912 | ||
15913 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15914 | if test $ac_lo -le $ac_mid; then |
15915 | ac_lo= ac_hi= | |
15916 | break | |
15917 | fi | |
15918 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15919 | fi |
ac1cb8d3 | 15920 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15921 | done |
15922 | else | |
15923 | echo "$as_me: failed program was:" >&5 | |
15924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15925 | ||
15926 | cat >conftest.$ac_ext <<_ACEOF | |
15927 | /* confdefs.h. */ | |
15928 | _ACEOF | |
15929 | cat confdefs.h >>conftest.$ac_ext | |
15930 | cat >>conftest.$ac_ext <<_ACEOF | |
15931 | /* end confdefs.h. */ | |
15932 | $ac_includes_default | |
15933 | int | |
15934 | main () | |
15935 | { | |
15936 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
15937 | test_array [0] = 0 | |
15938 | ||
15939 | ; | |
15940 | return 0; | |
15941 | } | |
15942 | _ACEOF | |
15943 | rm -f conftest.$ac_objext | |
15944 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15945 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15946 | ac_status=$? |
ac1cb8d3 VS |
15947 | grep -v '^ *+' conftest.er1 >conftest.err |
15948 | rm -f conftest.er1 | |
15949 | cat conftest.err >&5 | |
a848cd7e SC |
15950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15951 | (exit $ac_status); } && | |
89be85c2 VS |
15952 | { ac_try='test -z "$ac_c_werror_flag" |
15953 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15955 | (eval $ac_try) 2>&5 | |
15956 | ac_status=$? | |
15957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15958 | (exit $ac_status); }; } && | |
15959 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15961 | (eval $ac_try) 2>&5 | |
15962 | ac_status=$? | |
15963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15964 | (exit $ac_status); }; }; then | |
15965 | ac_hi=-1 ac_mid=-1 | |
15966 | while :; do | |
15967 | cat >conftest.$ac_ext <<_ACEOF | |
15968 | /* confdefs.h. */ | |
15969 | _ACEOF | |
15970 | cat confdefs.h >>conftest.$ac_ext | |
15971 | cat >>conftest.$ac_ext <<_ACEOF | |
15972 | /* end confdefs.h. */ | |
15973 | $ac_includes_default | |
15974 | int | |
15975 | main () | |
15976 | { | |
15977 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
15978 | test_array [0] = 0 | |
15979 | ||
15980 | ; | |
15981 | return 0; | |
15982 | } | |
15983 | _ACEOF | |
15984 | rm -f conftest.$ac_objext | |
15985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15986 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15987 | ac_status=$? |
ac1cb8d3 VS |
15988 | grep -v '^ *+' conftest.er1 >conftest.err |
15989 | rm -f conftest.er1 | |
15990 | cat conftest.err >&5 | |
a848cd7e SC |
15991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15992 | (exit $ac_status); } && | |
89be85c2 VS |
15993 | { ac_try='test -z "$ac_c_werror_flag" |
15994 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15996 | (eval $ac_try) 2>&5 | |
15997 | ac_status=$? | |
15998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15999 | (exit $ac_status); }; } && | |
16000 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16002 | (eval $ac_try) 2>&5 | |
16003 | ac_status=$? | |
16004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16005 | (exit $ac_status); }; }; then | |
16006 | ac_lo=$ac_mid; break | |
16007 | else | |
16008 | echo "$as_me: failed program was:" >&5 | |
16009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16010 | ||
16011 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16012 | if test $ac_mid -le $ac_hi; then |
16013 | ac_lo= ac_hi= | |
16014 | break | |
16015 | fi | |
16016 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16017 | fi |
ac1cb8d3 | 16018 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16019 | done |
16020 | else | |
16021 | echo "$as_me: failed program was:" >&5 | |
16022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16023 | ||
16024 | ac_lo= ac_hi= | |
16025 | fi | |
ac1cb8d3 | 16026 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16027 | fi |
ac1cb8d3 | 16028 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16029 | # Binary search between lo and hi bounds. |
16030 | while test "x$ac_lo" != "x$ac_hi"; do | |
16031 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16032 | cat >conftest.$ac_ext <<_ACEOF | |
16033 | /* confdefs.h. */ | |
16034 | _ACEOF | |
16035 | cat confdefs.h >>conftest.$ac_ext | |
16036 | cat >>conftest.$ac_ext <<_ACEOF | |
16037 | /* end confdefs.h. */ | |
16038 | $ac_includes_default | |
16039 | int | |
16040 | main () | |
16041 | { | |
16042 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
16043 | test_array [0] = 0 | |
16044 | ||
16045 | ; | |
16046 | return 0; | |
16047 | } | |
16048 | _ACEOF | |
16049 | rm -f conftest.$ac_objext | |
16050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16051 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16052 | ac_status=$? |
ac1cb8d3 VS |
16053 | grep -v '^ *+' conftest.er1 >conftest.err |
16054 | rm -f conftest.er1 | |
16055 | cat conftest.err >&5 | |
a848cd7e SC |
16056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16057 | (exit $ac_status); } && | |
89be85c2 VS |
16058 | { ac_try='test -z "$ac_c_werror_flag" |
16059 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16061 | (eval $ac_try) 2>&5 | |
16062 | ac_status=$? | |
16063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16064 | (exit $ac_status); }; } && | |
16065 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16067 | (eval $ac_try) 2>&5 | |
16068 | ac_status=$? | |
16069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16070 | (exit $ac_status); }; }; then | |
16071 | ac_hi=$ac_mid | |
16072 | else | |
16073 | echo "$as_me: failed program was:" >&5 | |
16074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16075 | ||
16076 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16077 | fi | |
ac1cb8d3 | 16078 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16079 | done |
16080 | case $ac_lo in | |
16081 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
16082 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
16083 | See \`config.log' for more details." >&5 | |
16084 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
16085 | See \`config.log' for more details." >&2;} | |
16086 | { (exit 1); exit 1; }; } ;; | |
16087 | esac | |
16088 | else | |
16089 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
16090 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
16091 | See \`config.log' for more details." >&5 | |
16092 | echo "$as_me: error: cannot run test program while cross compiling | |
16093 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
16094 | { (exit 1); exit 1; }; } |
16095 | else | |
16096 | cat >conftest.$ac_ext <<_ACEOF | |
16097 | /* confdefs.h. */ | |
16098 | _ACEOF | |
16099 | cat confdefs.h >>conftest.$ac_ext | |
16100 | cat >>conftest.$ac_ext <<_ACEOF | |
16101 | /* end confdefs.h. */ | |
16102 | $ac_includes_default | |
16103 | long longval () { return (long) (sizeof (short)); } | |
16104 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
16105 | #include <stdio.h> | |
16106 | #include <stdlib.h> | |
16107 | int | |
16108 | main () | |
16109 | { | |
16110 | ||
16111 | FILE *f = fopen ("conftest.val", "w"); | |
16112 | if (! f) | |
16113 | exit (1); | |
16114 | if (((long) (sizeof (short))) < 0) | |
16115 | { | |
16116 | long i = longval (); | |
16117 | if (i != ((long) (sizeof (short)))) | |
16118 | exit (1); | |
16119 | fprintf (f, "%ld\n", i); | |
16120 | } | |
16121 | else | |
16122 | { | |
16123 | unsigned long i = ulongval (); | |
16124 | if (i != ((long) (sizeof (short)))) | |
16125 | exit (1); | |
16126 | fprintf (f, "%lu\n", i); | |
16127 | } | |
16128 | exit (ferror (f) || fclose (f) != 0); | |
16129 | ||
16130 | ; | |
16131 | return 0; | |
16132 | } | |
16133 | _ACEOF | |
16134 | rm -f conftest$ac_exeext | |
16135 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16136 | (eval $ac_link) 2>&5 | |
16137 | ac_status=$? | |
16138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16139 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16141 | (eval $ac_try) 2>&5 | |
16142 | ac_status=$? | |
16143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16144 | (exit $ac_status); }; }; then | |
16145 | ac_cv_sizeof_short=`cat conftest.val` | |
16146 | else | |
16147 | echo "$as_me: program exited with status $ac_status" >&5 | |
16148 | echo "$as_me: failed program was:" >&5 | |
16149 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16150 | ||
16151 | ( exit $ac_status ) | |
16152 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
16153 | See \`config.log' for more details." >&5 | |
16154 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
16155 | See \`config.log' for more details." >&2;} | |
16156 | { (exit 1); exit 1; }; } | |
16157 | fi | |
ac1cb8d3 | 16158 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16159 | fi |
16160 | fi | |
16161 | rm -f conftest.val | |
16162 | else | |
16163 | ac_cv_sizeof_short=0 | |
16164 | fi | |
16165 | fi | |
16166 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
16167 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
16168 | cat >>confdefs.h <<_ACEOF | |
16169 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
16170 | _ACEOF | |
16171 | ||
16172 | ||
16173 | echo "$as_me:$LINENO: checking for void *" >&5 | |
16174 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
16175 | if test "${ac_cv_type_void_p+set}" = set; then | |
16176 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16177 | else | |
16178 | cat >conftest.$ac_ext <<_ACEOF | |
16179 | /* confdefs.h. */ | |
16180 | _ACEOF | |
16181 | cat confdefs.h >>conftest.$ac_ext | |
16182 | cat >>conftest.$ac_ext <<_ACEOF | |
16183 | /* end confdefs.h. */ | |
16184 | $ac_includes_default | |
16185 | int | |
16186 | main () | |
16187 | { | |
16188 | if ((void * *) 0) | |
16189 | return 0; | |
16190 | if (sizeof (void *)) | |
16191 | return 0; | |
16192 | ; | |
16193 | return 0; | |
16194 | } | |
16195 | _ACEOF | |
16196 | rm -f conftest.$ac_objext | |
16197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16198 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16199 | ac_status=$? |
ac1cb8d3 VS |
16200 | grep -v '^ *+' conftest.er1 >conftest.err |
16201 | rm -f conftest.er1 | |
16202 | cat conftest.err >&5 | |
a848cd7e SC |
16203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16204 | (exit $ac_status); } && | |
89be85c2 VS |
16205 | { ac_try='test -z "$ac_c_werror_flag" |
16206 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16208 | (eval $ac_try) 2>&5 | |
16209 | ac_status=$? | |
16210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16211 | (exit $ac_status); }; } && | |
16212 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16214 | (eval $ac_try) 2>&5 | |
16215 | ac_status=$? | |
16216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16217 | (exit $ac_status); }; }; then | |
16218 | ac_cv_type_void_p=yes | |
16219 | else | |
16220 | echo "$as_me: failed program was:" >&5 | |
16221 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16222 | ||
16223 | ac_cv_type_void_p=no | |
16224 | fi | |
ac1cb8d3 | 16225 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16226 | fi |
16227 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
16228 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
16229 | ||
16230 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
16231 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
16232 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
16233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16234 | else | |
16235 | if test "$ac_cv_type_void_p" = yes; then | |
16236 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16237 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16238 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16239 | # This bug is HP SR number 8606223364. | |
16240 | if test "$cross_compiling" = yes; then | |
16241 | # Depending upon the size, compute the lo and hi bounds. | |
16242 | cat >conftest.$ac_ext <<_ACEOF | |
16243 | /* confdefs.h. */ | |
16244 | _ACEOF | |
16245 | cat confdefs.h >>conftest.$ac_ext | |
16246 | cat >>conftest.$ac_ext <<_ACEOF | |
16247 | /* end confdefs.h. */ | |
16248 | $ac_includes_default | |
16249 | int | |
16250 | main () | |
16251 | { | |
16252 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
16253 | test_array [0] = 0 | |
16254 | ||
16255 | ; | |
16256 | return 0; | |
16257 | } | |
16258 | _ACEOF | |
16259 | rm -f conftest.$ac_objext | |
16260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16261 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16262 | ac_status=$? |
ac1cb8d3 VS |
16263 | grep -v '^ *+' conftest.er1 >conftest.err |
16264 | rm -f conftest.er1 | |
16265 | cat conftest.err >&5 | |
a848cd7e SC |
16266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16267 | (exit $ac_status); } && | |
89be85c2 VS |
16268 | { ac_try='test -z "$ac_c_werror_flag" |
16269 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16271 | (eval $ac_try) 2>&5 | |
16272 | ac_status=$? | |
16273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16274 | (exit $ac_status); }; } && | |
16275 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16277 | (eval $ac_try) 2>&5 | |
16278 | ac_status=$? | |
16279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16280 | (exit $ac_status); }; }; then | |
16281 | ac_lo=0 ac_mid=0 | |
16282 | while :; do | |
16283 | cat >conftest.$ac_ext <<_ACEOF | |
16284 | /* confdefs.h. */ | |
16285 | _ACEOF | |
16286 | cat confdefs.h >>conftest.$ac_ext | |
16287 | cat >>conftest.$ac_ext <<_ACEOF | |
16288 | /* end confdefs.h. */ | |
16289 | $ac_includes_default | |
16290 | int | |
16291 | main () | |
16292 | { | |
16293 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
16294 | test_array [0] = 0 | |
16295 | ||
16296 | ; | |
16297 | return 0; | |
16298 | } | |
16299 | _ACEOF | |
16300 | rm -f conftest.$ac_objext | |
16301 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16302 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16303 | ac_status=$? |
ac1cb8d3 VS |
16304 | grep -v '^ *+' conftest.er1 >conftest.err |
16305 | rm -f conftest.er1 | |
16306 | cat conftest.err >&5 | |
a848cd7e SC |
16307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16308 | (exit $ac_status); } && | |
89be85c2 VS |
16309 | { ac_try='test -z "$ac_c_werror_flag" |
16310 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16312 | (eval $ac_try) 2>&5 | |
16313 | ac_status=$? | |
16314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16315 | (exit $ac_status); }; } && | |
16316 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16318 | (eval $ac_try) 2>&5 | |
16319 | ac_status=$? | |
16320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16321 | (exit $ac_status); }; }; then | |
16322 | ac_hi=$ac_mid; break | |
16323 | else | |
16324 | echo "$as_me: failed program was:" >&5 | |
16325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16326 | ||
16327 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16328 | if test $ac_lo -le $ac_mid; then |
16329 | ac_lo= ac_hi= | |
16330 | break | |
16331 | fi | |
16332 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16333 | fi |
ac1cb8d3 | 16334 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16335 | done |
16336 | else | |
16337 | echo "$as_me: failed program was:" >&5 | |
16338 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16339 | ||
16340 | cat >conftest.$ac_ext <<_ACEOF | |
16341 | /* confdefs.h. */ | |
16342 | _ACEOF | |
16343 | cat confdefs.h >>conftest.$ac_ext | |
16344 | cat >>conftest.$ac_ext <<_ACEOF | |
16345 | /* end confdefs.h. */ | |
16346 | $ac_includes_default | |
16347 | int | |
16348 | main () | |
16349 | { | |
16350 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
16351 | test_array [0] = 0 | |
16352 | ||
16353 | ; | |
16354 | return 0; | |
16355 | } | |
16356 | _ACEOF | |
16357 | rm -f conftest.$ac_objext | |
16358 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16359 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16360 | ac_status=$? |
ac1cb8d3 VS |
16361 | grep -v '^ *+' conftest.er1 >conftest.err |
16362 | rm -f conftest.er1 | |
16363 | cat conftest.err >&5 | |
a848cd7e SC |
16364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16365 | (exit $ac_status); } && | |
89be85c2 VS |
16366 | { ac_try='test -z "$ac_c_werror_flag" |
16367 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16369 | (eval $ac_try) 2>&5 | |
16370 | ac_status=$? | |
16371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16372 | (exit $ac_status); }; } && | |
16373 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16375 | (eval $ac_try) 2>&5 | |
16376 | ac_status=$? | |
16377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16378 | (exit $ac_status); }; }; then | |
16379 | ac_hi=-1 ac_mid=-1 | |
16380 | while :; do | |
16381 | cat >conftest.$ac_ext <<_ACEOF | |
16382 | /* confdefs.h. */ | |
16383 | _ACEOF | |
16384 | cat confdefs.h >>conftest.$ac_ext | |
16385 | cat >>conftest.$ac_ext <<_ACEOF | |
16386 | /* end confdefs.h. */ | |
16387 | $ac_includes_default | |
16388 | int | |
16389 | main () | |
16390 | { | |
16391 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
16392 | test_array [0] = 0 | |
16393 | ||
16394 | ; | |
16395 | return 0; | |
16396 | } | |
16397 | _ACEOF | |
16398 | rm -f conftest.$ac_objext | |
16399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16400 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16401 | ac_status=$? |
ac1cb8d3 VS |
16402 | grep -v '^ *+' conftest.er1 >conftest.err |
16403 | rm -f conftest.er1 | |
16404 | cat conftest.err >&5 | |
a848cd7e SC |
16405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16406 | (exit $ac_status); } && | |
89be85c2 VS |
16407 | { ac_try='test -z "$ac_c_werror_flag" |
16408 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16410 | (eval $ac_try) 2>&5 | |
16411 | ac_status=$? | |
16412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16413 | (exit $ac_status); }; } && | |
16414 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16416 | (eval $ac_try) 2>&5 | |
16417 | ac_status=$? | |
16418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16419 | (exit $ac_status); }; }; then | |
16420 | ac_lo=$ac_mid; break | |
16421 | else | |
16422 | echo "$as_me: failed program was:" >&5 | |
16423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16424 | ||
16425 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16426 | if test $ac_mid -le $ac_hi; then |
16427 | ac_lo= ac_hi= | |
16428 | break | |
16429 | fi | |
16430 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16431 | fi |
ac1cb8d3 | 16432 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16433 | done |
16434 | else | |
16435 | echo "$as_me: failed program was:" >&5 | |
16436 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16437 | ||
16438 | ac_lo= ac_hi= | |
16439 | fi | |
ac1cb8d3 | 16440 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16441 | fi |
ac1cb8d3 | 16442 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16443 | # Binary search between lo and hi bounds. |
16444 | while test "x$ac_lo" != "x$ac_hi"; do | |
16445 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16446 | cat >conftest.$ac_ext <<_ACEOF | |
16447 | /* confdefs.h. */ | |
16448 | _ACEOF | |
16449 | cat confdefs.h >>conftest.$ac_ext | |
16450 | cat >>conftest.$ac_ext <<_ACEOF | |
16451 | /* end confdefs.h. */ | |
16452 | $ac_includes_default | |
16453 | int | |
16454 | main () | |
16455 | { | |
16456 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
16457 | test_array [0] = 0 | |
16458 | ||
16459 | ; | |
16460 | return 0; | |
16461 | } | |
16462 | _ACEOF | |
16463 | rm -f conftest.$ac_objext | |
16464 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16465 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16466 | ac_status=$? |
ac1cb8d3 VS |
16467 | grep -v '^ *+' conftest.er1 >conftest.err |
16468 | rm -f conftest.er1 | |
16469 | cat conftest.err >&5 | |
a848cd7e SC |
16470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16471 | (exit $ac_status); } && | |
89be85c2 VS |
16472 | { ac_try='test -z "$ac_c_werror_flag" |
16473 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16475 | (eval $ac_try) 2>&5 | |
16476 | ac_status=$? | |
16477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16478 | (exit $ac_status); }; } && | |
16479 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16481 | (eval $ac_try) 2>&5 | |
16482 | ac_status=$? | |
16483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16484 | (exit $ac_status); }; }; then | |
16485 | ac_hi=$ac_mid | |
16486 | else | |
16487 | echo "$as_me: failed program was:" >&5 | |
16488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16489 | ||
16490 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16491 | fi | |
ac1cb8d3 | 16492 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16493 | done |
16494 | case $ac_lo in | |
16495 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
16496 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
16497 | See \`config.log' for more details." >&5 | |
16498 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
16499 | See \`config.log' for more details." >&2;} | |
16500 | { (exit 1); exit 1; }; } ;; | |
16501 | esac | |
16502 | else | |
16503 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
16504 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
16505 | See \`config.log' for more details." >&5 | |
16506 | echo "$as_me: error: cannot run test program while cross compiling | |
16507 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
16508 | { (exit 1); exit 1; }; } |
16509 | else | |
16510 | cat >conftest.$ac_ext <<_ACEOF | |
16511 | /* confdefs.h. */ | |
16512 | _ACEOF | |
16513 | cat confdefs.h >>conftest.$ac_ext | |
16514 | cat >>conftest.$ac_ext <<_ACEOF | |
16515 | /* end confdefs.h. */ | |
16516 | $ac_includes_default | |
16517 | long longval () { return (long) (sizeof (void *)); } | |
16518 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
16519 | #include <stdio.h> | |
16520 | #include <stdlib.h> | |
16521 | int | |
16522 | main () | |
16523 | { | |
16524 | ||
16525 | FILE *f = fopen ("conftest.val", "w"); | |
16526 | if (! f) | |
16527 | exit (1); | |
16528 | if (((long) (sizeof (void *))) < 0) | |
16529 | { | |
16530 | long i = longval (); | |
16531 | if (i != ((long) (sizeof (void *)))) | |
16532 | exit (1); | |
16533 | fprintf (f, "%ld\n", i); | |
16534 | } | |
16535 | else | |
16536 | { | |
16537 | unsigned long i = ulongval (); | |
16538 | if (i != ((long) (sizeof (void *)))) | |
16539 | exit (1); | |
16540 | fprintf (f, "%lu\n", i); | |
16541 | } | |
16542 | exit (ferror (f) || fclose (f) != 0); | |
16543 | ||
16544 | ; | |
16545 | return 0; | |
16546 | } | |
16547 | _ACEOF | |
16548 | rm -f conftest$ac_exeext | |
16549 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16550 | (eval $ac_link) 2>&5 | |
16551 | ac_status=$? | |
16552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16553 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16555 | (eval $ac_try) 2>&5 | |
16556 | ac_status=$? | |
16557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16558 | (exit $ac_status); }; }; then | |
16559 | ac_cv_sizeof_void_p=`cat conftest.val` | |
16560 | else | |
16561 | echo "$as_me: program exited with status $ac_status" >&5 | |
16562 | echo "$as_me: failed program was:" >&5 | |
16563 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16564 | ||
16565 | ( exit $ac_status ) | |
16566 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
16567 | See \`config.log' for more details." >&5 | |
16568 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
16569 | See \`config.log' for more details." >&2;} | |
16570 | { (exit 1); exit 1; }; } | |
16571 | fi | |
ac1cb8d3 | 16572 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16573 | fi |
16574 | fi | |
16575 | rm -f conftest.val | |
16576 | else | |
16577 | ac_cv_sizeof_void_p=0 | |
16578 | fi | |
16579 | fi | |
16580 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
16581 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
16582 | cat >>confdefs.h <<_ACEOF | |
16583 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
16584 | _ACEOF | |
16585 | ||
16586 | ||
16587 | echo "$as_me:$LINENO: checking for int" >&5 | |
16588 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
16589 | if test "${ac_cv_type_int+set}" = set; then | |
16590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16591 | else | |
16592 | cat >conftest.$ac_ext <<_ACEOF | |
16593 | /* confdefs.h. */ | |
16594 | _ACEOF | |
16595 | cat confdefs.h >>conftest.$ac_ext | |
16596 | cat >>conftest.$ac_ext <<_ACEOF | |
16597 | /* end confdefs.h. */ | |
16598 | $ac_includes_default | |
16599 | int | |
16600 | main () | |
16601 | { | |
16602 | if ((int *) 0) | |
16603 | return 0; | |
16604 | if (sizeof (int)) | |
16605 | return 0; | |
16606 | ; | |
16607 | return 0; | |
16608 | } | |
16609 | _ACEOF | |
16610 | rm -f conftest.$ac_objext | |
16611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16612 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16613 | ac_status=$? |
ac1cb8d3 VS |
16614 | grep -v '^ *+' conftest.er1 >conftest.err |
16615 | rm -f conftest.er1 | |
16616 | cat conftest.err >&5 | |
a848cd7e SC |
16617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16618 | (exit $ac_status); } && | |
89be85c2 VS |
16619 | { ac_try='test -z "$ac_c_werror_flag" |
16620 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16622 | (eval $ac_try) 2>&5 | |
16623 | ac_status=$? | |
16624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16625 | (exit $ac_status); }; } && | |
16626 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16628 | (eval $ac_try) 2>&5 | |
16629 | ac_status=$? | |
16630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16631 | (exit $ac_status); }; }; then | |
16632 | ac_cv_type_int=yes | |
16633 | else | |
16634 | echo "$as_me: failed program was:" >&5 | |
16635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16636 | ||
16637 | ac_cv_type_int=no | |
16638 | fi | |
ac1cb8d3 | 16639 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16640 | fi |
16641 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
16642 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
16643 | ||
16644 | echo "$as_me:$LINENO: checking size of int" >&5 | |
16645 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
16646 | if test "${ac_cv_sizeof_int+set}" = set; then | |
16647 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16648 | else | |
16649 | if test "$ac_cv_type_int" = yes; then | |
16650 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16651 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16652 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16653 | # This bug is HP SR number 8606223364. | |
16654 | if test "$cross_compiling" = yes; then | |
16655 | # Depending upon the size, compute the lo and hi bounds. | |
16656 | cat >conftest.$ac_ext <<_ACEOF | |
16657 | /* confdefs.h. */ | |
16658 | _ACEOF | |
16659 | cat confdefs.h >>conftest.$ac_ext | |
16660 | cat >>conftest.$ac_ext <<_ACEOF | |
16661 | /* end confdefs.h. */ | |
16662 | $ac_includes_default | |
16663 | int | |
16664 | main () | |
16665 | { | |
16666 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
16667 | test_array [0] = 0 | |
16668 | ||
16669 | ; | |
16670 | return 0; | |
16671 | } | |
16672 | _ACEOF | |
16673 | rm -f conftest.$ac_objext | |
16674 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16675 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16676 | ac_status=$? |
ac1cb8d3 VS |
16677 | grep -v '^ *+' conftest.er1 >conftest.err |
16678 | rm -f conftest.er1 | |
16679 | cat conftest.err >&5 | |
a848cd7e SC |
16680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16681 | (exit $ac_status); } && | |
89be85c2 VS |
16682 | { ac_try='test -z "$ac_c_werror_flag" |
16683 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16685 | (eval $ac_try) 2>&5 | |
16686 | ac_status=$? | |
16687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16688 | (exit $ac_status); }; } && | |
16689 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16691 | (eval $ac_try) 2>&5 | |
16692 | ac_status=$? | |
16693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16694 | (exit $ac_status); }; }; then | |
16695 | ac_lo=0 ac_mid=0 | |
16696 | while :; do | |
16697 | cat >conftest.$ac_ext <<_ACEOF | |
16698 | /* confdefs.h. */ | |
16699 | _ACEOF | |
16700 | cat confdefs.h >>conftest.$ac_ext | |
16701 | cat >>conftest.$ac_ext <<_ACEOF | |
16702 | /* end confdefs.h. */ | |
16703 | $ac_includes_default | |
16704 | int | |
16705 | main () | |
16706 | { | |
16707 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
16708 | test_array [0] = 0 | |
16709 | ||
16710 | ; | |
16711 | return 0; | |
16712 | } | |
16713 | _ACEOF | |
16714 | rm -f conftest.$ac_objext | |
16715 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16716 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16717 | ac_status=$? |
ac1cb8d3 VS |
16718 | grep -v '^ *+' conftest.er1 >conftest.err |
16719 | rm -f conftest.er1 | |
16720 | cat conftest.err >&5 | |
a848cd7e SC |
16721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16722 | (exit $ac_status); } && | |
89be85c2 VS |
16723 | { ac_try='test -z "$ac_c_werror_flag" |
16724 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16726 | (eval $ac_try) 2>&5 | |
16727 | ac_status=$? | |
16728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16729 | (exit $ac_status); }; } && | |
16730 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16732 | (eval $ac_try) 2>&5 | |
16733 | ac_status=$? | |
16734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16735 | (exit $ac_status); }; }; then | |
16736 | ac_hi=$ac_mid; break | |
16737 | else | |
16738 | echo "$as_me: failed program was:" >&5 | |
16739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16740 | ||
16741 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16742 | if test $ac_lo -le $ac_mid; then |
16743 | ac_lo= ac_hi= | |
16744 | break | |
16745 | fi | |
16746 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16747 | fi |
ac1cb8d3 | 16748 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16749 | done |
16750 | else | |
16751 | echo "$as_me: failed program was:" >&5 | |
16752 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16753 | ||
16754 | cat >conftest.$ac_ext <<_ACEOF | |
16755 | /* confdefs.h. */ | |
16756 | _ACEOF | |
16757 | cat confdefs.h >>conftest.$ac_ext | |
16758 | cat >>conftest.$ac_ext <<_ACEOF | |
16759 | /* end confdefs.h. */ | |
16760 | $ac_includes_default | |
16761 | int | |
16762 | main () | |
16763 | { | |
16764 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
16765 | test_array [0] = 0 | |
16766 | ||
16767 | ; | |
16768 | return 0; | |
16769 | } | |
16770 | _ACEOF | |
16771 | rm -f conftest.$ac_objext | |
16772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16773 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16774 | ac_status=$? |
ac1cb8d3 VS |
16775 | grep -v '^ *+' conftest.er1 >conftest.err |
16776 | rm -f conftest.er1 | |
16777 | cat conftest.err >&5 | |
a848cd7e SC |
16778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16779 | (exit $ac_status); } && | |
89be85c2 VS |
16780 | { ac_try='test -z "$ac_c_werror_flag" |
16781 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16783 | (eval $ac_try) 2>&5 | |
16784 | ac_status=$? | |
16785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16786 | (exit $ac_status); }; } && | |
16787 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16789 | (eval $ac_try) 2>&5 | |
16790 | ac_status=$? | |
16791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16792 | (exit $ac_status); }; }; then | |
16793 | ac_hi=-1 ac_mid=-1 | |
16794 | while :; do | |
16795 | cat >conftest.$ac_ext <<_ACEOF | |
16796 | /* confdefs.h. */ | |
16797 | _ACEOF | |
16798 | cat confdefs.h >>conftest.$ac_ext | |
16799 | cat >>conftest.$ac_ext <<_ACEOF | |
16800 | /* end confdefs.h. */ | |
16801 | $ac_includes_default | |
16802 | int | |
16803 | main () | |
16804 | { | |
16805 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
16806 | test_array [0] = 0 | |
16807 | ||
16808 | ; | |
16809 | return 0; | |
16810 | } | |
16811 | _ACEOF | |
16812 | rm -f conftest.$ac_objext | |
16813 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16814 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16815 | ac_status=$? |
ac1cb8d3 VS |
16816 | grep -v '^ *+' conftest.er1 >conftest.err |
16817 | rm -f conftest.er1 | |
16818 | cat conftest.err >&5 | |
a848cd7e SC |
16819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16820 | (exit $ac_status); } && | |
89be85c2 VS |
16821 | { ac_try='test -z "$ac_c_werror_flag" |
16822 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16824 | (eval $ac_try) 2>&5 | |
16825 | ac_status=$? | |
16826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16827 | (exit $ac_status); }; } && | |
16828 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16830 | (eval $ac_try) 2>&5 | |
16831 | ac_status=$? | |
16832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16833 | (exit $ac_status); }; }; then | |
16834 | ac_lo=$ac_mid; break | |
16835 | else | |
16836 | echo "$as_me: failed program was:" >&5 | |
16837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16838 | ||
16839 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16840 | if test $ac_mid -le $ac_hi; then |
16841 | ac_lo= ac_hi= | |
16842 | break | |
16843 | fi | |
16844 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16845 | fi |
ac1cb8d3 | 16846 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16847 | done |
16848 | else | |
16849 | echo "$as_me: failed program was:" >&5 | |
16850 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16851 | ||
16852 | ac_lo= ac_hi= | |
16853 | fi | |
ac1cb8d3 | 16854 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16855 | fi |
ac1cb8d3 | 16856 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16857 | # Binary search between lo and hi bounds. |
16858 | while test "x$ac_lo" != "x$ac_hi"; do | |
16859 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16860 | cat >conftest.$ac_ext <<_ACEOF | |
16861 | /* confdefs.h. */ | |
16862 | _ACEOF | |
16863 | cat confdefs.h >>conftest.$ac_ext | |
16864 | cat >>conftest.$ac_ext <<_ACEOF | |
16865 | /* end confdefs.h. */ | |
16866 | $ac_includes_default | |
16867 | int | |
16868 | main () | |
16869 | { | |
16870 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
16871 | test_array [0] = 0 | |
16872 | ||
16873 | ; | |
16874 | return 0; | |
16875 | } | |
16876 | _ACEOF | |
16877 | rm -f conftest.$ac_objext | |
16878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16879 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16880 | ac_status=$? |
ac1cb8d3 VS |
16881 | grep -v '^ *+' conftest.er1 >conftest.err |
16882 | rm -f conftest.er1 | |
16883 | cat conftest.err >&5 | |
a848cd7e SC |
16884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16885 | (exit $ac_status); } && | |
89be85c2 VS |
16886 | { ac_try='test -z "$ac_c_werror_flag" |
16887 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16889 | (eval $ac_try) 2>&5 | |
16890 | ac_status=$? | |
16891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16892 | (exit $ac_status); }; } && | |
16893 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16895 | (eval $ac_try) 2>&5 | |
16896 | ac_status=$? | |
16897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16898 | (exit $ac_status); }; }; then | |
16899 | ac_hi=$ac_mid | |
16900 | else | |
16901 | echo "$as_me: failed program was:" >&5 | |
16902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16903 | ||
16904 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16905 | fi | |
ac1cb8d3 | 16906 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16907 | done |
16908 | case $ac_lo in | |
16909 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
16910 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
16911 | See \`config.log' for more details." >&5 | |
16912 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
16913 | See \`config.log' for more details." >&2;} | |
16914 | { (exit 1); exit 1; }; } ;; | |
16915 | esac | |
16916 | else | |
16917 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
16918 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
16919 | See \`config.log' for more details." >&5 | |
16920 | echo "$as_me: error: cannot run test program while cross compiling | |
16921 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
16922 | { (exit 1); exit 1; }; } |
16923 | else | |
16924 | cat >conftest.$ac_ext <<_ACEOF | |
16925 | /* confdefs.h. */ | |
16926 | _ACEOF | |
16927 | cat confdefs.h >>conftest.$ac_ext | |
16928 | cat >>conftest.$ac_ext <<_ACEOF | |
16929 | /* end confdefs.h. */ | |
16930 | $ac_includes_default | |
16931 | long longval () { return (long) (sizeof (int)); } | |
16932 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
16933 | #include <stdio.h> | |
16934 | #include <stdlib.h> | |
16935 | int | |
16936 | main () | |
16937 | { | |
16938 | ||
16939 | FILE *f = fopen ("conftest.val", "w"); | |
16940 | if (! f) | |
16941 | exit (1); | |
16942 | if (((long) (sizeof (int))) < 0) | |
16943 | { | |
16944 | long i = longval (); | |
16945 | if (i != ((long) (sizeof (int)))) | |
16946 | exit (1); | |
16947 | fprintf (f, "%ld\n", i); | |
16948 | } | |
16949 | else | |
16950 | { | |
16951 | unsigned long i = ulongval (); | |
16952 | if (i != ((long) (sizeof (int)))) | |
16953 | exit (1); | |
16954 | fprintf (f, "%lu\n", i); | |
16955 | } | |
16956 | exit (ferror (f) || fclose (f) != 0); | |
16957 | ||
16958 | ; | |
16959 | return 0; | |
16960 | } | |
16961 | _ACEOF | |
16962 | rm -f conftest$ac_exeext | |
16963 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16964 | (eval $ac_link) 2>&5 | |
16965 | ac_status=$? | |
16966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16967 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16969 | (eval $ac_try) 2>&5 | |
16970 | ac_status=$? | |
16971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16972 | (exit $ac_status); }; }; then | |
16973 | ac_cv_sizeof_int=`cat conftest.val` | |
16974 | else | |
16975 | echo "$as_me: program exited with status $ac_status" >&5 | |
16976 | echo "$as_me: failed program was:" >&5 | |
16977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16978 | ||
16979 | ( exit $ac_status ) | |
16980 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
16981 | See \`config.log' for more details." >&5 | |
16982 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
16983 | See \`config.log' for more details." >&2;} | |
16984 | { (exit 1); exit 1; }; } | |
16985 | fi | |
ac1cb8d3 | 16986 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16987 | fi |
16988 | fi | |
16989 | rm -f conftest.val | |
16990 | else | |
16991 | ac_cv_sizeof_int=0 | |
16992 | fi | |
16993 | fi | |
16994 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
16995 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
16996 | cat >>confdefs.h <<_ACEOF | |
16997 | #define SIZEOF_INT $ac_cv_sizeof_int | |
16998 | _ACEOF | |
16999 | ||
17000 | ||
17001 | echo "$as_me:$LINENO: checking for long" >&5 | |
17002 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
17003 | if test "${ac_cv_type_long+set}" = set; then | |
17004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17005 | else | |
17006 | cat >conftest.$ac_ext <<_ACEOF | |
17007 | /* confdefs.h. */ | |
17008 | _ACEOF | |
17009 | cat confdefs.h >>conftest.$ac_ext | |
17010 | cat >>conftest.$ac_ext <<_ACEOF | |
17011 | /* end confdefs.h. */ | |
17012 | $ac_includes_default | |
17013 | int | |
17014 | main () | |
17015 | { | |
17016 | if ((long *) 0) | |
17017 | return 0; | |
17018 | if (sizeof (long)) | |
17019 | return 0; | |
17020 | ; | |
17021 | return 0; | |
17022 | } | |
17023 | _ACEOF | |
17024 | rm -f conftest.$ac_objext | |
17025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17026 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17027 | ac_status=$? |
ac1cb8d3 VS |
17028 | grep -v '^ *+' conftest.er1 >conftest.err |
17029 | rm -f conftest.er1 | |
17030 | cat conftest.err >&5 | |
a848cd7e SC |
17031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17032 | (exit $ac_status); } && | |
89be85c2 VS |
17033 | { ac_try='test -z "$ac_c_werror_flag" |
17034 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17036 | (eval $ac_try) 2>&5 | |
17037 | ac_status=$? | |
17038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17039 | (exit $ac_status); }; } && | |
17040 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17042 | (eval $ac_try) 2>&5 | |
17043 | ac_status=$? | |
17044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17045 | (exit $ac_status); }; }; then | |
17046 | ac_cv_type_long=yes | |
17047 | else | |
17048 | echo "$as_me: failed program was:" >&5 | |
17049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17050 | ||
17051 | ac_cv_type_long=no | |
17052 | fi | |
ac1cb8d3 | 17053 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17054 | fi |
17055 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
17056 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
17057 | ||
17058 | echo "$as_me:$LINENO: checking size of long" >&5 | |
17059 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
17060 | if test "${ac_cv_sizeof_long+set}" = set; then | |
17061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17062 | else | |
17063 | if test "$ac_cv_type_long" = yes; then | |
17064 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17065 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17066 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17067 | # This bug is HP SR number 8606223364. | |
17068 | if test "$cross_compiling" = yes; then | |
17069 | # Depending upon the size, compute the lo and hi bounds. | |
17070 | cat >conftest.$ac_ext <<_ACEOF | |
17071 | /* confdefs.h. */ | |
17072 | _ACEOF | |
17073 | cat confdefs.h >>conftest.$ac_ext | |
17074 | cat >>conftest.$ac_ext <<_ACEOF | |
17075 | /* end confdefs.h. */ | |
17076 | $ac_includes_default | |
17077 | int | |
17078 | main () | |
17079 | { | |
17080 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
17081 | test_array [0] = 0 | |
17082 | ||
17083 | ; | |
17084 | return 0; | |
17085 | } | |
17086 | _ACEOF | |
17087 | rm -f conftest.$ac_objext | |
17088 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17089 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17090 | ac_status=$? |
ac1cb8d3 VS |
17091 | grep -v '^ *+' conftest.er1 >conftest.err |
17092 | rm -f conftest.er1 | |
17093 | cat conftest.err >&5 | |
a848cd7e SC |
17094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17095 | (exit $ac_status); } && | |
89be85c2 VS |
17096 | { ac_try='test -z "$ac_c_werror_flag" |
17097 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17099 | (eval $ac_try) 2>&5 | |
17100 | ac_status=$? | |
17101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17102 | (exit $ac_status); }; } && | |
17103 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17105 | (eval $ac_try) 2>&5 | |
17106 | ac_status=$? | |
17107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17108 | (exit $ac_status); }; }; then | |
17109 | ac_lo=0 ac_mid=0 | |
17110 | while :; do | |
17111 | cat >conftest.$ac_ext <<_ACEOF | |
17112 | /* confdefs.h. */ | |
17113 | _ACEOF | |
17114 | cat confdefs.h >>conftest.$ac_ext | |
17115 | cat >>conftest.$ac_ext <<_ACEOF | |
17116 | /* end confdefs.h. */ | |
17117 | $ac_includes_default | |
17118 | int | |
17119 | main () | |
17120 | { | |
17121 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
17122 | test_array [0] = 0 | |
17123 | ||
17124 | ; | |
17125 | return 0; | |
17126 | } | |
17127 | _ACEOF | |
17128 | rm -f conftest.$ac_objext | |
17129 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17130 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17131 | ac_status=$? |
ac1cb8d3 VS |
17132 | grep -v '^ *+' conftest.er1 >conftest.err |
17133 | rm -f conftest.er1 | |
17134 | cat conftest.err >&5 | |
a848cd7e SC |
17135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17136 | (exit $ac_status); } && | |
89be85c2 VS |
17137 | { ac_try='test -z "$ac_c_werror_flag" |
17138 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17140 | (eval $ac_try) 2>&5 | |
17141 | ac_status=$? | |
17142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17143 | (exit $ac_status); }; } && | |
17144 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17146 | (eval $ac_try) 2>&5 | |
17147 | ac_status=$? | |
17148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17149 | (exit $ac_status); }; }; then | |
17150 | ac_hi=$ac_mid; break | |
17151 | else | |
17152 | echo "$as_me: failed program was:" >&5 | |
17153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17154 | ||
17155 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17156 | if test $ac_lo -le $ac_mid; then |
17157 | ac_lo= ac_hi= | |
17158 | break | |
17159 | fi | |
17160 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17161 | fi |
ac1cb8d3 | 17162 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17163 | done |
17164 | else | |
17165 | echo "$as_me: failed program was:" >&5 | |
17166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17167 | ||
17168 | cat >conftest.$ac_ext <<_ACEOF | |
17169 | /* confdefs.h. */ | |
17170 | _ACEOF | |
17171 | cat confdefs.h >>conftest.$ac_ext | |
17172 | cat >>conftest.$ac_ext <<_ACEOF | |
17173 | /* end confdefs.h. */ | |
17174 | $ac_includes_default | |
17175 | int | |
17176 | main () | |
17177 | { | |
17178 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
17179 | test_array [0] = 0 | |
17180 | ||
17181 | ; | |
17182 | return 0; | |
17183 | } | |
17184 | _ACEOF | |
17185 | rm -f conftest.$ac_objext | |
17186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17187 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17188 | ac_status=$? |
ac1cb8d3 VS |
17189 | grep -v '^ *+' conftest.er1 >conftest.err |
17190 | rm -f conftest.er1 | |
17191 | cat conftest.err >&5 | |
a848cd7e SC |
17192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17193 | (exit $ac_status); } && | |
89be85c2 VS |
17194 | { ac_try='test -z "$ac_c_werror_flag" |
17195 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17197 | (eval $ac_try) 2>&5 | |
17198 | ac_status=$? | |
17199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17200 | (exit $ac_status); }; } && | |
17201 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17203 | (eval $ac_try) 2>&5 | |
17204 | ac_status=$? | |
17205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17206 | (exit $ac_status); }; }; then | |
17207 | ac_hi=-1 ac_mid=-1 | |
17208 | while :; do | |
17209 | cat >conftest.$ac_ext <<_ACEOF | |
17210 | /* confdefs.h. */ | |
17211 | _ACEOF | |
17212 | cat confdefs.h >>conftest.$ac_ext | |
17213 | cat >>conftest.$ac_ext <<_ACEOF | |
17214 | /* end confdefs.h. */ | |
17215 | $ac_includes_default | |
17216 | int | |
17217 | main () | |
17218 | { | |
17219 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
17220 | test_array [0] = 0 | |
17221 | ||
17222 | ; | |
17223 | return 0; | |
17224 | } | |
17225 | _ACEOF | |
17226 | rm -f conftest.$ac_objext | |
17227 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17228 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17229 | ac_status=$? |
ac1cb8d3 VS |
17230 | grep -v '^ *+' conftest.er1 >conftest.err |
17231 | rm -f conftest.er1 | |
17232 | cat conftest.err >&5 | |
a848cd7e SC |
17233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17234 | (exit $ac_status); } && | |
89be85c2 VS |
17235 | { ac_try='test -z "$ac_c_werror_flag" |
17236 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17238 | (eval $ac_try) 2>&5 | |
17239 | ac_status=$? | |
17240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17241 | (exit $ac_status); }; } && | |
17242 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17244 | (eval $ac_try) 2>&5 | |
17245 | ac_status=$? | |
17246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17247 | (exit $ac_status); }; }; then | |
17248 | ac_lo=$ac_mid; break | |
17249 | else | |
17250 | echo "$as_me: failed program was:" >&5 | |
17251 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17252 | ||
17253 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17254 | if test $ac_mid -le $ac_hi; then |
17255 | ac_lo= ac_hi= | |
17256 | break | |
17257 | fi | |
17258 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17259 | fi |
ac1cb8d3 | 17260 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17261 | done |
17262 | else | |
17263 | echo "$as_me: failed program was:" >&5 | |
17264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17265 | ||
17266 | ac_lo= ac_hi= | |
17267 | fi | |
ac1cb8d3 | 17268 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17269 | fi |
ac1cb8d3 | 17270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17271 | # Binary search between lo and hi bounds. |
17272 | while test "x$ac_lo" != "x$ac_hi"; do | |
17273 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17274 | cat >conftest.$ac_ext <<_ACEOF | |
17275 | /* confdefs.h. */ | |
17276 | _ACEOF | |
17277 | cat confdefs.h >>conftest.$ac_ext | |
17278 | cat >>conftest.$ac_ext <<_ACEOF | |
17279 | /* end confdefs.h. */ | |
17280 | $ac_includes_default | |
17281 | int | |
17282 | main () | |
17283 | { | |
17284 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
17285 | test_array [0] = 0 | |
17286 | ||
17287 | ; | |
17288 | return 0; | |
17289 | } | |
17290 | _ACEOF | |
17291 | rm -f conftest.$ac_objext | |
17292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17293 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17294 | ac_status=$? |
ac1cb8d3 VS |
17295 | grep -v '^ *+' conftest.er1 >conftest.err |
17296 | rm -f conftest.er1 | |
17297 | cat conftest.err >&5 | |
a848cd7e SC |
17298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17299 | (exit $ac_status); } && | |
89be85c2 VS |
17300 | { ac_try='test -z "$ac_c_werror_flag" |
17301 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17303 | (eval $ac_try) 2>&5 | |
17304 | ac_status=$? | |
17305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17306 | (exit $ac_status); }; } && | |
17307 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17309 | (eval $ac_try) 2>&5 | |
17310 | ac_status=$? | |
17311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17312 | (exit $ac_status); }; }; then | |
17313 | ac_hi=$ac_mid | |
17314 | else | |
17315 | echo "$as_me: failed program was:" >&5 | |
17316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17317 | ||
17318 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17319 | fi | |
ac1cb8d3 | 17320 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17321 | done |
17322 | case $ac_lo in | |
17323 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
17324 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
17325 | See \`config.log' for more details." >&5 | |
17326 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
17327 | See \`config.log' for more details." >&2;} | |
17328 | { (exit 1); exit 1; }; } ;; | |
17329 | esac | |
17330 | else | |
17331 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
17332 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17333 | See \`config.log' for more details." >&5 | |
17334 | echo "$as_me: error: cannot run test program while cross compiling | |
17335 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17336 | { (exit 1); exit 1; }; } |
17337 | else | |
17338 | cat >conftest.$ac_ext <<_ACEOF | |
17339 | /* confdefs.h. */ | |
17340 | _ACEOF | |
17341 | cat confdefs.h >>conftest.$ac_ext | |
17342 | cat >>conftest.$ac_ext <<_ACEOF | |
17343 | /* end confdefs.h. */ | |
17344 | $ac_includes_default | |
17345 | long longval () { return (long) (sizeof (long)); } | |
17346 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
17347 | #include <stdio.h> | |
17348 | #include <stdlib.h> | |
17349 | int | |
17350 | main () | |
17351 | { | |
17352 | ||
17353 | FILE *f = fopen ("conftest.val", "w"); | |
17354 | if (! f) | |
17355 | exit (1); | |
17356 | if (((long) (sizeof (long))) < 0) | |
17357 | { | |
17358 | long i = longval (); | |
17359 | if (i != ((long) (sizeof (long)))) | |
17360 | exit (1); | |
17361 | fprintf (f, "%ld\n", i); | |
17362 | } | |
17363 | else | |
17364 | { | |
17365 | unsigned long i = ulongval (); | |
17366 | if (i != ((long) (sizeof (long)))) | |
17367 | exit (1); | |
17368 | fprintf (f, "%lu\n", i); | |
17369 | } | |
17370 | exit (ferror (f) || fclose (f) != 0); | |
17371 | ||
17372 | ; | |
17373 | return 0; | |
17374 | } | |
17375 | _ACEOF | |
17376 | rm -f conftest$ac_exeext | |
17377 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17378 | (eval $ac_link) 2>&5 | |
17379 | ac_status=$? | |
17380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17381 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17383 | (eval $ac_try) 2>&5 | |
17384 | ac_status=$? | |
17385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17386 | (exit $ac_status); }; }; then | |
17387 | ac_cv_sizeof_long=`cat conftest.val` | |
17388 | else | |
17389 | echo "$as_me: program exited with status $ac_status" >&5 | |
17390 | echo "$as_me: failed program was:" >&5 | |
17391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17392 | ||
17393 | ( exit $ac_status ) | |
17394 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
17395 | See \`config.log' for more details." >&5 | |
17396 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
17397 | See \`config.log' for more details." >&2;} | |
17398 | { (exit 1); exit 1; }; } | |
17399 | fi | |
ac1cb8d3 | 17400 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17401 | fi |
17402 | fi | |
17403 | rm -f conftest.val | |
17404 | else | |
17405 | ac_cv_sizeof_long=0 | |
17406 | fi | |
17407 | fi | |
17408 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
17409 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
17410 | cat >>confdefs.h <<_ACEOF | |
17411 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
17412 | _ACEOF | |
17413 | ||
17414 | ||
17415 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
17416 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
17417 | if test "${ac_cv_type_size_t+set}" = set; then | |
17418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17419 | else | |
17420 | cat >conftest.$ac_ext <<_ACEOF | |
17421 | /* confdefs.h. */ | |
17422 | _ACEOF | |
17423 | cat confdefs.h >>conftest.$ac_ext | |
17424 | cat >>conftest.$ac_ext <<_ACEOF | |
17425 | /* end confdefs.h. */ | |
17426 | $ac_includes_default | |
17427 | int | |
17428 | main () | |
17429 | { | |
17430 | if ((size_t *) 0) | |
17431 | return 0; | |
17432 | if (sizeof (size_t)) | |
17433 | return 0; | |
17434 | ; | |
17435 | return 0; | |
17436 | } | |
17437 | _ACEOF | |
17438 | rm -f conftest.$ac_objext | |
17439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17440 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17441 | ac_status=$? |
ac1cb8d3 VS |
17442 | grep -v '^ *+' conftest.er1 >conftest.err |
17443 | rm -f conftest.er1 | |
17444 | cat conftest.err >&5 | |
a848cd7e SC |
17445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17446 | (exit $ac_status); } && | |
89be85c2 VS |
17447 | { ac_try='test -z "$ac_c_werror_flag" |
17448 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17450 | (eval $ac_try) 2>&5 | |
17451 | ac_status=$? | |
17452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17453 | (exit $ac_status); }; } && | |
17454 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17456 | (eval $ac_try) 2>&5 | |
17457 | ac_status=$? | |
17458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17459 | (exit $ac_status); }; }; then | |
17460 | ac_cv_type_size_t=yes | |
17461 | else | |
17462 | echo "$as_me: failed program was:" >&5 | |
17463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17464 | ||
17465 | ac_cv_type_size_t=no | |
17466 | fi | |
ac1cb8d3 | 17467 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17468 | fi |
17469 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
17470 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
17471 | ||
17472 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
17473 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
17474 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
17475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17476 | else | |
17477 | if test "$ac_cv_type_size_t" = yes; then | |
17478 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17479 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17480 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17481 | # This bug is HP SR number 8606223364. | |
17482 | if test "$cross_compiling" = yes; then | |
17483 | # Depending upon the size, compute the lo and hi bounds. | |
17484 | cat >conftest.$ac_ext <<_ACEOF | |
17485 | /* confdefs.h. */ | |
17486 | _ACEOF | |
17487 | cat confdefs.h >>conftest.$ac_ext | |
17488 | cat >>conftest.$ac_ext <<_ACEOF | |
17489 | /* end confdefs.h. */ | |
17490 | $ac_includes_default | |
17491 | int | |
17492 | main () | |
17493 | { | |
17494 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
17495 | test_array [0] = 0 | |
17496 | ||
17497 | ; | |
17498 | return 0; | |
17499 | } | |
17500 | _ACEOF | |
17501 | rm -f conftest.$ac_objext | |
17502 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17503 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17504 | ac_status=$? |
ac1cb8d3 VS |
17505 | grep -v '^ *+' conftest.er1 >conftest.err |
17506 | rm -f conftest.er1 | |
17507 | cat conftest.err >&5 | |
a848cd7e SC |
17508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17509 | (exit $ac_status); } && | |
89be85c2 VS |
17510 | { ac_try='test -z "$ac_c_werror_flag" |
17511 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17513 | (eval $ac_try) 2>&5 | |
17514 | ac_status=$? | |
17515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17516 | (exit $ac_status); }; } && | |
17517 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17519 | (eval $ac_try) 2>&5 | |
17520 | ac_status=$? | |
17521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17522 | (exit $ac_status); }; }; then | |
17523 | ac_lo=0 ac_mid=0 | |
17524 | while :; do | |
17525 | cat >conftest.$ac_ext <<_ACEOF | |
17526 | /* confdefs.h. */ | |
17527 | _ACEOF | |
17528 | cat confdefs.h >>conftest.$ac_ext | |
17529 | cat >>conftest.$ac_ext <<_ACEOF | |
17530 | /* end confdefs.h. */ | |
17531 | $ac_includes_default | |
17532 | int | |
17533 | main () | |
17534 | { | |
17535 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
17536 | test_array [0] = 0 | |
17537 | ||
17538 | ; | |
17539 | return 0; | |
17540 | } | |
17541 | _ACEOF | |
17542 | rm -f conftest.$ac_objext | |
17543 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17544 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17545 | ac_status=$? |
ac1cb8d3 VS |
17546 | grep -v '^ *+' conftest.er1 >conftest.err |
17547 | rm -f conftest.er1 | |
17548 | cat conftest.err >&5 | |
a848cd7e SC |
17549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17550 | (exit $ac_status); } && | |
89be85c2 VS |
17551 | { ac_try='test -z "$ac_c_werror_flag" |
17552 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17554 | (eval $ac_try) 2>&5 | |
17555 | ac_status=$? | |
17556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17557 | (exit $ac_status); }; } && | |
17558 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17560 | (eval $ac_try) 2>&5 | |
17561 | ac_status=$? | |
17562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17563 | (exit $ac_status); }; }; then | |
17564 | ac_hi=$ac_mid; break | |
17565 | else | |
17566 | echo "$as_me: failed program was:" >&5 | |
17567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17568 | ||
17569 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17570 | if test $ac_lo -le $ac_mid; then |
17571 | ac_lo= ac_hi= | |
17572 | break | |
17573 | fi | |
17574 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17575 | fi |
ac1cb8d3 | 17576 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17577 | done |
17578 | else | |
17579 | echo "$as_me: failed program was:" >&5 | |
17580 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17581 | ||
17582 | cat >conftest.$ac_ext <<_ACEOF | |
17583 | /* confdefs.h. */ | |
17584 | _ACEOF | |
17585 | cat confdefs.h >>conftest.$ac_ext | |
17586 | cat >>conftest.$ac_ext <<_ACEOF | |
17587 | /* end confdefs.h. */ | |
17588 | $ac_includes_default | |
17589 | int | |
17590 | main () | |
17591 | { | |
17592 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
17593 | test_array [0] = 0 | |
17594 | ||
17595 | ; | |
17596 | return 0; | |
17597 | } | |
17598 | _ACEOF | |
17599 | rm -f conftest.$ac_objext | |
17600 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17601 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17602 | ac_status=$? |
ac1cb8d3 VS |
17603 | grep -v '^ *+' conftest.er1 >conftest.err |
17604 | rm -f conftest.er1 | |
17605 | cat conftest.err >&5 | |
a848cd7e SC |
17606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17607 | (exit $ac_status); } && | |
89be85c2 VS |
17608 | { ac_try='test -z "$ac_c_werror_flag" |
17609 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17611 | (eval $ac_try) 2>&5 | |
17612 | ac_status=$? | |
17613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17614 | (exit $ac_status); }; } && | |
17615 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17617 | (eval $ac_try) 2>&5 | |
17618 | ac_status=$? | |
17619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17620 | (exit $ac_status); }; }; then | |
17621 | ac_hi=-1 ac_mid=-1 | |
17622 | while :; do | |
17623 | cat >conftest.$ac_ext <<_ACEOF | |
17624 | /* confdefs.h. */ | |
17625 | _ACEOF | |
17626 | cat confdefs.h >>conftest.$ac_ext | |
17627 | cat >>conftest.$ac_ext <<_ACEOF | |
17628 | /* end confdefs.h. */ | |
17629 | $ac_includes_default | |
17630 | int | |
17631 | main () | |
17632 | { | |
17633 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
17634 | test_array [0] = 0 | |
17635 | ||
17636 | ; | |
17637 | return 0; | |
17638 | } | |
17639 | _ACEOF | |
17640 | rm -f conftest.$ac_objext | |
17641 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17642 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17643 | ac_status=$? |
ac1cb8d3 VS |
17644 | grep -v '^ *+' conftest.er1 >conftest.err |
17645 | rm -f conftest.er1 | |
17646 | cat conftest.err >&5 | |
a848cd7e SC |
17647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17648 | (exit $ac_status); } && | |
89be85c2 VS |
17649 | { ac_try='test -z "$ac_c_werror_flag" |
17650 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17652 | (eval $ac_try) 2>&5 | |
17653 | ac_status=$? | |
17654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17655 | (exit $ac_status); }; } && | |
17656 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17658 | (eval $ac_try) 2>&5 | |
17659 | ac_status=$? | |
17660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17661 | (exit $ac_status); }; }; then | |
17662 | ac_lo=$ac_mid; break | |
17663 | else | |
17664 | echo "$as_me: failed program was:" >&5 | |
17665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17666 | ||
17667 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17668 | if test $ac_mid -le $ac_hi; then |
17669 | ac_lo= ac_hi= | |
17670 | break | |
17671 | fi | |
17672 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17673 | fi |
ac1cb8d3 | 17674 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17675 | done |
17676 | else | |
17677 | echo "$as_me: failed program was:" >&5 | |
17678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17679 | ||
17680 | ac_lo= ac_hi= | |
17681 | fi | |
ac1cb8d3 | 17682 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17683 | fi |
ac1cb8d3 | 17684 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17685 | # Binary search between lo and hi bounds. |
17686 | while test "x$ac_lo" != "x$ac_hi"; do | |
17687 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17688 | cat >conftest.$ac_ext <<_ACEOF | |
17689 | /* confdefs.h. */ | |
17690 | _ACEOF | |
17691 | cat confdefs.h >>conftest.$ac_ext | |
17692 | cat >>conftest.$ac_ext <<_ACEOF | |
17693 | /* end confdefs.h. */ | |
17694 | $ac_includes_default | |
17695 | int | |
17696 | main () | |
17697 | { | |
17698 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
17699 | test_array [0] = 0 | |
17700 | ||
17701 | ; | |
17702 | return 0; | |
17703 | } | |
17704 | _ACEOF | |
17705 | rm -f conftest.$ac_objext | |
17706 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17707 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17708 | ac_status=$? |
ac1cb8d3 VS |
17709 | grep -v '^ *+' conftest.er1 >conftest.err |
17710 | rm -f conftest.er1 | |
17711 | cat conftest.err >&5 | |
a848cd7e SC |
17712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17713 | (exit $ac_status); } && | |
89be85c2 VS |
17714 | { ac_try='test -z "$ac_c_werror_flag" |
17715 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17717 | (eval $ac_try) 2>&5 | |
17718 | ac_status=$? | |
17719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17720 | (exit $ac_status); }; } && | |
17721 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17723 | (eval $ac_try) 2>&5 | |
17724 | ac_status=$? | |
17725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17726 | (exit $ac_status); }; }; then | |
17727 | ac_hi=$ac_mid | |
17728 | else | |
17729 | echo "$as_me: failed program was:" >&5 | |
17730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17731 | ||
17732 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17733 | fi | |
ac1cb8d3 | 17734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17735 | done |
17736 | case $ac_lo in | |
17737 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
17738 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
17739 | See \`config.log' for more details." >&5 | |
17740 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
17741 | See \`config.log' for more details." >&2;} | |
17742 | { (exit 1); exit 1; }; } ;; | |
17743 | esac | |
17744 | else | |
17745 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
17746 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17747 | See \`config.log' for more details." >&5 | |
17748 | echo "$as_me: error: cannot run test program while cross compiling | |
17749 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17750 | { (exit 1); exit 1; }; } |
17751 | else | |
17752 | cat >conftest.$ac_ext <<_ACEOF | |
17753 | /* confdefs.h. */ | |
17754 | _ACEOF | |
17755 | cat confdefs.h >>conftest.$ac_ext | |
17756 | cat >>conftest.$ac_ext <<_ACEOF | |
17757 | /* end confdefs.h. */ | |
17758 | $ac_includes_default | |
17759 | long longval () { return (long) (sizeof (size_t)); } | |
17760 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
17761 | #include <stdio.h> | |
17762 | #include <stdlib.h> | |
17763 | int | |
17764 | main () | |
17765 | { | |
17766 | ||
17767 | FILE *f = fopen ("conftest.val", "w"); | |
17768 | if (! f) | |
17769 | exit (1); | |
17770 | if (((long) (sizeof (size_t))) < 0) | |
17771 | { | |
17772 | long i = longval (); | |
17773 | if (i != ((long) (sizeof (size_t)))) | |
17774 | exit (1); | |
17775 | fprintf (f, "%ld\n", i); | |
17776 | } | |
17777 | else | |
17778 | { | |
17779 | unsigned long i = ulongval (); | |
17780 | if (i != ((long) (sizeof (size_t)))) | |
17781 | exit (1); | |
17782 | fprintf (f, "%lu\n", i); | |
17783 | } | |
17784 | exit (ferror (f) || fclose (f) != 0); | |
17785 | ||
17786 | ; | |
17787 | return 0; | |
17788 | } | |
17789 | _ACEOF | |
17790 | rm -f conftest$ac_exeext | |
17791 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17792 | (eval $ac_link) 2>&5 | |
17793 | ac_status=$? | |
17794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17795 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17797 | (eval $ac_try) 2>&5 | |
17798 | ac_status=$? | |
17799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17800 | (exit $ac_status); }; }; then | |
17801 | ac_cv_sizeof_size_t=`cat conftest.val` | |
17802 | else | |
17803 | echo "$as_me: program exited with status $ac_status" >&5 | |
17804 | echo "$as_me: failed program was:" >&5 | |
17805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17806 | ||
17807 | ( exit $ac_status ) | |
17808 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
17809 | See \`config.log' for more details." >&5 | |
17810 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
17811 | See \`config.log' for more details." >&2;} | |
17812 | { (exit 1); exit 1; }; } | |
17813 | fi | |
ac1cb8d3 | 17814 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17815 | fi |
17816 | fi | |
17817 | rm -f conftest.val | |
17818 | else | |
17819 | ac_cv_sizeof_size_t=0 | |
17820 | fi | |
17821 | fi | |
17822 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
17823 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
17824 | cat >>confdefs.h <<_ACEOF | |
17825 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
17826 | _ACEOF | |
17827 | ||
17828 | ||
17829 | ||
17830 | case "${host}" in | |
17831 | arm-*-linux* ) | |
17832 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17833 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17834 | if test "${ac_cv_type_long_long+set}" = set; then | |
17835 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17836 | else | |
17837 | cat >conftest.$ac_ext <<_ACEOF | |
17838 | /* confdefs.h. */ | |
17839 | _ACEOF | |
17840 | cat confdefs.h >>conftest.$ac_ext | |
17841 | cat >>conftest.$ac_ext <<_ACEOF | |
17842 | /* end confdefs.h. */ | |
17843 | $ac_includes_default | |
17844 | int | |
17845 | main () | |
17846 | { | |
17847 | if ((long long *) 0) | |
17848 | return 0; | |
17849 | if (sizeof (long long)) | |
17850 | return 0; | |
17851 | ; | |
17852 | return 0; | |
17853 | } | |
17854 | _ACEOF | |
17855 | rm -f conftest.$ac_objext | |
17856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17857 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17858 | ac_status=$? |
ac1cb8d3 VS |
17859 | grep -v '^ *+' conftest.er1 >conftest.err |
17860 | rm -f conftest.er1 | |
17861 | cat conftest.err >&5 | |
a848cd7e SC |
17862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17863 | (exit $ac_status); } && | |
89be85c2 VS |
17864 | { ac_try='test -z "$ac_c_werror_flag" |
17865 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17867 | (eval $ac_try) 2>&5 | |
17868 | ac_status=$? | |
17869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17870 | (exit $ac_status); }; } && | |
17871 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17873 | (eval $ac_try) 2>&5 | |
17874 | ac_status=$? | |
17875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17876 | (exit $ac_status); }; }; then | |
17877 | ac_cv_type_long_long=yes | |
17878 | else | |
17879 | echo "$as_me: failed program was:" >&5 | |
17880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17881 | ||
17882 | ac_cv_type_long_long=no | |
17883 | fi | |
ac1cb8d3 | 17884 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17885 | fi |
17886 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17887 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17888 | ||
17889 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17890 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17891 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17893 | else | |
17894 | if test "$ac_cv_type_long_long" = yes; then | |
17895 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17896 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17897 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17898 | # This bug is HP SR number 8606223364. | |
17899 | if test "$cross_compiling" = yes; then | |
17900 | # Depending upon the size, compute the lo and hi bounds. | |
17901 | cat >conftest.$ac_ext <<_ACEOF | |
17902 | /* confdefs.h. */ | |
17903 | _ACEOF | |
17904 | cat confdefs.h >>conftest.$ac_ext | |
17905 | cat >>conftest.$ac_ext <<_ACEOF | |
17906 | /* end confdefs.h. */ | |
17907 | $ac_includes_default | |
17908 | int | |
17909 | main () | |
17910 | { | |
17911 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17912 | test_array [0] = 0 | |
17913 | ||
17914 | ; | |
17915 | return 0; | |
17916 | } | |
17917 | _ACEOF | |
17918 | rm -f conftest.$ac_objext | |
17919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17920 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17921 | ac_status=$? |
ac1cb8d3 VS |
17922 | grep -v '^ *+' conftest.er1 >conftest.err |
17923 | rm -f conftest.er1 | |
17924 | cat conftest.err >&5 | |
a848cd7e SC |
17925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17926 | (exit $ac_status); } && | |
89be85c2 VS |
17927 | { ac_try='test -z "$ac_c_werror_flag" |
17928 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17930 | (eval $ac_try) 2>&5 | |
17931 | ac_status=$? | |
17932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17933 | (exit $ac_status); }; } && | |
17934 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17936 | (eval $ac_try) 2>&5 | |
17937 | ac_status=$? | |
17938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17939 | (exit $ac_status); }; }; then | |
17940 | ac_lo=0 ac_mid=0 | |
17941 | while :; do | |
17942 | cat >conftest.$ac_ext <<_ACEOF | |
17943 | /* confdefs.h. */ | |
17944 | _ACEOF | |
17945 | cat confdefs.h >>conftest.$ac_ext | |
17946 | cat >>conftest.$ac_ext <<_ACEOF | |
17947 | /* end confdefs.h. */ | |
17948 | $ac_includes_default | |
17949 | int | |
17950 | main () | |
17951 | { | |
17952 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17953 | test_array [0] = 0 | |
17954 | ||
17955 | ; | |
17956 | return 0; | |
17957 | } | |
17958 | _ACEOF | |
17959 | rm -f conftest.$ac_objext | |
17960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17961 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17962 | ac_status=$? |
ac1cb8d3 VS |
17963 | grep -v '^ *+' conftest.er1 >conftest.err |
17964 | rm -f conftest.er1 | |
17965 | cat conftest.err >&5 | |
a848cd7e SC |
17966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17967 | (exit $ac_status); } && | |
89be85c2 VS |
17968 | { ac_try='test -z "$ac_c_werror_flag" |
17969 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17971 | (eval $ac_try) 2>&5 | |
17972 | ac_status=$? | |
17973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17974 | (exit $ac_status); }; } && | |
17975 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17977 | (eval $ac_try) 2>&5 | |
17978 | ac_status=$? | |
17979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17980 | (exit $ac_status); }; }; then | |
17981 | ac_hi=$ac_mid; break | |
17982 | else | |
17983 | echo "$as_me: failed program was:" >&5 | |
17984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17985 | ||
17986 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17987 | if test $ac_lo -le $ac_mid; then |
17988 | ac_lo= ac_hi= | |
17989 | break | |
17990 | fi | |
17991 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17992 | fi |
ac1cb8d3 | 17993 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17994 | done |
17995 | else | |
17996 | echo "$as_me: failed program was:" >&5 | |
17997 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17998 | ||
17999 | cat >conftest.$ac_ext <<_ACEOF | |
18000 | /* confdefs.h. */ | |
18001 | _ACEOF | |
18002 | cat confdefs.h >>conftest.$ac_ext | |
18003 | cat >>conftest.$ac_ext <<_ACEOF | |
18004 | /* end confdefs.h. */ | |
18005 | $ac_includes_default | |
18006 | int | |
18007 | main () | |
18008 | { | |
18009 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
18010 | test_array [0] = 0 | |
18011 | ||
18012 | ; | |
18013 | return 0; | |
18014 | } | |
18015 | _ACEOF | |
18016 | rm -f conftest.$ac_objext | |
18017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18018 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18019 | ac_status=$? |
ac1cb8d3 VS |
18020 | grep -v '^ *+' conftest.er1 >conftest.err |
18021 | rm -f conftest.er1 | |
18022 | cat conftest.err >&5 | |
a848cd7e SC |
18023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18024 | (exit $ac_status); } && | |
89be85c2 VS |
18025 | { ac_try='test -z "$ac_c_werror_flag" |
18026 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18028 | (eval $ac_try) 2>&5 | |
18029 | ac_status=$? | |
18030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18031 | (exit $ac_status); }; } && | |
18032 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18034 | (eval $ac_try) 2>&5 | |
18035 | ac_status=$? | |
18036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18037 | (exit $ac_status); }; }; then | |
18038 | ac_hi=-1 ac_mid=-1 | |
18039 | while :; do | |
18040 | cat >conftest.$ac_ext <<_ACEOF | |
18041 | /* confdefs.h. */ | |
18042 | _ACEOF | |
18043 | cat confdefs.h >>conftest.$ac_ext | |
18044 | cat >>conftest.$ac_ext <<_ACEOF | |
18045 | /* end confdefs.h. */ | |
18046 | $ac_includes_default | |
18047 | int | |
18048 | main () | |
18049 | { | |
18050 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
18051 | test_array [0] = 0 | |
18052 | ||
18053 | ; | |
18054 | return 0; | |
18055 | } | |
18056 | _ACEOF | |
18057 | rm -f conftest.$ac_objext | |
18058 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18059 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18060 | ac_status=$? |
ac1cb8d3 VS |
18061 | grep -v '^ *+' conftest.er1 >conftest.err |
18062 | rm -f conftest.er1 | |
18063 | cat conftest.err >&5 | |
a848cd7e SC |
18064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18065 | (exit $ac_status); } && | |
89be85c2 VS |
18066 | { ac_try='test -z "$ac_c_werror_flag" |
18067 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18069 | (eval $ac_try) 2>&5 | |
18070 | ac_status=$? | |
18071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18072 | (exit $ac_status); }; } && | |
18073 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18075 | (eval $ac_try) 2>&5 | |
18076 | ac_status=$? | |
18077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18078 | (exit $ac_status); }; }; then | |
18079 | ac_lo=$ac_mid; break | |
18080 | else | |
18081 | echo "$as_me: failed program was:" >&5 | |
18082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18083 | ||
18084 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18085 | if test $ac_mid -le $ac_hi; then |
18086 | ac_lo= ac_hi= | |
18087 | break | |
18088 | fi | |
18089 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18090 | fi |
ac1cb8d3 | 18091 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18092 | done |
18093 | else | |
18094 | echo "$as_me: failed program was:" >&5 | |
18095 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18096 | ||
18097 | ac_lo= ac_hi= | |
18098 | fi | |
ac1cb8d3 | 18099 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18100 | fi |
ac1cb8d3 | 18101 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18102 | # Binary search between lo and hi bounds. |
18103 | while test "x$ac_lo" != "x$ac_hi"; do | |
18104 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18105 | cat >conftest.$ac_ext <<_ACEOF | |
18106 | /* confdefs.h. */ | |
18107 | _ACEOF | |
18108 | cat confdefs.h >>conftest.$ac_ext | |
18109 | cat >>conftest.$ac_ext <<_ACEOF | |
18110 | /* end confdefs.h. */ | |
18111 | $ac_includes_default | |
18112 | int | |
18113 | main () | |
18114 | { | |
18115 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18116 | test_array [0] = 0 | |
18117 | ||
18118 | ; | |
18119 | return 0; | |
18120 | } | |
18121 | _ACEOF | |
18122 | rm -f conftest.$ac_objext | |
18123 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18124 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18125 | ac_status=$? |
ac1cb8d3 VS |
18126 | grep -v '^ *+' conftest.er1 >conftest.err |
18127 | rm -f conftest.er1 | |
18128 | cat conftest.err >&5 | |
a848cd7e SC |
18129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18130 | (exit $ac_status); } && | |
89be85c2 VS |
18131 | { ac_try='test -z "$ac_c_werror_flag" |
18132 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
18138 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18140 | (eval $ac_try) 2>&5 | |
18141 | ac_status=$? | |
18142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18143 | (exit $ac_status); }; }; then | |
18144 | ac_hi=$ac_mid | |
18145 | else | |
18146 | echo "$as_me: failed program was:" >&5 | |
18147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18148 | ||
18149 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18150 | fi | |
ac1cb8d3 | 18151 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18152 | done |
18153 | case $ac_lo in | |
18154 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18155 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18156 | See \`config.log' for more details." >&5 | |
18157 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18158 | See \`config.log' for more details." >&2;} | |
18159 | { (exit 1); exit 1; }; } ;; | |
18160 | esac | |
18161 | else | |
18162 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
18163 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18164 | See \`config.log' for more details." >&5 | |
18165 | echo "$as_me: error: cannot run test program while cross compiling | |
18166 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18167 | { (exit 1); exit 1; }; } |
18168 | else | |
18169 | cat >conftest.$ac_ext <<_ACEOF | |
18170 | /* confdefs.h. */ | |
18171 | _ACEOF | |
18172 | cat confdefs.h >>conftest.$ac_ext | |
18173 | cat >>conftest.$ac_ext <<_ACEOF | |
18174 | /* end confdefs.h. */ | |
18175 | $ac_includes_default | |
18176 | long longval () { return (long) (sizeof (long long)); } | |
18177 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18178 | #include <stdio.h> | |
18179 | #include <stdlib.h> | |
18180 | int | |
18181 | main () | |
18182 | { | |
18183 | ||
18184 | FILE *f = fopen ("conftest.val", "w"); | |
18185 | if (! f) | |
18186 | exit (1); | |
18187 | if (((long) (sizeof (long long))) < 0) | |
18188 | { | |
18189 | long i = longval (); | |
18190 | if (i != ((long) (sizeof (long long)))) | |
18191 | exit (1); | |
18192 | fprintf (f, "%ld\n", i); | |
18193 | } | |
18194 | else | |
18195 | { | |
18196 | unsigned long i = ulongval (); | |
18197 | if (i != ((long) (sizeof (long long)))) | |
18198 | exit (1); | |
18199 | fprintf (f, "%lu\n", i); | |
18200 | } | |
18201 | exit (ferror (f) || fclose (f) != 0); | |
18202 | ||
18203 | ; | |
18204 | return 0; | |
18205 | } | |
18206 | _ACEOF | |
18207 | rm -f conftest$ac_exeext | |
18208 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18209 | (eval $ac_link) 2>&5 | |
18210 | ac_status=$? | |
18211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18212 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18214 | (eval $ac_try) 2>&5 | |
18215 | ac_status=$? | |
18216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18217 | (exit $ac_status); }; }; then | |
18218 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18219 | else | |
18220 | echo "$as_me: program exited with status $ac_status" >&5 | |
18221 | echo "$as_me: failed program was:" >&5 | |
18222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18223 | ||
18224 | ( exit $ac_status ) | |
18225 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18226 | See \`config.log' for more details." >&5 | |
18227 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18228 | See \`config.log' for more details." >&2;} | |
18229 | { (exit 1); exit 1; }; } | |
18230 | fi | |
ac1cb8d3 | 18231 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18232 | fi |
18233 | fi | |
18234 | rm -f conftest.val | |
18235 | else | |
18236 | ac_cv_sizeof_long_long=0 | |
18237 | fi | |
18238 | fi | |
18239 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18240 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18241 | cat >>confdefs.h <<_ACEOF | |
18242 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18243 | _ACEOF | |
18244 | ||
18245 | ||
18246 | ;; | |
18247 | *-hp-hpux* ) | |
18248 | echo "$as_me:$LINENO: checking for long long" >&5 | |
18249 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
18250 | if test "${ac_cv_type_long_long+set}" = set; then | |
18251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18252 | else | |
18253 | cat >conftest.$ac_ext <<_ACEOF | |
18254 | /* confdefs.h. */ | |
18255 | _ACEOF | |
18256 | cat confdefs.h >>conftest.$ac_ext | |
18257 | cat >>conftest.$ac_ext <<_ACEOF | |
18258 | /* end confdefs.h. */ | |
18259 | $ac_includes_default | |
18260 | int | |
18261 | main () | |
18262 | { | |
18263 | if ((long long *) 0) | |
18264 | return 0; | |
18265 | if (sizeof (long long)) | |
18266 | return 0; | |
18267 | ; | |
18268 | return 0; | |
18269 | } | |
18270 | _ACEOF | |
18271 | rm -f conftest.$ac_objext | |
18272 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18273 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18274 | ac_status=$? |
ac1cb8d3 VS |
18275 | grep -v '^ *+' conftest.er1 >conftest.err |
18276 | rm -f conftest.er1 | |
18277 | cat conftest.err >&5 | |
a848cd7e SC |
18278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18279 | (exit $ac_status); } && | |
89be85c2 VS |
18280 | { ac_try='test -z "$ac_c_werror_flag" |
18281 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18283 | (eval $ac_try) 2>&5 | |
18284 | ac_status=$? | |
18285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18286 | (exit $ac_status); }; } && | |
18287 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18289 | (eval $ac_try) 2>&5 | |
18290 | ac_status=$? | |
18291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18292 | (exit $ac_status); }; }; then | |
18293 | ac_cv_type_long_long=yes | |
18294 | else | |
18295 | echo "$as_me: failed program was:" >&5 | |
18296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18297 | ||
18298 | ac_cv_type_long_long=no | |
18299 | fi | |
ac1cb8d3 | 18300 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18301 | fi |
18302 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
18303 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
18304 | ||
18305 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
18306 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
18307 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
18308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18309 | else | |
18310 | if test "$ac_cv_type_long_long" = yes; then | |
18311 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18312 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18313 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18314 | # This bug is HP SR number 8606223364. | |
18315 | if test "$cross_compiling" = yes; then | |
18316 | # Depending upon the size, compute the lo and hi bounds. | |
18317 | cat >conftest.$ac_ext <<_ACEOF | |
18318 | /* confdefs.h. */ | |
18319 | _ACEOF | |
18320 | cat confdefs.h >>conftest.$ac_ext | |
18321 | cat >>conftest.$ac_ext <<_ACEOF | |
18322 | /* end confdefs.h. */ | |
18323 | $ac_includes_default | |
18324 | int | |
18325 | main () | |
18326 | { | |
18327 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
18328 | test_array [0] = 0 | |
18329 | ||
18330 | ; | |
18331 | return 0; | |
18332 | } | |
18333 | _ACEOF | |
18334 | rm -f conftest.$ac_objext | |
18335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18336 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18337 | ac_status=$? |
ac1cb8d3 VS |
18338 | grep -v '^ *+' conftest.er1 >conftest.err |
18339 | rm -f conftest.er1 | |
18340 | cat conftest.err >&5 | |
a848cd7e SC |
18341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18342 | (exit $ac_status); } && | |
89be85c2 VS |
18343 | { ac_try='test -z "$ac_c_werror_flag" |
18344 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18346 | (eval $ac_try) 2>&5 | |
18347 | ac_status=$? | |
18348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18349 | (exit $ac_status); }; } && | |
18350 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18352 | (eval $ac_try) 2>&5 | |
18353 | ac_status=$? | |
18354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18355 | (exit $ac_status); }; }; then | |
18356 | ac_lo=0 ac_mid=0 | |
18357 | while :; do | |
18358 | cat >conftest.$ac_ext <<_ACEOF | |
18359 | /* confdefs.h. */ | |
18360 | _ACEOF | |
18361 | cat confdefs.h >>conftest.$ac_ext | |
18362 | cat >>conftest.$ac_ext <<_ACEOF | |
18363 | /* end confdefs.h. */ | |
18364 | $ac_includes_default | |
18365 | int | |
18366 | main () | |
18367 | { | |
18368 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18369 | test_array [0] = 0 | |
18370 | ||
18371 | ; | |
18372 | return 0; | |
18373 | } | |
18374 | _ACEOF | |
18375 | rm -f conftest.$ac_objext | |
18376 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18377 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18378 | ac_status=$? |
ac1cb8d3 VS |
18379 | grep -v '^ *+' conftest.er1 >conftest.err |
18380 | rm -f conftest.er1 | |
18381 | cat conftest.err >&5 | |
a848cd7e SC |
18382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18383 | (exit $ac_status); } && | |
89be85c2 VS |
18384 | { ac_try='test -z "$ac_c_werror_flag" |
18385 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18387 | (eval $ac_try) 2>&5 | |
18388 | ac_status=$? | |
18389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18390 | (exit $ac_status); }; } && | |
18391 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18393 | (eval $ac_try) 2>&5 | |
18394 | ac_status=$? | |
18395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18396 | (exit $ac_status); }; }; then | |
18397 | ac_hi=$ac_mid; break | |
18398 | else | |
18399 | echo "$as_me: failed program was:" >&5 | |
18400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18401 | ||
18402 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18403 | if test $ac_lo -le $ac_mid; then |
18404 | ac_lo= ac_hi= | |
18405 | break | |
18406 | fi | |
18407 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18408 | fi |
ac1cb8d3 | 18409 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18410 | done |
18411 | else | |
18412 | echo "$as_me: failed program was:" >&5 | |
18413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18414 | ||
18415 | cat >conftest.$ac_ext <<_ACEOF | |
18416 | /* confdefs.h. */ | |
18417 | _ACEOF | |
18418 | cat confdefs.h >>conftest.$ac_ext | |
18419 | cat >>conftest.$ac_ext <<_ACEOF | |
18420 | /* end confdefs.h. */ | |
18421 | $ac_includes_default | |
18422 | int | |
18423 | main () | |
18424 | { | |
18425 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
18426 | test_array [0] = 0 | |
18427 | ||
18428 | ; | |
18429 | return 0; | |
18430 | } | |
18431 | _ACEOF | |
18432 | rm -f conftest.$ac_objext | |
18433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18434 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18435 | ac_status=$? |
ac1cb8d3 VS |
18436 | grep -v '^ *+' conftest.er1 >conftest.err |
18437 | rm -f conftest.er1 | |
18438 | cat conftest.err >&5 | |
a848cd7e SC |
18439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18440 | (exit $ac_status); } && | |
89be85c2 VS |
18441 | { ac_try='test -z "$ac_c_werror_flag" |
18442 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18444 | (eval $ac_try) 2>&5 | |
18445 | ac_status=$? | |
18446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18447 | (exit $ac_status); }; } && | |
18448 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18450 | (eval $ac_try) 2>&5 | |
18451 | ac_status=$? | |
18452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18453 | (exit $ac_status); }; }; then | |
18454 | ac_hi=-1 ac_mid=-1 | |
18455 | while :; do | |
18456 | cat >conftest.$ac_ext <<_ACEOF | |
18457 | /* confdefs.h. */ | |
18458 | _ACEOF | |
18459 | cat confdefs.h >>conftest.$ac_ext | |
18460 | cat >>conftest.$ac_ext <<_ACEOF | |
18461 | /* end confdefs.h. */ | |
18462 | $ac_includes_default | |
18463 | int | |
18464 | main () | |
18465 | { | |
18466 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
18467 | test_array [0] = 0 | |
18468 | ||
18469 | ; | |
18470 | return 0; | |
18471 | } | |
18472 | _ACEOF | |
18473 | rm -f conftest.$ac_objext | |
18474 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18475 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18476 | ac_status=$? |
ac1cb8d3 VS |
18477 | grep -v '^ *+' conftest.er1 >conftest.err |
18478 | rm -f conftest.er1 | |
18479 | cat conftest.err >&5 | |
a848cd7e SC |
18480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18481 | (exit $ac_status); } && | |
89be85c2 VS |
18482 | { ac_try='test -z "$ac_c_werror_flag" |
18483 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18485 | (eval $ac_try) 2>&5 | |
18486 | ac_status=$? | |
18487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18488 | (exit $ac_status); }; } && | |
18489 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18491 | (eval $ac_try) 2>&5 | |
18492 | ac_status=$? | |
18493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18494 | (exit $ac_status); }; }; then | |
18495 | ac_lo=$ac_mid; break | |
18496 | else | |
18497 | echo "$as_me: failed program was:" >&5 | |
18498 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18499 | ||
18500 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18501 | if test $ac_mid -le $ac_hi; then |
18502 | ac_lo= ac_hi= | |
18503 | break | |
18504 | fi | |
18505 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18506 | fi |
ac1cb8d3 | 18507 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18508 | done |
18509 | else | |
18510 | echo "$as_me: failed program was:" >&5 | |
18511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18512 | ||
18513 | ac_lo= ac_hi= | |
18514 | fi | |
ac1cb8d3 | 18515 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18516 | fi |
ac1cb8d3 | 18517 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18518 | # Binary search between lo and hi bounds. |
18519 | while test "x$ac_lo" != "x$ac_hi"; do | |
18520 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18521 | cat >conftest.$ac_ext <<_ACEOF | |
18522 | /* confdefs.h. */ | |
18523 | _ACEOF | |
18524 | cat confdefs.h >>conftest.$ac_ext | |
18525 | cat >>conftest.$ac_ext <<_ACEOF | |
18526 | /* end confdefs.h. */ | |
18527 | $ac_includes_default | |
18528 | int | |
18529 | main () | |
18530 | { | |
18531 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18532 | test_array [0] = 0 | |
18533 | ||
18534 | ; | |
18535 | return 0; | |
18536 | } | |
18537 | _ACEOF | |
18538 | rm -f conftest.$ac_objext | |
18539 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18540 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18541 | ac_status=$? |
ac1cb8d3 VS |
18542 | grep -v '^ *+' conftest.er1 >conftest.err |
18543 | rm -f conftest.er1 | |
18544 | cat conftest.err >&5 | |
a848cd7e SC |
18545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18546 | (exit $ac_status); } && | |
89be85c2 VS |
18547 | { ac_try='test -z "$ac_c_werror_flag" |
18548 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18550 | (eval $ac_try) 2>&5 | |
18551 | ac_status=$? | |
18552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18553 | (exit $ac_status); }; } && | |
18554 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18556 | (eval $ac_try) 2>&5 | |
18557 | ac_status=$? | |
18558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18559 | (exit $ac_status); }; }; then | |
18560 | ac_hi=$ac_mid | |
18561 | else | |
18562 | echo "$as_me: failed program was:" >&5 | |
18563 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18564 | ||
18565 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18566 | fi | |
ac1cb8d3 | 18567 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18568 | done |
18569 | case $ac_lo in | |
18570 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18571 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18572 | See \`config.log' for more details." >&5 | |
18573 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18574 | See \`config.log' for more details." >&2;} | |
18575 | { (exit 1); exit 1; }; } ;; | |
18576 | esac | |
18577 | else | |
18578 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
18579 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18580 | See \`config.log' for more details." >&5 | |
18581 | echo "$as_me: error: cannot run test program while cross compiling | |
18582 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18583 | { (exit 1); exit 1; }; } |
18584 | else | |
18585 | cat >conftest.$ac_ext <<_ACEOF | |
18586 | /* confdefs.h. */ | |
18587 | _ACEOF | |
18588 | cat confdefs.h >>conftest.$ac_ext | |
18589 | cat >>conftest.$ac_ext <<_ACEOF | |
18590 | /* end confdefs.h. */ | |
18591 | $ac_includes_default | |
18592 | long longval () { return (long) (sizeof (long long)); } | |
18593 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18594 | #include <stdio.h> | |
18595 | #include <stdlib.h> | |
18596 | int | |
18597 | main () | |
18598 | { | |
18599 | ||
18600 | FILE *f = fopen ("conftest.val", "w"); | |
18601 | if (! f) | |
18602 | exit (1); | |
18603 | if (((long) (sizeof (long long))) < 0) | |
18604 | { | |
18605 | long i = longval (); | |
18606 | if (i != ((long) (sizeof (long long)))) | |
18607 | exit (1); | |
18608 | fprintf (f, "%ld\n", i); | |
18609 | } | |
18610 | else | |
18611 | { | |
18612 | unsigned long i = ulongval (); | |
18613 | if (i != ((long) (sizeof (long long)))) | |
18614 | exit (1); | |
18615 | fprintf (f, "%lu\n", i); | |
18616 | } | |
18617 | exit (ferror (f) || fclose (f) != 0); | |
18618 | ||
18619 | ; | |
18620 | return 0; | |
18621 | } | |
18622 | _ACEOF | |
18623 | rm -f conftest$ac_exeext | |
18624 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18625 | (eval $ac_link) 2>&5 | |
18626 | ac_status=$? | |
18627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18628 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18630 | (eval $ac_try) 2>&5 | |
18631 | ac_status=$? | |
18632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18633 | (exit $ac_status); }; }; then | |
18634 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18635 | else | |
18636 | echo "$as_me: program exited with status $ac_status" >&5 | |
18637 | echo "$as_me: failed program was:" >&5 | |
18638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18639 | ||
18640 | ( exit $ac_status ) | |
18641 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18642 | See \`config.log' for more details." >&5 | |
18643 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18644 | See \`config.log' for more details." >&2;} | |
18645 | { (exit 1); exit 1; }; } | |
18646 | fi | |
ac1cb8d3 | 18647 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18648 | fi |
18649 | fi | |
18650 | rm -f conftest.val | |
18651 | else | |
18652 | ac_cv_sizeof_long_long=0 | |
18653 | fi | |
18654 | fi | |
18655 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18656 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18657 | cat >>confdefs.h <<_ACEOF | |
18658 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18659 | _ACEOF | |
18660 | ||
18661 | ||
18662 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
18663 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
18664 | fi | |
18665 | ;; | |
18666 | * ) | |
18667 | echo "$as_me:$LINENO: checking for long long" >&5 | |
18668 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
18669 | if test "${ac_cv_type_long_long+set}" = set; then | |
18670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18671 | else | |
18672 | cat >conftest.$ac_ext <<_ACEOF | |
18673 | /* confdefs.h. */ | |
18674 | _ACEOF | |
18675 | cat confdefs.h >>conftest.$ac_ext | |
18676 | cat >>conftest.$ac_ext <<_ACEOF | |
18677 | /* end confdefs.h. */ | |
18678 | $ac_includes_default | |
18679 | int | |
18680 | main () | |
18681 | { | |
18682 | if ((long long *) 0) | |
18683 | return 0; | |
18684 | if (sizeof (long long)) | |
18685 | return 0; | |
18686 | ; | |
18687 | return 0; | |
18688 | } | |
18689 | _ACEOF | |
18690 | rm -f conftest.$ac_objext | |
18691 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18692 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18693 | ac_status=$? |
ac1cb8d3 VS |
18694 | grep -v '^ *+' conftest.er1 >conftest.err |
18695 | rm -f conftest.er1 | |
18696 | cat conftest.err >&5 | |
a848cd7e SC |
18697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18698 | (exit $ac_status); } && | |
89be85c2 VS |
18699 | { ac_try='test -z "$ac_c_werror_flag" |
18700 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18702 | (eval $ac_try) 2>&5 | |
18703 | ac_status=$? | |
18704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18705 | (exit $ac_status); }; } && | |
18706 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18708 | (eval $ac_try) 2>&5 | |
18709 | ac_status=$? | |
18710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18711 | (exit $ac_status); }; }; then | |
18712 | ac_cv_type_long_long=yes | |
18713 | else | |
18714 | echo "$as_me: failed program was:" >&5 | |
18715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18716 | ||
18717 | ac_cv_type_long_long=no | |
18718 | fi | |
ac1cb8d3 | 18719 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18720 | fi |
18721 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
18722 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
18723 | ||
18724 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
18725 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
18726 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
18727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18728 | else | |
18729 | if test "$ac_cv_type_long_long" = yes; then | |
18730 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18731 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18732 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18733 | # This bug is HP SR number 8606223364. | |
18734 | if test "$cross_compiling" = yes; then | |
18735 | # Depending upon the size, compute the lo and hi bounds. | |
18736 | cat >conftest.$ac_ext <<_ACEOF | |
18737 | /* confdefs.h. */ | |
18738 | _ACEOF | |
18739 | cat confdefs.h >>conftest.$ac_ext | |
18740 | cat >>conftest.$ac_ext <<_ACEOF | |
18741 | /* end confdefs.h. */ | |
18742 | $ac_includes_default | |
18743 | int | |
18744 | main () | |
18745 | { | |
18746 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
18747 | test_array [0] = 0 | |
18748 | ||
18749 | ; | |
18750 | return 0; | |
18751 | } | |
18752 | _ACEOF | |
18753 | rm -f conftest.$ac_objext | |
18754 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18755 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18756 | ac_status=$? |
ac1cb8d3 VS |
18757 | grep -v '^ *+' conftest.er1 >conftest.err |
18758 | rm -f conftest.er1 | |
18759 | cat conftest.err >&5 | |
a848cd7e SC |
18760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18761 | (exit $ac_status); } && | |
89be85c2 VS |
18762 | { ac_try='test -z "$ac_c_werror_flag" |
18763 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18765 | (eval $ac_try) 2>&5 | |
18766 | ac_status=$? | |
18767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18768 | (exit $ac_status); }; } && | |
18769 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18771 | (eval $ac_try) 2>&5 | |
18772 | ac_status=$? | |
18773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18774 | (exit $ac_status); }; }; then | |
18775 | ac_lo=0 ac_mid=0 | |
18776 | while :; do | |
18777 | cat >conftest.$ac_ext <<_ACEOF | |
18778 | /* confdefs.h. */ | |
18779 | _ACEOF | |
18780 | cat confdefs.h >>conftest.$ac_ext | |
18781 | cat >>conftest.$ac_ext <<_ACEOF | |
18782 | /* end confdefs.h. */ | |
18783 | $ac_includes_default | |
18784 | int | |
18785 | main () | |
18786 | { | |
18787 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18788 | test_array [0] = 0 | |
18789 | ||
18790 | ; | |
18791 | return 0; | |
18792 | } | |
18793 | _ACEOF | |
18794 | rm -f conftest.$ac_objext | |
18795 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18796 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18797 | ac_status=$? |
ac1cb8d3 VS |
18798 | grep -v '^ *+' conftest.er1 >conftest.err |
18799 | rm -f conftest.er1 | |
18800 | cat conftest.err >&5 | |
a848cd7e SC |
18801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18802 | (exit $ac_status); } && | |
89be85c2 VS |
18803 | { ac_try='test -z "$ac_c_werror_flag" |
18804 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18806 | (eval $ac_try) 2>&5 | |
18807 | ac_status=$? | |
18808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18809 | (exit $ac_status); }; } && | |
18810 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18812 | (eval $ac_try) 2>&5 | |
18813 | ac_status=$? | |
18814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18815 | (exit $ac_status); }; }; then | |
18816 | ac_hi=$ac_mid; break | |
18817 | else | |
18818 | echo "$as_me: failed program was:" >&5 | |
18819 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18820 | ||
18821 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18822 | if test $ac_lo -le $ac_mid; then |
18823 | ac_lo= ac_hi= | |
18824 | break | |
18825 | fi | |
18826 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18827 | fi |
ac1cb8d3 | 18828 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18829 | done |
18830 | else | |
18831 | echo "$as_me: failed program was:" >&5 | |
18832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18833 | ||
18834 | cat >conftest.$ac_ext <<_ACEOF | |
18835 | /* confdefs.h. */ | |
18836 | _ACEOF | |
18837 | cat confdefs.h >>conftest.$ac_ext | |
18838 | cat >>conftest.$ac_ext <<_ACEOF | |
18839 | /* end confdefs.h. */ | |
18840 | $ac_includes_default | |
18841 | int | |
18842 | main () | |
18843 | { | |
18844 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
18845 | test_array [0] = 0 | |
18846 | ||
18847 | ; | |
18848 | return 0; | |
18849 | } | |
18850 | _ACEOF | |
18851 | rm -f conftest.$ac_objext | |
18852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18853 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18854 | ac_status=$? |
ac1cb8d3 VS |
18855 | grep -v '^ *+' conftest.er1 >conftest.err |
18856 | rm -f conftest.er1 | |
18857 | cat conftest.err >&5 | |
a848cd7e SC |
18858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18859 | (exit $ac_status); } && | |
89be85c2 VS |
18860 | { ac_try='test -z "$ac_c_werror_flag" |
18861 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18863 | (eval $ac_try) 2>&5 | |
18864 | ac_status=$? | |
18865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18866 | (exit $ac_status); }; } && | |
18867 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18869 | (eval $ac_try) 2>&5 | |
18870 | ac_status=$? | |
18871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18872 | (exit $ac_status); }; }; then | |
18873 | ac_hi=-1 ac_mid=-1 | |
18874 | while :; do | |
18875 | cat >conftest.$ac_ext <<_ACEOF | |
18876 | /* confdefs.h. */ | |
18877 | _ACEOF | |
18878 | cat confdefs.h >>conftest.$ac_ext | |
18879 | cat >>conftest.$ac_ext <<_ACEOF | |
18880 | /* end confdefs.h. */ | |
18881 | $ac_includes_default | |
18882 | int | |
18883 | main () | |
18884 | { | |
18885 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
18886 | test_array [0] = 0 | |
18887 | ||
18888 | ; | |
18889 | return 0; | |
18890 | } | |
18891 | _ACEOF | |
18892 | rm -f conftest.$ac_objext | |
18893 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18894 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18895 | ac_status=$? |
ac1cb8d3 VS |
18896 | grep -v '^ *+' conftest.er1 >conftest.err |
18897 | rm -f conftest.er1 | |
18898 | cat conftest.err >&5 | |
a848cd7e SC |
18899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18900 | (exit $ac_status); } && | |
89be85c2 VS |
18901 | { ac_try='test -z "$ac_c_werror_flag" |
18902 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18904 | (eval $ac_try) 2>&5 | |
18905 | ac_status=$? | |
18906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18907 | (exit $ac_status); }; } && | |
18908 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18910 | (eval $ac_try) 2>&5 | |
18911 | ac_status=$? | |
18912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18913 | (exit $ac_status); }; }; then | |
18914 | ac_lo=$ac_mid; break | |
18915 | else | |
18916 | echo "$as_me: failed program was:" >&5 | |
18917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18918 | ||
18919 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18920 | if test $ac_mid -le $ac_hi; then |
18921 | ac_lo= ac_hi= | |
18922 | break | |
18923 | fi | |
18924 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18925 | fi |
ac1cb8d3 | 18926 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18927 | done |
18928 | else | |
18929 | echo "$as_me: failed program was:" >&5 | |
18930 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18931 | ||
18932 | ac_lo= ac_hi= | |
18933 | fi | |
ac1cb8d3 | 18934 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18935 | fi |
ac1cb8d3 | 18936 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18937 | # Binary search between lo and hi bounds. |
18938 | while test "x$ac_lo" != "x$ac_hi"; do | |
18939 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18940 | cat >conftest.$ac_ext <<_ACEOF | |
18941 | /* confdefs.h. */ | |
18942 | _ACEOF | |
18943 | cat confdefs.h >>conftest.$ac_ext | |
18944 | cat >>conftest.$ac_ext <<_ACEOF | |
18945 | /* end confdefs.h. */ | |
18946 | $ac_includes_default | |
18947 | int | |
18948 | main () | |
18949 | { | |
18950 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18951 | test_array [0] = 0 | |
18952 | ||
18953 | ; | |
18954 | return 0; | |
18955 | } | |
18956 | _ACEOF | |
18957 | rm -f conftest.$ac_objext | |
18958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18959 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18960 | ac_status=$? |
ac1cb8d3 VS |
18961 | grep -v '^ *+' conftest.er1 >conftest.err |
18962 | rm -f conftest.er1 | |
18963 | cat conftest.err >&5 | |
a848cd7e SC |
18964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18965 | (exit $ac_status); } && | |
89be85c2 VS |
18966 | { ac_try='test -z "$ac_c_werror_flag" |
18967 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18969 | (eval $ac_try) 2>&5 | |
18970 | ac_status=$? | |
18971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18972 | (exit $ac_status); }; } && | |
18973 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18975 | (eval $ac_try) 2>&5 | |
18976 | ac_status=$? | |
18977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18978 | (exit $ac_status); }; }; then | |
18979 | ac_hi=$ac_mid | |
18980 | else | |
18981 | echo "$as_me: failed program was:" >&5 | |
18982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18983 | ||
18984 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18985 | fi | |
ac1cb8d3 | 18986 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18987 | done |
18988 | case $ac_lo in | |
18989 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18990 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18991 | See \`config.log' for more details." >&5 | |
18992 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18993 | See \`config.log' for more details." >&2;} | |
18994 | { (exit 1); exit 1; }; } ;; | |
18995 | esac | |
18996 | else | |
18997 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
18998 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18999 | See \`config.log' for more details." >&5 | |
19000 | echo "$as_me: error: cannot run test program while cross compiling | |
19001 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
19002 | { (exit 1); exit 1; }; } |
19003 | else | |
19004 | cat >conftest.$ac_ext <<_ACEOF | |
19005 | /* confdefs.h. */ | |
19006 | _ACEOF | |
19007 | cat confdefs.h >>conftest.$ac_ext | |
19008 | cat >>conftest.$ac_ext <<_ACEOF | |
19009 | /* end confdefs.h. */ | |
19010 | $ac_includes_default | |
19011 | long longval () { return (long) (sizeof (long long)); } | |
19012 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
19013 | #include <stdio.h> | |
19014 | #include <stdlib.h> | |
19015 | int | |
19016 | main () | |
19017 | { | |
19018 | ||
19019 | FILE *f = fopen ("conftest.val", "w"); | |
19020 | if (! f) | |
19021 | exit (1); | |
19022 | if (((long) (sizeof (long long))) < 0) | |
19023 | { | |
19024 | long i = longval (); | |
19025 | if (i != ((long) (sizeof (long long)))) | |
19026 | exit (1); | |
19027 | fprintf (f, "%ld\n", i); | |
19028 | } | |
19029 | else | |
19030 | { | |
19031 | unsigned long i = ulongval (); | |
19032 | if (i != ((long) (sizeof (long long)))) | |
19033 | exit (1); | |
19034 | fprintf (f, "%lu\n", i); | |
19035 | } | |
19036 | exit (ferror (f) || fclose (f) != 0); | |
19037 | ||
19038 | ; | |
19039 | return 0; | |
19040 | } | |
19041 | _ACEOF | |
19042 | rm -f conftest$ac_exeext | |
19043 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19044 | (eval $ac_link) 2>&5 | |
19045 | ac_status=$? | |
19046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19047 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19049 | (eval $ac_try) 2>&5 | |
19050 | ac_status=$? | |
19051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19052 | (exit $ac_status); }; }; then | |
19053 | ac_cv_sizeof_long_long=`cat conftest.val` | |
19054 | else | |
19055 | echo "$as_me: program exited with status $ac_status" >&5 | |
19056 | echo "$as_me: failed program was:" >&5 | |
19057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19058 | ||
19059 | ( exit $ac_status ) | |
19060 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19061 | See \`config.log' for more details." >&5 | |
19062 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19063 | See \`config.log' for more details." >&2;} | |
19064 | { (exit 1); exit 1; }; } | |
19065 | fi | |
ac1cb8d3 | 19066 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19067 | fi |
19068 | fi | |
19069 | rm -f conftest.val | |
19070 | else | |
19071 | ac_cv_sizeof_long_long=0 | |
19072 | fi | |
19073 | fi | |
19074 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
19075 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
19076 | cat >>confdefs.h <<_ACEOF | |
19077 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
19078 | _ACEOF | |
19079 | ||
19080 | ||
19081 | esac | |
19082 | ||
19083 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 | |
19084 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
19085 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
19086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19087 | else | |
19088 | ||
19089 | if test "$cross_compiling" = yes; then | |
19090 | ||
19091 | case "${host}" in | |
19092 | *-pc-msdosdjgpp ) | |
19093 | wx_cv_sizeof_wchar_t=0 | |
19094 | ;; | |
19095 | * ) | |
19096 | wx_cv_sizeof_wchar_t=4 | |
19097 | ;; | |
19098 | esac | |
19099 | ||
19100 | ||
19101 | else | |
19102 | cat >conftest.$ac_ext <<_ACEOF | |
19103 | /* confdefs.h. */ | |
19104 | _ACEOF | |
19105 | cat confdefs.h >>conftest.$ac_ext | |
19106 | cat >>conftest.$ac_ext <<_ACEOF | |
19107 | /* end confdefs.h. */ | |
19108 | ||
19109 | /* DJGPP only has fake wchar_t: */ | |
19110 | #ifdef __DJGPP__ | |
19111 | # error "fake wchar_t" | |
19112 | #endif | |
19113 | #ifdef HAVE_WCHAR_H | |
19114 | # ifdef __CYGWIN__ | |
19115 | # include <stddef.h> | |
19116 | # endif | |
19117 | # include <wchar.h> | |
19118 | #endif | |
19119 | #ifdef HAVE_STDLIB_H | |
19120 | # include <stdlib.h> | |
19121 | #endif | |
19122 | #include <stdio.h> | |
19123 | int main() | |
19124 | { | |
19125 | FILE *f=fopen("conftestval", "w"); | |
19126 | if (!f) exit(1); | |
19127 | fprintf(f, "%i", sizeof(wchar_t)); | |
19128 | exit(0); | |
19129 | } | |
19130 | ||
19131 | _ACEOF | |
19132 | rm -f conftest$ac_exeext | |
19133 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19134 | (eval $ac_link) 2>&5 | |
19135 | ac_status=$? | |
19136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19137 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19139 | (eval $ac_try) 2>&5 | |
19140 | ac_status=$? | |
19141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19142 | (exit $ac_status); }; }; then | |
19143 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
19144 | else | |
19145 | echo "$as_me: program exited with status $ac_status" >&5 | |
19146 | echo "$as_me: failed program was:" >&5 | |
19147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19148 | ||
19149 | ( exit $ac_status ) | |
19150 | wx_cv_sizeof_wchar_t=0 | |
19151 | fi | |
ac1cb8d3 | 19152 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19153 | fi |
19154 | ||
19155 | fi | |
19156 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 | |
19157 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
19158 | ||
19159 | cat >>confdefs.h <<_ACEOF | |
19160 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
19161 | _ACEOF | |
19162 | ||
19163 | ||
ba3d13e1 VZ |
19164 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
19165 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
19166 | if test "${wx_cv_func_va_copy+set}" = set; then | |
19167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19168 | else | |
19169 | ||
19170 | cat >conftest.$ac_ext <<_ACEOF | |
19171 | ||
19172 | #include <stdarg.h> | |
19173 | void foo(char *f, ...) | |
19174 | { | |
19175 | va_list ap1, ap2; | |
19176 | va_start(ap1, f); | |
19177 | va_copy(ap2, ap1); | |
19178 | va_end(ap2); | |
19179 | va_end(ap1); | |
19180 | } | |
5886b072 VZ |
19181 | int main() |
19182 | { | |
b902e639 VZ |
19183 | foo("hi", 17); |
19184 | return 0; | |
5886b072 | 19185 | } |
ba3d13e1 VZ |
19186 | _ACEOF |
19187 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19188 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19189 | (eval $ac_link) 2>conftest.er1 | |
19190 | ac_status=$? | |
19191 | grep -v '^ *+' conftest.er1 >conftest.err | |
19192 | rm -f conftest.er1 | |
19193 | cat conftest.err >&5 | |
19194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19195 | (exit $ac_status); } && | |
89be85c2 VS |
19196 | { ac_try='test -z "$ac_c_werror_flag" |
19197 | || test ! -s conftest.err' | |
ba3d13e1 VZ |
19198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19199 | (eval $ac_try) 2>&5 | |
19200 | ac_status=$? | |
19201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19202 | (exit $ac_status); }; } && | |
19203 | { ac_try='test -s conftest$ac_exeext' | |
19204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19205 | (eval $ac_try) 2>&5 | |
19206 | ac_status=$? | |
19207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19208 | (exit $ac_status); }; }; then | |
19209 | wx_cv_func_va_copy=yes | |
19210 | else | |
19211 | echo "$as_me: failed program was:" >&5 | |
19212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19213 | ||
19214 | wx_cv_func_va_copy=no | |
19215 | ||
19216 | fi | |
19217 | rm -f conftest.err conftest.$ac_objext \ | |
19218 | conftest$ac_exeext conftest.$ac_ext | |
19219 | ||
19220 | ||
19221 | fi | |
19222 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
19223 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
19224 | ||
19225 | if test $wx_cv_func_va_copy = "yes"; then | |
19226 | cat >>confdefs.h <<\_ACEOF | |
19227 | #define HAVE_VA_COPY 1 | |
19228 | _ACEOF | |
19229 | ||
19230 | else | |
19231 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
19232 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
19233 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
19234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19235 | else | |
19236 | ||
19237 | if test "$cross_compiling" = yes; then | |
19238 | wx_cv_type_va_list_lvalue=yes | |
19239 | ||
19240 | else | |
19241 | cat >conftest.$ac_ext <<_ACEOF | |
19242 | ||
19243 | #include <stdarg.h> | |
19244 | int foo(char *f, ...) | |
19245 | { | |
19246 | va_list ap1, ap2; | |
19247 | va_start(ap1, f); | |
19248 | ap2 = ap1; | |
19249 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
19250 | return 1; | |
19251 | va_end(ap2); | |
19252 | va_end(ap1); | |
19253 | return 0; | |
19254 | } | |
19255 | int main() | |
19256 | { | |
19257 | return foo("hi", 17); | |
19258 | } | |
19259 | _ACEOF | |
19260 | rm -f conftest$ac_exeext | |
19261 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19262 | (eval $ac_link) 2>&5 | |
19263 | ac_status=$? | |
19264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19265 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19267 | (eval $ac_try) 2>&5 | |
19268 | ac_status=$? | |
19269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19270 | (exit $ac_status); }; }; then | |
19271 | wx_cv_type_va_list_lvalue=yes | |
19272 | else | |
19273 | echo "$as_me: program exited with status $ac_status" >&5 | |
19274 | echo "$as_me: failed program was:" >&5 | |
19275 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19276 | ||
19277 | ( exit $ac_status ) | |
19278 | wx_cv_type_va_list_lvalue=no | |
19279 | fi | |
19280 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
19281 | fi | |
19282 | ||
19283 | ||
19284 | fi | |
19285 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
19286 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
19287 | ||
19288 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
19289 | cat >>confdefs.h <<\_ACEOF | |
19290 | #define VA_LIST_IS_ARRAY 1 | |
19291 | _ACEOF | |
19292 | ||
19293 | fi | |
19294 | fi | |
19295 | ||
a848cd7e SC |
19296 | # Check whether --enable-largefile or --disable-largefile was given. |
19297 | if test "${enable_largefile+set}" = set; then | |
19298 | enableval="$enable_largefile" | |
19299 | ||
19300 | fi; | |
19301 | if test "$enable_largefile" != no; then | |
19302 | wx_largefile=no | |
19303 | ||
19304 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
19305 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
19306 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
19307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19308 | else | |
19309 | ||
19310 | cat >conftest.$ac_ext <<_ACEOF | |
19311 | /* confdefs.h. */ | |
19312 | _ACEOF | |
19313 | cat confdefs.h >>conftest.$ac_ext | |
19314 | cat >>conftest.$ac_ext <<_ACEOF | |
19315 | /* end confdefs.h. */ | |
19316 | #define _FILE_OFFSET_BITS 64 | |
19317 | #include <sys/types.h> | |
19318 | int | |
19319 | main () | |
19320 | { | |
19321 | typedef struct { | |
19322 | unsigned int field: sizeof(off_t) == 8; | |
19323 | } wxlf; | |
19324 | ||
19325 | ; | |
19326 | return 0; | |
19327 | } | |
19328 | _ACEOF | |
19329 | rm -f conftest.$ac_objext | |
19330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19331 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19332 | ac_status=$? |
ac1cb8d3 VS |
19333 | grep -v '^ *+' conftest.er1 >conftest.err |
19334 | rm -f conftest.er1 | |
19335 | cat conftest.err >&5 | |
a848cd7e SC |
19336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19337 | (exit $ac_status); } && | |
89be85c2 VS |
19338 | { ac_try='test -z "$ac_c_werror_flag" |
19339 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19341 | (eval $ac_try) 2>&5 | |
19342 | ac_status=$? | |
19343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19344 | (exit $ac_status); }; } && | |
19345 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19347 | (eval $ac_try) 2>&5 | |
19348 | ac_status=$? | |
19349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19350 | (exit $ac_status); }; }; then | |
19351 | ac_cv_sys_file_offset_bits=64 | |
19352 | else | |
19353 | echo "$as_me: failed program was:" >&5 | |
19354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19355 | ||
19356 | ac_cv_sys_file_offset_bits=no | |
19357 | fi | |
ac1cb8d3 | 19358 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19359 | |
19360 | ||
19361 | fi | |
19362 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
19363 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
19364 | ||
19365 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
19366 | wx_largefile=yes | |
19367 | cat >>confdefs.h <<_ACEOF | |
19368 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
19369 | _ACEOF | |
19370 | ||
19371 | fi | |
19372 | ||
19373 | if test "x$wx_largefile" != "xyes"; then | |
19374 | ||
19375 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
19376 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
19377 | if test "${ac_cv_sys_large_files+set}" = set; then | |
19378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19379 | else | |
19380 | ||
19381 | cat >conftest.$ac_ext <<_ACEOF | |
19382 | /* confdefs.h. */ | |
19383 | _ACEOF | |
19384 | cat confdefs.h >>conftest.$ac_ext | |
19385 | cat >>conftest.$ac_ext <<_ACEOF | |
19386 | /* end confdefs.h. */ | |
19387 | #define _LARGE_FILES 1 | |
19388 | #include <sys/types.h> | |
19389 | int | |
19390 | main () | |
19391 | { | |
19392 | typedef struct { | |
19393 | unsigned int field: sizeof(off_t) == 8; | |
19394 | } wxlf; | |
19395 | ||
19396 | ; | |
19397 | return 0; | |
19398 | } | |
19399 | _ACEOF | |
19400 | rm -f conftest.$ac_objext | |
19401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19402 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19403 | ac_status=$? |
ac1cb8d3 VS |
19404 | grep -v '^ *+' conftest.er1 >conftest.err |
19405 | rm -f conftest.er1 | |
19406 | cat conftest.err >&5 | |
a848cd7e SC |
19407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19408 | (exit $ac_status); } && | |
89be85c2 VS |
19409 | { ac_try='test -z "$ac_c_werror_flag" |
19410 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19412 | (eval $ac_try) 2>&5 | |
19413 | ac_status=$? | |
19414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19415 | (exit $ac_status); }; } && | |
19416 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19418 | (eval $ac_try) 2>&5 | |
19419 | ac_status=$? | |
19420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19421 | (exit $ac_status); }; }; then | |
19422 | ac_cv_sys_large_files=1 | |
19423 | else | |
19424 | echo "$as_me: failed program was:" >&5 | |
19425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19426 | ||
19427 | ac_cv_sys_large_files=no | |
19428 | fi | |
ac1cb8d3 | 19429 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19430 | |
19431 | ||
19432 | fi | |
19433 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
19434 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
19435 | ||
19436 | if test "$ac_cv_sys_large_files" != no; then | |
19437 | wx_largefile=yes | |
19438 | cat >>confdefs.h <<_ACEOF | |
19439 | #define _LARGE_FILES $ac_cv_sys_large_files | |
19440 | _ACEOF | |
19441 | ||
19442 | fi | |
19443 | ||
19444 | fi | |
19445 | ||
19446 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
19447 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
19448 | if test "x$wx_largefile" = "xyes"; then | |
19449 | cat >>confdefs.h <<\_ACEOF | |
19450 | #define HAVE_LARGEFILE_SUPPORT 1 | |
19451 | _ACEOF | |
19452 | ||
19453 | fi | |
19454 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
19455 | echo "${ECHO_T}$wx_largefile" >&6 | |
19456 | fi | |
19457 | ||
5b674b9d DE |
19458 | |
19459 | if test "x$wx_largefile" = "xyes"; then | |
19460 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
19461 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
19462 | else | |
19463 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" | |
19464 | fi | |
19465 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
5294a27e VZ |
19466 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
19467 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
19468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19469 | else | |
19470 | while :; do | |
19471 | ac_cv_sys_largefile_source=no | |
19472 | cat >conftest.$ac_ext <<_ACEOF | |
19473 | /* confdefs.h. */ | |
19474 | _ACEOF | |
19475 | cat confdefs.h >>conftest.$ac_ext | |
19476 | cat >>conftest.$ac_ext <<_ACEOF | |
19477 | /* end confdefs.h. */ | |
19478 | #include <stdio.h> | |
19479 | int | |
19480 | main () | |
19481 | { | |
19482 | return !fseeko; | |
19483 | ; | |
19484 | return 0; | |
19485 | } | |
19486 | _ACEOF | |
19487 | rm -f conftest.$ac_objext | |
19488 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19489 | (eval $ac_compile) 2>conftest.er1 | |
19490 | ac_status=$? | |
19491 | grep -v '^ *+' conftest.er1 >conftest.err | |
19492 | rm -f conftest.er1 | |
19493 | cat conftest.err >&5 | |
19494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19495 | (exit $ac_status); } && | |
89be85c2 VS |
19496 | { ac_try='test -z "$ac_c_werror_flag" |
19497 | || test ! -s conftest.err' | |
5294a27e VZ |
19498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19499 | (eval $ac_try) 2>&5 | |
19500 | ac_status=$? | |
19501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19502 | (exit $ac_status); }; } && | |
19503 | { ac_try='test -s conftest.$ac_objext' | |
19504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19505 | (eval $ac_try) 2>&5 | |
19506 | ac_status=$? | |
19507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19508 | (exit $ac_status); }; }; then | |
19509 | break | |
19510 | else | |
19511 | echo "$as_me: failed program was:" >&5 | |
19512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19513 | ||
19514 | fi | |
19515 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19516 | cat >conftest.$ac_ext <<_ACEOF | |
19517 | /* confdefs.h. */ | |
19518 | _ACEOF | |
19519 | cat confdefs.h >>conftest.$ac_ext | |
19520 | cat >>conftest.$ac_ext <<_ACEOF | |
19521 | /* end confdefs.h. */ | |
19522 | #define _LARGEFILE_SOURCE 1 | |
19523 | #include <stdio.h> | |
19524 | int | |
19525 | main () | |
19526 | { | |
19527 | return !fseeko; | |
19528 | ; | |
19529 | return 0; | |
19530 | } | |
19531 | _ACEOF | |
19532 | rm -f conftest.$ac_objext | |
19533 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19534 | (eval $ac_compile) 2>conftest.er1 | |
19535 | ac_status=$? | |
19536 | grep -v '^ *+' conftest.er1 >conftest.err | |
19537 | rm -f conftest.er1 | |
19538 | cat conftest.err >&5 | |
19539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19540 | (exit $ac_status); } && | |
89be85c2 VS |
19541 | { ac_try='test -z "$ac_c_werror_flag" |
19542 | || test ! -s conftest.err' | |
5294a27e VZ |
19543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19544 | (eval $ac_try) 2>&5 | |
19545 | ac_status=$? | |
19546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19547 | (exit $ac_status); }; } && | |
19548 | { ac_try='test -s conftest.$ac_objext' | |
19549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19550 | (eval $ac_try) 2>&5 | |
19551 | ac_status=$? | |
19552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19553 | (exit $ac_status); }; }; then | |
19554 | ac_cv_sys_largefile_source=1; break | |
19555 | else | |
19556 | echo "$as_me: failed program was:" >&5 | |
19557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19558 | ||
19559 | fi | |
19560 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19561 | break | |
19562 | done | |
19563 | fi | |
19564 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
19565 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
19566 | if test "$ac_cv_sys_largefile_source" != no; then | |
19567 | ||
19568 | cat >>confdefs.h <<_ACEOF | |
19569 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
19570 | _ACEOF | |
19571 | ||
19572 | fi | |
19573 | rm -f conftest* | |
19574 | ||
19575 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
19576 | # in glibc 2.1.3, but that breaks too many other things. | |
19577 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
19578 | echo "$as_me:$LINENO: checking for fseeko" >&5 | |
19579 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
19580 | if test "${ac_cv_func_fseeko+set}" = set; then | |
19581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19582 | else | |
19583 | cat >conftest.$ac_ext <<_ACEOF | |
19584 | /* confdefs.h. */ | |
19585 | _ACEOF | |
19586 | cat confdefs.h >>conftest.$ac_ext | |
19587 | cat >>conftest.$ac_ext <<_ACEOF | |
19588 | /* end confdefs.h. */ | |
19589 | #include <stdio.h> | |
19590 | int | |
19591 | main () | |
19592 | { | |
19593 | return fseeko && fseeko (stdin, 0, 0); | |
19594 | ; | |
19595 | return 0; | |
19596 | } | |
19597 | _ACEOF | |
19598 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19599 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19600 | (eval $ac_link) 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); } && | |
89be85c2 VS |
19607 | { ac_try='test -z "$ac_c_werror_flag" |
19608 | || test ! -s conftest.err' | |
5294a27e VZ |
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_exeext' | |
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_cv_func_fseeko=yes | |
19621 | else | |
19622 | echo "$as_me: failed program was:" >&5 | |
19623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19624 | ||
19625 | ac_cv_func_fseeko=no | |
19626 | fi | |
19627 | rm -f conftest.err conftest.$ac_objext \ | |
19628 | conftest$ac_exeext conftest.$ac_ext | |
19629 | fi | |
19630 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
19631 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
19632 | if test $ac_cv_func_fseeko = yes; then | |
19633 | ||
19634 | cat >>confdefs.h <<\_ACEOF | |
19635 | #define HAVE_FSEEKO 1 | |
19636 | _ACEOF | |
19637 | ||
19638 | fi | |
19639 | ||
5b674b9d DE |
19640 | if test "$ac_cv_sys_largefile_source" != no; then |
19641 | WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" | |
a848cd7e SC |
19642 | fi |
19643 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" | |
19644 | fi | |
19645 | ||
19646 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
19647 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
19648 | if test "${ac_cv_c_bigendian+set}" = set; then | |
19649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19650 | else | |
19651 | ac_cv_c_bigendian=unknown | |
19652 | # See if sys/param.h defines the BYTE_ORDER macro. | |
19653 | cat >conftest.$ac_ext <<_ACEOF | |
19654 | /* confdefs.h. */ | |
19655 | _ACEOF | |
19656 | cat confdefs.h >>conftest.$ac_ext | |
19657 | cat >>conftest.$ac_ext <<_ACEOF | |
19658 | /* end confdefs.h. */ | |
19659 | #include <sys/types.h> | |
19660 | #include <sys/param.h> | |
19661 | int | |
19662 | main () | |
19663 | { | |
19664 | ||
19665 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
19666 | bogus endian macros | |
19667 | #endif | |
19668 | ; | |
19669 | return 0; | |
19670 | } | |
19671 | _ACEOF | |
19672 | rm -f conftest.$ac_objext | |
19673 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19674 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19675 | ac_status=$? |
ac1cb8d3 VS |
19676 | grep -v '^ *+' conftest.er1 >conftest.err |
19677 | rm -f conftest.er1 | |
19678 | cat conftest.err >&5 | |
a848cd7e SC |
19679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19680 | (exit $ac_status); } && | |
89be85c2 VS |
19681 | { ac_try='test -z "$ac_c_werror_flag" |
19682 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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' | |
a848cd7e SC |
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 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
19695 | cat >conftest.$ac_ext <<_ACEOF | |
19696 | /* confdefs.h. */ | |
19697 | _ACEOF | |
19698 | cat confdefs.h >>conftest.$ac_ext | |
19699 | cat >>conftest.$ac_ext <<_ACEOF | |
19700 | /* end confdefs.h. */ | |
19701 | #include <sys/types.h> | |
19702 | #include <sys/param.h> | |
19703 | int | |
19704 | main () | |
19705 | { | |
19706 | ||
19707 | #if BYTE_ORDER != BIG_ENDIAN | |
19708 | not big endian | |
19709 | #endif | |
19710 | ; | |
19711 | return 0; | |
19712 | } | |
19713 | _ACEOF | |
19714 | rm -f conftest.$ac_objext | |
19715 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19716 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19717 | ac_status=$? |
ac1cb8d3 VS |
19718 | grep -v '^ *+' conftest.er1 >conftest.err |
19719 | rm -f conftest.er1 | |
19720 | cat conftest.err >&5 | |
a848cd7e SC |
19721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19722 | (exit $ac_status); } && | |
89be85c2 VS |
19723 | { ac_try='test -z "$ac_c_werror_flag" |
19724 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19726 | (eval $ac_try) 2>&5 | |
19727 | ac_status=$? | |
19728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19729 | (exit $ac_status); }; } && | |
19730 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19732 | (eval $ac_try) 2>&5 | |
19733 | ac_status=$? | |
19734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19735 | (exit $ac_status); }; }; then | |
19736 | ac_cv_c_bigendian=yes | |
19737 | else | |
19738 | echo "$as_me: failed program was:" >&5 | |
19739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19740 | ||
19741 | ac_cv_c_bigendian=no | |
19742 | fi | |
ac1cb8d3 | 19743 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19744 | else |
19745 | echo "$as_me: failed program was:" >&5 | |
19746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19747 | ||
19748 | fi | |
ac1cb8d3 | 19749 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19750 | if test $ac_cv_c_bigendian = unknown; then |
19751 | if test "$cross_compiling" = yes; then | |
19752 | ac_cv_c_bigendian=unknown | |
19753 | else | |
19754 | cat >conftest.$ac_ext <<_ACEOF | |
19755 | /* confdefs.h. */ | |
19756 | _ACEOF | |
19757 | cat confdefs.h >>conftest.$ac_ext | |
19758 | cat >>conftest.$ac_ext <<_ACEOF | |
19759 | /* end confdefs.h. */ | |
19760 | main () { | |
19761 | /* Are we little or big endian? From Harbison&Steele. */ | |
19762 | union | |
19763 | { | |
19764 | long l; | |
19765 | char c[sizeof (long)]; | |
19766 | } u; | |
19767 | u.l = 1; | |
19768 | exit (u.c[sizeof (long) - 1] == 1); | |
19769 | } | |
19770 | _ACEOF | |
19771 | rm -f conftest$ac_exeext | |
19772 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19773 | (eval $ac_link) 2>&5 | |
19774 | ac_status=$? | |
19775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19776 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19778 | (eval $ac_try) 2>&5 | |
19779 | ac_status=$? | |
19780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19781 | (exit $ac_status); }; }; then | |
19782 | ac_cv_c_bigendian=no | |
19783 | else | |
19784 | echo "$as_me: program exited with status $ac_status" >&5 | |
19785 | echo "$as_me: failed program was:" >&5 | |
19786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19787 | ||
19788 | ( exit $ac_status ) | |
19789 | ac_cv_c_bigendian=yes | |
19790 | fi | |
ac1cb8d3 | 19791 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19792 | fi |
19793 | fi | |
19794 | fi | |
19795 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
19796 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
19797 | if test $ac_cv_c_bigendian = unknown; then | |
19798 | { 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 | |
19799 | 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;} | |
19800 | fi | |
19801 | if test $ac_cv_c_bigendian = yes; then | |
19802 | cat >>confdefs.h <<\_ACEOF | |
19803 | #define WORDS_BIGENDIAN 1 | |
19804 | _ACEOF | |
19805 | ||
19806 | fi | |
19807 | ||
19808 | ||
19809 | ac_ext=cc | |
19810 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19811 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19812 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19813 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19814 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
19815 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
19816 | if test -z "$CXXCPP"; then | |
19817 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
19818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19819 | else | |
19820 | # Double quotes because CXXCPP needs to be expanded | |
19821 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
19822 | do | |
19823 | ac_preproc_ok=false | |
19824 | for ac_cxx_preproc_warn_flag in '' yes | |
19825 | do | |
19826 | # Use a header file that comes with gcc, so configuring glibc | |
19827 | # with a fresh cross-compiler works. | |
19828 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19829 | # <limits.h> exists even on freestanding compilers. | |
19830 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
19831 | # not just through cpp. "Syntax error" is here to catch this case. | |
19832 | cat >conftest.$ac_ext <<_ACEOF | |
19833 | /* confdefs.h. */ | |
19834 | _ACEOF | |
19835 | cat confdefs.h >>conftest.$ac_ext | |
19836 | cat >>conftest.$ac_ext <<_ACEOF | |
19837 | /* end confdefs.h. */ | |
19838 | #ifdef __STDC__ | |
19839 | # include <limits.h> | |
19840 | #else | |
19841 | # include <assert.h> | |
19842 | #endif | |
ac1cb8d3 | 19843 | Syntax error |
a848cd7e SC |
19844 | _ACEOF |
19845 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19846 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19847 | ac_status=$? | |
19848 | grep -v '^ *+' conftest.er1 >conftest.err | |
19849 | rm -f conftest.er1 | |
19850 | cat conftest.err >&5 | |
19851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19852 | (exit $ac_status); } >/dev/null; then | |
19853 | if test -s conftest.err; then | |
19854 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19855 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
19856 | else |
19857 | ac_cpp_err= | |
19858 | fi | |
19859 | else | |
19860 | ac_cpp_err=yes | |
19861 | fi | |
19862 | if test -z "$ac_cpp_err"; then | |
19863 | : | |
19864 | else | |
19865 | echo "$as_me: failed program was:" >&5 | |
19866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19867 | ||
19868 | # Broken: fails on valid input. | |
19869 | continue | |
19870 | fi | |
19871 | rm -f conftest.err conftest.$ac_ext | |
19872 | ||
19873 | # OK, works on sane cases. Now check whether non-existent headers | |
19874 | # can be detected and how. | |
19875 | cat >conftest.$ac_ext <<_ACEOF | |
19876 | /* confdefs.h. */ | |
19877 | _ACEOF | |
19878 | cat confdefs.h >>conftest.$ac_ext | |
19879 | cat >>conftest.$ac_ext <<_ACEOF | |
19880 | /* end confdefs.h. */ | |
19881 | #include <ac_nonexistent.h> | |
19882 | _ACEOF | |
19883 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19884 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19885 | ac_status=$? | |
19886 | grep -v '^ *+' conftest.er1 >conftest.err | |
19887 | rm -f conftest.er1 | |
19888 | cat conftest.err >&5 | |
19889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19890 | (exit $ac_status); } >/dev/null; then | |
19891 | if test -s conftest.err; then | |
19892 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19893 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
19894 | else |
19895 | ac_cpp_err= | |
19896 | fi | |
19897 | else | |
19898 | ac_cpp_err=yes | |
19899 | fi | |
19900 | if test -z "$ac_cpp_err"; then | |
19901 | # Broken: success on invalid input. | |
19902 | continue | |
19903 | else | |
19904 | echo "$as_me: failed program was:" >&5 | |
19905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19906 | ||
19907 | # Passes both tests. | |
19908 | ac_preproc_ok=: | |
19909 | break | |
19910 | fi | |
19911 | rm -f conftest.err conftest.$ac_ext | |
19912 | ||
19913 | done | |
19914 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
19915 | rm -f conftest.err conftest.$ac_ext | |
19916 | if $ac_preproc_ok; then | |
19917 | break | |
19918 | fi | |
19919 | ||
19920 | done | |
19921 | ac_cv_prog_CXXCPP=$CXXCPP | |
19922 | ||
19923 | fi | |
19924 | CXXCPP=$ac_cv_prog_CXXCPP | |
19925 | else | |
19926 | ac_cv_prog_CXXCPP=$CXXCPP | |
19927 | fi | |
19928 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
19929 | echo "${ECHO_T}$CXXCPP" >&6 | |
19930 | ac_preproc_ok=false | |
19931 | for ac_cxx_preproc_warn_flag in '' yes | |
19932 | do | |
19933 | # Use a header file that comes with gcc, so configuring glibc | |
19934 | # with a fresh cross-compiler works. | |
19935 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19936 | # <limits.h> exists even on freestanding compilers. | |
19937 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
19938 | # not just through cpp. "Syntax error" is here to catch this case. | |
19939 | cat >conftest.$ac_ext <<_ACEOF | |
19940 | /* confdefs.h. */ | |
19941 | _ACEOF | |
19942 | cat confdefs.h >>conftest.$ac_ext | |
19943 | cat >>conftest.$ac_ext <<_ACEOF | |
19944 | /* end confdefs.h. */ | |
19945 | #ifdef __STDC__ | |
19946 | # include <limits.h> | |
19947 | #else | |
19948 | # include <assert.h> | |
19949 | #endif | |
ac1cb8d3 | 19950 | Syntax error |
a848cd7e SC |
19951 | _ACEOF |
19952 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19953 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19954 | ac_status=$? | |
19955 | grep -v '^ *+' conftest.er1 >conftest.err | |
19956 | rm -f conftest.er1 | |
19957 | cat conftest.err >&5 | |
19958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19959 | (exit $ac_status); } >/dev/null; then | |
19960 | if test -s conftest.err; then | |
19961 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19962 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
19963 | else |
19964 | ac_cpp_err= | |
19965 | fi | |
19966 | else | |
19967 | ac_cpp_err=yes | |
19968 | fi | |
19969 | if test -z "$ac_cpp_err"; then | |
19970 | : | |
19971 | else | |
19972 | echo "$as_me: failed program was:" >&5 | |
19973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19974 | ||
19975 | # Broken: fails on valid input. | |
19976 | continue | |
19977 | fi | |
19978 | rm -f conftest.err conftest.$ac_ext | |
19979 | ||
19980 | # OK, works on sane cases. Now check whether non-existent headers | |
19981 | # can be detected and how. | |
19982 | cat >conftest.$ac_ext <<_ACEOF | |
19983 | /* confdefs.h. */ | |
19984 | _ACEOF | |
19985 | cat confdefs.h >>conftest.$ac_ext | |
19986 | cat >>conftest.$ac_ext <<_ACEOF | |
19987 | /* end confdefs.h. */ | |
19988 | #include <ac_nonexistent.h> | |
19989 | _ACEOF | |
19990 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19991 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19992 | ac_status=$? | |
19993 | grep -v '^ *+' conftest.er1 >conftest.err | |
19994 | rm -f conftest.er1 | |
19995 | cat conftest.err >&5 | |
19996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19997 | (exit $ac_status); } >/dev/null; then | |
19998 | if test -s conftest.err; then | |
19999 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20000 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20001 | else |
20002 | ac_cpp_err= | |
20003 | fi | |
20004 | else | |
20005 | ac_cpp_err=yes | |
20006 | fi | |
20007 | if test -z "$ac_cpp_err"; then | |
20008 | # Broken: success on invalid input. | |
20009 | continue | |
20010 | else | |
20011 | echo "$as_me: failed program was:" >&5 | |
20012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20013 | ||
20014 | # Passes both tests. | |
20015 | ac_preproc_ok=: | |
20016 | break | |
20017 | fi | |
20018 | rm -f conftest.err conftest.$ac_ext | |
20019 | ||
20020 | done | |
20021 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
20022 | rm -f conftest.err conftest.$ac_ext | |
20023 | if $ac_preproc_ok; then | |
20024 | : | |
20025 | else | |
20026 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
20027 | See \`config.log' for more details." >&5 | |
20028 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
20029 | See \`config.log' for more details." >&2;} | |
20030 | { (exit 1); exit 1; }; } | |
20031 | fi | |
20032 | ||
20033 | ac_ext=cc | |
20034 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20035 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20036 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20037 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20038 | ||
20039 | ||
20040 | ||
20041 | ||
20042 | ||
20043 | ac_ext=cc | |
20044 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20045 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20046 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20047 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20048 | ||
20049 | ||
20050 | ||
20051 | for ac_header in iostream | |
20052 | do | |
20053 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
20054 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20055 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20056 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20057 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20059 | fi | |
20060 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20061 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20062 | else | |
20063 | # Is the header compilable? | |
20064 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
20065 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
20066 | cat >conftest.$ac_ext <<_ACEOF | |
20067 | /* confdefs.h. */ | |
20068 | _ACEOF | |
20069 | cat confdefs.h >>conftest.$ac_ext | |
20070 | cat >>conftest.$ac_ext <<_ACEOF | |
20071 | /* end confdefs.h. */ | |
20072 | $ac_includes_default | |
20073 | #include <$ac_header> | |
20074 | _ACEOF | |
20075 | rm -f conftest.$ac_objext | |
20076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20077 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20078 | ac_status=$? |
ac1cb8d3 VS |
20079 | grep -v '^ *+' conftest.er1 >conftest.err |
20080 | rm -f conftest.er1 | |
20081 | cat conftest.err >&5 | |
a848cd7e SC |
20082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20083 | (exit $ac_status); } && | |
89be85c2 VS |
20084 | { ac_try='test -z "$ac_cxx_werror_flag" |
20085 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20087 | (eval $ac_try) 2>&5 | |
20088 | ac_status=$? | |
20089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20090 | (exit $ac_status); }; } && | |
20091 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20093 | (eval $ac_try) 2>&5 | |
20094 | ac_status=$? | |
20095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20096 | (exit $ac_status); }; }; then | |
20097 | ac_header_compiler=yes | |
20098 | else | |
20099 | echo "$as_me: failed program was:" >&5 | |
20100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20101 | ||
20102 | ac_header_compiler=no | |
20103 | fi | |
ac1cb8d3 | 20104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20105 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20106 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20107 | ||
20108 | # Is the header present? | |
20109 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
20110 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
20111 | cat >conftest.$ac_ext <<_ACEOF | |
20112 | /* confdefs.h. */ | |
20113 | _ACEOF | |
20114 | cat confdefs.h >>conftest.$ac_ext | |
20115 | cat >>conftest.$ac_ext <<_ACEOF | |
20116 | /* end confdefs.h. */ | |
20117 | #include <$ac_header> | |
20118 | _ACEOF | |
20119 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20120 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20121 | ac_status=$? | |
20122 | grep -v '^ *+' conftest.er1 >conftest.err | |
20123 | rm -f conftest.er1 | |
20124 | cat conftest.err >&5 | |
20125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20126 | (exit $ac_status); } >/dev/null; then | |
20127 | if test -s conftest.err; then | |
20128 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20129 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20130 | else |
20131 | ac_cpp_err= | |
20132 | fi | |
20133 | else | |
20134 | ac_cpp_err=yes | |
20135 | fi | |
20136 | if test -z "$ac_cpp_err"; then | |
20137 | ac_header_preproc=yes | |
20138 | else | |
20139 | echo "$as_me: failed program was:" >&5 | |
20140 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20141 | ||
20142 | ac_header_preproc=no | |
20143 | fi | |
20144 | rm -f conftest.err conftest.$ac_ext | |
20145 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20146 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20147 | ||
20148 | # So? What about this header? | |
ac1cb8d3 VS |
20149 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
20150 | yes:no: ) | |
a848cd7e SC |
20151 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20152 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20153 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20154 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20155 | ac_header_preproc=yes | |
a848cd7e | 20156 | ;; |
ac1cb8d3 | 20157 | no:yes:* ) |
a848cd7e SC |
20158 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20159 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20160 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20161 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20162 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20163 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20164 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20165 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20166 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
20167 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20168 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20169 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20170 | ( |
20171 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20172 | ## ----------------------------------------- ## |
20173 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20174 | ## ----------------------------------------- ## | |
a848cd7e SC |
20175 | _ASBOX |
20176 | ) | | |
20177 | sed "s/^/$as_me: WARNING: /" >&2 | |
20178 | ;; | |
20179 | esac | |
20180 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20181 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20182 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20184 | else | |
ac1cb8d3 | 20185 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
20186 | fi |
20187 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20188 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20189 | ||
20190 | fi | |
20191 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
20192 | cat >>confdefs.h <<_ACEOF | |
20193 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
20194 | _ACEOF | |
20195 | ||
20196 | fi | |
20197 | ||
20198 | done | |
20199 | ||
20200 | ||
20201 | if test "$ac_cv_header_iostream" = "yes" ; then | |
20202 | : | |
20203 | else | |
20204 | cat >>confdefs.h <<\_ACEOF | |
20205 | #define wxUSE_IOSTREAMH 1 | |
20206 | _ACEOF | |
20207 | ||
20208 | fi | |
20209 | ||
20210 | ac_ext=c | |
20211 | ac_cpp='$CPP $CPPFLAGS' | |
20212 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20213 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20214 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20215 | ||
20216 | ||
20217 | ||
20218 | ||
20219 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
20220 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
20221 | if test "${wx_cv_cpp_bool+set}" = set; then | |
20222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20223 | else | |
20224 | ||
20225 | ||
20226 | ||
20227 | ac_ext=cc | |
20228 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20229 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20230 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20231 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20232 | ||
20233 | ||
20234 | cat >conftest.$ac_ext <<_ACEOF | |
20235 | /* confdefs.h. */ | |
20236 | _ACEOF | |
20237 | cat confdefs.h >>conftest.$ac_ext | |
20238 | cat >>conftest.$ac_ext <<_ACEOF | |
20239 | /* end confdefs.h. */ | |
20240 | ||
20241 | ||
20242 | int | |
20243 | main () | |
20244 | { | |
20245 | ||
20246 | bool b = true; | |
20247 | ||
20248 | return 0; | |
20249 | ||
20250 | ; | |
20251 | return 0; | |
20252 | } | |
20253 | _ACEOF | |
20254 | rm -f conftest.$ac_objext | |
20255 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20256 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20257 | ac_status=$? |
ac1cb8d3 VS |
20258 | grep -v '^ *+' conftest.er1 >conftest.err |
20259 | rm -f conftest.er1 | |
20260 | cat conftest.err >&5 | |
a848cd7e SC |
20261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20262 | (exit $ac_status); } && | |
89be85c2 VS |
20263 | { ac_try='test -z "$ac_cxx_werror_flag" |
20264 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20266 | (eval $ac_try) 2>&5 | |
20267 | ac_status=$? | |
20268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20269 | (exit $ac_status); }; } && | |
20270 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20272 | (eval $ac_try) 2>&5 | |
20273 | ac_status=$? | |
20274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20275 | (exit $ac_status); }; }; then | |
20276 | ||
20277 | wx_cv_cpp_bool=yes | |
20278 | ||
20279 | else | |
20280 | echo "$as_me: failed program was:" >&5 | |
20281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20282 | ||
20283 | ||
20284 | wx_cv_cpp_bool=no | |
20285 | ||
20286 | ||
20287 | fi | |
ac1cb8d3 | 20288 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20289 | |
20290 | ac_ext=c | |
20291 | ac_cpp='$CPP $CPPFLAGS' | |
20292 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20293 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20294 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20295 | ||
20296 | ||
20297 | fi | |
20298 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
20299 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
20300 | ||
20301 | if test "$wx_cv_cpp_bool" = "yes"; then | |
20302 | cat >>confdefs.h <<\_ACEOF | |
20303 | #define HAVE_BOOL 1 | |
20304 | _ACEOF | |
20305 | ||
20306 | fi | |
20307 | ||
20308 | ||
20309 | ||
20310 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
20311 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
20312 | if test "${wx_cv_explicit+set}" = set; then | |
20313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20314 | else | |
20315 | ||
20316 | ||
20317 | ||
20318 | ac_ext=cc | |
20319 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20320 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20321 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20322 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20323 | ||
20324 | ||
20325 | cat >conftest.$ac_ext <<_ACEOF | |
20326 | /* confdefs.h. */ | |
20327 | _ACEOF | |
20328 | cat confdefs.h >>conftest.$ac_ext | |
20329 | cat >>conftest.$ac_ext <<_ACEOF | |
20330 | /* end confdefs.h. */ | |
20331 | ||
20332 | class Foo { public: explicit Foo(int) {} }; | |
20333 | ||
20334 | int | |
20335 | main () | |
20336 | { | |
20337 | ||
20338 | return 0; | |
20339 | ||
20340 | ; | |
20341 | return 0; | |
20342 | } | |
20343 | _ACEOF | |
20344 | rm -f conftest.$ac_objext | |
20345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20346 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20347 | ac_status=$? |
ac1cb8d3 VS |
20348 | grep -v '^ *+' conftest.er1 >conftest.err |
20349 | rm -f conftest.er1 | |
20350 | cat conftest.err >&5 | |
a848cd7e SC |
20351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20352 | (exit $ac_status); } && | |
89be85c2 VS |
20353 | { ac_try='test -z "$ac_cxx_werror_flag" |
20354 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20356 | (eval $ac_try) 2>&5 | |
20357 | ac_status=$? | |
20358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20359 | (exit $ac_status); }; } && | |
20360 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20362 | (eval $ac_try) 2>&5 | |
20363 | ac_status=$? | |
20364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20365 | (exit $ac_status); }; }; then | |
20366 | ||
20367 | cat >conftest.$ac_ext <<_ACEOF | |
20368 | /* confdefs.h. */ | |
20369 | _ACEOF | |
20370 | cat confdefs.h >>conftest.$ac_ext | |
20371 | cat >>conftest.$ac_ext <<_ACEOF | |
20372 | /* end confdefs.h. */ | |
20373 | ||
20374 | class Foo { public: explicit Foo(int) {} }; | |
20375 | static void TakeFoo(const Foo& foo) { } | |
20376 | ||
20377 | int | |
20378 | main () | |
20379 | { | |
20380 | ||
20381 | TakeFoo(17); | |
20382 | return 0; | |
20383 | ||
20384 | ; | |
20385 | return 0; | |
20386 | } | |
20387 | _ACEOF | |
20388 | rm -f conftest.$ac_objext | |
20389 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20390 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20391 | ac_status=$? |
ac1cb8d3 VS |
20392 | grep -v '^ *+' conftest.er1 >conftest.err |
20393 | rm -f conftest.er1 | |
20394 | cat conftest.err >&5 | |
a848cd7e SC |
20395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20396 | (exit $ac_status); } && | |
89be85c2 VS |
20397 | { ac_try='test -z "$ac_cxx_werror_flag" |
20398 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20400 | (eval $ac_try) 2>&5 | |
20401 | ac_status=$? | |
20402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20403 | (exit $ac_status); }; } && | |
20404 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20406 | (eval $ac_try) 2>&5 | |
20407 | ac_status=$? | |
20408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20409 | (exit $ac_status); }; }; then | |
20410 | wx_cv_explicit=no | |
20411 | else | |
20412 | echo "$as_me: failed program was:" >&5 | |
20413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20414 | ||
20415 | wx_cv_explicit=yes | |
20416 | ||
20417 | fi | |
ac1cb8d3 | 20418 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20419 | |
20420 | else | |
20421 | echo "$as_me: failed program was:" >&5 | |
20422 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20423 | ||
20424 | wx_cv_explicit=no | |
20425 | ||
20426 | fi | |
ac1cb8d3 | 20427 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20428 | |
20429 | ac_ext=c | |
20430 | ac_cpp='$CPP $CPPFLAGS' | |
20431 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20432 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20433 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20434 | ||
20435 | ||
20436 | fi | |
20437 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
20438 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
20439 | ||
20440 | if test "$wx_cv_explicit" = "yes"; then | |
20441 | cat >>confdefs.h <<\_ACEOF | |
20442 | #define HAVE_EXPLICIT 1 | |
20443 | _ACEOF | |
20444 | ||
20445 | fi | |
20446 | ||
20447 | ||
20448 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
20449 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
20450 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
20451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20452 | else | |
20453 | ||
20454 | ||
20455 | ac_ext=cc | |
20456 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20457 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20458 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20459 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20460 | ||
20461 | cat >conftest.$ac_ext <<_ACEOF | |
20462 | /* confdefs.h. */ | |
20463 | _ACEOF | |
20464 | cat confdefs.h >>conftest.$ac_ext | |
20465 | cat >>conftest.$ac_ext <<_ACEOF | |
20466 | /* end confdefs.h. */ | |
20467 | ||
20468 | int | |
20469 | main () | |
20470 | { | |
20471 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
20472 | ; | |
20473 | return 0; | |
20474 | } | |
20475 | _ACEOF | |
20476 | rm -f conftest.$ac_objext | |
20477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20478 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20479 | ac_status=$? |
ac1cb8d3 VS |
20480 | grep -v '^ *+' conftest.er1 >conftest.err |
20481 | rm -f conftest.er1 | |
20482 | cat conftest.err >&5 | |
a848cd7e SC |
20483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20484 | (exit $ac_status); } && | |
89be85c2 VS |
20485 | { ac_try='test -z "$ac_cxx_werror_flag" |
20486 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20488 | (eval $ac_try) 2>&5 | |
20489 | ac_status=$? | |
20490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20491 | (exit $ac_status); }; } && | |
20492 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20494 | (eval $ac_try) 2>&5 | |
20495 | ac_status=$? | |
20496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20497 | (exit $ac_status); }; }; then | |
20498 | ac_cv_cxx_const_cast=yes | |
20499 | else | |
20500 | echo "$as_me: failed program was:" >&5 | |
20501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20502 | ||
20503 | ac_cv_cxx_const_cast=no | |
20504 | fi | |
ac1cb8d3 | 20505 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20506 | ac_ext=c |
20507 | ac_cpp='$CPP $CPPFLAGS' | |
20508 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20509 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20510 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20511 | ||
20512 | ||
20513 | fi | |
20514 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
20515 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
20516 | if test "$ac_cv_cxx_const_cast" = yes; then | |
20517 | ||
20518 | cat >>confdefs.h <<\_ACEOF | |
20519 | #define HAVE_CONST_CAST | |
20520 | _ACEOF | |
20521 | ||
20522 | fi | |
20523 | ||
7714864e RL |
20524 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
20525 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
20526 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
20527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20528 | else | |
20529 | ||
20530 | ||
20531 | ac_ext=cc | |
20532 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20533 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20534 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20535 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20536 | ||
20537 | cat >conftest.$ac_ext <<_ACEOF | |
20538 | /* confdefs.h. */ | |
20539 | _ACEOF | |
20540 | cat confdefs.h >>conftest.$ac_ext | |
20541 | cat >>conftest.$ac_ext <<_ACEOF | |
20542 | /* end confdefs.h. */ | |
20543 | #include <typeinfo> | |
20544 | class Base { public : Base () {} virtual void f () = 0;}; | |
20545 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
20546 | class Unrelated { public : Unrelated () {} }; | |
20547 | int g (Unrelated&) { return 0; } | |
20548 | int | |
20549 | main () | |
20550 | { | |
20551 | ||
20552 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
20553 | ; | |
20554 | return 0; | |
20555 | } | |
20556 | _ACEOF | |
20557 | rm -f conftest.$ac_objext | |
20558 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20559 | (eval $ac_compile) 2>conftest.er1 | |
20560 | ac_status=$? | |
20561 | grep -v '^ *+' conftest.er1 >conftest.err | |
20562 | rm -f conftest.er1 | |
20563 | cat conftest.err >&5 | |
20564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20565 | (exit $ac_status); } && | |
89be85c2 VS |
20566 | { ac_try='test -z "$ac_cxx_werror_flag" |
20567 | || test ! -s conftest.err' | |
7714864e RL |
20568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20569 | (eval $ac_try) 2>&5 | |
20570 | ac_status=$? | |
20571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20572 | (exit $ac_status); }; } && | |
20573 | { ac_try='test -s conftest.$ac_objext' | |
20574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20575 | (eval $ac_try) 2>&5 | |
20576 | ac_status=$? | |
20577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20578 | (exit $ac_status); }; }; then | |
20579 | ac_cv_cxx_reinterpret_cast=yes | |
20580 | else | |
20581 | echo "$as_me: failed program was:" >&5 | |
20582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20583 | ||
20584 | ac_cv_cxx_reinterpret_cast=no | |
20585 | fi | |
20586 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20587 | ac_ext=c | |
20588 | ac_cpp='$CPP $CPPFLAGS' | |
20589 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20590 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20591 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20592 | ||
20593 | ||
20594 | fi | |
20595 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
20596 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
20597 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
20598 | ||
20599 | cat >>confdefs.h <<\_ACEOF | |
20600 | #define HAVE_REINTERPRET_CAST | |
20601 | _ACEOF | |
20602 | ||
20603 | fi | |
20604 | ||
a848cd7e SC |
20605 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
20606 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
20607 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
20608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20609 | else | |
20610 | ||
20611 | ||
20612 | ac_ext=cc | |
20613 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20614 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20615 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20616 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20617 | ||
20618 | cat >conftest.$ac_ext <<_ACEOF | |
20619 | /* confdefs.h. */ | |
20620 | _ACEOF | |
20621 | cat confdefs.h >>conftest.$ac_ext | |
20622 | cat >>conftest.$ac_ext <<_ACEOF | |
20623 | /* end confdefs.h. */ | |
20624 | #include <typeinfo> | |
20625 | class Base { public : Base () {} virtual void f () = 0; }; | |
20626 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
20627 | int g (Derived&) { return 0; } | |
20628 | int | |
20629 | main () | |
20630 | { | |
20631 | ||
20632 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
20633 | ; | |
20634 | return 0; | |
20635 | } | |
20636 | _ACEOF | |
20637 | rm -f conftest.$ac_objext | |
20638 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20639 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20640 | ac_status=$? |
ac1cb8d3 VS |
20641 | grep -v '^ *+' conftest.er1 >conftest.err |
20642 | rm -f conftest.er1 | |
20643 | cat conftest.err >&5 | |
a848cd7e SC |
20644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20645 | (exit $ac_status); } && | |
89be85c2 VS |
20646 | { ac_try='test -z "$ac_cxx_werror_flag" |
20647 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20649 | (eval $ac_try) 2>&5 | |
20650 | ac_status=$? | |
20651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20652 | (exit $ac_status); }; } && | |
20653 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20655 | (eval $ac_try) 2>&5 | |
20656 | ac_status=$? | |
20657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20658 | (exit $ac_status); }; }; then | |
20659 | ac_cv_cxx_static_cast=yes | |
20660 | else | |
20661 | echo "$as_me: failed program was:" >&5 | |
20662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20663 | ||
20664 | ac_cv_cxx_static_cast=no | |
20665 | fi | |
ac1cb8d3 | 20666 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20667 | ac_ext=c |
20668 | ac_cpp='$CPP $CPPFLAGS' | |
20669 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20670 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20671 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20672 | ||
20673 | ||
20674 | fi | |
20675 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
20676 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
20677 | if test "$ac_cv_cxx_static_cast" = yes; then | |
20678 | ||
20679 | cat >>confdefs.h <<\_ACEOF | |
20680 | #define HAVE_STATIC_CAST | |
20681 | _ACEOF | |
20682 | ||
20683 | fi | |
20684 | ||
20685 | ||
20686 | if test "$wxUSE_STL" = "yes"; then | |
20687 | ac_ext=cc | |
20688 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20689 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20690 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20691 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20692 | ||
20693 | ||
20694 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
20695 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
20696 | cat >conftest.$ac_ext <<_ACEOF | |
20697 | /* confdefs.h. */ | |
20698 | _ACEOF | |
20699 | cat confdefs.h >>conftest.$ac_ext | |
20700 | cat >>conftest.$ac_ext <<_ACEOF | |
20701 | /* end confdefs.h. */ | |
20702 | #include <string> | |
20703 | #include <functional> | |
20704 | #include <algorithm> | |
20705 | #include <vector> | |
20706 | #include <list> | |
20707 | int | |
20708 | main () | |
20709 | { | |
20710 | std::vector<int> moo; | |
20711 | std::list<int> foo; | |
20712 | std::vector<int>::iterator it = | |
20713 | std::find_if(moo.begin(), moo.end(), | |
20714 | std::bind2nd(std::less<int>(), 3)); | |
20715 | ; | |
20716 | return 0; | |
20717 | } | |
20718 | _ACEOF | |
20719 | rm -f conftest.$ac_objext | |
20720 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20721 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20722 | ac_status=$? |
ac1cb8d3 VS |
20723 | grep -v '^ *+' conftest.er1 >conftest.err |
20724 | rm -f conftest.er1 | |
20725 | cat conftest.err >&5 | |
a848cd7e SC |
20726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20727 | (exit $ac_status); } && | |
89be85c2 VS |
20728 | { ac_try='test -z "$ac_cxx_werror_flag" |
20729 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20731 | (eval $ac_try) 2>&5 | |
20732 | ac_status=$? | |
20733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20734 | (exit $ac_status); }; } && | |
20735 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20737 | (eval $ac_try) 2>&5 | |
20738 | ac_status=$? | |
20739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20740 | (exit $ac_status); }; }; then | |
20741 | echo "$as_me:$LINENO: result: yes" >&5 | |
20742 | echo "${ECHO_T}yes" >&6 | |
20743 | else | |
20744 | echo "$as_me: failed program was:" >&5 | |
20745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20746 | ||
20747 | echo "$as_me:$LINENO: result: no" >&5 | |
20748 | echo "${ECHO_T}no" >&6 | |
20749 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 | |
20750 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
20751 | { (exit 1); exit 1; }; } | |
20752 | fi | |
ac1cb8d3 | 20753 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20754 | |
20755 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 | |
20756 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
20757 | cat >conftest.$ac_ext <<_ACEOF | |
20758 | /* confdefs.h. */ | |
20759 | _ACEOF | |
20760 | cat confdefs.h >>conftest.$ac_ext | |
20761 | cat >>conftest.$ac_ext <<_ACEOF | |
20762 | /* end confdefs.h. */ | |
20763 | #include <string> | |
20764 | int | |
20765 | main () | |
20766 | { | |
20767 | std::wstring foo; | |
20768 | ; | |
20769 | return 0; | |
20770 | } | |
20771 | _ACEOF | |
20772 | rm -f conftest.$ac_objext | |
20773 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20774 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20775 | ac_status=$? |
ac1cb8d3 VS |
20776 | grep -v '^ *+' conftest.er1 >conftest.err |
20777 | rm -f conftest.er1 | |
20778 | cat conftest.err >&5 | |
a848cd7e SC |
20779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20780 | (exit $ac_status); } && | |
89be85c2 VS |
20781 | { ac_try='test -z "$ac_cxx_werror_flag" |
20782 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20784 | (eval $ac_try) 2>&5 | |
20785 | ac_status=$? | |
20786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20787 | (exit $ac_status); }; } && | |
20788 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20790 | (eval $ac_try) 2>&5 | |
20791 | ac_status=$? | |
20792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20793 | (exit $ac_status); }; }; then | |
20794 | echo "$as_me:$LINENO: result: yes" >&5 | |
20795 | echo "${ECHO_T}yes" >&6 | |
20796 | cat >>confdefs.h <<\_ACEOF | |
20797 | #define HAVE_STD_WSTRING 1 | |
20798 | _ACEOF | |
20799 | ||
20800 | else | |
20801 | echo "$as_me: failed program was:" >&5 | |
20802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20803 | ||
20804 | echo "$as_me:$LINENO: result: no" >&5 | |
20805 | echo "${ECHO_T}no" >&6 | |
20806 | fi | |
ac1cb8d3 | 20807 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20808 | |
20809 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
20810 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
20811 | cat >conftest.$ac_ext <<_ACEOF | |
20812 | /* confdefs.h. */ | |
20813 | _ACEOF | |
20814 | cat confdefs.h >>conftest.$ac_ext | |
20815 | cat >>conftest.$ac_ext <<_ACEOF | |
20816 | /* end confdefs.h. */ | |
20817 | #include <string> | |
20818 | int | |
20819 | main () | |
20820 | { | |
20821 | std::string foo, bar; | |
20822 | foo.compare(bar); | |
20823 | foo.compare(1, 1, bar); | |
20824 | foo.compare(1, 1, bar, 1, 1); | |
20825 | foo.compare(""); | |
20826 | foo.compare(1, 1, ""); | |
20827 | foo.compare(1, 1, "", 2); | |
20828 | ; | |
20829 | return 0; | |
20830 | } | |
20831 | _ACEOF | |
20832 | rm -f conftest.$ac_objext | |
20833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20834 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20835 | ac_status=$? |
ac1cb8d3 VS |
20836 | grep -v '^ *+' conftest.er1 >conftest.err |
20837 | rm -f conftest.er1 | |
20838 | cat conftest.err >&5 | |
a848cd7e SC |
20839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20840 | (exit $ac_status); } && | |
89be85c2 VS |
20841 | { ac_try='test -z "$ac_cxx_werror_flag" |
20842 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20844 | (eval $ac_try) 2>&5 | |
20845 | ac_status=$? | |
20846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20847 | (exit $ac_status); }; } && | |
20848 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20850 | (eval $ac_try) 2>&5 | |
20851 | ac_status=$? | |
20852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20853 | (exit $ac_status); }; }; then | |
20854 | echo "$as_me:$LINENO: result: yes" >&5 | |
20855 | echo "${ECHO_T}yes" >&6 | |
20856 | cat >>confdefs.h <<\_ACEOF | |
20857 | #define HAVE_STD_STRING_COMPARE 1 | |
20858 | _ACEOF | |
20859 | ||
20860 | else | |
20861 | echo "$as_me: failed program was:" >&5 | |
20862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20863 | ||
20864 | echo "$as_me:$LINENO: result: no" >&5 | |
20865 | echo "${ECHO_T}no" >&6 | |
20866 | fi | |
ac1cb8d3 | 20867 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
20868 | |
20869 | if test "${ac_cv_header_hash_map+set}" = set; then | |
20870 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
20871 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
20872 | if test "${ac_cv_header_hash_map+set}" = set; then | |
20873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20874 | fi | |
20875 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
20876 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
20877 | else | |
20878 | # Is the header compilable? | |
20879 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
20880 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
20881 | cat >conftest.$ac_ext <<_ACEOF | |
20882 | /* confdefs.h. */ | |
20883 | _ACEOF | |
20884 | cat confdefs.h >>conftest.$ac_ext | |
20885 | cat >>conftest.$ac_ext <<_ACEOF | |
20886 | /* end confdefs.h. */ | |
20887 | $ac_includes_default | |
20888 | #include <hash_map> | |
20889 | _ACEOF | |
20890 | rm -f conftest.$ac_objext | |
20891 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20892 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 20893 | ac_status=$? |
ac1cb8d3 VS |
20894 | grep -v '^ *+' conftest.er1 >conftest.err |
20895 | rm -f conftest.er1 | |
20896 | cat conftest.err >&5 | |
bdcade0a MB |
20897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20898 | (exit $ac_status); } && | |
89be85c2 VS |
20899 | { ac_try='test -z "$ac_cxx_werror_flag" |
20900 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20902 | (eval $ac_try) 2>&5 | |
20903 | ac_status=$? | |
20904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20905 | (exit $ac_status); }; } && | |
20906 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
20907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20908 | (eval $ac_try) 2>&5 | |
20909 | ac_status=$? | |
20910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20911 | (exit $ac_status); }; }; then | |
20912 | ac_header_compiler=yes | |
20913 | else | |
20914 | echo "$as_me: failed program was:" >&5 | |
20915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20916 | ||
20917 | ac_header_compiler=no | |
20918 | fi | |
ac1cb8d3 | 20919 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
20920 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20921 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20922 | ||
20923 | # Is the header present? | |
20924 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
20925 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
20926 | cat >conftest.$ac_ext <<_ACEOF | |
20927 | /* confdefs.h. */ | |
20928 | _ACEOF | |
20929 | cat confdefs.h >>conftest.$ac_ext | |
20930 | cat >>conftest.$ac_ext <<_ACEOF | |
20931 | /* end confdefs.h. */ | |
20932 | #include <hash_map> | |
20933 | _ACEOF | |
20934 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20935 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20936 | ac_status=$? | |
20937 | grep -v '^ *+' conftest.er1 >conftest.err | |
20938 | rm -f conftest.er1 | |
20939 | cat conftest.err >&5 | |
20940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20941 | (exit $ac_status); } >/dev/null; then | |
20942 | if test -s conftest.err; then | |
20943 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20944 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
20945 | else |
20946 | ac_cpp_err= | |
20947 | fi | |
20948 | else | |
20949 | ac_cpp_err=yes | |
20950 | fi | |
20951 | if test -z "$ac_cpp_err"; then | |
20952 | ac_header_preproc=yes | |
20953 | else | |
20954 | echo "$as_me: failed program was:" >&5 | |
20955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20956 | ||
20957 | ac_header_preproc=no | |
20958 | fi | |
20959 | rm -f conftest.err conftest.$ac_ext | |
20960 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20961 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20962 | ||
20963 | # So? What about this header? | |
ac1cb8d3 VS |
20964 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
20965 | yes:no: ) | |
bdcade0a MB |
20966 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
20967 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20968 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
20969 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
20970 | ac_header_preproc=yes | |
bdcade0a | 20971 | ;; |
ac1cb8d3 | 20972 | no:yes:* ) |
bdcade0a MB |
20973 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
20974 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20975 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
20976 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
20977 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
20978 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
20979 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
20980 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
20981 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
20982 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20983 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
20984 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
20985 | ( |
20986 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20987 | ## ----------------------------------------- ## |
20988 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20989 | ## ----------------------------------------- ## | |
bdcade0a MB |
20990 | _ASBOX |
20991 | ) | | |
20992 | sed "s/^/$as_me: WARNING: /" >&2 | |
20993 | ;; | |
20994 | esac | |
20995 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
20996 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
20997 | if test "${ac_cv_header_hash_map+set}" = set; then | |
20998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20999 | else | |
21000 | ac_cv_header_hash_map=$ac_header_preproc | |
21001 | fi | |
21002 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
21003 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
21004 | ||
21005 | fi | |
21006 | if test $ac_cv_header_hash_map = yes; then | |
21007 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
21008 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
21009 | cat >conftest.$ac_ext <<_ACEOF | |
21010 | /* confdefs.h. */ | |
21011 | _ACEOF | |
21012 | cat confdefs.h >>conftest.$ac_ext | |
21013 | cat >>conftest.$ac_ext <<_ACEOF | |
21014 | /* end confdefs.h. */ | |
21015 | #include <hash_map> | |
21016 | #include <hash_set> | |
21017 | int | |
21018 | main () | |
21019 | { | |
21020 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
21021 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
21022 | ; | |
21023 | return 0; | |
21024 | } | |
21025 | _ACEOF | |
21026 | rm -f conftest.$ac_objext | |
21027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21028 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 21029 | ac_status=$? |
ac1cb8d3 VS |
21030 | grep -v '^ *+' conftest.er1 >conftest.err |
21031 | rm -f conftest.er1 | |
21032 | cat conftest.err >&5 | |
bdcade0a MB |
21033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21034 | (exit $ac_status); } && | |
89be85c2 VS |
21035 | { ac_try='test -z "$ac_cxx_werror_flag" |
21036 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21038 | (eval $ac_try) 2>&5 | |
21039 | ac_status=$? | |
21040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21041 | (exit $ac_status); }; } && | |
21042 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
21043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21044 | (eval $ac_try) 2>&5 | |
21045 | ac_status=$? | |
21046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21047 | (exit $ac_status); }; }; then | |
21048 | echo "$as_me:$LINENO: result: yes" >&5 | |
21049 | echo "${ECHO_T}yes" >&6 | |
21050 | cat >>confdefs.h <<\_ACEOF | |
21051 | #define HAVE_HASH_MAP 1 | |
21052 | _ACEOF | |
21053 | ||
21054 | cat >>confdefs.h <<\_ACEOF | |
21055 | #define HAVE_STD_HASH_MAP 1 | |
21056 | _ACEOF | |
21057 | ||
21058 | else | |
21059 | echo "$as_me: failed program was:" >&5 | |
21060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21061 | ||
21062 | echo "$as_me:$LINENO: result: no" >&5 | |
21063 | echo "${ECHO_T}no" >&6 | |
21064 | fi | |
ac1cb8d3 | 21065 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
21066 | |
21067 | fi | |
21068 | ||
21069 | ||
21070 | ||
21071 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
21072 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
21073 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
21074 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
21075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21076 | fi | |
21077 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
21078 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
21079 | else | |
21080 | # Is the header compilable? | |
21081 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
21082 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
21083 | cat >conftest.$ac_ext <<_ACEOF | |
21084 | /* confdefs.h. */ | |
21085 | _ACEOF | |
21086 | cat confdefs.h >>conftest.$ac_ext | |
21087 | cat >>conftest.$ac_ext <<_ACEOF | |
21088 | /* end confdefs.h. */ | |
21089 | $ac_includes_default | |
21090 | #include <ext/hash_map> | |
21091 | _ACEOF | |
21092 | rm -f conftest.$ac_objext | |
21093 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21094 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 21095 | ac_status=$? |
ac1cb8d3 VS |
21096 | grep -v '^ *+' conftest.er1 >conftest.err |
21097 | rm -f conftest.er1 | |
21098 | cat conftest.err >&5 | |
bdcade0a MB |
21099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21100 | (exit $ac_status); } && | |
89be85c2 VS |
21101 | { ac_try='test -z "$ac_cxx_werror_flag" |
21102 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21104 | (eval $ac_try) 2>&5 | |
21105 | ac_status=$? | |
21106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21107 | (exit $ac_status); }; } && | |
21108 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
21109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21110 | (eval $ac_try) 2>&5 | |
21111 | ac_status=$? | |
21112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21113 | (exit $ac_status); }; }; then | |
21114 | ac_header_compiler=yes | |
21115 | else | |
21116 | echo "$as_me: failed program was:" >&5 | |
21117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21118 | ||
21119 | ac_header_compiler=no | |
21120 | fi | |
ac1cb8d3 | 21121 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
21122 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21123 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21124 | ||
21125 | # Is the header present? | |
21126 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
21127 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
21128 | cat >conftest.$ac_ext <<_ACEOF | |
21129 | /* confdefs.h. */ | |
21130 | _ACEOF | |
21131 | cat confdefs.h >>conftest.$ac_ext | |
21132 | cat >>conftest.$ac_ext <<_ACEOF | |
21133 | /* end confdefs.h. */ | |
21134 | #include <ext/hash_map> | |
21135 | _ACEOF | |
21136 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21137 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21138 | ac_status=$? | |
21139 | grep -v '^ *+' conftest.er1 >conftest.err | |
21140 | rm -f conftest.er1 | |
21141 | cat conftest.err >&5 | |
21142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21143 | (exit $ac_status); } >/dev/null; then | |
21144 | if test -s conftest.err; then | |
21145 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21146 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
21147 | else |
21148 | ac_cpp_err= | |
21149 | fi | |
21150 | else | |
21151 | ac_cpp_err=yes | |
21152 | fi | |
21153 | if test -z "$ac_cpp_err"; then | |
21154 | ac_header_preproc=yes | |
21155 | else | |
21156 | echo "$as_me: failed program was:" >&5 | |
21157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21158 | ||
21159 | ac_header_preproc=no | |
21160 | fi | |
21161 | rm -f conftest.err conftest.$ac_ext | |
21162 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21163 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21164 | ||
21165 | # So? What about this header? | |
ac1cb8d3 VS |
21166 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
21167 | yes:no: ) | |
bdcade0a MB |
21168 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
21169 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21170 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
21171 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
21172 | ac_header_preproc=yes | |
bdcade0a | 21173 | ;; |
ac1cb8d3 | 21174 | no:yes:* ) |
bdcade0a MB |
21175 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
21176 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21177 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
21178 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
21179 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
21180 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
21181 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
21182 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
21183 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
21184 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21185 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
21186 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
21187 | ( |
21188 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21189 | ## ----------------------------------------- ## |
21190 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21191 | ## ----------------------------------------- ## | |
bdcade0a MB |
21192 | _ASBOX |
21193 | ) | | |
21194 | sed "s/^/$as_me: WARNING: /" >&2 | |
21195 | ;; | |
21196 | esac | |
21197 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
21198 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
21199 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
21200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21201 | else | |
21202 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
21203 | fi | |
21204 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
21205 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
21206 | ||
21207 | fi | |
21208 | if test $ac_cv_header_ext_hash_map = yes; then | |
21209 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
21210 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
21211 | cat >conftest.$ac_ext <<_ACEOF | |
21212 | /* confdefs.h. */ | |
21213 | _ACEOF | |
21214 | cat confdefs.h >>conftest.$ac_ext | |
21215 | cat >>conftest.$ac_ext <<_ACEOF | |
21216 | /* end confdefs.h. */ | |
21217 | #include <ext/hash_map> | |
21218 | #include <ext/hash_set> | |
21219 | int | |
21220 | main () | |
21221 | { | |
21222 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
21223 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
21224 | ; | |
21225 | return 0; | |
21226 | } | |
21227 | _ACEOF | |
21228 | rm -f conftest.$ac_objext | |
21229 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21230 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 21231 | ac_status=$? |
ac1cb8d3 VS |
21232 | grep -v '^ *+' conftest.er1 >conftest.err |
21233 | rm -f conftest.er1 | |
21234 | cat conftest.err >&5 | |
bdcade0a MB |
21235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21236 | (exit $ac_status); } && | |
89be85c2 VS |
21237 | { ac_try='test -z "$ac_cxx_werror_flag" |
21238 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21240 | (eval $ac_try) 2>&5 | |
21241 | ac_status=$? | |
21242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21243 | (exit $ac_status); }; } && | |
21244 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
21245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21246 | (eval $ac_try) 2>&5 | |
21247 | ac_status=$? | |
21248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21249 | (exit $ac_status); }; }; then | |
21250 | echo "$as_me:$LINENO: result: yes" >&5 | |
21251 | echo "${ECHO_T}yes" >&6 | |
21252 | cat >>confdefs.h <<\_ACEOF | |
21253 | #define HAVE_EXT_HASH_MAP 1 | |
21254 | _ACEOF | |
21255 | ||
21256 | cat >>confdefs.h <<\_ACEOF | |
21257 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
21258 | _ACEOF | |
21259 | ||
21260 | else | |
21261 | echo "$as_me: failed program was:" >&5 | |
21262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21263 | ||
21264 | echo "$as_me:$LINENO: result: no" >&5 | |
21265 | echo "${ECHO_T}no" >&6 | |
21266 | fi | |
ac1cb8d3 | 21267 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
21268 | |
21269 | fi | |
21270 | ||
21271 | ||
a848cd7e SC |
21272 | |
21273 | ac_ext=c | |
21274 | ac_cpp='$CPP $CPPFLAGS' | |
21275 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21276 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21277 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21278 | ||
21279 | fi | |
21280 | ||
21281 | ||
21282 | SEARCH_INCLUDE="\ | |
21283 | /usr/local/include \ | |
21284 | \ | |
21285 | /usr/Motif-2.1/include \ | |
21286 | /usr/Motif-1.2/include \ | |
21287 | /usr/include/Motif1.2 \ | |
21288 | /opt/xpm/include/X11 \ | |
21289 | /opt/GBxpm/include/ \ | |
21290 | /opt/GBxpm/X11/include/ \ | |
21291 | \ | |
21292 | /usr/dt/include \ | |
21293 | /usr/openwin/include \ | |
21294 | \ | |
21295 | /usr/include/Xm \ | |
21296 | \ | |
21297 | /usr/X11R6/include \ | |
21298 | /usr/X11R6.4/include \ | |
21299 | /usr/X11R5/include \ | |
21300 | /usr/X11R4/include \ | |
21301 | \ | |
21302 | /usr/include/X11R6 \ | |
21303 | /usr/include/X11R5 \ | |
21304 | /usr/include/X11R4 \ | |
21305 | \ | |
21306 | /usr/local/X11R6/include \ | |
21307 | /usr/local/X11R5/include \ | |
21308 | /usr/local/X11R4/include \ | |
21309 | \ | |
21310 | /usr/local/include/X11R6 \ | |
21311 | /usr/local/include/X11R5 \ | |
21312 | /usr/local/include/X11R4 \ | |
21313 | \ | |
21314 | /usr/X11/include \ | |
21315 | /usr/include/X11 \ | |
21316 | /usr/local/X11/include \ | |
21317 | /usr/local/include/X11 \ | |
21318 | \ | |
21319 | /usr/X386/include \ | |
21320 | /usr/x386/include \ | |
21321 | /usr/XFree86/include/X11 \ | |
21322 | \ | |
21323 | X:/XFree86/include \ | |
21324 | X:/XFree86/include/X11 \ | |
21325 | \ | |
21326 | /usr/include/gtk \ | |
21327 | /usr/local/include/gtk \ | |
21328 | /usr/include/glib \ | |
21329 | /usr/local/include/glib \ | |
21330 | \ | |
21331 | /usr/include/qt \ | |
21332 | /usr/local/include/qt \ | |
21333 | \ | |
21334 | /usr/local/arm/3.3.2/include \ | |
21335 | \ | |
21336 | /usr/include/windows \ | |
21337 | /usr/include/wine \ | |
21338 | /usr/local/include/wine \ | |
21339 | \ | |
21340 | /usr/unsupported/include \ | |
21341 | /usr/athena/include \ | |
21342 | /usr/local/x11r5/include \ | |
21343 | /usr/lpp/Xamples/include \ | |
21344 | \ | |
21345 | /usr/openwin/share/include" | |
21346 | ||
21347 | SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64" | |
21348 | ||
21349 | ||
21350 | cat >confcache <<\_ACEOF | |
21351 | # This file is a shell script that caches the results of configure | |
21352 | # tests run on this system so they can be shared between configure | |
21353 | # scripts and configure runs, see configure's option --config-cache. | |
21354 | # It is not useful on other systems. If it contains results you don't | |
21355 | # want to keep, you may remove or edit it. | |
21356 | # | |
21357 | # config.status only pays attention to the cache file if you give it | |
21358 | # the --recheck option to rerun configure. | |
21359 | # | |
21360 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
21361 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
21362 | # following values. | |
21363 | ||
21364 | _ACEOF | |
21365 | ||
21366 | # The following way of writing the cache mishandles newlines in values, | |
21367 | # but we know of no workaround that is simple, portable, and efficient. | |
21368 | # So, don't put newlines in cache variables' values. | |
21369 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
21370 | # and sets the high bit in the cache file unless we assign to the vars. | |
21371 | { | |
21372 | (set) 2>&1 | | |
21373 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
21374 | *ac_space=\ *) | |
21375 | # `set' does not quote correctly, so add quotes (double-quote | |
21376 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
21377 | sed -n \ | |
ac1cb8d3 VS |
21378 | "s/'/'\\\\''/g; |
21379 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
21380 | ;; |
21381 | *) | |
21382 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
21383 | sed -n \ | |
ac1cb8d3 | 21384 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
21385 | ;; |
21386 | esac; | |
21387 | } | | |
21388 | sed ' | |
21389 | t clear | |
21390 | : clear | |
21391 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
21392 | t end | |
21393 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
21394 | : end' >>confcache | |
21395 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
21396 | if test -w $cache_file; then | |
21397 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
21398 | cat confcache >$cache_file | |
21399 | else | |
21400 | echo "not updating unwritable cache $cache_file" | |
21401 | fi | |
21402 | fi | |
21403 | rm -f confcache | |
21404 | ||
21405 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
21406 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
21407 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
21408 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
21409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21410 | else | |
21411 | ||
21412 | cat >conftest.$ac_ext <<_ACEOF | |
21413 | /* confdefs.h. */ | |
21414 | _ACEOF | |
21415 | cat confdefs.h >>conftest.$ac_ext | |
21416 | cat >>conftest.$ac_ext <<_ACEOF | |
21417 | /* end confdefs.h. */ | |
21418 | #include <features.h> | |
21419 | int | |
21420 | main () | |
21421 | { | |
21422 | ||
21423 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
21424 | #error not glibc2.1 | |
21425 | #endif | |
21426 | ||
21427 | ; | |
21428 | return 0; | |
21429 | } | |
21430 | _ACEOF | |
21431 | rm -f conftest.$ac_objext | |
21432 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21433 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21434 | ac_status=$? |
ac1cb8d3 VS |
21435 | grep -v '^ *+' conftest.er1 >conftest.err |
21436 | rm -f conftest.er1 | |
21437 | cat conftest.err >&5 | |
a848cd7e SC |
21438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21439 | (exit $ac_status); } && | |
89be85c2 VS |
21440 | { ac_try='test -z "$ac_c_werror_flag" |
21441 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21443 | (eval $ac_try) 2>&5 | |
21444 | ac_status=$? | |
21445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21446 | (exit $ac_status); }; } && | |
21447 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21449 | (eval $ac_try) 2>&5 | |
21450 | ac_status=$? | |
21451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21452 | (exit $ac_status); }; }; then | |
21453 | ||
21454 | wx_cv_lib_glibc21=yes | |
21455 | ||
21456 | else | |
21457 | echo "$as_me: failed program was:" >&5 | |
21458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21459 | ||
21460 | ||
21461 | wx_cv_lib_glibc21=no | |
21462 | ||
21463 | ||
21464 | fi | |
ac1cb8d3 | 21465 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21466 | |
21467 | fi | |
21468 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
21469 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
21470 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
21471 | cat >>confdefs.h <<\_ACEOF | |
21472 | #define wxHAVE_GLIBC2 1 | |
21473 | _ACEOF | |
21474 | ||
21475 | fi | |
21476 | fi | |
21477 | ||
21478 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
21479 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
21480 | cat >>confdefs.h <<\_ACEOF | |
21481 | #define _GNU_SOURCE 1 | |
21482 | _ACEOF | |
21483 | ||
21484 | fi | |
21485 | fi | |
21486 | ||
21487 | ||
21488 | ||
21489 | if test "$wxUSE_REGEX" != "no"; then | |
21490 | cat >>confdefs.h <<\_ACEOF | |
21491 | #define wxUSE_REGEX 1 | |
21492 | _ACEOF | |
21493 | ||
21494 | ||
21495 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
21496 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
21497 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
21498 | wxUSE_REGEX=builtin | |
21499 | fi | |
21500 | ||
21501 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
21502 | if test "${ac_cv_header_regex_h+set}" = set; then | |
21503 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
21504 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
21505 | if test "${ac_cv_header_regex_h+set}" = set; then | |
21506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21507 | fi | |
21508 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
21509 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
21510 | else | |
21511 | # Is the header compilable? | |
21512 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
21513 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
21514 | cat >conftest.$ac_ext <<_ACEOF | |
21515 | /* confdefs.h. */ | |
21516 | _ACEOF | |
21517 | cat confdefs.h >>conftest.$ac_ext | |
21518 | cat >>conftest.$ac_ext <<_ACEOF | |
21519 | /* end confdefs.h. */ | |
21520 | $ac_includes_default | |
21521 | #include <regex.h> | |
21522 | _ACEOF | |
21523 | rm -f conftest.$ac_objext | |
21524 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21525 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21526 | ac_status=$? |
ac1cb8d3 VS |
21527 | grep -v '^ *+' conftest.er1 >conftest.err |
21528 | rm -f conftest.er1 | |
21529 | cat conftest.err >&5 | |
a848cd7e SC |
21530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21531 | (exit $ac_status); } && | |
89be85c2 VS |
21532 | { ac_try='test -z "$ac_c_werror_flag" |
21533 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21535 | (eval $ac_try) 2>&5 | |
21536 | ac_status=$? | |
21537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21538 | (exit $ac_status); }; } && | |
21539 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21541 | (eval $ac_try) 2>&5 | |
21542 | ac_status=$? | |
21543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21544 | (exit $ac_status); }; }; then | |
21545 | ac_header_compiler=yes | |
21546 | else | |
21547 | echo "$as_me: failed program was:" >&5 | |
21548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21549 | ||
21550 | ac_header_compiler=no | |
21551 | fi | |
ac1cb8d3 | 21552 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21553 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21554 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21555 | ||
21556 | # Is the header present? | |
21557 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
21558 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
21559 | cat >conftest.$ac_ext <<_ACEOF | |
21560 | /* confdefs.h. */ | |
21561 | _ACEOF | |
21562 | cat confdefs.h >>conftest.$ac_ext | |
21563 | cat >>conftest.$ac_ext <<_ACEOF | |
21564 | /* end confdefs.h. */ | |
21565 | #include <regex.h> | |
21566 | _ACEOF | |
21567 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21568 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21569 | ac_status=$? | |
21570 | grep -v '^ *+' conftest.er1 >conftest.err | |
21571 | rm -f conftest.er1 | |
21572 | cat conftest.err >&5 | |
21573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21574 | (exit $ac_status); } >/dev/null; then | |
21575 | if test -s conftest.err; then | |
21576 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21577 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21578 | else |
21579 | ac_cpp_err= | |
21580 | fi | |
21581 | else | |
21582 | ac_cpp_err=yes | |
21583 | fi | |
21584 | if test -z "$ac_cpp_err"; then | |
21585 | ac_header_preproc=yes | |
21586 | else | |
21587 | echo "$as_me: failed program was:" >&5 | |
21588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21589 | ||
21590 | ac_header_preproc=no | |
21591 | fi | |
21592 | rm -f conftest.err conftest.$ac_ext | |
21593 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21594 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21595 | ||
21596 | # So? What about this header? | |
ac1cb8d3 VS |
21597 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21598 | yes:no: ) | |
a848cd7e SC |
21599 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21600 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21601 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
21602 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
21603 | ac_header_preproc=yes | |
a848cd7e | 21604 | ;; |
ac1cb8d3 | 21605 | no:yes:* ) |
a848cd7e SC |
21606 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
21607 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21608 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
21609 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
21610 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
21611 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
21612 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21613 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21614 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
21615 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21616 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
21617 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21618 | ( |
21619 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21620 | ## ----------------------------------------- ## |
21621 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21622 | ## ----------------------------------------- ## | |
a848cd7e SC |
21623 | _ASBOX |
21624 | ) | | |
21625 | sed "s/^/$as_me: WARNING: /" >&2 | |
21626 | ;; | |
21627 | esac | |
21628 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
21629 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
21630 | if test "${ac_cv_header_regex_h+set}" = set; then | |
21631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21632 | else | |
21633 | ac_cv_header_regex_h=$ac_header_preproc | |
21634 | fi | |
21635 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
21636 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
21637 | ||
21638 | fi | |
21639 | if test $ac_cv_header_regex_h = yes; then | |
21640 | ||
21641 | for ac_func in regcomp | |
21642 | do | |
21643 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
21644 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
21645 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
21646 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
21647 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21648 | else | |
21649 | cat >conftest.$ac_ext <<_ACEOF | |
21650 | /* confdefs.h. */ | |
21651 | _ACEOF | |
21652 | cat confdefs.h >>conftest.$ac_ext | |
21653 | cat >>conftest.$ac_ext <<_ACEOF | |
21654 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
21655 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
21656 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
21657 | #define $ac_func innocuous_$ac_func | |
21658 | ||
a848cd7e SC |
21659 | /* System header to define __stub macros and hopefully few prototypes, |
21660 | which can conflict with char $ac_func (); below. | |
21661 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21662 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 21663 | |
a848cd7e SC |
21664 | #ifdef __STDC__ |
21665 | # include <limits.h> | |
21666 | #else | |
21667 | # include <assert.h> | |
21668 | #endif | |
ac1cb8d3 VS |
21669 | |
21670 | #undef $ac_func | |
21671 | ||
a848cd7e SC |
21672 | /* Override any gcc2 internal prototype to avoid an error. */ |
21673 | #ifdef __cplusplus | |
21674 | extern "C" | |
21675 | { | |
21676 | #endif | |
21677 | /* We use char because int might match the return type of a gcc2 | |
21678 | builtin and then its argument prototype would still apply. */ | |
21679 | char $ac_func (); | |
21680 | /* The GNU C library defines this for functions which it implements | |
21681 | to always fail with ENOSYS. Some functions are actually named | |
21682 | something starting with __ and the normal name is an alias. */ | |
21683 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
21684 | choke me | |
21685 | #else | |
21686 | char (*f) () = $ac_func; | |
21687 | #endif | |
21688 | #ifdef __cplusplus | |
21689 | } | |
21690 | #endif | |
21691 | ||
21692 | int | |
21693 | main () | |
21694 | { | |
21695 | return f != $ac_func; | |
21696 | ; | |
21697 | return 0; | |
21698 | } | |
21699 | _ACEOF | |
21700 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21701 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21702 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21703 | ac_status=$? |
ac1cb8d3 VS |
21704 | grep -v '^ *+' conftest.er1 >conftest.err |
21705 | rm -f conftest.er1 | |
21706 | cat conftest.err >&5 | |
a848cd7e SC |
21707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21708 | (exit $ac_status); } && | |
89be85c2 VS |
21709 | { ac_try='test -z "$ac_c_werror_flag" |
21710 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21712 | (eval $ac_try) 2>&5 | |
21713 | ac_status=$? | |
21714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21715 | (exit $ac_status); }; } && | |
21716 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21718 | (eval $ac_try) 2>&5 | |
21719 | ac_status=$? | |
21720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21721 | (exit $ac_status); }; }; then | |
21722 | eval "$as_ac_var=yes" | |
21723 | else | |
21724 | echo "$as_me: failed program was:" >&5 | |
21725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21726 | ||
21727 | eval "$as_ac_var=no" | |
21728 | fi | |
ac1cb8d3 VS |
21729 | rm -f conftest.err conftest.$ac_objext \ |
21730 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21731 | fi |
21732 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
21733 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
21734 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
21735 | cat >>confdefs.h <<_ACEOF | |
21736 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
21737 | _ACEOF | |
21738 | ||
21739 | fi | |
21740 | done | |
21741 | ||
21742 | fi | |
21743 | ||
21744 | ||
21745 | ||
21746 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
21747 | if test "$wxUSE_REGEX" = "sys" ; then | |
21748 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
21749 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
21750 | { (exit 1); exit 1; }; } | |
21751 | else | |
21752 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
21753 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
21754 | wxUSE_REGEX=builtin | |
21755 | fi | |
21756 | else | |
21757 | wxUSE_REGEX=sys | |
21758 | cat >>confdefs.h <<\_ACEOF | |
21759 | #define WX_NO_REGEX_ADVANCED 1 | |
21760 | _ACEOF | |
21761 | ||
21762 | fi | |
21763 | fi | |
21764 | fi | |
21765 | ||
21766 | ||
21767 | ZLIB_LINK= | |
21768 | if test "$wxUSE_ZLIB" != "no" ; then | |
21769 | cat >>confdefs.h <<\_ACEOF | |
21770 | #define wxUSE_ZLIB 1 | |
21771 | _ACEOF | |
21772 | ||
21773 | ||
21774 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
21775 | if test "$USE_DARWIN" = 1; then | |
21776 | system_zlib_h_ok="yes" | |
21777 | else | |
21778 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
21779 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
21780 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
21781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21782 | else | |
21783 | if test "$cross_compiling" = yes; then | |
21784 | unset ac_cv_header_zlib_h | |
21785 | ||
21786 | else | |
21787 | cat >conftest.$ac_ext <<_ACEOF | |
21788 | /* confdefs.h. */ | |
21789 | _ACEOF | |
21790 | cat confdefs.h >>conftest.$ac_ext | |
21791 | cat >>conftest.$ac_ext <<_ACEOF | |
21792 | /* end confdefs.h. */ | |
21793 | ||
21794 | #include <zlib.h> | |
21795 | #include <stdio.h> | |
21796 | ||
21797 | int main() | |
21798 | { | |
21799 | FILE *f=fopen("conftestval", "w"); | |
21800 | if (!f) exit(1); | |
21801 | fprintf(f, "%s", | |
21802 | ZLIB_VERSION[0] == '1' && | |
21803 | (ZLIB_VERSION[2] > '1' || | |
21804 | (ZLIB_VERSION[2] == '1' && | |
21805 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
21806 | exit(0); | |
21807 | } | |
21808 | ||
21809 | _ACEOF | |
21810 | rm -f conftest$ac_exeext | |
21811 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21812 | (eval $ac_link) 2>&5 | |
21813 | ac_status=$? | |
21814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21815 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21817 | (eval $ac_try) 2>&5 | |
21818 | ac_status=$? | |
21819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21820 | (exit $ac_status); }; }; then | |
21821 | ac_cv_header_zlib_h=`cat conftestval` | |
21822 | else | |
21823 | echo "$as_me: program exited with status $ac_status" >&5 | |
21824 | echo "$as_me: failed program was:" >&5 | |
21825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21826 | ||
21827 | ( exit $ac_status ) | |
21828 | ac_cv_header_zlib_h=no | |
21829 | fi | |
ac1cb8d3 | 21830 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21831 | fi |
21832 | ||
21833 | fi | |
21834 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
21835 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
21836 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
21837 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
21838 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
21839 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
21840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21841 | fi | |
21842 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
21843 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
21844 | else | |
21845 | # Is the header compilable? | |
21846 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
21847 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
21848 | cat >conftest.$ac_ext <<_ACEOF | |
21849 | /* confdefs.h. */ | |
21850 | _ACEOF | |
21851 | cat confdefs.h >>conftest.$ac_ext | |
21852 | cat >>conftest.$ac_ext <<_ACEOF | |
21853 | /* end confdefs.h. */ | |
21854 | $ac_includes_default | |
21855 | #include <zlib.h> | |
21856 | _ACEOF | |
21857 | rm -f conftest.$ac_objext | |
21858 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21859 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21860 | ac_status=$? |
ac1cb8d3 VS |
21861 | grep -v '^ *+' conftest.er1 >conftest.err |
21862 | rm -f conftest.er1 | |
21863 | cat conftest.err >&5 | |
a848cd7e SC |
21864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21865 | (exit $ac_status); } && | |
89be85c2 VS |
21866 | { ac_try='test -z "$ac_c_werror_flag" |
21867 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21869 | (eval $ac_try) 2>&5 | |
21870 | ac_status=$? | |
21871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21872 | (exit $ac_status); }; } && | |
21873 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21875 | (eval $ac_try) 2>&5 | |
21876 | ac_status=$? | |
21877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21878 | (exit $ac_status); }; }; then | |
21879 | ac_header_compiler=yes | |
21880 | else | |
21881 | echo "$as_me: failed program was:" >&5 | |
21882 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21883 | ||
21884 | ac_header_compiler=no | |
21885 | fi | |
ac1cb8d3 | 21886 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21887 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21888 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21889 | ||
21890 | # Is the header present? | |
21891 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
21892 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
21893 | cat >conftest.$ac_ext <<_ACEOF | |
21894 | /* confdefs.h. */ | |
21895 | _ACEOF | |
21896 | cat confdefs.h >>conftest.$ac_ext | |
21897 | cat >>conftest.$ac_ext <<_ACEOF | |
21898 | /* end confdefs.h. */ | |
21899 | #include <zlib.h> | |
21900 | _ACEOF | |
21901 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21902 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21903 | ac_status=$? | |
21904 | grep -v '^ *+' conftest.er1 >conftest.err | |
21905 | rm -f conftest.er1 | |
21906 | cat conftest.err >&5 | |
21907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21908 | (exit $ac_status); } >/dev/null; then | |
21909 | if test -s conftest.err; then | |
21910 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21911 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21912 | else |
21913 | ac_cpp_err= | |
21914 | fi | |
21915 | else | |
21916 | ac_cpp_err=yes | |
21917 | fi | |
21918 | if test -z "$ac_cpp_err"; then | |
21919 | ac_header_preproc=yes | |
21920 | else | |
21921 | echo "$as_me: failed program was:" >&5 | |
21922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21923 | ||
21924 | ac_header_preproc=no | |
21925 | fi | |
21926 | rm -f conftest.err conftest.$ac_ext | |
21927 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21928 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21929 | ||
21930 | # So? What about this header? | |
ac1cb8d3 VS |
21931 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21932 | yes:no: ) | |
a848cd7e SC |
21933 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21934 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21935 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
21936 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
21937 | ac_header_preproc=yes | |
a848cd7e | 21938 | ;; |
ac1cb8d3 | 21939 | no:yes:* ) |
a848cd7e SC |
21940 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
21941 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21942 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
21943 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
21944 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
21945 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
21946 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21947 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21948 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
21949 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21950 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
21951 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21952 | ( |
21953 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21954 | ## ----------------------------------------- ## |
21955 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21956 | ## ----------------------------------------- ## | |
a848cd7e SC |
21957 | _ASBOX |
21958 | ) | | |
21959 | sed "s/^/$as_me: WARNING: /" >&2 | |
21960 | ;; | |
21961 | esac | |
21962 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
21963 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
21964 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
21965 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21966 | else | |
21967 | ac_cv_header_zlib_h=$ac_header_preproc | |
21968 | fi | |
21969 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
21970 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
21971 | ||
21972 | fi | |
21973 | ||
21974 | ||
21975 | ||
21976 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
21977 | fi | |
21978 | ||
21979 | if test "$system_zlib_h_ok" = "yes"; then | |
21980 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
21981 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
21982 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
21983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21984 | else | |
21985 | ac_check_lib_save_LIBS=$LIBS | |
21986 | LIBS="-lz $LIBS" | |
21987 | cat >conftest.$ac_ext <<_ACEOF | |
21988 | /* confdefs.h. */ | |
21989 | _ACEOF | |
21990 | cat confdefs.h >>conftest.$ac_ext | |
21991 | cat >>conftest.$ac_ext <<_ACEOF | |
21992 | /* end confdefs.h. */ | |
21993 | ||
21994 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21995 | #ifdef __cplusplus | |
21996 | extern "C" | |
21997 | #endif | |
21998 | /* We use char because int might match the return type of a gcc2 | |
21999 | builtin and then its argument prototype would still apply. */ | |
22000 | char deflate (); | |
22001 | int | |
22002 | main () | |
22003 | { | |
22004 | deflate (); | |
22005 | ; | |
22006 | return 0; | |
22007 | } | |
22008 | _ACEOF | |
22009 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22010 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22011 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22012 | ac_status=$? |
ac1cb8d3 VS |
22013 | grep -v '^ *+' conftest.er1 >conftest.err |
22014 | rm -f conftest.er1 | |
22015 | cat conftest.err >&5 | |
a848cd7e SC |
22016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22017 | (exit $ac_status); } && | |
89be85c2 VS |
22018 | { ac_try='test -z "$ac_c_werror_flag" |
22019 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22021 | (eval $ac_try) 2>&5 | |
22022 | ac_status=$? | |
22023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22024 | (exit $ac_status); }; } && | |
22025 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22027 | (eval $ac_try) 2>&5 | |
22028 | ac_status=$? | |
22029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22030 | (exit $ac_status); }; }; then | |
22031 | ac_cv_lib_z_deflate=yes | |
22032 | else | |
22033 | echo "$as_me: failed program was:" >&5 | |
22034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22035 | ||
22036 | ac_cv_lib_z_deflate=no | |
22037 | fi | |
ac1cb8d3 VS |
22038 | rm -f conftest.err conftest.$ac_objext \ |
22039 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22040 | LIBS=$ac_check_lib_save_LIBS |
22041 | fi | |
22042 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
22043 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
22044 | if test $ac_cv_lib_z_deflate = yes; then | |
22045 | ZLIB_LINK=" -lz" | |
22046 | fi | |
22047 | ||
22048 | fi | |
22049 | ||
22050 | if test "x$ZLIB_LINK" = "x" ; then | |
22051 | if test "$wxUSE_ZLIB" = "sys" ; then | |
22052 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
22053 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
22054 | { (exit 1); exit 1; }; } | |
22055 | else | |
22056 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
22057 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
22058 | wxUSE_ZLIB=builtin | |
22059 | fi | |
22060 | else | |
22061 | wxUSE_ZLIB=sys | |
22062 | fi | |
22063 | fi | |
22064 | fi | |
22065 | ||
22066 | ||
22067 | PNG_LINK= | |
22068 | if test "$wxUSE_LIBPNG" != "no" ; then | |
22069 | cat >>confdefs.h <<\_ACEOF | |
22070 | #define wxUSE_LIBPNG 1 | |
22071 | _ACEOF | |
22072 | ||
22073 | ||
22074 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
22075 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
22076 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
22077 | wxUSE_LIBPNG=sys | |
22078 | fi | |
22079 | ||
22080 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
22081 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
22082 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
22083 | wxUSE_LIBPNG=builtin | |
22084 | fi | |
22085 | ||
22086 | if test "$wxUSE_MGL" != 1 ; then | |
22087 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
22088 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
22089 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
22090 | if test "${ac_cv_header_png_h+set}" = set; then | |
22091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22092 | else | |
22093 | if test "$cross_compiling" = yes; then | |
22094 | unset ac_cv_header_png_h | |
22095 | ||
22096 | else | |
22097 | cat >conftest.$ac_ext <<_ACEOF | |
22098 | /* confdefs.h. */ | |
22099 | _ACEOF | |
22100 | cat confdefs.h >>conftest.$ac_ext | |
22101 | cat >>conftest.$ac_ext <<_ACEOF | |
22102 | /* end confdefs.h. */ | |
22103 | ||
22104 | #include <png.h> | |
22105 | #include <stdio.h> | |
22106 | ||
22107 | int main() | |
22108 | { | |
22109 | FILE *f=fopen("conftestval", "w"); | |
22110 | if (!f) exit(1); | |
22111 | fprintf(f, "%s", | |
22112 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
22113 | exit(0); | |
22114 | } | |
22115 | ||
22116 | _ACEOF | |
22117 | rm -f conftest$ac_exeext | |
22118 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22119 | (eval $ac_link) 2>&5 | |
22120 | ac_status=$? | |
22121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22122 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22124 | (eval $ac_try) 2>&5 | |
22125 | ac_status=$? | |
22126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22127 | (exit $ac_status); }; }; then | |
22128 | ac_cv_header_png_h=`cat conftestval` | |
22129 | else | |
22130 | echo "$as_me: program exited with status $ac_status" >&5 | |
22131 | echo "$as_me: failed program was:" >&5 | |
22132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22133 | ||
22134 | ( exit $ac_status ) | |
22135 | ac_cv_header_png_h=no | |
22136 | fi | |
ac1cb8d3 | 22137 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22138 | fi |
22139 | ||
22140 | fi | |
22141 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
22142 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
22143 | if test "${ac_cv_header_png_h+set}" = set; then | |
22144 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
22145 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
22146 | if test "${ac_cv_header_png_h+set}" = set; then | |
22147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22148 | fi | |
22149 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
22150 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
22151 | else | |
22152 | # Is the header compilable? | |
22153 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
22154 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
22155 | cat >conftest.$ac_ext <<_ACEOF | |
22156 | /* confdefs.h. */ | |
22157 | _ACEOF | |
22158 | cat confdefs.h >>conftest.$ac_ext | |
22159 | cat >>conftest.$ac_ext <<_ACEOF | |
22160 | /* end confdefs.h. */ | |
22161 | $ac_includes_default | |
22162 | #include <png.h> | |
22163 | _ACEOF | |
22164 | rm -f conftest.$ac_objext | |
22165 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22166 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22167 | ac_status=$? |
ac1cb8d3 VS |
22168 | grep -v '^ *+' conftest.er1 >conftest.err |
22169 | rm -f conftest.er1 | |
22170 | cat conftest.err >&5 | |
a848cd7e SC |
22171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22172 | (exit $ac_status); } && | |
89be85c2 VS |
22173 | { ac_try='test -z "$ac_c_werror_flag" |
22174 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22176 | (eval $ac_try) 2>&5 | |
22177 | ac_status=$? | |
22178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22179 | (exit $ac_status); }; } && | |
22180 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22182 | (eval $ac_try) 2>&5 | |
22183 | ac_status=$? | |
22184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22185 | (exit $ac_status); }; }; then | |
22186 | ac_header_compiler=yes | |
22187 | else | |
22188 | echo "$as_me: failed program was:" >&5 | |
22189 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22190 | ||
22191 | ac_header_compiler=no | |
22192 | fi | |
ac1cb8d3 | 22193 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22194 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22195 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22196 | ||
22197 | # Is the header present? | |
22198 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
22199 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
22200 | cat >conftest.$ac_ext <<_ACEOF | |
22201 | /* confdefs.h. */ | |
22202 | _ACEOF | |
22203 | cat confdefs.h >>conftest.$ac_ext | |
22204 | cat >>conftest.$ac_ext <<_ACEOF | |
22205 | /* end confdefs.h. */ | |
22206 | #include <png.h> | |
22207 | _ACEOF | |
22208 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22209 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22210 | ac_status=$? | |
22211 | grep -v '^ *+' conftest.er1 >conftest.err | |
22212 | rm -f conftest.er1 | |
22213 | cat conftest.err >&5 | |
22214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22215 | (exit $ac_status); } >/dev/null; then | |
22216 | if test -s conftest.err; then | |
22217 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22218 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22219 | else |
22220 | ac_cpp_err= | |
22221 | fi | |
22222 | else | |
22223 | ac_cpp_err=yes | |
22224 | fi | |
22225 | if test -z "$ac_cpp_err"; then | |
22226 | ac_header_preproc=yes | |
22227 | else | |
22228 | echo "$as_me: failed program was:" >&5 | |
22229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22230 | ||
22231 | ac_header_preproc=no | |
22232 | fi | |
22233 | rm -f conftest.err conftest.$ac_ext | |
22234 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22235 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22236 | ||
22237 | # So? What about this header? | |
ac1cb8d3 VS |
22238 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22239 | yes:no: ) | |
a848cd7e SC |
22240 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22241 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22242 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
22243 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
22244 | ac_header_preproc=yes | |
a848cd7e | 22245 | ;; |
ac1cb8d3 | 22246 | no:yes:* ) |
a848cd7e SC |
22247 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
22248 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22249 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
22250 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
22251 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
22252 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
22253 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22254 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22255 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
22256 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22257 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
22258 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22259 | ( |
22260 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22261 | ## ----------------------------------------- ## |
22262 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22263 | ## ----------------------------------------- ## | |
a848cd7e SC |
22264 | _ASBOX |
22265 | ) | | |
22266 | sed "s/^/$as_me: WARNING: /" >&2 | |
22267 | ;; | |
22268 | esac | |
22269 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
22270 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
22271 | if test "${ac_cv_header_png_h+set}" = set; then | |
22272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22273 | else | |
22274 | ac_cv_header_png_h=$ac_header_preproc | |
22275 | fi | |
22276 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
22277 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
22278 | ||
22279 | fi | |
22280 | ||
22281 | ||
22282 | ||
22283 | if test "$ac_cv_header_png_h" = "yes"; then | |
22284 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
22285 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
22286 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
22287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22288 | else | |
22289 | ac_check_lib_save_LIBS=$LIBS | |
22290 | LIBS="-lpng -lz -lm $LIBS" | |
22291 | cat >conftest.$ac_ext <<_ACEOF | |
22292 | /* confdefs.h. */ | |
22293 | _ACEOF | |
22294 | cat confdefs.h >>conftest.$ac_ext | |
22295 | cat >>conftest.$ac_ext <<_ACEOF | |
22296 | /* end confdefs.h. */ | |
22297 | ||
22298 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22299 | #ifdef __cplusplus | |
22300 | extern "C" | |
22301 | #endif | |
22302 | /* We use char because int might match the return type of a gcc2 | |
22303 | builtin and then its argument prototype would still apply. */ | |
22304 | char png_check_sig (); | |
22305 | int | |
22306 | main () | |
22307 | { | |
22308 | png_check_sig (); | |
22309 | ; | |
22310 | return 0; | |
22311 | } | |
22312 | _ACEOF | |
22313 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22314 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22315 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22316 | ac_status=$? |
ac1cb8d3 VS |
22317 | grep -v '^ *+' conftest.er1 >conftest.err |
22318 | rm -f conftest.er1 | |
22319 | cat conftest.err >&5 | |
a848cd7e SC |
22320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22321 | (exit $ac_status); } && | |
89be85c2 VS |
22322 | { ac_try='test -z "$ac_c_werror_flag" |
22323 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22325 | (eval $ac_try) 2>&5 | |
22326 | ac_status=$? | |
22327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22328 | (exit $ac_status); }; } && | |
22329 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22331 | (eval $ac_try) 2>&5 | |
22332 | ac_status=$? | |
22333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22334 | (exit $ac_status); }; }; then | |
22335 | ac_cv_lib_png_png_check_sig=yes | |
22336 | else | |
22337 | echo "$as_me: failed program was:" >&5 | |
22338 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22339 | ||
22340 | ac_cv_lib_png_png_check_sig=no | |
22341 | fi | |
ac1cb8d3 VS |
22342 | rm -f conftest.err conftest.$ac_objext \ |
22343 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22344 | LIBS=$ac_check_lib_save_LIBS |
22345 | fi | |
22346 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
22347 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
22348 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
22349 | PNG_LINK=" -lpng -lz" | |
22350 | fi | |
22351 | ||
22352 | fi | |
22353 | ||
22354 | if test "x$PNG_LINK" = "x" ; then | |
22355 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
22356 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
22357 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
22358 | { (exit 1); exit 1; }; } | |
22359 | else | |
22360 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
22361 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
22362 | wxUSE_LIBPNG=builtin | |
22363 | fi | |
22364 | else | |
22365 | wxUSE_LIBPNG=sys | |
22366 | fi | |
22367 | fi | |
22368 | fi | |
22369 | ||
22370 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
22371 | fi | |
22372 | ||
22373 | ||
22374 | JPEG_LINK= | |
22375 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
22376 | cat >>confdefs.h <<\_ACEOF | |
22377 | #define wxUSE_LIBJPEG 1 | |
22378 | _ACEOF | |
22379 | ||
22380 | ||
22381 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
22382 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
22383 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
22384 | wxUSE_LIBJPEG=sys | |
22385 | fi | |
22386 | ||
22387 | if test "$wxUSE_MGL" != 1 ; then | |
22388 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
22389 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
22390 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
22391 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
22392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22393 | else | |
22394 | cat >conftest.$ac_ext <<_ACEOF | |
22395 | /* confdefs.h. */ | |
22396 | _ACEOF | |
22397 | cat confdefs.h >>conftest.$ac_ext | |
22398 | cat >>conftest.$ac_ext <<_ACEOF | |
22399 | /* end confdefs.h. */ | |
22400 | ||
22401 | #undef HAVE_STDLIB_H | |
22402 | #include <stdio.h> | |
22403 | #include <jpeglib.h> | |
22404 | ||
22405 | int | |
22406 | main () | |
22407 | { | |
22408 | ||
22409 | ||
22410 | ; | |
22411 | return 0; | |
22412 | } | |
22413 | _ACEOF | |
22414 | rm -f conftest.$ac_objext | |
22415 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22416 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22417 | ac_status=$? |
ac1cb8d3 VS |
22418 | grep -v '^ *+' conftest.er1 >conftest.err |
22419 | rm -f conftest.er1 | |
22420 | cat conftest.err >&5 | |
a848cd7e SC |
22421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22422 | (exit $ac_status); } && | |
89be85c2 VS |
22423 | { ac_try='test -z "$ac_c_werror_flag" |
22424 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22426 | (eval $ac_try) 2>&5 | |
22427 | ac_status=$? | |
22428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22429 | (exit $ac_status); }; } && | |
22430 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22432 | (eval $ac_try) 2>&5 | |
22433 | ac_status=$? | |
22434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22435 | (exit $ac_status); }; }; then | |
22436 | ac_cv_header_jpeglib_h=yes | |
22437 | else | |
22438 | echo "$as_me: failed program was:" >&5 | |
22439 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22440 | ||
22441 | ac_cv_header_jpeglib_h=no | |
22442 | ||
22443 | fi | |
ac1cb8d3 | 22444 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22445 | |
22446 | fi | |
22447 | ||
22448 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
22449 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
22450 | ||
22451 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
22452 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
22453 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
22454 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
22455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22456 | else | |
22457 | ac_check_lib_save_LIBS=$LIBS | |
22458 | LIBS="-ljpeg $LIBS" | |
22459 | cat >conftest.$ac_ext <<_ACEOF | |
22460 | /* confdefs.h. */ | |
22461 | _ACEOF | |
22462 | cat confdefs.h >>conftest.$ac_ext | |
22463 | cat >>conftest.$ac_ext <<_ACEOF | |
22464 | /* end confdefs.h. */ | |
22465 | ||
22466 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22467 | #ifdef __cplusplus | |
22468 | extern "C" | |
22469 | #endif | |
22470 | /* We use char because int might match the return type of a gcc2 | |
22471 | builtin and then its argument prototype would still apply. */ | |
22472 | char jpeg_read_header (); | |
22473 | int | |
22474 | main () | |
22475 | { | |
22476 | jpeg_read_header (); | |
22477 | ; | |
22478 | return 0; | |
22479 | } | |
22480 | _ACEOF | |
22481 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22482 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22483 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22484 | ac_status=$? |
ac1cb8d3 VS |
22485 | grep -v '^ *+' conftest.er1 >conftest.err |
22486 | rm -f conftest.er1 | |
22487 | cat conftest.err >&5 | |
a848cd7e SC |
22488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22489 | (exit $ac_status); } && | |
89be85c2 VS |
22490 | { ac_try='test -z "$ac_c_werror_flag" |
22491 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22493 | (eval $ac_try) 2>&5 | |
22494 | ac_status=$? | |
22495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22496 | (exit $ac_status); }; } && | |
22497 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22499 | (eval $ac_try) 2>&5 | |
22500 | ac_status=$? | |
22501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22502 | (exit $ac_status); }; }; then | |
22503 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
22504 | else | |
22505 | echo "$as_me: failed program was:" >&5 | |
22506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22507 | ||
22508 | ac_cv_lib_jpeg_jpeg_read_header=no | |
22509 | fi | |
ac1cb8d3 VS |
22510 | rm -f conftest.err conftest.$ac_objext \ |
22511 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22512 | LIBS=$ac_check_lib_save_LIBS |
22513 | fi | |
22514 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
22515 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
22516 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
22517 | JPEG_LINK=" -ljpeg" | |
22518 | fi | |
22519 | ||
22520 | fi | |
22521 | ||
22522 | if test "x$JPEG_LINK" = "x" ; then | |
22523 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
22524 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
22525 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
22526 | { (exit 1); exit 1; }; } | |
22527 | else | |
22528 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
22529 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
22530 | wxUSE_LIBJPEG=builtin | |
22531 | fi | |
22532 | else | |
22533 | wxUSE_LIBJPEG=sys | |
22534 | fi | |
22535 | fi | |
22536 | fi | |
22537 | fi | |
22538 | ||
22539 | ||
22540 | TIFF_LINK= | |
22541 | TIFF_PREREQ_LINKS=-lm | |
22542 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
22543 | cat >>confdefs.h <<\_ACEOF | |
22544 | #define wxUSE_LIBTIFF 1 | |
22545 | _ACEOF | |
22546 | ||
22547 | ||
22548 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
22549 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
22550 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
22551 | fi | |
22552 | if test "$wxUSE_ZLIB" = "sys"; then | |
22553 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
22554 | fi | |
22555 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
22556 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
22557 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
22558 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
22559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22560 | fi | |
22561 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
22562 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
22563 | else | |
22564 | # Is the header compilable? | |
22565 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
22566 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
22567 | cat >conftest.$ac_ext <<_ACEOF | |
22568 | /* confdefs.h. */ | |
22569 | _ACEOF | |
22570 | cat confdefs.h >>conftest.$ac_ext | |
22571 | cat >>conftest.$ac_ext <<_ACEOF | |
22572 | /* end confdefs.h. */ | |
22573 | $ac_includes_default | |
22574 | #include <tiffio.h> | |
22575 | _ACEOF | |
22576 | rm -f conftest.$ac_objext | |
22577 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22578 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22579 | ac_status=$? |
ac1cb8d3 VS |
22580 | grep -v '^ *+' conftest.er1 >conftest.err |
22581 | rm -f conftest.er1 | |
22582 | cat conftest.err >&5 | |
a848cd7e SC |
22583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22584 | (exit $ac_status); } && | |
89be85c2 VS |
22585 | { ac_try='test -z "$ac_c_werror_flag" |
22586 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22588 | (eval $ac_try) 2>&5 | |
22589 | ac_status=$? | |
22590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22591 | (exit $ac_status); }; } && | |
22592 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22594 | (eval $ac_try) 2>&5 | |
22595 | ac_status=$? | |
22596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22597 | (exit $ac_status); }; }; then | |
22598 | ac_header_compiler=yes | |
22599 | else | |
22600 | echo "$as_me: failed program was:" >&5 | |
22601 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22602 | ||
22603 | ac_header_compiler=no | |
22604 | fi | |
ac1cb8d3 | 22605 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22606 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22607 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22608 | ||
22609 | # Is the header present? | |
22610 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
22611 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
22612 | cat >conftest.$ac_ext <<_ACEOF | |
22613 | /* confdefs.h. */ | |
22614 | _ACEOF | |
22615 | cat confdefs.h >>conftest.$ac_ext | |
22616 | cat >>conftest.$ac_ext <<_ACEOF | |
22617 | /* end confdefs.h. */ | |
22618 | #include <tiffio.h> | |
22619 | _ACEOF | |
22620 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22621 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22622 | ac_status=$? | |
22623 | grep -v '^ *+' conftest.er1 >conftest.err | |
22624 | rm -f conftest.er1 | |
22625 | cat conftest.err >&5 | |
22626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22627 | (exit $ac_status); } >/dev/null; then | |
22628 | if test -s conftest.err; then | |
22629 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22630 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22631 | else |
22632 | ac_cpp_err= | |
22633 | fi | |
22634 | else | |
22635 | ac_cpp_err=yes | |
22636 | fi | |
22637 | if test -z "$ac_cpp_err"; then | |
22638 | ac_header_preproc=yes | |
22639 | else | |
22640 | echo "$as_me: failed program was:" >&5 | |
22641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22642 | ||
22643 | ac_header_preproc=no | |
22644 | fi | |
22645 | rm -f conftest.err conftest.$ac_ext | |
22646 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22647 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22648 | ||
22649 | # So? What about this header? | |
ac1cb8d3 VS |
22650 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22651 | yes:no: ) | |
a848cd7e SC |
22652 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22653 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22654 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
22655 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
22656 | ac_header_preproc=yes | |
a848cd7e | 22657 | ;; |
ac1cb8d3 | 22658 | no:yes:* ) |
a848cd7e SC |
22659 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
22660 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22661 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
22662 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
22663 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
22664 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
22665 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22666 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22667 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
22668 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22669 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
22670 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22671 | ( |
22672 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22673 | ## ----------------------------------------- ## |
22674 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22675 | ## ----------------------------------------- ## | |
a848cd7e SC |
22676 | _ASBOX |
22677 | ) | | |
22678 | sed "s/^/$as_me: WARNING: /" >&2 | |
22679 | ;; | |
22680 | esac | |
22681 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
22682 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
22683 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
22684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22685 | else | |
22686 | ac_cv_header_tiffio_h=$ac_header_preproc | |
22687 | fi | |
22688 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
22689 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
22690 | ||
22691 | fi | |
22692 | if test $ac_cv_header_tiffio_h = yes; then | |
22693 | ||
22694 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
22695 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
22696 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
22697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22698 | else | |
22699 | ac_check_lib_save_LIBS=$LIBS | |
22700 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
22701 | cat >conftest.$ac_ext <<_ACEOF | |
22702 | /* confdefs.h. */ | |
22703 | _ACEOF | |
22704 | cat confdefs.h >>conftest.$ac_ext | |
22705 | cat >>conftest.$ac_ext <<_ACEOF | |
22706 | /* end confdefs.h. */ | |
22707 | ||
22708 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22709 | #ifdef __cplusplus | |
22710 | extern "C" | |
22711 | #endif | |
22712 | /* We use char because int might match the return type of a gcc2 | |
22713 | builtin and then its argument prototype would still apply. */ | |
22714 | char TIFFError (); | |
22715 | int | |
22716 | main () | |
22717 | { | |
22718 | TIFFError (); | |
22719 | ; | |
22720 | return 0; | |
22721 | } | |
22722 | _ACEOF | |
22723 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22724 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22725 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22726 | ac_status=$? |
ac1cb8d3 VS |
22727 | grep -v '^ *+' conftest.er1 >conftest.err |
22728 | rm -f conftest.er1 | |
22729 | cat conftest.err >&5 | |
a848cd7e SC |
22730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22731 | (exit $ac_status); } && | |
89be85c2 VS |
22732 | { ac_try='test -z "$ac_c_werror_flag" |
22733 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22735 | (eval $ac_try) 2>&5 | |
22736 | ac_status=$? | |
22737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22738 | (exit $ac_status); }; } && | |
22739 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22741 | (eval $ac_try) 2>&5 | |
22742 | ac_status=$? | |
22743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22744 | (exit $ac_status); }; }; then | |
22745 | ac_cv_lib_tiff_TIFFError=yes | |
22746 | else | |
22747 | echo "$as_me: failed program was:" >&5 | |
22748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22749 | ||
22750 | ac_cv_lib_tiff_TIFFError=no | |
22751 | fi | |
ac1cb8d3 VS |
22752 | rm -f conftest.err conftest.$ac_objext \ |
22753 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22754 | LIBS=$ac_check_lib_save_LIBS |
22755 | fi | |
22756 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
22757 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
22758 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
22759 | TIFF_LINK=" -ltiff" | |
22760 | fi | |
22761 | ||
22762 | ||
22763 | ||
22764 | fi | |
22765 | ||
22766 | ||
22767 | ||
22768 | if test "x$TIFF_LINK" = "x" ; then | |
22769 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
22770 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
22771 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
22772 | { (exit 1); exit 1; }; } | |
22773 | else | |
22774 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
22775 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
22776 | wxUSE_LIBTIFF=builtin | |
22777 | fi | |
22778 | else | |
22779 | wxUSE_LIBTIFF=sys | |
22780 | fi | |
22781 | fi | |
22782 | fi | |
22783 | ||
22784 | ||
22785 | if test "$wxUSE_EXPAT" != "no"; then | |
22786 | wxUSE_XML=yes | |
22787 | cat >>confdefs.h <<\_ACEOF | |
22788 | #define wxUSE_EXPAT 1 | |
22789 | _ACEOF | |
22790 | ||
22791 | cat >>confdefs.h <<\_ACEOF | |
22792 | #define wxUSE_XML 1 | |
22793 | _ACEOF | |
22794 | ||
22795 | ||
22796 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
22797 | if test "${ac_cv_header_expat_h+set}" = set; then | |
22798 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
22799 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
22800 | if test "${ac_cv_header_expat_h+set}" = set; then | |
22801 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22802 | fi | |
22803 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
22804 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
22805 | else | |
22806 | # Is the header compilable? | |
22807 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
22808 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
22809 | cat >conftest.$ac_ext <<_ACEOF | |
22810 | /* confdefs.h. */ | |
22811 | _ACEOF | |
22812 | cat confdefs.h >>conftest.$ac_ext | |
22813 | cat >>conftest.$ac_ext <<_ACEOF | |
22814 | /* end confdefs.h. */ | |
22815 | $ac_includes_default | |
22816 | #include <expat.h> | |
22817 | _ACEOF | |
22818 | rm -f conftest.$ac_objext | |
22819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22820 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22821 | ac_status=$? |
ac1cb8d3 VS |
22822 | grep -v '^ *+' conftest.er1 >conftest.err |
22823 | rm -f conftest.er1 | |
22824 | cat conftest.err >&5 | |
a848cd7e SC |
22825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22826 | (exit $ac_status); } && | |
89be85c2 VS |
22827 | { ac_try='test -z "$ac_c_werror_flag" |
22828 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22830 | (eval $ac_try) 2>&5 | |
22831 | ac_status=$? | |
22832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22833 | (exit $ac_status); }; } && | |
22834 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22836 | (eval $ac_try) 2>&5 | |
22837 | ac_status=$? | |
22838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22839 | (exit $ac_status); }; }; then | |
22840 | ac_header_compiler=yes | |
22841 | else | |
22842 | echo "$as_me: failed program was:" >&5 | |
22843 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22844 | ||
22845 | ac_header_compiler=no | |
22846 | fi | |
ac1cb8d3 | 22847 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22848 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22849 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22850 | ||
22851 | # Is the header present? | |
22852 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
22853 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
22854 | cat >conftest.$ac_ext <<_ACEOF | |
22855 | /* confdefs.h. */ | |
22856 | _ACEOF | |
22857 | cat confdefs.h >>conftest.$ac_ext | |
22858 | cat >>conftest.$ac_ext <<_ACEOF | |
22859 | /* end confdefs.h. */ | |
22860 | #include <expat.h> | |
22861 | _ACEOF | |
22862 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22863 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22864 | ac_status=$? | |
22865 | grep -v '^ *+' conftest.er1 >conftest.err | |
22866 | rm -f conftest.er1 | |
22867 | cat conftest.err >&5 | |
22868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22869 | (exit $ac_status); } >/dev/null; then | |
22870 | if test -s conftest.err; then | |
22871 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22872 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22873 | else |
22874 | ac_cpp_err= | |
22875 | fi | |
22876 | else | |
22877 | ac_cpp_err=yes | |
22878 | fi | |
22879 | if test -z "$ac_cpp_err"; then | |
22880 | ac_header_preproc=yes | |
22881 | else | |
22882 | echo "$as_me: failed program was:" >&5 | |
22883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22884 | ||
22885 | ac_header_preproc=no | |
22886 | fi | |
22887 | rm -f conftest.err conftest.$ac_ext | |
22888 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22889 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22890 | ||
22891 | # So? What about this header? | |
ac1cb8d3 VS |
22892 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22893 | yes:no: ) | |
a848cd7e SC |
22894 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22895 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22896 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
22897 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
22898 | ac_header_preproc=yes | |
a848cd7e | 22899 | ;; |
ac1cb8d3 | 22900 | no:yes:* ) |
a848cd7e SC |
22901 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
22902 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22903 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
22904 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
22905 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
22906 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
22907 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22908 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22909 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
22910 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22911 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
22912 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22913 | ( |
22914 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22915 | ## ----------------------------------------- ## |
22916 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22917 | ## ----------------------------------------- ## | |
a848cd7e SC |
22918 | _ASBOX |
22919 | ) | | |
22920 | sed "s/^/$as_me: WARNING: /" >&2 | |
22921 | ;; | |
22922 | esac | |
22923 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
22924 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
22925 | if test "${ac_cv_header_expat_h+set}" = set; then | |
22926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22927 | else | |
22928 | ac_cv_header_expat_h=$ac_header_preproc | |
22929 | fi | |
22930 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
22931 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
22932 | ||
22933 | fi | |
22934 | if test $ac_cv_header_expat_h = yes; then | |
22935 | found_expat_h=1 | |
22936 | fi | |
22937 | ||
22938 | ||
22939 | if test "x$found_expat_h" = "x1"; then | |
22940 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
22941 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
22942 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
22943 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22944 | else | |
22945 | ||
22946 | ||
22947 | ||
22948 | ac_ext=cc | |
22949 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22950 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22951 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22952 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22953 | ||
22954 | cat >conftest.$ac_ext <<_ACEOF | |
22955 | /* confdefs.h. */ | |
22956 | _ACEOF | |
22957 | cat confdefs.h >>conftest.$ac_ext | |
22958 | cat >>conftest.$ac_ext <<_ACEOF | |
22959 | /* end confdefs.h. */ | |
22960 | #include <expat.h> | |
22961 | int | |
22962 | main () | |
22963 | { | |
22964 | ||
22965 | ; | |
22966 | return 0; | |
22967 | } | |
22968 | _ACEOF | |
22969 | rm -f conftest.$ac_objext | |
22970 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22971 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22972 | ac_status=$? |
ac1cb8d3 VS |
22973 | grep -v '^ *+' conftest.er1 >conftest.err |
22974 | rm -f conftest.er1 | |
22975 | cat conftest.err >&5 | |
a848cd7e SC |
22976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22977 | (exit $ac_status); } && | |
89be85c2 VS |
22978 | { ac_try='test -z "$ac_cxx_werror_flag" |
22979 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22981 | (eval $ac_try) 2>&5 | |
22982 | ac_status=$? | |
22983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22984 | (exit $ac_status); }; } && | |
22985 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22987 | (eval $ac_try) 2>&5 | |
22988 | ac_status=$? | |
22989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22990 | (exit $ac_status); }; }; then | |
22991 | wx_cv_expat_is_not_broken=yes | |
22992 | else | |
22993 | echo "$as_me: failed program was:" >&5 | |
22994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22995 | ||
22996 | wx_cv_expat_is_not_broken=no | |
22997 | ||
22998 | fi | |
ac1cb8d3 | 22999 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23000 | ac_ext=c |
23001 | ac_cpp='$CPP $CPPFLAGS' | |
23002 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23003 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23004 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
23005 | ||
23006 | ||
23007 | ||
23008 | fi | |
23009 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
23010 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
23011 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
23012 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
23013 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
23014 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
23015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23016 | else | |
23017 | ac_check_lib_save_LIBS=$LIBS | |
23018 | LIBS="-lexpat $LIBS" | |
23019 | cat >conftest.$ac_ext <<_ACEOF | |
23020 | /* confdefs.h. */ | |
23021 | _ACEOF | |
23022 | cat confdefs.h >>conftest.$ac_ext | |
23023 | cat >>conftest.$ac_ext <<_ACEOF | |
23024 | /* end confdefs.h. */ | |
23025 | ||
23026 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23027 | #ifdef __cplusplus | |
23028 | extern "C" | |
23029 | #endif | |
23030 | /* We use char because int might match the return type of a gcc2 | |
23031 | builtin and then its argument prototype would still apply. */ | |
23032 | char XML_ParserCreate (); | |
23033 | int | |
23034 | main () | |
23035 | { | |
23036 | XML_ParserCreate (); | |
23037 | ; | |
23038 | return 0; | |
23039 | } | |
23040 | _ACEOF | |
23041 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23042 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23043 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23044 | ac_status=$? |
ac1cb8d3 VS |
23045 | grep -v '^ *+' conftest.er1 >conftest.err |
23046 | rm -f conftest.er1 | |
23047 | cat conftest.err >&5 | |
a848cd7e SC |
23048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23049 | (exit $ac_status); } && | |
89be85c2 VS |
23050 | { ac_try='test -z "$ac_c_werror_flag" |
23051 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23053 | (eval $ac_try) 2>&5 | |
23054 | ac_status=$? | |
23055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23056 | (exit $ac_status); }; } && | |
23057 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23059 | (eval $ac_try) 2>&5 | |
23060 | ac_status=$? | |
23061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23062 | (exit $ac_status); }; }; then | |
23063 | ac_cv_lib_expat_XML_ParserCreate=yes | |
23064 | else | |
23065 | echo "$as_me: failed program was:" >&5 | |
23066 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23067 | ||
23068 | ac_cv_lib_expat_XML_ParserCreate=no | |
23069 | fi | |
ac1cb8d3 VS |
23070 | rm -f conftest.err conftest.$ac_objext \ |
23071 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23072 | LIBS=$ac_check_lib_save_LIBS |
23073 | fi | |
23074 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
23075 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
23076 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
23077 | EXPAT_LINK=" -lexpat" | |
23078 | fi | |
23079 | ||
23080 | fi | |
23081 | fi | |
23082 | if test "x$EXPAT_LINK" = "x" ; then | |
23083 | if test "$wxUSE_EXPAT" = "sys" ; then | |
23084 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
23085 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
23086 | { (exit 1); exit 1; }; } | |
23087 | else | |
23088 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
23089 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
23090 | wxUSE_EXPAT=builtin | |
23091 | fi | |
23092 | else | |
23093 | wxUSE_EXPAT=sys | |
23094 | fi | |
23095 | fi | |
23096 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
23097 | ||
23098 | ||
23099 | subdirs="$subdirs src/expat" | |
23100 | ||
23101 | fi | |
23102 | fi | |
23103 | ||
23104 | ||
23105 | ||
23106 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
a848cd7e SC |
23107 | if test "${ac_cv_header_mspack_h+set}" = set; then |
23108 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
23109 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
23110 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
23111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23112 | fi | |
23113 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
23114 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
23115 | else | |
23116 | # Is the header compilable? | |
23117 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
23118 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
23119 | cat >conftest.$ac_ext <<_ACEOF | |
23120 | /* confdefs.h. */ | |
23121 | _ACEOF | |
23122 | cat confdefs.h >>conftest.$ac_ext | |
23123 | cat >>conftest.$ac_ext <<_ACEOF | |
23124 | /* end confdefs.h. */ | |
23125 | $ac_includes_default | |
23126 | #include <mspack.h> | |
23127 | _ACEOF | |
23128 | rm -f conftest.$ac_objext | |
23129 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23130 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23131 | ac_status=$? |
ac1cb8d3 VS |
23132 | grep -v '^ *+' conftest.er1 >conftest.err |
23133 | rm -f conftest.er1 | |
23134 | cat conftest.err >&5 | |
a848cd7e SC |
23135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23136 | (exit $ac_status); } && | |
89be85c2 VS |
23137 | { ac_try='test -z "$ac_c_werror_flag" |
23138 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23140 | (eval $ac_try) 2>&5 | |
23141 | ac_status=$? | |
23142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23143 | (exit $ac_status); }; } && | |
23144 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23146 | (eval $ac_try) 2>&5 | |
23147 | ac_status=$? | |
23148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23149 | (exit $ac_status); }; }; then | |
23150 | ac_header_compiler=yes | |
23151 | else | |
23152 | echo "$as_me: failed program was:" >&5 | |
23153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23154 | ||
23155 | ac_header_compiler=no | |
23156 | fi | |
ac1cb8d3 | 23157 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23158 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23159 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23160 | ||
23161 | # Is the header present? | |
23162 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
23163 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
23164 | cat >conftest.$ac_ext <<_ACEOF | |
23165 | /* confdefs.h. */ | |
23166 | _ACEOF | |
23167 | cat confdefs.h >>conftest.$ac_ext | |
23168 | cat >>conftest.$ac_ext <<_ACEOF | |
23169 | /* end confdefs.h. */ | |
23170 | #include <mspack.h> | |
23171 | _ACEOF | |
23172 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23173 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23174 | ac_status=$? | |
23175 | grep -v '^ *+' conftest.er1 >conftest.err | |
23176 | rm -f conftest.er1 | |
23177 | cat conftest.err >&5 | |
23178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23179 | (exit $ac_status); } >/dev/null; then | |
23180 | if test -s conftest.err; then | |
23181 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23182 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23183 | else |
23184 | ac_cpp_err= | |
23185 | fi | |
23186 | else | |
23187 | ac_cpp_err=yes | |
23188 | fi | |
23189 | if test -z "$ac_cpp_err"; then | |
23190 | ac_header_preproc=yes | |
23191 | else | |
23192 | echo "$as_me: failed program was:" >&5 | |
23193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23194 | ||
23195 | ac_header_preproc=no | |
23196 | fi | |
23197 | rm -f conftest.err conftest.$ac_ext | |
23198 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23199 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23200 | ||
23201 | # So? What about this header? | |
ac1cb8d3 VS |
23202 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23203 | yes:no: ) | |
a848cd7e SC |
23204 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23205 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23206 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
23207 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
23208 | ac_header_preproc=yes | |
a848cd7e | 23209 | ;; |
ac1cb8d3 | 23210 | no:yes:* ) |
a848cd7e SC |
23211 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
23212 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23213 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
23214 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
23215 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
23216 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
23217 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23218 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23219 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
23220 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23221 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
23222 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23223 | ( |
23224 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23225 | ## ----------------------------------------- ## |
23226 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23227 | ## ----------------------------------------- ## | |
a848cd7e SC |
23228 | _ASBOX |
23229 | ) | | |
23230 | sed "s/^/$as_me: WARNING: /" >&2 | |
23231 | ;; | |
23232 | esac | |
23233 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
23234 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
23235 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
23236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23237 | else | |
23238 | ac_cv_header_mspack_h=$ac_header_preproc | |
23239 | fi | |
23240 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
23241 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
23242 | ||
23243 | fi | |
23244 | if test $ac_cv_header_mspack_h = yes; then | |
23245 | found_mspack_h=1 | |
23246 | fi | |
23247 | ||
23248 | ||
23249 | if test "x$found_mspack_h" = "x1"; then | |
23250 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
23251 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
23252 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
23253 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23254 | else | |
23255 | ac_check_lib_save_LIBS=$LIBS | |
23256 | LIBS="-lmspack $LIBS" | |
23257 | cat >conftest.$ac_ext <<_ACEOF | |
23258 | /* confdefs.h. */ | |
23259 | _ACEOF | |
23260 | cat confdefs.h >>conftest.$ac_ext | |
23261 | cat >>conftest.$ac_ext <<_ACEOF | |
23262 | /* end confdefs.h. */ | |
23263 | ||
23264 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23265 | #ifdef __cplusplus | |
23266 | extern "C" | |
23267 | #endif | |
23268 | /* We use char because int might match the return type of a gcc2 | |
23269 | builtin and then its argument prototype would still apply. */ | |
23270 | char mspack_create_chm_decompressor (); | |
23271 | int | |
23272 | main () | |
23273 | { | |
23274 | mspack_create_chm_decompressor (); | |
23275 | ; | |
23276 | return 0; | |
23277 | } | |
23278 | _ACEOF | |
23279 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23280 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23281 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23282 | ac_status=$? |
ac1cb8d3 VS |
23283 | grep -v '^ *+' conftest.er1 >conftest.err |
23284 | rm -f conftest.er1 | |
23285 | cat conftest.err >&5 | |
a848cd7e SC |
23286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23287 | (exit $ac_status); } && | |
89be85c2 VS |
23288 | { ac_try='test -z "$ac_c_werror_flag" |
23289 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23291 | (eval $ac_try) 2>&5 | |
23292 | ac_status=$? | |
23293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23294 | (exit $ac_status); }; } && | |
23295 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23297 | (eval $ac_try) 2>&5 | |
23298 | ac_status=$? | |
23299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23300 | (exit $ac_status); }; }; then | |
23301 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
23302 | else | |
23303 | echo "$as_me: failed program was:" >&5 | |
23304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23305 | ||
23306 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
23307 | fi | |
ac1cb8d3 VS |
23308 | rm -f conftest.err conftest.$ac_objext \ |
23309 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23310 | LIBS=$ac_check_lib_save_LIBS |
23311 | fi | |
23312 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
23313 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
23314 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
23315 | MSPACK_LINK=" -lmspack" | |
23316 | fi | |
23317 | ||
23318 | fi | |
23319 | if test "x$MSPACK_LINK" = "x" ; then | |
23320 | wxUSE_LIBMSPACK=no | |
dd3a2d96 VZ |
23321 | fi |
23322 | fi | |
23323 | ||
23324 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
23325 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
23326 | #define wxUSE_LIBMSPACK 1 |
23327 | _ACEOF | |
23328 | ||
a848cd7e SC |
23329 | fi |
23330 | ||
23331 | ||
23332 | ||
23333 | AFMINSTALL= | |
23334 | WIN32INSTALL= | |
23335 | ||
23336 | TOOLKIT= | |
23337 | TOOLKIT_INCLUDE= | |
23338 | WIDGET_SET= | |
23339 | ||
23340 | if test "$USE_WIN32" = 1 ; then | |
23341 | ||
23342 | for ac_header in w32api.h | |
23343 | do | |
23344 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
23345 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
23346 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23347 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
23348 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
23349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23350 | fi | |
23351 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
23352 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
23353 | else | |
23354 | # Is the header compilable? | |
23355 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
23356 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
23357 | cat >conftest.$ac_ext <<_ACEOF | |
23358 | /* confdefs.h. */ | |
23359 | _ACEOF | |
23360 | cat confdefs.h >>conftest.$ac_ext | |
23361 | cat >>conftest.$ac_ext <<_ACEOF | |
23362 | /* end confdefs.h. */ | |
23363 | $ac_includes_default | |
23364 | #include <$ac_header> | |
23365 | _ACEOF | |
23366 | rm -f conftest.$ac_objext | |
23367 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23368 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23369 | ac_status=$? |
ac1cb8d3 VS |
23370 | grep -v '^ *+' conftest.er1 >conftest.err |
23371 | rm -f conftest.er1 | |
23372 | cat conftest.err >&5 | |
a848cd7e SC |
23373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23374 | (exit $ac_status); } && | |
89be85c2 VS |
23375 | { ac_try='test -z "$ac_c_werror_flag" |
23376 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23378 | (eval $ac_try) 2>&5 | |
23379 | ac_status=$? | |
23380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23381 | (exit $ac_status); }; } && | |
23382 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23384 | (eval $ac_try) 2>&5 | |
23385 | ac_status=$? | |
23386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23387 | (exit $ac_status); }; }; then | |
23388 | ac_header_compiler=yes | |
23389 | else | |
23390 | echo "$as_me: failed program was:" >&5 | |
23391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23392 | ||
23393 | ac_header_compiler=no | |
23394 | fi | |
ac1cb8d3 | 23395 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23396 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23397 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23398 | ||
23399 | # Is the header present? | |
23400 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
23401 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
23402 | cat >conftest.$ac_ext <<_ACEOF | |
23403 | /* confdefs.h. */ | |
23404 | _ACEOF | |
23405 | cat confdefs.h >>conftest.$ac_ext | |
23406 | cat >>conftest.$ac_ext <<_ACEOF | |
23407 | /* end confdefs.h. */ | |
23408 | #include <$ac_header> | |
23409 | _ACEOF | |
23410 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23411 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23412 | ac_status=$? | |
23413 | grep -v '^ *+' conftest.er1 >conftest.err | |
23414 | rm -f conftest.er1 | |
23415 | cat conftest.err >&5 | |
23416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23417 | (exit $ac_status); } >/dev/null; then | |
23418 | if test -s conftest.err; then | |
23419 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23420 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23421 | else |
23422 | ac_cpp_err= | |
23423 | fi | |
23424 | else | |
23425 | ac_cpp_err=yes | |
23426 | fi | |
23427 | if test -z "$ac_cpp_err"; then | |
23428 | ac_header_preproc=yes | |
23429 | else | |
23430 | echo "$as_me: failed program was:" >&5 | |
23431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23432 | ||
23433 | ac_header_preproc=no | |
23434 | fi | |
23435 | rm -f conftest.err conftest.$ac_ext | |
23436 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23437 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23438 | ||
23439 | # So? What about this header? | |
ac1cb8d3 VS |
23440 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23441 | yes:no: ) | |
a848cd7e SC |
23442 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
23443 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23444 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
23445 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
23446 | ac_header_preproc=yes | |
a848cd7e | 23447 | ;; |
ac1cb8d3 | 23448 | no:yes:* ) |
a848cd7e SC |
23449 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
23450 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23451 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
23452 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
23453 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
23454 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
23455 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
23456 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23457 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
23458 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23459 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
23460 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23461 | ( |
23462 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23463 | ## ----------------------------------------- ## |
23464 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23465 | ## ----------------------------------------- ## | |
a848cd7e SC |
23466 | _ASBOX |
23467 | ) | | |
23468 | sed "s/^/$as_me: WARNING: /" >&2 | |
23469 | ;; | |
23470 | esac | |
23471 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23472 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
23473 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
23474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23475 | else | |
ac1cb8d3 | 23476 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
23477 | fi |
23478 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
23479 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
23480 | ||
23481 | fi | |
23482 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
23483 | cat >>confdefs.h <<_ACEOF | |
23484 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
23485 | _ACEOF | |
23486 | ||
23487 | fi | |
23488 | ||
23489 | done | |
23490 | ||
23491 | if test "${ac_cv_header_windows_h+set}" = set; then | |
23492 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
23493 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
23494 | if test "${ac_cv_header_windows_h+set}" = set; then | |
23495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23496 | fi | |
23497 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
23498 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
23499 | else | |
23500 | # Is the header compilable? | |
23501 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
23502 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
23503 | cat >conftest.$ac_ext <<_ACEOF | |
23504 | /* confdefs.h. */ | |
23505 | _ACEOF | |
23506 | cat confdefs.h >>conftest.$ac_ext | |
23507 | cat >>conftest.$ac_ext <<_ACEOF | |
23508 | /* end confdefs.h. */ | |
23509 | $ac_includes_default | |
23510 | #include <windows.h> | |
23511 | _ACEOF | |
23512 | rm -f conftest.$ac_objext | |
23513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23514 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23515 | ac_status=$? |
ac1cb8d3 VS |
23516 | grep -v '^ *+' conftest.er1 >conftest.err |
23517 | rm -f conftest.er1 | |
23518 | cat conftest.err >&5 | |
a848cd7e SC |
23519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23520 | (exit $ac_status); } && | |
89be85c2 VS |
23521 | { ac_try='test -z "$ac_c_werror_flag" |
23522 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23524 | (eval $ac_try) 2>&5 | |
23525 | ac_status=$? | |
23526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23527 | (exit $ac_status); }; } && | |
23528 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23530 | (eval $ac_try) 2>&5 | |
23531 | ac_status=$? | |
23532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23533 | (exit $ac_status); }; }; then | |
23534 | ac_header_compiler=yes | |
23535 | else | |
23536 | echo "$as_me: failed program was:" >&5 | |
23537 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23538 | ||
23539 | ac_header_compiler=no | |
23540 | fi | |
ac1cb8d3 | 23541 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23542 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23543 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23544 | ||
23545 | # Is the header present? | |
23546 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
23547 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
23548 | cat >conftest.$ac_ext <<_ACEOF | |
23549 | /* confdefs.h. */ | |
23550 | _ACEOF | |
23551 | cat confdefs.h >>conftest.$ac_ext | |
23552 | cat >>conftest.$ac_ext <<_ACEOF | |
23553 | /* end confdefs.h. */ | |
23554 | #include <windows.h> | |
23555 | _ACEOF | |
23556 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23557 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23558 | ac_status=$? | |
23559 | grep -v '^ *+' conftest.er1 >conftest.err | |
23560 | rm -f conftest.er1 | |
23561 | cat conftest.err >&5 | |
23562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23563 | (exit $ac_status); } >/dev/null; then | |
23564 | if test -s conftest.err; then | |
23565 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23566 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23567 | else |
23568 | ac_cpp_err= | |
23569 | fi | |
23570 | else | |
23571 | ac_cpp_err=yes | |
23572 | fi | |
23573 | if test -z "$ac_cpp_err"; then | |
23574 | ac_header_preproc=yes | |
23575 | else | |
23576 | echo "$as_me: failed program was:" >&5 | |
23577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23578 | ||
23579 | ac_header_preproc=no | |
23580 | fi | |
23581 | rm -f conftest.err conftest.$ac_ext | |
23582 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23583 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23584 | ||
23585 | # So? What about this header? | |
ac1cb8d3 VS |
23586 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23587 | yes:no: ) | |
a848cd7e SC |
23588 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23589 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23590 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
23591 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
23592 | ac_header_preproc=yes | |
a848cd7e | 23593 | ;; |
ac1cb8d3 | 23594 | no:yes:* ) |
a848cd7e SC |
23595 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
23596 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23597 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
23598 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
23599 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
23600 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
23601 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23602 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23603 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
23604 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23605 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
23606 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23607 | ( |
23608 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23609 | ## ----------------------------------------- ## |
23610 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23611 | ## ----------------------------------------- ## | |
a848cd7e SC |
23612 | _ASBOX |
23613 | ) | | |
23614 | sed "s/^/$as_me: WARNING: /" >&2 | |
23615 | ;; | |
23616 | esac | |
23617 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
23618 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
23619 | if test "${ac_cv_header_windows_h+set}" = set; then | |
23620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23621 | else | |
23622 | ac_cv_header_windows_h=$ac_header_preproc | |
23623 | fi | |
23624 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
23625 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
23626 | ||
23627 | fi | |
23628 | if test $ac_cv_header_windows_h = yes; then | |
23629 | : | |
23630 | else | |
23631 | ||
23632 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
23633 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
23634 | { (exit 1); exit 1; }; } | |
23635 | ||
23636 | fi | |
23637 | ||
23638 | ||
23639 | ||
23640 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
23641 | ||
23642 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
23643 | LIBS="$LIBS -loleacc" | |
23644 | fi | |
23645 | ||
23646 | case "${host}" in | |
23647 | *-*-cygwin* ) | |
23648 | LIBS="$LIBS -lkernel32 -luser32" | |
23649 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
23650 | esac | |
23651 | ||
23652 | if test "$wxUSE_ODBC" = "sys" ; then | |
23653 | wxUSE_ODBC = "yes" | |
23654 | fi | |
23655 | if test "$wxUSE_ODBC" = "yes" ; then | |
23656 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
23657 | cat >>confdefs.h <<\_ACEOF | |
23658 | #define wxUSE_ODBC 1 | |
23659 | _ACEOF | |
23660 | ||
23661 | fi | |
23662 | ||
23663 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
23664 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
23665 | ||
23666 | WIN32INSTALL=win32install | |
23667 | fi | |
23668 | ||
23669 | if test "$wxUSE_GUI" = "yes"; then | |
23670 | USE_GUI=1 | |
23671 | ||
23672 | GUI_TK_LIBRARY= | |
23673 | ||
23674 | WXGTK12= | |
23675 | WXGTK127= | |
23676 | WXGTK20= | |
23677 | WXGPE= | |
23678 | ||
207bc66c RN |
23679 | if test "$wxUSE_COCOA" = 1 ; then |
23680 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
23681 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
23682 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
23683 | wxUSE_PRINTING_ARCHITECTURE=no | |
23684 | fi | |
23685 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
23686 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
23687 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
23688 | wxUSE_DRAG_AND_DROP=no | |
23689 | fi | |
23690 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
23691 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
23692 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
23693 | wxUSE_DRAGIMAGE=no | |
23694 | fi | |
23695 | fi | |
23696 | ||
a848cd7e SC |
23697 | if test "$wxUSE_MSW" = 1 ; then |
23698 | TOOLKIT=MSW | |
23699 | GUIDIST=MSW_DIST | |
23700 | ||
ceec2216 | 23701 | case "${host}" in |
a848cd7e SC |
23702 | *-*-mingw32* ) |
23703 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
23704 | esac | |
23705 | fi | |
23706 | ||
23707 | if test "$wxUSE_GTK" = 1; then | |
23708 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
23709 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
23710 | ||
23711 | gtk_version_cached=1 | |
23712 | if test "${wx_cv_lib_gtk+set}" = set; then | |
23713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23714 | else | |
23715 | ||
23716 | gtk_version_cached=0 | |
23717 | echo "$as_me:$LINENO: result: " >&5 | |
23718 | echo "${ECHO_T}" >&6 | |
23719 | ||
23720 | GTK_MODULES= | |
23721 | if test "$wxUSE_THREADS" = "yes"; then | |
23722 | GTK_MODULES=gthread | |
23723 | fi | |
23724 | ||
23725 | wx_cv_lib_gtk= | |
23726 | if test "x$wxUSE_GTK2" = "xyes"; then | |
23727 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
23728 | if test "${enable_gtktest+set}" = set; then | |
23729 | enableval="$enable_gtktest" | |
23730 | ||
23731 | else | |
23732 | enable_gtktest=yes | |
23733 | fi; | |
23734 | ||
23735 | pkg_config_args=gtk+-2.0 | |
23736 | for module in . $GTK_MODULES | |
23737 | do | |
23738 | case "$module" in | |
23739 | gthread) | |
23740 | pkg_config_args="$pkg_config_args gthread-2.0" | |
23741 | ;; | |
23742 | esac | |
23743 | done | |
23744 | ||
23745 | no_gtk="" | |
23746 | ||
23747 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
23748 | set dummy pkg-config; ac_word=$2 | |
23749 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23750 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23751 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
23752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23753 | else | |
23754 | case $PKG_CONFIG in | |
23755 | [\\/]* | ?:[\\/]*) | |
23756 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
23757 | ;; | |
23758 | *) | |
23759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23760 | for as_dir in $PATH | |
23761 | do | |
23762 | IFS=$as_save_IFS | |
23763 | test -z "$as_dir" && as_dir=. | |
23764 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23765 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23766 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23767 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23768 | break 2 | |
23769 | fi | |
23770 | done | |
23771 | done | |
23772 | ||
23773 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
23774 | ;; | |
23775 | esac | |
23776 | fi | |
23777 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
23778 | ||
23779 | if test -n "$PKG_CONFIG"; then | |
23780 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
23781 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
23782 | else | |
23783 | echo "$as_me:$LINENO: result: no" >&5 | |
23784 | echo "${ECHO_T}no" >&6 | |
23785 | fi | |
23786 | ||
23787 | ||
23788 | if test x$PKG_CONFIG != xno ; then | |
23789 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
23790 | : | |
23791 | else | |
c2218763 | 23792 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
23793 | no_gtk=yes |
23794 | PKG_CONFIG=no | |
23795 | fi | |
23796 | else | |
23797 | no_gtk=yes | |
23798 | fi | |
23799 | ||
23800 | min_gtk_version=2.0.0 | |
23801 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
23802 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
23803 | ||
23804 | if test x$PKG_CONFIG != xno ; then | |
23805 | ## don't try to run the test against uninstalled libtool libs | |
23806 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
23807 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
23808 | enable_gtktest=no | |
23809 | fi | |
23810 | ||
23811 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
23812 | : | |
23813 | else | |
23814 | no_gtk=yes | |
23815 | fi | |
23816 | fi | |
23817 | ||
23818 | if test x"$no_gtk" = x ; then | |
23819 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
23820 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
23821 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
23822 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
23823 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
23824 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
23825 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
23826 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
23827 | if test "x$enable_gtktest" = "xyes" ; then | |
23828 | ac_save_CFLAGS="$CFLAGS" | |
23829 | ac_save_LIBS="$LIBS" | |
23830 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23831 | LIBS="$GTK_LIBS $LIBS" | |
23832 | rm -f conf.gtktest | |
23833 | if test "$cross_compiling" = yes; then | |
23834 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
23835 | else | |
23836 | cat >conftest.$ac_ext <<_ACEOF | |
23837 | /* confdefs.h. */ | |
23838 | _ACEOF | |
23839 | cat confdefs.h >>conftest.$ac_ext | |
23840 | cat >>conftest.$ac_ext <<_ACEOF | |
23841 | /* end confdefs.h. */ | |
23842 | ||
23843 | #include <gtk/gtk.h> | |
23844 | #include <stdio.h> | |
23845 | #include <stdlib.h> | |
23846 | ||
23847 | int | |
23848 | main () | |
23849 | { | |
23850 | int major, minor, micro; | |
23851 | char *tmp_version; | |
23852 | ||
23853 | system ("touch conf.gtktest"); | |
23854 | ||
23855 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
23856 | tmp_version = g_strdup("$min_gtk_version"); | |
23857 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
23858 | printf("%s, bad version string\n", "$min_gtk_version"); | |
23859 | exit(1); | |
23860 | } | |
23861 | ||
23862 | if ((gtk_major_version != $gtk_config_major_version) || | |
23863 | (gtk_minor_version != $gtk_config_minor_version) || | |
23864 | (gtk_micro_version != $gtk_config_micro_version)) | |
23865 | { | |
23866 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
23867 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
23868 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23869 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
23870 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
23871 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
23872 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
23873 | printf("*** required on your system.\n"); | |
23874 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
23875 | printf("*** to point to the correct configuration files\n"); | |
23876 | } | |
23877 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
23878 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
23879 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
23880 | { | |
23881 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
23882 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
23883 | printf("*** library (version %d.%d.%d)\n", | |
23884 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23885 | } | |
23886 | else | |
23887 | { | |
23888 | if ((gtk_major_version > major) || | |
23889 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
23890 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
23891 | { | |
23892 | return 0; | |
23893 | } | |
23894 | else | |
23895 | { | |
23896 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
23897 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23898 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
23899 | major, minor, micro); | |
23900 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
23901 | printf("***\n"); | |
23902 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
23903 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
23904 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
23905 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
23906 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
23907 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
23908 | printf("*** so that the correct libraries are found at run-time))\n"); | |
23909 | } | |
23910 | } | |
23911 | return 1; | |
23912 | } | |
23913 | ||
23914 | _ACEOF | |
23915 | rm -f conftest$ac_exeext | |
23916 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23917 | (eval $ac_link) 2>&5 | |
23918 | ac_status=$? | |
23919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23920 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23922 | (eval $ac_try) 2>&5 | |
23923 | ac_status=$? | |
23924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23925 | (exit $ac_status); }; }; then | |
23926 | : | |
23927 | else | |
23928 | echo "$as_me: program exited with status $ac_status" >&5 | |
23929 | echo "$as_me: failed program was:" >&5 | |
23930 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23931 | ||
23932 | ( exit $ac_status ) | |
23933 | no_gtk=yes | |
23934 | fi | |
ac1cb8d3 | 23935 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23936 | fi |
23937 | CFLAGS="$ac_save_CFLAGS" | |
23938 | LIBS="$ac_save_LIBS" | |
23939 | fi | |
23940 | fi | |
23941 | if test "x$no_gtk" = x ; then | |
23942 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
23943 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
23944 | wx_cv_lib_gtk=2.0 | |
23945 | else | |
23946 | echo "$as_me:$LINENO: result: no" >&5 | |
23947 | echo "${ECHO_T}no" >&6 | |
23948 | if test "$PKG_CONFIG" = "no" ; then | |
23949 | echo "*** A new enough version of pkg-config was not found." | |
23950 | echo "*** See http://pkgconfig.sourceforge.net" | |
23951 | else | |
23952 | if test -f conf.gtktest ; then | |
23953 | : | |
23954 | else | |
23955 | echo "*** Could not run GTK+ test program, checking why..." | |
23956 | ac_save_CFLAGS="$CFLAGS" | |
23957 | ac_save_LIBS="$LIBS" | |
23958 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23959 | LIBS="$LIBS $GTK_LIBS" | |
23960 | cat >conftest.$ac_ext <<_ACEOF | |
23961 | /* confdefs.h. */ | |
23962 | _ACEOF | |
23963 | cat confdefs.h >>conftest.$ac_ext | |
23964 | cat >>conftest.$ac_ext <<_ACEOF | |
23965 | /* end confdefs.h. */ | |
23966 | ||
23967 | #include <gtk/gtk.h> | |
23968 | #include <stdio.h> | |
23969 | ||
23970 | int | |
23971 | main () | |
23972 | { | |
23973 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
23974 | ; | |
23975 | return 0; | |
23976 | } | |
23977 | _ACEOF | |
23978 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23980 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23981 | ac_status=$? |
ac1cb8d3 VS |
23982 | grep -v '^ *+' conftest.er1 >conftest.err |
23983 | rm -f conftest.er1 | |
23984 | cat conftest.err >&5 | |
a848cd7e SC |
23985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23986 | (exit $ac_status); } && | |
89be85c2 VS |
23987 | { ac_try='test -z "$ac_c_werror_flag" |
23988 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23990 | (eval $ac_try) 2>&5 | |
23991 | ac_status=$? | |
23992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23993 | (exit $ac_status); }; } && | |
23994 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23996 | (eval $ac_try) 2>&5 | |
23997 | ac_status=$? | |
23998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23999 | (exit $ac_status); }; }; then | |
24000 | echo "*** The test program compiled, but did not run. This usually means" | |
24001 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
24002 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
24003 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
24004 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
24005 | echo "*** is required on your system" | |
24006 | echo "***" | |
24007 | echo "*** If you have an old version installed, it is best to remove it, although" | |
24008 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
24009 | else | |
24010 | echo "$as_me: failed program was:" >&5 | |
24011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24012 | ||
24013 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
24014 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
24015 | fi | |
ac1cb8d3 VS |
24016 | rm -f conftest.err conftest.$ac_objext \ |
24017 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24018 | CFLAGS="$ac_save_CFLAGS" |
24019 | LIBS="$ac_save_LIBS" | |
24020 | fi | |
24021 | fi | |
24022 | GTK_CFLAGS="" | |
24023 | GTK_LIBS="" | |
24024 | : | |
24025 | fi | |
24026 | ||
24027 | ||
24028 | rm -f conf.gtktest | |
24029 | ||
24030 | else | |
24031 | ||
24032 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
24033 | if test "${with_gtk_prefix+set}" = set; then | |
24034 | withval="$with_gtk_prefix" | |
24035 | gtk_config_prefix="$withval" | |
24036 | else | |
24037 | gtk_config_prefix="" | |
24038 | fi; | |
24039 | ||
24040 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
24041 | if test "${with_gtk_exec_prefix+set}" = set; then | |
24042 | withval="$with_gtk_exec_prefix" | |
24043 | gtk_config_exec_prefix="$withval" | |
24044 | else | |
24045 | gtk_config_exec_prefix="" | |
24046 | fi; | |
24047 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
24048 | if test "${enable_gtktest+set}" = set; then | |
24049 | enableval="$enable_gtktest" | |
24050 | ||
24051 | else | |
24052 | enable_gtktest=yes | |
24053 | fi; | |
24054 | ||
24055 | for module in . $GTK_MODULES | |
24056 | do | |
24057 | case "$module" in | |
24058 | gthread) | |
24059 | gtk_config_args="$gtk_config_args gthread" | |
24060 | ;; | |
24061 | esac | |
24062 | done | |
24063 | ||
24064 | if test x$gtk_config_exec_prefix != x ; then | |
24065 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
24066 | if test x${GTK_CONFIG+set} != xset ; then | |
24067 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
24068 | fi | |
24069 | fi | |
24070 | if test x$gtk_config_prefix != x ; then | |
24071 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
24072 | if test x${GTK_CONFIG+set} != xset ; then | |
24073 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
24074 | fi | |
24075 | fi | |
24076 | ||
24077 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
24078 | set dummy gtk-config; ac_word=$2 | |
24079 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
24080 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24081 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
24082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24083 | else | |
24084 | case $GTK_CONFIG in | |
24085 | [\\/]* | ?:[\\/]*) | |
24086 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
24087 | ;; | |
24088 | *) | |
24089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24090 | for as_dir in $PATH | |
24091 | do | |
24092 | IFS=$as_save_IFS | |
24093 | test -z "$as_dir" && as_dir=. | |
24094 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24095 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24096 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24097 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24098 | break 2 | |
24099 | fi | |
24100 | done | |
24101 | done | |
24102 | ||
24103 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
24104 | ;; | |
24105 | esac | |
24106 | fi | |
24107 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
24108 | ||
24109 | if test -n "$GTK_CONFIG"; then | |
24110 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
24111 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
24112 | else | |
24113 | echo "$as_me:$LINENO: result: no" >&5 | |
24114 | echo "${ECHO_T}no" >&6 | |
24115 | fi | |
24116 | ||
24117 | min_gtk_version=1.2.7 | |
24118 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
24119 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
24120 | no_gtk="" | |
24121 | if test "$GTK_CONFIG" = "no" ; then | |
24122 | no_gtk=yes | |
24123 | else | |
24124 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
24125 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
24126 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
24127 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
24128 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
24129 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
24130 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
24131 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
24132 | if test "x$enable_gtktest" = "xyes" ; then | |
24133 | ac_save_CFLAGS="$CFLAGS" | |
24134 | ac_save_LIBS="$LIBS" | |
24135 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24136 | LIBS="$GTK_LIBS $LIBS" | |
24137 | rm -f conf.gtktest | |
24138 | if test "$cross_compiling" = yes; then | |
24139 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
24140 | else | |
24141 | cat >conftest.$ac_ext <<_ACEOF | |
24142 | /* confdefs.h. */ | |
24143 | _ACEOF | |
24144 | cat confdefs.h >>conftest.$ac_ext | |
24145 | cat >>conftest.$ac_ext <<_ACEOF | |
24146 | /* end confdefs.h. */ | |
24147 | ||
24148 | #include <gtk/gtk.h> | |
24149 | #include <stdio.h> | |
24150 | #include <stdlib.h> | |
24151 | ||
24152 | int | |
24153 | main () | |
24154 | { | |
24155 | int major, minor, micro; | |
24156 | char *tmp_version; | |
24157 | ||
24158 | system ("touch conf.gtktest"); | |
24159 | ||
24160 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
24161 | tmp_version = g_strdup("$min_gtk_version"); | |
24162 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
24163 | printf("%s, bad version string\n", "$min_gtk_version"); | |
24164 | exit(1); | |
24165 | } | |
24166 | ||
24167 | if ((gtk_major_version != $gtk_config_major_version) || | |
24168 | (gtk_minor_version != $gtk_config_minor_version) || | |
24169 | (gtk_micro_version != $gtk_config_micro_version)) | |
24170 | { | |
24171 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
24172 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
24173 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24174 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
24175 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
24176 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
24177 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
24178 | printf("*** required on your system.\n"); | |
24179 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
24180 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
24181 | printf("*** before re-running configure\n"); | |
24182 | } | |
24183 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
24184 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
24185 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
24186 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
24187 | { | |
24188 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
24189 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
24190 | printf("*** library (version %d.%d.%d)\n", | |
24191 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24192 | } | |
24193 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
24194 | else | |
24195 | { | |
24196 | if ((gtk_major_version > major) || | |
24197 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
24198 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
24199 | { | |
24200 | return 0; | |
24201 | } | |
24202 | else | |
24203 | { | |
24204 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
24205 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24206 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
24207 | major, minor, micro); | |
24208 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
24209 | printf("***\n"); | |
24210 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
24211 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
24212 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
24213 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
24214 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
24215 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
24216 | printf("*** so that the correct libraries are found at run-time))\n"); | |
24217 | } | |
24218 | } | |
24219 | return 1; | |
24220 | } | |
24221 | ||
24222 | _ACEOF | |
24223 | rm -f conftest$ac_exeext | |
24224 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24225 | (eval $ac_link) 2>&5 | |
24226 | ac_status=$? | |
24227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24228 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24230 | (eval $ac_try) 2>&5 | |
24231 | ac_status=$? | |
24232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24233 | (exit $ac_status); }; }; then | |
24234 | : | |
24235 | else | |
24236 | echo "$as_me: program exited with status $ac_status" >&5 | |
24237 | echo "$as_me: failed program was:" >&5 | |
24238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24239 | ||
24240 | ( exit $ac_status ) | |
24241 | no_gtk=yes | |
24242 | fi | |
ac1cb8d3 | 24243 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24244 | fi |
24245 | CFLAGS="$ac_save_CFLAGS" | |
24246 | LIBS="$ac_save_LIBS" | |
24247 | fi | |
24248 | fi | |
24249 | if test "x$no_gtk" = x ; then | |
24250 | echo "$as_me:$LINENO: result: yes" >&5 | |
24251 | echo "${ECHO_T}yes" >&6 | |
24252 | wx_cv_lib_gtk=1.2.7 | |
24253 | else | |
24254 | echo "$as_me:$LINENO: result: no" >&5 | |
24255 | echo "${ECHO_T}no" >&6 | |
24256 | if test "$GTK_CONFIG" = "no" ; then | |
24257 | echo "*** The gtk-config script installed by GTK could not be found" | |
24258 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
24259 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
24260 | echo "*** full path to gtk-config." | |
24261 | else | |
24262 | if test -f conf.gtktest ; then | |
24263 | : | |
24264 | else | |
24265 | echo "*** Could not run GTK test program, checking why..." | |
24266 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24267 | LIBS="$LIBS $GTK_LIBS" | |
24268 | cat >conftest.$ac_ext <<_ACEOF | |
24269 | /* confdefs.h. */ | |
24270 | _ACEOF | |
24271 | cat confdefs.h >>conftest.$ac_ext | |
24272 | cat >>conftest.$ac_ext <<_ACEOF | |
24273 | /* end confdefs.h. */ | |
24274 | ||
24275 | #include <gtk/gtk.h> | |
24276 | #include <stdio.h> | |
24277 | ||
24278 | int | |
24279 | main () | |
24280 | { | |
24281 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
24282 | ; | |
24283 | return 0; | |
24284 | } | |
24285 | _ACEOF | |
24286 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24287 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24288 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24289 | ac_status=$? |
ac1cb8d3 VS |
24290 | grep -v '^ *+' conftest.er1 >conftest.err |
24291 | rm -f conftest.er1 | |
24292 | cat conftest.err >&5 | |
a848cd7e SC |
24293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24294 | (exit $ac_status); } && | |
89be85c2 VS |
24295 | { ac_try='test -z "$ac_c_werror_flag" |
24296 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24298 | (eval $ac_try) 2>&5 | |
24299 | ac_status=$? | |
24300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24301 | (exit $ac_status); }; } && | |
24302 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24304 | (eval $ac_try) 2>&5 | |
24305 | ac_status=$? | |
24306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24307 | (exit $ac_status); }; }; then | |
24308 | echo "*** The test program compiled, but did not run. This usually means" | |
24309 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
24310 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
24311 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
24312 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
24313 | echo "*** is required on your system" | |
24314 | echo "***" | |
24315 | echo "*** If you have an old version installed, it is best to remove it, although" | |
24316 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
24317 | echo "***" | |
24318 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
24319 | echo "*** came with the system with the command" | |
24320 | echo "***" | |
24321 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
24322 | else | |
24323 | echo "$as_me: failed program was:" >&5 | |
24324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24325 | ||
24326 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
24327 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
24328 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
24329 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
24330 | fi | |
ac1cb8d3 VS |
24331 | rm -f conftest.err conftest.$ac_objext \ |
24332 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24333 | CFLAGS="$ac_save_CFLAGS" |
24334 | LIBS="$ac_save_LIBS" | |
24335 | fi | |
24336 | fi | |
24337 | GTK_CFLAGS="" | |
24338 | GTK_LIBS="" | |
24339 | : | |
24340 | fi | |
24341 | ||
24342 | ||
24343 | rm -f conf.gtktest | |
24344 | ||
24345 | ||
24346 | if test -z "$wx_cv_lib_gtk"; then | |
24347 | ||
24348 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
24349 | if test "${with_gtk_prefix+set}" = set; then | |
24350 | withval="$with_gtk_prefix" | |
24351 | gtk_config_prefix="$withval" | |
24352 | else | |
24353 | gtk_config_prefix="" | |
24354 | fi; | |
24355 | ||
24356 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
24357 | if test "${with_gtk_exec_prefix+set}" = set; then | |
24358 | withval="$with_gtk_exec_prefix" | |
24359 | gtk_config_exec_prefix="$withval" | |
24360 | else | |
24361 | gtk_config_exec_prefix="" | |
24362 | fi; | |
24363 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
24364 | if test "${enable_gtktest+set}" = set; then | |
24365 | enableval="$enable_gtktest" | |
24366 | ||
24367 | else | |
24368 | enable_gtktest=yes | |
24369 | fi; | |
24370 | ||
24371 | for module in . $GTK_MODULES | |
24372 | do | |
24373 | case "$module" in | |
24374 | gthread) | |
24375 | gtk_config_args="$gtk_config_args gthread" | |
24376 | ;; | |
24377 | esac | |
24378 | done | |
24379 | ||
24380 | if test x$gtk_config_exec_prefix != x ; then | |
24381 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
24382 | if test x${GTK_CONFIG+set} != xset ; then | |
24383 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
24384 | fi | |
24385 | fi | |
24386 | if test x$gtk_config_prefix != x ; then | |
24387 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
24388 | if test x${GTK_CONFIG+set} != xset ; then | |
24389 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
24390 | fi | |
24391 | fi | |
24392 | ||
24393 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
24394 | set dummy gtk-config; ac_word=$2 | |
24395 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
24396 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24397 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
24398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24399 | else | |
24400 | case $GTK_CONFIG in | |
24401 | [\\/]* | ?:[\\/]*) | |
24402 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
24403 | ;; | |
24404 | *) | |
24405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24406 | for as_dir in $PATH | |
24407 | do | |
24408 | IFS=$as_save_IFS | |
24409 | test -z "$as_dir" && as_dir=. | |
24410 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24411 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24412 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24413 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24414 | break 2 | |
24415 | fi | |
24416 | done | |
24417 | done | |
24418 | ||
24419 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
24420 | ;; | |
24421 | esac | |
24422 | fi | |
24423 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
24424 | ||
24425 | if test -n "$GTK_CONFIG"; then | |
24426 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
24427 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
24428 | else | |
24429 | echo "$as_me:$LINENO: result: no" >&5 | |
24430 | echo "${ECHO_T}no" >&6 | |
24431 | fi | |
24432 | ||
24433 | min_gtk_version=1.2.3 | |
24434 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
24435 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
24436 | no_gtk="" | |
24437 | if test "$GTK_CONFIG" = "no" ; then | |
24438 | no_gtk=yes | |
24439 | else | |
24440 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
24441 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
24442 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
24443 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
24444 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
24445 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
24446 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
24447 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
24448 | if test "x$enable_gtktest" = "xyes" ; then | |
24449 | ac_save_CFLAGS="$CFLAGS" | |
24450 | ac_save_LIBS="$LIBS" | |
24451 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24452 | LIBS="$GTK_LIBS $LIBS" | |
24453 | rm -f conf.gtktest | |
24454 | if test "$cross_compiling" = yes; then | |
24455 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
24456 | else | |
24457 | cat >conftest.$ac_ext <<_ACEOF | |
24458 | /* confdefs.h. */ | |
24459 | _ACEOF | |
24460 | cat confdefs.h >>conftest.$ac_ext | |
24461 | cat >>conftest.$ac_ext <<_ACEOF | |
24462 | /* end confdefs.h. */ | |
24463 | ||
24464 | #include <gtk/gtk.h> | |
24465 | #include <stdio.h> | |
24466 | #include <stdlib.h> | |
24467 | ||
24468 | int | |
24469 | main () | |
24470 | { | |
24471 | int major, minor, micro; | |
24472 | char *tmp_version; | |
24473 | ||
24474 | system ("touch conf.gtktest"); | |
24475 | ||
24476 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
24477 | tmp_version = g_strdup("$min_gtk_version"); | |
24478 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
24479 | printf("%s, bad version string\n", "$min_gtk_version"); | |
24480 | exit(1); | |
24481 | } | |
24482 | ||
24483 | if ((gtk_major_version != $gtk_config_major_version) || | |
24484 | (gtk_minor_version != $gtk_config_minor_version) || | |
24485 | (gtk_micro_version != $gtk_config_micro_version)) | |
24486 | { | |
24487 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
24488 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
24489 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24490 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
24491 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
24492 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
24493 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
24494 | printf("*** required on your system.\n"); | |
24495 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
24496 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
24497 | printf("*** before re-running configure\n"); | |
24498 | } | |
24499 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
24500 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
24501 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
24502 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
24503 | { | |
24504 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
24505 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
24506 | printf("*** library (version %d.%d.%d)\n", | |
24507 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24508 | } | |
24509 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
24510 | else | |
24511 | { | |
24512 | if ((gtk_major_version > major) || | |
24513 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
24514 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
24515 | { | |
24516 | return 0; | |
24517 | } | |
24518 | else | |
24519 | { | |
24520 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
24521 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24522 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
24523 | major, minor, micro); | |
24524 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
24525 | printf("***\n"); | |
24526 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
24527 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
24528 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
24529 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
24530 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
24531 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
24532 | printf("*** so that the correct libraries are found at run-time))\n"); | |
24533 | } | |
24534 | } | |
24535 | return 1; | |
24536 | } | |
24537 | ||
24538 | _ACEOF | |
24539 | rm -f conftest$ac_exeext | |
24540 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24541 | (eval $ac_link) 2>&5 | |
24542 | ac_status=$? | |
24543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24544 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24546 | (eval $ac_try) 2>&5 | |
24547 | ac_status=$? | |
24548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24549 | (exit $ac_status); }; }; then | |
24550 | : | |
24551 | else | |
24552 | echo "$as_me: program exited with status $ac_status" >&5 | |
24553 | echo "$as_me: failed program was:" >&5 | |
24554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24555 | ||
24556 | ( exit $ac_status ) | |
24557 | no_gtk=yes | |
24558 | fi | |
ac1cb8d3 | 24559 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24560 | fi |
24561 | CFLAGS="$ac_save_CFLAGS" | |
24562 | LIBS="$ac_save_LIBS" | |
24563 | fi | |
24564 | fi | |
24565 | if test "x$no_gtk" = x ; then | |
24566 | echo "$as_me:$LINENO: result: yes" >&5 | |
24567 | echo "${ECHO_T}yes" >&6 | |
24568 | wx_cv_lib_gtk=1.2.3 | |
24569 | else | |
24570 | echo "$as_me:$LINENO: result: no" >&5 | |
24571 | echo "${ECHO_T}no" >&6 | |
24572 | if test "$GTK_CONFIG" = "no" ; then | |
24573 | echo "*** The gtk-config script installed by GTK could not be found" | |
24574 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
24575 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
24576 | echo "*** full path to gtk-config." | |
24577 | else | |
24578 | if test -f conf.gtktest ; then | |
24579 | : | |
24580 | else | |
24581 | echo "*** Could not run GTK test program, checking why..." | |
24582 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24583 | LIBS="$LIBS $GTK_LIBS" | |
24584 | cat >conftest.$ac_ext <<_ACEOF | |
24585 | /* confdefs.h. */ | |
24586 | _ACEOF | |
24587 | cat confdefs.h >>conftest.$ac_ext | |
24588 | cat >>conftest.$ac_ext <<_ACEOF | |
24589 | /* end confdefs.h. */ | |
24590 | ||
24591 | #include <gtk/gtk.h> | |
24592 | #include <stdio.h> | |
24593 | ||
24594 | int | |
24595 | main () | |
24596 | { | |
24597 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
24598 | ; | |
24599 | return 0; | |
24600 | } | |
24601 | _ACEOF | |
24602 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24603 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24604 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24605 | ac_status=$? |
ac1cb8d3 VS |
24606 | grep -v '^ *+' conftest.er1 >conftest.err |
24607 | rm -f conftest.er1 | |
24608 | cat conftest.err >&5 | |
a848cd7e SC |
24609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24610 | (exit $ac_status); } && | |
89be85c2 VS |
24611 | { ac_try='test -z "$ac_c_werror_flag" |
24612 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24614 | (eval $ac_try) 2>&5 | |
24615 | ac_status=$? | |
24616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24617 | (exit $ac_status); }; } && | |
24618 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24620 | (eval $ac_try) 2>&5 | |
24621 | ac_status=$? | |
24622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24623 | (exit $ac_status); }; }; then | |
24624 | echo "*** The test program compiled, but did not run. This usually means" | |
24625 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
24626 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
24627 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
24628 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
24629 | echo "*** is required on your system" | |
24630 | echo "***" | |
24631 | echo "*** If you have an old version installed, it is best to remove it, although" | |
24632 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
24633 | echo "***" | |
24634 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
24635 | echo "*** came with the system with the command" | |
24636 | echo "***" | |
24637 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
24638 | else | |
24639 | echo "$as_me: failed program was:" >&5 | |
24640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24641 | ||
24642 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
24643 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
24644 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
24645 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
24646 | fi | |
ac1cb8d3 VS |
24647 | rm -f conftest.err conftest.$ac_objext \ |
24648 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24649 | CFLAGS="$ac_save_CFLAGS" |
24650 | LIBS="$ac_save_LIBS" | |
24651 | fi | |
24652 | fi | |
24653 | GTK_CFLAGS="" | |
24654 | GTK_LIBS="" | |
24655 | : | |
24656 | fi | |
24657 | ||
24658 | ||
24659 | rm -f conf.gtktest | |
24660 | ||
24661 | fi | |
24662 | fi | |
24663 | ||
24664 | if test -z "$wx_cv_lib_gtk"; then | |
24665 | wx_cv_lib_gtk=none | |
24666 | else | |
24667 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
24668 | wx_cv_libs_gtk=$GTK_LIBS | |
24669 | fi | |
24670 | ||
24671 | ||
24672 | fi | |
24673 | ||
24674 | ||
24675 | if test "$gtk_version_cached" = 1; then | |
24676 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
24677 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
24678 | fi | |
24679 | ||
24680 | case "$wx_cv_lib_gtk" in | |
24681 | 2.0) WXGTK20=1 | |
24682 | TOOLKIT_VERSION=2 | |
24683 | ;; | |
24684 | 1.2.7) WXGTK127=1 | |
24685 | WXGTK12=1 | |
24686 | ;; | |
24687 | 1.2.3) WXGTK12=1 | |
24688 | ;; | |
24689 | *) { { echo "$as_me:$LINENO: error: | |
24690 | Please check that gtk-config is in path, the directory | |
24691 | where GTK+ libraries are installed (returned by | |
24692 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
24693 | equivalent variable and GTK+ is version 1.2.3 or above. | |
24694 | " >&5 | |
24695 | echo "$as_me: error: | |
24696 | Please check that gtk-config is in path, the directory | |
24697 | where GTK+ libraries are installed (returned by | |
24698 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
24699 | equivalent variable and GTK+ is version 1.2.3 or above. | |
24700 | " >&2;} | |
24701 | { (exit 1); exit 1; }; } | |
24702 | ;; | |
24703 | esac | |
24704 | ||
24705 | if test "$WXGTK20" = 1; then | |
304205f1 VS |
24706 | save_CFLAGS="$CFLAGS" |
24707 | save_LIBS="$LIBS" | |
24708 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24709 | LIBS="$LIBS $GTK_LIBS" | |
24710 | ||
9755e73b | 24711 | |
304205f1 VS |
24712 | for ac_func in pango_font_family_is_monospace |
24713 | do | |
24714 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24715 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24716 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24717 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24718 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24719 | else | |
24720 | cat >conftest.$ac_ext <<_ACEOF | |
24721 | /* confdefs.h. */ | |
24722 | _ACEOF | |
24723 | cat confdefs.h >>conftest.$ac_ext | |
24724 | cat >>conftest.$ac_ext <<_ACEOF | |
24725 | /* end confdefs.h. */ | |
24726 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
24727 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24728 | #define $ac_func innocuous_$ac_func | |
24729 | ||
24730 | /* System header to define __stub macros and hopefully few prototypes, | |
24731 | which can conflict with char $ac_func (); below. | |
24732 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24733 | <limits.h> exists even on freestanding compilers. */ | |
24734 | ||
24735 | #ifdef __STDC__ | |
24736 | # include <limits.h> | |
24737 | #else | |
24738 | # include <assert.h> | |
24739 | #endif | |
24740 | ||
24741 | #undef $ac_func | |
24742 | ||
24743 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24744 | #ifdef __cplusplus | |
24745 | extern "C" | |
24746 | { | |
24747 | #endif | |
24748 | /* We use char because int might match the return type of a gcc2 | |
24749 | builtin and then its argument prototype would still apply. */ | |
24750 | char $ac_func (); | |
24751 | /* The GNU C library defines this for functions which it implements | |
24752 | to always fail with ENOSYS. Some functions are actually named | |
24753 | something starting with __ and the normal name is an alias. */ | |
24754 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24755 | choke me | |
24756 | #else | |
24757 | char (*f) () = $ac_func; | |
24758 | #endif | |
24759 | #ifdef __cplusplus | |
24760 | } | |
24761 | #endif | |
24762 | ||
24763 | int | |
24764 | main () | |
24765 | { | |
24766 | return f != $ac_func; | |
24767 | ; | |
24768 | return 0; | |
24769 | } | |
24770 | _ACEOF | |
24771 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24772 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24773 | (eval $ac_link) 2>conftest.er1 | |
24774 | ac_status=$? | |
24775 | grep -v '^ *+' conftest.er1 >conftest.err | |
24776 | rm -f conftest.er1 | |
24777 | cat conftest.err >&5 | |
24778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24779 | (exit $ac_status); } && | |
89be85c2 VS |
24780 | { ac_try='test -z "$ac_c_werror_flag" |
24781 | || test ! -s conftest.err' | |
304205f1 VS |
24782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24783 | (eval $ac_try) 2>&5 | |
24784 | ac_status=$? | |
24785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24786 | (exit $ac_status); }; } && | |
24787 | { ac_try='test -s conftest$ac_exeext' | |
24788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24789 | (eval $ac_try) 2>&5 | |
24790 | ac_status=$? | |
24791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24792 | (exit $ac_status); }; }; then | |
24793 | eval "$as_ac_var=yes" | |
24794 | else | |
24795 | echo "$as_me: failed program was:" >&5 | |
24796 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24797 | ||
24798 | eval "$as_ac_var=no" | |
24799 | fi | |
24800 | rm -f conftest.err conftest.$ac_objext \ | |
24801 | conftest$ac_exeext conftest.$ac_ext | |
24802 | fi | |
24803 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24804 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24805 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24806 | cat >>confdefs.h <<_ACEOF | |
24807 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24808 | _ACEOF | |
24809 | ||
24810 | fi | |
24811 | done | |
24812 | ||
9755e73b VS |
24813 | |
24814 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5 | |
24815 | echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6 | |
24816 | cat >conftest.$ac_ext <<_ACEOF | |
24817 | /* confdefs.h. */ | |
24818 | _ACEOF | |
24819 | cat confdefs.h >>conftest.$ac_ext | |
24820 | cat >>conftest.$ac_ext <<_ACEOF | |
24821 | /* end confdefs.h. */ | |
24822 | ||
24823 | #include <gtk/gtk.h> | |
24824 | ||
24825 | int | |
24826 | main () | |
24827 | { | |
24828 | ||
24829 | #if !GTK_CHECK_VERSION(2,4,0) | |
24830 | #error "Not GTK+ 2.4" | |
24831 | #endif | |
24832 | ||
24833 | ; | |
24834 | return 0; | |
24835 | } | |
24836 | _ACEOF | |
24837 | rm -f conftest.$ac_objext | |
24838 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24839 | (eval $ac_compile) 2>conftest.er1 | |
24840 | ac_status=$? | |
24841 | grep -v '^ *+' conftest.er1 >conftest.err | |
24842 | rm -f conftest.er1 | |
24843 | cat conftest.err >&5 | |
24844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24845 | (exit $ac_status); } && | |
89be85c2 VS |
24846 | { ac_try='test -z "$ac_c_werror_flag" |
24847 | || test ! -s conftest.err' | |
9755e73b VS |
24848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24849 | (eval $ac_try) 2>&5 | |
24850 | ac_status=$? | |
24851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24852 | (exit $ac_status); }; } && | |
24853 | { ac_try='test -s conftest.$ac_objext' | |
24854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24855 | (eval $ac_try) 2>&5 | |
24856 | ac_status=$? | |
24857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24858 | (exit $ac_status); }; }; then | |
24859 | ||
24860 | cat >>confdefs.h <<\_ACEOF | |
24861 | #define __WXGTK24__ 1 | |
24862 | _ACEOF | |
24863 | ||
24864 | echo "$as_me:$LINENO: result: yes" >&5 | |
24865 | echo "${ECHO_T}yes" >&6 | |
24866 | ||
24867 | else | |
24868 | echo "$as_me: failed program was:" >&5 | |
24869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24870 | ||
24871 | ||
24872 | echo "$as_me:$LINENO: result: no" >&5 | |
24873 | echo "${ECHO_T}no" >&6 | |
24874 | ||
24875 | fi | |
24876 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
24877 | ||
304205f1 VS |
24878 | CFLAGS="$save_CFLAGS" |
24879 | LIBS="$save_LIBS" | |
a848cd7e SC |
24880 | else |
24881 | if test "$wxUSE_UNICODE" = "yes"; then | |
24882 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
24883 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
24884 | wxUSE_UNICODE=no | |
24885 | fi | |
24886 | fi | |
24887 | ||
24888 | if test "$USE_DARWIN" != 1; then | |
24889 | ||
24890 | for ac_func in poll | |
24891 | do | |
24892 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24893 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24894 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24895 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24896 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24897 | else | |
24898 | cat >conftest.$ac_ext <<_ACEOF | |
24899 | /* confdefs.h. */ | |
24900 | _ACEOF | |
24901 | cat confdefs.h >>conftest.$ac_ext | |
24902 | cat >>conftest.$ac_ext <<_ACEOF | |
24903 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24904 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
24905 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24906 | #define $ac_func innocuous_$ac_func | |
24907 | ||
a848cd7e SC |
24908 | /* System header to define __stub macros and hopefully few prototypes, |
24909 | which can conflict with char $ac_func (); below. | |
24910 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24911 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24912 | |
a848cd7e SC |
24913 | #ifdef __STDC__ |
24914 | # include <limits.h> | |
24915 | #else | |
24916 | # include <assert.h> | |
24917 | #endif | |
ac1cb8d3 VS |
24918 | |
24919 | #undef $ac_func | |
24920 | ||
a848cd7e SC |
24921 | /* Override any gcc2 internal prototype to avoid an error. */ |
24922 | #ifdef __cplusplus | |
24923 | extern "C" | |
24924 | { | |
24925 | #endif | |
24926 | /* We use char because int might match the return type of a gcc2 | |
24927 | builtin and then its argument prototype would still apply. */ | |
24928 | char $ac_func (); | |
24929 | /* The GNU C library defines this for functions which it implements | |
24930 | to always fail with ENOSYS. Some functions are actually named | |
24931 | something starting with __ and the normal name is an alias. */ | |
24932 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24933 | choke me | |
24934 | #else | |
24935 | char (*f) () = $ac_func; | |
24936 | #endif | |
24937 | #ifdef __cplusplus | |
24938 | } | |
24939 | #endif | |
24940 | ||
24941 | int | |
24942 | main () | |
24943 | { | |
24944 | return f != $ac_func; | |
24945 | ; | |
24946 | return 0; | |
24947 | } | |
24948 | _ACEOF | |
24949 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24950 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24951 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24952 | ac_status=$? |
ac1cb8d3 VS |
24953 | grep -v '^ *+' conftest.er1 >conftest.err |
24954 | rm -f conftest.er1 | |
24955 | cat conftest.err >&5 | |
a848cd7e SC |
24956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24957 | (exit $ac_status); } && | |
89be85c2 VS |
24958 | { ac_try='test -z "$ac_c_werror_flag" |
24959 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24961 | (eval $ac_try) 2>&5 | |
24962 | ac_status=$? | |
24963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24964 | (exit $ac_status); }; } && | |
24965 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24967 | (eval $ac_try) 2>&5 | |
24968 | ac_status=$? | |
24969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24970 | (exit $ac_status); }; }; then | |
24971 | eval "$as_ac_var=yes" | |
24972 | else | |
24973 | echo "$as_me: failed program was:" >&5 | |
24974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24975 | ||
24976 | eval "$as_ac_var=no" | |
24977 | fi | |
ac1cb8d3 VS |
24978 | rm -f conftest.err conftest.$ac_objext \ |
24979 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24980 | fi |
24981 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24982 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24983 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24984 | cat >>confdefs.h <<_ACEOF | |
24985 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24986 | _ACEOF | |
24987 | ||
24988 | fi | |
24989 | done | |
24990 | ||
24991 | fi | |
24992 | ||
24993 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
24994 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
24995 | ||
24996 | AFMINSTALL=afminstall | |
24997 | TOOLKIT=GTK | |
24998 | GUIDIST=GTK_DIST | |
24999 | ||
25000 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
25001 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
25002 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
25003 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25004 | else | |
25005 | ac_check_lib_save_LIBS=$LIBS | |
25006 | LIBS="-lgdk $LIBS" | |
25007 | cat >conftest.$ac_ext <<_ACEOF | |
25008 | /* confdefs.h. */ | |
25009 | _ACEOF | |
25010 | cat confdefs.h >>conftest.$ac_ext | |
25011 | cat >>conftest.$ac_ext <<_ACEOF | |
25012 | /* end confdefs.h. */ | |
25013 | ||
25014 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25015 | #ifdef __cplusplus | |
25016 | extern "C" | |
25017 | #endif | |
25018 | /* We use char because int might match the return type of a gcc2 | |
25019 | builtin and then its argument prototype would still apply. */ | |
25020 | char gdk_im_open (); | |
25021 | int | |
25022 | main () | |
25023 | { | |
25024 | gdk_im_open (); | |
25025 | ; | |
25026 | return 0; | |
25027 | } | |
25028 | _ACEOF | |
25029 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25030 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25031 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25032 | ac_status=$? |
ac1cb8d3 VS |
25033 | grep -v '^ *+' conftest.er1 >conftest.err |
25034 | rm -f conftest.er1 | |
25035 | cat conftest.err >&5 | |
a848cd7e SC |
25036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25037 | (exit $ac_status); } && | |
89be85c2 VS |
25038 | { ac_try='test -z "$ac_c_werror_flag" |
25039 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25041 | (eval $ac_try) 2>&5 | |
25042 | ac_status=$? | |
25043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25044 | (exit $ac_status); }; } && | |
25045 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25047 | (eval $ac_try) 2>&5 | |
25048 | ac_status=$? | |
25049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25050 | (exit $ac_status); }; }; then | |
25051 | ac_cv_lib_gdk_gdk_im_open=yes | |
25052 | else | |
25053 | echo "$as_me: failed program was:" >&5 | |
25054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25055 | ||
25056 | ac_cv_lib_gdk_gdk_im_open=no | |
25057 | fi | |
ac1cb8d3 VS |
25058 | rm -f conftest.err conftest.$ac_objext \ |
25059 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25060 | LIBS=$ac_check_lib_save_LIBS |
25061 | fi | |
25062 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
25063 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
25064 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
25065 | cat >>confdefs.h <<\_ACEOF | |
25066 | #define HAVE_XIM 1 | |
25067 | _ACEOF | |
25068 | ||
25069 | fi | |
25070 | ||
25071 | ||
25072 | ||
25073 | if test "$wxUSE_GPE" = "yes"; then | |
25074 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
25075 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
25076 | ||
25077 | ac_find_libraries= | |
25078 | for ac_dir in $SEARCH_LIB /usr/lib; | |
25079 | do | |
25080 | for ac_extension in a so sl dylib; do | |
25081 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then | |
25082 | ac_find_libraries=$ac_dir | |
25083 | break 2 | |
25084 | fi | |
25085 | done | |
25086 | done | |
25087 | ||
25088 | if test "$ac_find_libraries" != "" ; then | |
25089 | ||
25090 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
25091 | result=$? | |
25092 | if test $result = 0; then | |
25093 | ac_path_to_link="" | |
25094 | else | |
25095 | ac_path_to_link=" -L$ac_find_libraries" | |
25096 | fi | |
25097 | ||
25098 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
25099 | WXGPE=1 | |
25100 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
25101 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
25102 | else | |
25103 | echo "$as_me:$LINENO: result: not found" >&5 | |
25104 | echo "${ECHO_T}not found" >&6 | |
25105 | fi | |
25106 | ||
25107 | fi | |
25108 | fi | |
25109 | ||
25110 | if test "$wxUSE_MGL" = 1; then | |
25111 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
25112 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
25113 | if test "x$MGL_ROOT" = x ; then | |
25114 | echo "$as_me:$LINENO: result: not found" >&5 | |
25115 | echo "${ECHO_T}not found" >&6 | |
25116 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
25117 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
25118 | { (exit 1); exit 1; }; } | |
25119 | else | |
25120 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
25121 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
25122 | fi | |
25123 | ||
25124 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
25125 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
25126 | case "${host}" in | |
25127 | *-*-linux* ) | |
25128 | if test "x$wxUSE_SHARED" = xyes ; then | |
25129 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
25130 | else | |
25131 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
25132 | fi | |
25133 | ;; | |
25134 | *-pc-msdosdjgpp ) | |
25135 | mgl_os_candidates="dos32/dj2" | |
25136 | ;; | |
25137 | *) | |
25138 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
25139 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
25140 | { (exit 1); exit 1; }; } | |
25141 | esac | |
25142 | ||
25143 | mgl_lib_type="" | |
25144 | mgl_os="" | |
25145 | ||
25146 | for mgl_os_i in $mgl_os_candidates ; do | |
25147 | if test "x$mgl_os" = x ; then | |
25148 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
25149 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
25150 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
25151 | mgl_lib_type=debug | |
25152 | mgl_os=$mgl_os_i | |
25153 | fi | |
25154 | fi | |
25155 | if test "x$mgl_lib_type" = x ; then | |
25156 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
25157 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
25158 | mgl_lib_type=release | |
25159 | mgl_os=$mgl_os_i | |
25160 | fi | |
25161 | fi | |
25162 | fi | |
25163 | done | |
25164 | ||
25165 | if test "x$mgl_os" = x ; then | |
25166 | echo "$as_me:$LINENO: result: not found" >&5 | |
25167 | echo "${ECHO_T}not found" >&6 | |
25168 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
25169 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
25170 | { (exit 1); exit 1; }; } | |
25171 | fi | |
25172 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
25173 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
25174 | ||
25175 | wxUSE_UNIVERSAL="yes" | |
25176 | ||
25177 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
25178 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
25179 | ||
25180 | AFMINSTALL=afminstall | |
25181 | TOOLKIT=MGL | |
25182 | GUIDIST=MGL_DIST | |
25183 | fi | |
25184 | ||
25185 | if test "$wxUSE_MICROWIN" = 1; then | |
25186 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
25187 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
25188 | if test "x$MICROWINDOWS" = x ; then | |
25189 | echo "$as_me:$LINENO: result: not found" >&5 | |
25190 | echo "${ECHO_T}not found" >&6 | |
25191 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
25192 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
25193 | { (exit 1); exit 1; }; } | |
25194 | else | |
25195 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
25196 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
25197 | fi | |
25198 | ||
25199 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
25200 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
25201 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
25202 | else | |
25203 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
25204 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
25205 | { (exit 1); exit 1; }; } | |
25206 | fi | |
25207 | ||
25208 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
25209 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
25210 | ||
25211 | wxUSE_UNIVERSAL="yes" | |
25212 | ||
25213 | AFMINSTALL=afminstall | |
25214 | TOOLKIT=MICROWIN | |
25215 | GUIDIST=MICROWIN_DIST | |
25216 | ||
25217 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
25218 | fi | |
25219 | ||
74b84332 | 25220 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
89be85c2 | 25221 | echo "$as_me:$LINENO: checking for X" >&5 |
a848cd7e SC |
25222 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
25223 | ||
25224 | ||
25225 | # Check whether --with-x or --without-x was given. | |
25226 | if test "${with_x+set}" = set; then | |
25227 | withval="$with_x" | |
25228 | ||
25229 | fi; | |
25230 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
25231 | if test "x$with_x" = xno; then | |
25232 | # The user explicitly disabled X. | |
25233 | have_x=disabled | |
25234 | else | |
25235 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
25236 | # Both variables are already set. | |
25237 | have_x=yes | |
25238 | else | |
25239 | if test "${ac_cv_have_x+set}" = set; then | |
25240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25241 | else | |
25242 | # One or both of the vars are not set, and there is no cached value. | |
25243 | ac_x_includes=no ac_x_libraries=no | |
25244 | rm -fr conftest.dir | |
25245 | if mkdir conftest.dir; then | |
25246 | cd conftest.dir | |
25247 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
25248 | cat >Imakefile <<'_ACEOF' | |
25249 | acfindx: | |
25250 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
25251 | _ACEOF | |
25252 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
25253 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
25254 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
25255 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
25256 | for ac_extension in a so sl; do | |
25257 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
25258 | test -f $ac_im_libdir/libX11.$ac_extension; then |
25259 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
25260 | fi |
25261 | done | |
25262 | # Screen out bogus values from the imake configuration. They are | |
25263 | # bogus both because they are the default anyway, and because | |
25264 | # using them would break gcc on systems where it needs fixed includes. | |
25265 | case $ac_im_incroot in | |
25266 | /usr/include) ;; | |
25267 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
25268 | esac | |
25269 | case $ac_im_usrlibdir in | |
25270 | /usr/lib | /lib) ;; | |
25271 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
25272 | esac | |
25273 | fi | |
25274 | cd .. | |
25275 | rm -fr conftest.dir | |
25276 | fi | |
25277 | ||
25278 | # Standard set of common directories for X headers. | |
25279 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
25280 | ac_x_header_dirs=' | |
25281 | /usr/X11/include | |
25282 | /usr/X11R6/include | |
25283 | /usr/X11R5/include | |
25284 | /usr/X11R4/include | |
25285 | ||
25286 | /usr/include/X11 | |
25287 | /usr/include/X11R6 | |
25288 | /usr/include/X11R5 | |
25289 | /usr/include/X11R4 | |
25290 | ||
25291 | /usr/local/X11/include | |
25292 | /usr/local/X11R6/include | |
25293 | /usr/local/X11R5/include | |
25294 | /usr/local/X11R4/include | |
25295 | ||
25296 | /usr/local/include/X11 | |
25297 | /usr/local/include/X11R6 | |
25298 | /usr/local/include/X11R5 | |
25299 | /usr/local/include/X11R4 | |
25300 | ||
25301 | /usr/X386/include | |
25302 | /usr/x386/include | |
25303 | /usr/XFree86/include/X11 | |
25304 | ||
25305 | /usr/include | |
25306 | /usr/local/include | |
25307 | /usr/unsupported/include | |
25308 | /usr/athena/include | |
25309 | /usr/local/x11r5/include | |
25310 | /usr/lpp/Xamples/include | |
25311 | ||
25312 | /usr/openwin/include | |
25313 | /usr/openwin/share/include' | |
25314 | ||
25315 | if test "$ac_x_includes" = no; then | |
89be85c2 | 25316 | # Guess where to find include files, by looking for Intrinsic.h. |
a848cd7e SC |
25317 | # First, try using that file with no special directory specified. |
25318 | cat >conftest.$ac_ext <<_ACEOF | |
25319 | /* confdefs.h. */ | |
25320 | _ACEOF | |
25321 | cat confdefs.h >>conftest.$ac_ext | |
25322 | cat >>conftest.$ac_ext <<_ACEOF | |
25323 | /* end confdefs.h. */ | |
25324 | #include <X11/Intrinsic.h> | |
25325 | _ACEOF | |
25326 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25327 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25328 | ac_status=$? | |
25329 | grep -v '^ *+' conftest.er1 >conftest.err | |
25330 | rm -f conftest.er1 | |
25331 | cat conftest.err >&5 | |
25332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25333 | (exit $ac_status); } >/dev/null; then | |
25334 | if test -s conftest.err; then | |
25335 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 25336 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
25337 | else |
25338 | ac_cpp_err= | |
25339 | fi | |
25340 | else | |
25341 | ac_cpp_err=yes | |
25342 | fi | |
25343 | if test -z "$ac_cpp_err"; then | |
25344 | # We can compile using X headers with no special include directory. | |
25345 | ac_x_includes= | |
25346 | else | |
25347 | echo "$as_me: failed program was:" >&5 | |
25348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25349 | ||
25350 | for ac_dir in $ac_x_header_dirs; do | |
25351 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
25352 | ac_x_includes=$ac_dir | |
25353 | break | |
25354 | fi | |
25355 | done | |
25356 | fi | |
25357 | rm -f conftest.err conftest.$ac_ext | |
25358 | fi # $ac_x_includes = no | |
25359 | ||
25360 | if test "$ac_x_libraries" = no; then | |
25361 | # Check for the libraries. | |
25362 | # See if we find them without any special options. | |
25363 | # Don't add to $LIBS permanently. | |
25364 | ac_save_LIBS=$LIBS | |
25365 | LIBS="-lXt $LIBS" | |
25366 | cat >conftest.$ac_ext <<_ACEOF | |
25367 | /* confdefs.h. */ | |
25368 | _ACEOF | |
25369 | cat confdefs.h >>conftest.$ac_ext | |
25370 | cat >>conftest.$ac_ext <<_ACEOF | |
25371 | /* end confdefs.h. */ | |
25372 | #include <X11/Intrinsic.h> | |
25373 | int | |
25374 | main () | |
25375 | { | |
25376 | XtMalloc (0) | |
25377 | ; | |
25378 | return 0; | |
25379 | } | |
25380 | _ACEOF | |
25381 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25382 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25383 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25384 | ac_status=$? |
ac1cb8d3 VS |
25385 | grep -v '^ *+' conftest.er1 >conftest.err |
25386 | rm -f conftest.er1 | |
25387 | cat conftest.err >&5 | |
a848cd7e SC |
25388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25389 | (exit $ac_status); } && | |
89be85c2 VS |
25390 | { ac_try='test -z "$ac_c_werror_flag" |
25391 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25393 | (eval $ac_try) 2>&5 | |
25394 | ac_status=$? | |
25395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25396 | (exit $ac_status); }; } && | |
25397 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25399 | (eval $ac_try) 2>&5 | |
25400 | ac_status=$? | |
25401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25402 | (exit $ac_status); }; }; then | |
25403 | LIBS=$ac_save_LIBS | |
25404 | # We can link X programs with no special library path. | |
25405 | ac_x_libraries= | |
25406 | else | |
25407 | echo "$as_me: failed program was:" >&5 | |
25408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25409 | ||
25410 | LIBS=$ac_save_LIBS | |
25411 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
25412 | do | |
25413 | # Don't even attempt the hair of trying to link an X program! | |
25414 | for ac_extension in a so sl; do | |
25415 | if test -r $ac_dir/libXt.$ac_extension; then | |
25416 | ac_x_libraries=$ac_dir | |
25417 | break 2 | |
25418 | fi | |
25419 | done | |
25420 | done | |
25421 | fi | |
ac1cb8d3 VS |
25422 | rm -f conftest.err conftest.$ac_objext \ |
25423 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25424 | fi # $ac_x_libraries = no |
25425 | ||
25426 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
25427 | # Didn't find X anywhere. Cache the known absence of X. | |
25428 | ac_cv_have_x="have_x=no" | |
25429 | else | |
25430 | # Record where we found X for the cache. | |
25431 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 25432 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
25433 | fi |
25434 | fi | |
25435 | ||
25436 | fi | |
25437 | eval "$ac_cv_have_x" | |
25438 | fi # $with_x != no | |
25439 | ||
25440 | if test "$have_x" != yes; then | |
25441 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
25442 | echo "${ECHO_T}$have_x" >&6 | |
25443 | no_x=yes | |
25444 | else | |
25445 | # If each of the values was on the command line, it overrides each guess. | |
25446 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
25447 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
25448 | # Update the cache value to reflect the command line values. | |
25449 | ac_cv_have_x="have_x=yes \ | |
25450 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
89be85c2 VS |
25451 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
25452 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
a848cd7e SC |
25453 | fi |
25454 | ||
25455 | if test "$no_x" = yes; then | |
25456 | # Not all programs may use this symbol, but it does not hurt to define it. | |
25457 | ||
25458 | cat >>confdefs.h <<\_ACEOF | |
25459 | #define X_DISPLAY_MISSING 1 | |
25460 | _ACEOF | |
25461 | ||
25462 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
25463 | else | |
25464 | if test -n "$x_includes"; then | |
25465 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
25466 | fi | |
25467 | ||
25468 | # It would also be nice to do this for all -L options, not just this one. | |
25469 | if test -n "$x_libraries"; then | |
25470 | X_LIBS="$X_LIBS -L$x_libraries" | |
25471 | # For Solaris; some versions of Sun CC require a space after -R and | |
25472 | # others require no space. Words are not sufficient . . . . | |
25473 | case `(uname -sr) 2>/dev/null` in | |
25474 | "SunOS 5"*) | |
25475 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
25476 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
25477 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
25478 | cat >conftest.$ac_ext <<_ACEOF | |
25479 | /* confdefs.h. */ | |
25480 | _ACEOF | |
25481 | cat confdefs.h >>conftest.$ac_ext | |
25482 | cat >>conftest.$ac_ext <<_ACEOF | |
25483 | /* end confdefs.h. */ | |
25484 | ||
25485 | int | |
25486 | main () | |
25487 | { | |
25488 | ||
25489 | ; | |
25490 | return 0; | |
25491 | } | |
25492 | _ACEOF | |
25493 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25494 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25495 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25496 | ac_status=$? |
ac1cb8d3 VS |
25497 | grep -v '^ *+' conftest.er1 >conftest.err |
25498 | rm -f conftest.er1 | |
25499 | cat conftest.err >&5 | |
a848cd7e SC |
25500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25501 | (exit $ac_status); } && | |
89be85c2 VS |
25502 | { ac_try='test -z "$ac_c_werror_flag" |
25503 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25505 | (eval $ac_try) 2>&5 | |
25506 | ac_status=$? | |
25507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25508 | (exit $ac_status); }; } && | |
25509 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25511 | (eval $ac_try) 2>&5 | |
25512 | ac_status=$? | |
25513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25514 | (exit $ac_status); }; }; then | |
25515 | ac_R_nospace=yes | |
25516 | else | |
25517 | echo "$as_me: failed program was:" >&5 | |
25518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25519 | ||
25520 | ac_R_nospace=no | |
25521 | fi | |
ac1cb8d3 VS |
25522 | rm -f conftest.err conftest.$ac_objext \ |
25523 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25524 | if test $ac_R_nospace = yes; then |
25525 | echo "$as_me:$LINENO: result: no" >&5 | |
25526 | echo "${ECHO_T}no" >&6 | |
25527 | X_LIBS="$X_LIBS -R$x_libraries" | |
25528 | else | |
25529 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
25530 | cat >conftest.$ac_ext <<_ACEOF | |
25531 | /* confdefs.h. */ | |
25532 | _ACEOF | |
25533 | cat confdefs.h >>conftest.$ac_ext | |
25534 | cat >>conftest.$ac_ext <<_ACEOF | |
25535 | /* end confdefs.h. */ | |
25536 | ||
25537 | int | |
25538 | main () | |
25539 | { | |
25540 | ||
25541 | ; | |
25542 | return 0; | |
25543 | } | |
25544 | _ACEOF | |
25545 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25546 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25547 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25548 | ac_status=$? |
ac1cb8d3 VS |
25549 | grep -v '^ *+' conftest.er1 >conftest.err |
25550 | rm -f conftest.er1 | |
25551 | cat conftest.err >&5 | |
a848cd7e SC |
25552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25553 | (exit $ac_status); } && | |
89be85c2 VS |
25554 | { ac_try='test -z "$ac_c_werror_flag" |
25555 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25557 | (eval $ac_try) 2>&5 | |
25558 | ac_status=$? | |
25559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25560 | (exit $ac_status); }; } && | |
25561 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25563 | (eval $ac_try) 2>&5 | |
25564 | ac_status=$? | |
25565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25566 | (exit $ac_status); }; }; then | |
25567 | ac_R_space=yes | |
25568 | else | |
25569 | echo "$as_me: failed program was:" >&5 | |
25570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25571 | ||
25572 | ac_R_space=no | |
25573 | fi | |
ac1cb8d3 VS |
25574 | rm -f conftest.err conftest.$ac_objext \ |
25575 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25576 | if test $ac_R_space = yes; then |
25577 | echo "$as_me:$LINENO: result: yes" >&5 | |
25578 | echo "${ECHO_T}yes" >&6 | |
25579 | X_LIBS="$X_LIBS -R $x_libraries" | |
25580 | else | |
25581 | echo "$as_me:$LINENO: result: neither works" >&5 | |
25582 | echo "${ECHO_T}neither works" >&6 | |
25583 | fi | |
25584 | fi | |
25585 | LIBS=$ac_xsave_LIBS | |
25586 | esac | |
25587 | fi | |
25588 | ||
25589 | # Check for system-dependent libraries X programs must link with. | |
25590 | # Do this before checking for the system-independent R6 libraries | |
25591 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
25592 | ||
25593 | if test "$ISC" = yes; then | |
25594 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
25595 | else | |
25596 | # Martyn Johnson says this is needed for Ultrix, if the X | |
25597 | # libraries were built with DECnet support. And Karl Berry says | |
25598 | # the Alpha needs dnet_stub (dnet does not exist). | |
25599 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
25600 | cat >conftest.$ac_ext <<_ACEOF | |
25601 | /* confdefs.h. */ | |
25602 | _ACEOF | |
25603 | cat confdefs.h >>conftest.$ac_ext | |
25604 | cat >>conftest.$ac_ext <<_ACEOF | |
25605 | /* end confdefs.h. */ | |
25606 | ||
25607 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25608 | #ifdef __cplusplus | |
25609 | extern "C" | |
25610 | #endif | |
25611 | /* We use char because int might match the return type of a gcc2 | |
25612 | builtin and then its argument prototype would still apply. */ | |
25613 | char XOpenDisplay (); | |
25614 | int | |
25615 | main () | |
25616 | { | |
25617 | XOpenDisplay (); | |
25618 | ; | |
25619 | return 0; | |
25620 | } | |
25621 | _ACEOF | |
25622 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25623 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25624 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25625 | ac_status=$? |
ac1cb8d3 VS |
25626 | grep -v '^ *+' conftest.er1 >conftest.err |
25627 | rm -f conftest.er1 | |
25628 | cat conftest.err >&5 | |
a848cd7e SC |
25629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25630 | (exit $ac_status); } && | |
89be85c2 VS |
25631 | { ac_try='test -z "$ac_c_werror_flag" |
25632 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25634 | (eval $ac_try) 2>&5 | |
25635 | ac_status=$? | |
25636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25637 | (exit $ac_status); }; } && | |
25638 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25640 | (eval $ac_try) 2>&5 | |
25641 | ac_status=$? | |
25642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25643 | (exit $ac_status); }; }; then | |
25644 | : | |
25645 | else | |
25646 | echo "$as_me: failed program was:" >&5 | |
25647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25648 | ||
25649 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
25650 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
25651 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
25652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25653 | else | |
25654 | ac_check_lib_save_LIBS=$LIBS | |
25655 | LIBS="-ldnet $LIBS" | |
25656 | cat >conftest.$ac_ext <<_ACEOF | |
25657 | /* confdefs.h. */ | |
25658 | _ACEOF | |
25659 | cat confdefs.h >>conftest.$ac_ext | |
25660 | cat >>conftest.$ac_ext <<_ACEOF | |
25661 | /* end confdefs.h. */ | |
25662 | ||
25663 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25664 | #ifdef __cplusplus | |
25665 | extern "C" | |
25666 | #endif | |
25667 | /* We use char because int might match the return type of a gcc2 | |
25668 | builtin and then its argument prototype would still apply. */ | |
25669 | char dnet_ntoa (); | |
25670 | int | |
25671 | main () | |
25672 | { | |
25673 | dnet_ntoa (); | |
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); } && | |
89be85c2 VS |
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 | ac_cv_lib_dnet_dnet_ntoa=yes | |
25701 | else | |
25702 | echo "$as_me: failed program was:" >&5 | |
25703 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25704 | ||
25705 | ac_cv_lib_dnet_dnet_ntoa=no | |
25706 | fi | |
ac1cb8d3 VS |
25707 | rm -f conftest.err conftest.$ac_objext \ |
25708 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25709 | LIBS=$ac_check_lib_save_LIBS |
25710 | fi | |
25711 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
25712 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
25713 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
25714 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
25715 | fi | |
25716 | ||
25717 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
25718 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
25719 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
25720 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
25721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25722 | else | |
25723 | ac_check_lib_save_LIBS=$LIBS | |
25724 | LIBS="-ldnet_stub $LIBS" | |
25725 | cat >conftest.$ac_ext <<_ACEOF | |
25726 | /* confdefs.h. */ | |
25727 | _ACEOF | |
25728 | cat confdefs.h >>conftest.$ac_ext | |
25729 | cat >>conftest.$ac_ext <<_ACEOF | |
25730 | /* end confdefs.h. */ | |
25731 | ||
25732 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25733 | #ifdef __cplusplus | |
25734 | extern "C" | |
25735 | #endif | |
25736 | /* We use char because int might match the return type of a gcc2 | |
25737 | builtin and then its argument prototype would still apply. */ | |
25738 | char dnet_ntoa (); | |
25739 | int | |
25740 | main () | |
25741 | { | |
25742 | dnet_ntoa (); | |
25743 | ; | |
25744 | return 0; | |
25745 | } | |
25746 | _ACEOF | |
25747 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25748 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25749 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25750 | ac_status=$? |
ac1cb8d3 VS |
25751 | grep -v '^ *+' conftest.er1 >conftest.err |
25752 | rm -f conftest.er1 | |
25753 | cat conftest.err >&5 | |
a848cd7e SC |
25754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25755 | (exit $ac_status); } && | |
89be85c2 VS |
25756 | { ac_try='test -z "$ac_c_werror_flag" |
25757 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25759 | (eval $ac_try) 2>&5 | |
25760 | ac_status=$? | |
25761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25762 | (exit $ac_status); }; } && | |
25763 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25765 | (eval $ac_try) 2>&5 | |
25766 | ac_status=$? | |
25767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25768 | (exit $ac_status); }; }; then | |
25769 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
25770 | else | |
25771 | echo "$as_me: failed program was:" >&5 | |
25772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25773 | ||
25774 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
25775 | fi | |
ac1cb8d3 VS |
25776 | rm -f conftest.err conftest.$ac_objext \ |
25777 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25778 | LIBS=$ac_check_lib_save_LIBS |
25779 | fi | |
25780 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
25781 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
25782 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
25783 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
25784 | fi | |
25785 | ||
25786 | fi | |
25787 | fi | |
ac1cb8d3 VS |
25788 | rm -f conftest.err conftest.$ac_objext \ |
25789 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25790 | LIBS="$ac_xsave_LIBS" |
25791 | ||
25792 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
25793 | # to get the SysV transport functions. | |
25794 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
25795 | # needs -lnsl. | |
25796 | # The nsl library prevents programs from opening the X display | |
25797 | # on Irix 5.2, according to T.E. Dickey. | |
25798 | # The functions gethostbyname, getservbyname, and inet_addr are | |
25799 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
25800 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
25801 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
25802 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
25803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25804 | else | |
25805 | cat >conftest.$ac_ext <<_ACEOF | |
25806 | /* confdefs.h. */ | |
25807 | _ACEOF | |
25808 | cat confdefs.h >>conftest.$ac_ext | |
25809 | cat >>conftest.$ac_ext <<_ACEOF | |
25810 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25811 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
25812 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25813 | #define gethostbyname innocuous_gethostbyname | |
25814 | ||
a848cd7e SC |
25815 | /* System header to define __stub macros and hopefully few prototypes, |
25816 | which can conflict with char gethostbyname (); below. | |
25817 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25818 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25819 | |
a848cd7e SC |
25820 | #ifdef __STDC__ |
25821 | # include <limits.h> | |
25822 | #else | |
25823 | # include <assert.h> | |
25824 | #endif | |
ac1cb8d3 VS |
25825 | |
25826 | #undef gethostbyname | |
25827 | ||
a848cd7e SC |
25828 | /* Override any gcc2 internal prototype to avoid an error. */ |
25829 | #ifdef __cplusplus | |
25830 | extern "C" | |
25831 | { | |
25832 | #endif | |
25833 | /* We use char because int might match the return type of a gcc2 | |
25834 | builtin and then its argument prototype would still apply. */ | |
25835 | char gethostbyname (); | |
25836 | /* The GNU C library defines this for functions which it implements | |
25837 | to always fail with ENOSYS. Some functions are actually named | |
25838 | something starting with __ and the normal name is an alias. */ | |
25839 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
25840 | choke me | |
25841 | #else | |
25842 | char (*f) () = gethostbyname; | |
25843 | #endif | |
25844 | #ifdef __cplusplus | |
25845 | } | |
25846 | #endif | |
25847 | ||
25848 | int | |
25849 | main () | |
25850 | { | |
25851 | return f != gethostbyname; | |
25852 | ; | |
25853 | return 0; | |
25854 | } | |
25855 | _ACEOF | |
25856 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25857 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25858 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25859 | ac_status=$? |
ac1cb8d3 VS |
25860 | grep -v '^ *+' conftest.er1 >conftest.err |
25861 | rm -f conftest.er1 | |
25862 | cat conftest.err >&5 | |
a848cd7e SC |
25863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25864 | (exit $ac_status); } && | |
89be85c2 VS |
25865 | { ac_try='test -z "$ac_c_werror_flag" |
25866 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25868 | (eval $ac_try) 2>&5 | |
25869 | ac_status=$? | |
25870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25871 | (exit $ac_status); }; } && | |
25872 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25874 | (eval $ac_try) 2>&5 | |
25875 | ac_status=$? | |
25876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25877 | (exit $ac_status); }; }; then | |
25878 | ac_cv_func_gethostbyname=yes | |
25879 | else | |
25880 | echo "$as_me: failed program was:" >&5 | |
25881 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25882 | ||
25883 | ac_cv_func_gethostbyname=no | |
25884 | fi | |
ac1cb8d3 VS |
25885 | rm -f conftest.err conftest.$ac_objext \ |
25886 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25887 | fi |
25888 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
25889 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
25890 | ||
25891 | if test $ac_cv_func_gethostbyname = no; then | |
25892 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
25893 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
25894 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
25895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25896 | else | |
25897 | ac_check_lib_save_LIBS=$LIBS | |
25898 | LIBS="-lnsl $LIBS" | |
25899 | cat >conftest.$ac_ext <<_ACEOF | |
25900 | /* confdefs.h. */ | |
25901 | _ACEOF | |
25902 | cat confdefs.h >>conftest.$ac_ext | |
25903 | cat >>conftest.$ac_ext <<_ACEOF | |
25904 | /* end confdefs.h. */ | |
25905 | ||
25906 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25907 | #ifdef __cplusplus | |
25908 | extern "C" | |
25909 | #endif | |
25910 | /* We use char because int might match the return type of a gcc2 | |
25911 | builtin and then its argument prototype would still apply. */ | |
25912 | char gethostbyname (); | |
25913 | int | |
25914 | main () | |
25915 | { | |
25916 | gethostbyname (); | |
25917 | ; | |
25918 | return 0; | |
25919 | } | |
25920 | _ACEOF | |
25921 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25922 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
25923 | (eval $ac_link) 2>conftest.er1 |
25924 | ac_status=$? | |
25925 | grep -v '^ *+' conftest.er1 >conftest.err | |
25926 | rm -f conftest.er1 | |
25927 | cat conftest.err >&5 | |
25928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25929 | (exit $ac_status); } && | |
89be85c2 VS |
25930 | { ac_try='test -z "$ac_c_werror_flag" |
25931 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25933 | (eval $ac_try) 2>&5 | |
25934 | ac_status=$? | |
25935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25936 | (exit $ac_status); }; } && | |
25937 | { ac_try='test -s conftest$ac_exeext' | |
25938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25939 | (eval $ac_try) 2>&5 | |
25940 | ac_status=$? | |
25941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25942 | (exit $ac_status); }; }; then | |
25943 | ac_cv_lib_nsl_gethostbyname=yes | |
25944 | else | |
25945 | echo "$as_me: failed program was:" >&5 | |
25946 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25947 | ||
25948 | ac_cv_lib_nsl_gethostbyname=no | |
25949 | fi | |
25950 | rm -f conftest.err conftest.$ac_objext \ | |
25951 | conftest$ac_exeext conftest.$ac_ext | |
25952 | LIBS=$ac_check_lib_save_LIBS | |
25953 | fi | |
25954 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
25955 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
25956 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
25957 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
25958 | fi | |
25959 | ||
25960 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
25961 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
25962 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
25963 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
25964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25965 | else | |
25966 | ac_check_lib_save_LIBS=$LIBS | |
25967 | LIBS="-lbsd $LIBS" | |
25968 | cat >conftest.$ac_ext <<_ACEOF | |
25969 | /* confdefs.h. */ | |
25970 | _ACEOF | |
25971 | cat confdefs.h >>conftest.$ac_ext | |
25972 | cat >>conftest.$ac_ext <<_ACEOF | |
25973 | /* end confdefs.h. */ | |
25974 | ||
25975 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25976 | #ifdef __cplusplus | |
25977 | extern "C" | |
25978 | #endif | |
25979 | /* We use char because int might match the return type of a gcc2 | |
25980 | builtin and then its argument prototype would still apply. */ | |
25981 | char gethostbyname (); | |
25982 | int | |
25983 | main () | |
25984 | { | |
25985 | gethostbyname (); | |
25986 | ; | |
25987 | return 0; | |
25988 | } | |
25989 | _ACEOF | |
25990 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25991 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25992 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 25993 | ac_status=$? |
ac1cb8d3 VS |
25994 | grep -v '^ *+' conftest.er1 >conftest.err |
25995 | rm -f conftest.er1 | |
25996 | cat conftest.err >&5 | |
a848cd7e SC |
25997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25998 | (exit $ac_status); } && | |
89be85c2 VS |
25999 | { ac_try='test -z "$ac_c_werror_flag" |
26000 | || test ! -s conftest.err' | |
a848cd7e SC |
26001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26002 | (eval $ac_try) 2>&5 | |
26003 | ac_status=$? | |
26004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
26005 | (exit $ac_status); }; } && |
26006 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26008 | (eval $ac_try) 2>&5 | |
26009 | ac_status=$? | |
26010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26011 | (exit $ac_status); }; }; then | |
26012 | ac_cv_lib_bsd_gethostbyname=yes | |
26013 | else | |
26014 | echo "$as_me: failed program was:" >&5 | |
26015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26016 | ||
26017 | ac_cv_lib_bsd_gethostbyname=no | |
26018 | fi | |
ac1cb8d3 VS |
26019 | rm -f conftest.err conftest.$ac_objext \ |
26020 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26021 | LIBS=$ac_check_lib_save_LIBS |
26022 | fi | |
26023 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
26024 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
26025 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
26026 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
26027 | fi | |
26028 | ||
26029 | fi | |
26030 | fi | |
26031 | ||
26032 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
26033 | # socket/setsockopt and other routines are undefined under SCO ODT | |
26034 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
26035 | # on later versions), says Simon Leinen: it contains gethostby* | |
26036 | # variants that don't use the name server (or something). -lsocket | |
26037 | # must be given before -lnsl if both are needed. We assume that | |
26038 | # if connect needs -lnsl, so does gethostbyname. | |
26039 | echo "$as_me:$LINENO: checking for connect" >&5 | |
26040 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
26041 | if test "${ac_cv_func_connect+set}" = set; then | |
26042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26043 | else | |
26044 | cat >conftest.$ac_ext <<_ACEOF | |
26045 | /* confdefs.h. */ | |
26046 | _ACEOF | |
26047 | cat confdefs.h >>conftest.$ac_ext | |
26048 | cat >>conftest.$ac_ext <<_ACEOF | |
26049 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26050 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
26051 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26052 | #define connect innocuous_connect | |
26053 | ||
a848cd7e SC |
26054 | /* System header to define __stub macros and hopefully few prototypes, |
26055 | which can conflict with char connect (); below. | |
26056 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26057 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26058 | |
a848cd7e SC |
26059 | #ifdef __STDC__ |
26060 | # include <limits.h> | |
26061 | #else | |
26062 | # include <assert.h> | |
26063 | #endif | |
ac1cb8d3 VS |
26064 | |
26065 | #undef connect | |
26066 | ||
a848cd7e SC |
26067 | /* Override any gcc2 internal prototype to avoid an error. */ |
26068 | #ifdef __cplusplus | |
26069 | extern "C" | |
26070 | { | |
26071 | #endif | |
26072 | /* We use char because int might match the return type of a gcc2 | |
26073 | builtin and then its argument prototype would still apply. */ | |
26074 | char connect (); | |
26075 | /* The GNU C library defines this for functions which it implements | |
26076 | to always fail with ENOSYS. Some functions are actually named | |
26077 | something starting with __ and the normal name is an alias. */ | |
26078 | #if defined (__stub_connect) || defined (__stub___connect) | |
26079 | choke me | |
26080 | #else | |
26081 | char (*f) () = connect; | |
26082 | #endif | |
26083 | #ifdef __cplusplus | |
26084 | } | |
26085 | #endif | |
26086 | ||
26087 | int | |
26088 | main () | |
26089 | { | |
26090 | return f != connect; | |
26091 | ; | |
26092 | return 0; | |
26093 | } | |
26094 | _ACEOF | |
26095 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26096 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26097 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26098 | ac_status=$? |
ac1cb8d3 VS |
26099 | grep -v '^ *+' conftest.er1 >conftest.err |
26100 | rm -f conftest.er1 | |
26101 | cat conftest.err >&5 | |
a848cd7e SC |
26102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26103 | (exit $ac_status); } && | |
89be85c2 VS |
26104 | { ac_try='test -z "$ac_c_werror_flag" |
26105 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26107 | (eval $ac_try) 2>&5 | |
26108 | ac_status=$? | |
26109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26110 | (exit $ac_status); }; } && | |
26111 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26113 | (eval $ac_try) 2>&5 | |
26114 | ac_status=$? | |
26115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26116 | (exit $ac_status); }; }; then | |
26117 | ac_cv_func_connect=yes | |
26118 | else | |
26119 | echo "$as_me: failed program was:" >&5 | |
26120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26121 | ||
26122 | ac_cv_func_connect=no | |
26123 | fi | |
ac1cb8d3 VS |
26124 | rm -f conftest.err conftest.$ac_objext \ |
26125 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26126 | fi |
26127 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
26128 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
26129 | ||
26130 | if test $ac_cv_func_connect = no; then | |
26131 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
26132 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
26133 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
26134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26135 | else | |
26136 | ac_check_lib_save_LIBS=$LIBS | |
26137 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
26138 | cat >conftest.$ac_ext <<_ACEOF | |
26139 | /* confdefs.h. */ | |
26140 | _ACEOF | |
26141 | cat confdefs.h >>conftest.$ac_ext | |
26142 | cat >>conftest.$ac_ext <<_ACEOF | |
26143 | /* end confdefs.h. */ | |
26144 | ||
26145 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26146 | #ifdef __cplusplus | |
26147 | extern "C" | |
26148 | #endif | |
26149 | /* We use char because int might match the return type of a gcc2 | |
26150 | builtin and then its argument prototype would still apply. */ | |
26151 | char connect (); | |
26152 | int | |
26153 | main () | |
26154 | { | |
26155 | connect (); | |
26156 | ; | |
26157 | return 0; | |
26158 | } | |
26159 | _ACEOF | |
26160 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26161 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26162 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26163 | ac_status=$? |
ac1cb8d3 VS |
26164 | grep -v '^ *+' conftest.er1 >conftest.err |
26165 | rm -f conftest.er1 | |
26166 | cat conftest.err >&5 | |
a848cd7e SC |
26167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26168 | (exit $ac_status); } && | |
89be85c2 VS |
26169 | { ac_try='test -z "$ac_c_werror_flag" |
26170 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26172 | (eval $ac_try) 2>&5 | |
26173 | ac_status=$? | |
26174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26175 | (exit $ac_status); }; } && | |
26176 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26178 | (eval $ac_try) 2>&5 | |
26179 | ac_status=$? | |
26180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26181 | (exit $ac_status); }; }; then | |
26182 | ac_cv_lib_socket_connect=yes | |
26183 | else | |
26184 | echo "$as_me: failed program was:" >&5 | |
26185 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26186 | ||
26187 | ac_cv_lib_socket_connect=no | |
26188 | fi | |
ac1cb8d3 VS |
26189 | rm -f conftest.err conftest.$ac_objext \ |
26190 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26191 | LIBS=$ac_check_lib_save_LIBS |
26192 | fi | |
26193 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
26194 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
26195 | if test $ac_cv_lib_socket_connect = yes; then | |
26196 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
26197 | fi | |
26198 | ||
26199 | fi | |
26200 | ||
26201 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
26202 | echo "$as_me:$LINENO: checking for remove" >&5 | |
26203 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
26204 | if test "${ac_cv_func_remove+set}" = set; then | |
26205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26206 | else | |
26207 | cat >conftest.$ac_ext <<_ACEOF | |
26208 | /* confdefs.h. */ | |
26209 | _ACEOF | |
26210 | cat confdefs.h >>conftest.$ac_ext | |
26211 | cat >>conftest.$ac_ext <<_ACEOF | |
26212 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26213 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
26214 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26215 | #define remove innocuous_remove | |
26216 | ||
a848cd7e SC |
26217 | /* System header to define __stub macros and hopefully few prototypes, |
26218 | which can conflict with char remove (); below. | |
26219 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26220 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26221 | |
a848cd7e SC |
26222 | #ifdef __STDC__ |
26223 | # include <limits.h> | |
26224 | #else | |
26225 | # include <assert.h> | |
26226 | #endif | |
ac1cb8d3 VS |
26227 | |
26228 | #undef remove | |
26229 | ||
a848cd7e SC |
26230 | /* Override any gcc2 internal prototype to avoid an error. */ |
26231 | #ifdef __cplusplus | |
26232 | extern "C" | |
26233 | { | |
26234 | #endif | |
26235 | /* We use char because int might match the return type of a gcc2 | |
26236 | builtin and then its argument prototype would still apply. */ | |
26237 | char remove (); | |
26238 | /* The GNU C library defines this for functions which it implements | |
26239 | to always fail with ENOSYS. Some functions are actually named | |
26240 | something starting with __ and the normal name is an alias. */ | |
26241 | #if defined (__stub_remove) || defined (__stub___remove) | |
26242 | choke me | |
26243 | #else | |
26244 | char (*f) () = remove; | |
26245 | #endif | |
26246 | #ifdef __cplusplus | |
26247 | } | |
26248 | #endif | |
26249 | ||
26250 | int | |
26251 | main () | |
26252 | { | |
26253 | return f != remove; | |
26254 | ; | |
26255 | return 0; | |
26256 | } | |
26257 | _ACEOF | |
26258 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26259 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26260 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26261 | ac_status=$? |
ac1cb8d3 VS |
26262 | grep -v '^ *+' conftest.er1 >conftest.err |
26263 | rm -f conftest.er1 | |
26264 | cat conftest.err >&5 | |
a848cd7e SC |
26265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26266 | (exit $ac_status); } && | |
89be85c2 VS |
26267 | { ac_try='test -z "$ac_c_werror_flag" |
26268 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26270 | (eval $ac_try) 2>&5 | |
26271 | ac_status=$? | |
26272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26273 | (exit $ac_status); }; } && | |
26274 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26276 | (eval $ac_try) 2>&5 | |
26277 | ac_status=$? | |
26278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26279 | (exit $ac_status); }; }; then | |
26280 | ac_cv_func_remove=yes | |
26281 | else | |
26282 | echo "$as_me: failed program was:" >&5 | |
26283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26284 | ||
26285 | ac_cv_func_remove=no | |
26286 | fi | |
ac1cb8d3 VS |
26287 | rm -f conftest.err conftest.$ac_objext \ |
26288 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26289 | fi |
26290 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
26291 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
26292 | ||
26293 | if test $ac_cv_func_remove = no; then | |
26294 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
26295 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
26296 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
26297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26298 | else | |
26299 | ac_check_lib_save_LIBS=$LIBS | |
26300 | LIBS="-lposix $LIBS" | |
26301 | cat >conftest.$ac_ext <<_ACEOF | |
26302 | /* confdefs.h. */ | |
26303 | _ACEOF | |
26304 | cat confdefs.h >>conftest.$ac_ext | |
26305 | cat >>conftest.$ac_ext <<_ACEOF | |
26306 | /* end confdefs.h. */ | |
26307 | ||
26308 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26309 | #ifdef __cplusplus | |
26310 | extern "C" | |
26311 | #endif | |
26312 | /* We use char because int might match the return type of a gcc2 | |
26313 | builtin and then its argument prototype would still apply. */ | |
26314 | char remove (); | |
26315 | int | |
26316 | main () | |
26317 | { | |
26318 | remove (); | |
26319 | ; | |
26320 | return 0; | |
26321 | } | |
26322 | _ACEOF | |
26323 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26324 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26325 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26326 | ac_status=$? |
ac1cb8d3 VS |
26327 | grep -v '^ *+' conftest.er1 >conftest.err |
26328 | rm -f conftest.er1 | |
26329 | cat conftest.err >&5 | |
a848cd7e SC |
26330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26331 | (exit $ac_status); } && | |
89be85c2 VS |
26332 | { ac_try='test -z "$ac_c_werror_flag" |
26333 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26335 | (eval $ac_try) 2>&5 | |
26336 | ac_status=$? | |
26337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26338 | (exit $ac_status); }; } && | |
26339 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26341 | (eval $ac_try) 2>&5 | |
26342 | ac_status=$? | |
26343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26344 | (exit $ac_status); }; }; then | |
26345 | ac_cv_lib_posix_remove=yes | |
26346 | else | |
26347 | echo "$as_me: failed program was:" >&5 | |
26348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26349 | ||
26350 | ac_cv_lib_posix_remove=no | |
26351 | fi | |
ac1cb8d3 VS |
26352 | rm -f conftest.err conftest.$ac_objext \ |
26353 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26354 | LIBS=$ac_check_lib_save_LIBS |
26355 | fi | |
26356 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
26357 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
26358 | if test $ac_cv_lib_posix_remove = yes; then | |
26359 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
26360 | fi | |
26361 | ||
26362 | fi | |
26363 | ||
26364 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
26365 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
26366 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
26367 | if test "${ac_cv_func_shmat+set}" = set; then | |
26368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26369 | else | |
26370 | cat >conftest.$ac_ext <<_ACEOF | |
26371 | /* confdefs.h. */ | |
26372 | _ACEOF | |
26373 | cat confdefs.h >>conftest.$ac_ext | |
26374 | cat >>conftest.$ac_ext <<_ACEOF | |
26375 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26376 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
26377 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26378 | #define shmat innocuous_shmat | |
26379 | ||
a848cd7e SC |
26380 | /* System header to define __stub macros and hopefully few prototypes, |
26381 | which can conflict with char shmat (); below. | |
26382 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26383 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26384 | |
a848cd7e SC |
26385 | #ifdef __STDC__ |
26386 | # include <limits.h> | |
26387 | #else | |
26388 | # include <assert.h> | |
26389 | #endif | |
ac1cb8d3 VS |
26390 | |
26391 | #undef shmat | |
26392 | ||
a848cd7e SC |
26393 | /* Override any gcc2 internal prototype to avoid an error. */ |
26394 | #ifdef __cplusplus | |
26395 | extern "C" | |
26396 | { | |
26397 | #endif | |
26398 | /* We use char because int might match the return type of a gcc2 | |
26399 | builtin and then its argument prototype would still apply. */ | |
26400 | char shmat (); | |
26401 | /* The GNU C library defines this for functions which it implements | |
26402 | to always fail with ENOSYS. Some functions are actually named | |
26403 | something starting with __ and the normal name is an alias. */ | |
26404 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
26405 | choke me | |
26406 | #else | |
26407 | char (*f) () = shmat; | |
26408 | #endif | |
26409 | #ifdef __cplusplus | |
26410 | } | |
26411 | #endif | |
26412 | ||
26413 | int | |
26414 | main () | |
26415 | { | |
26416 | return f != shmat; | |
26417 | ; | |
26418 | return 0; | |
26419 | } | |
26420 | _ACEOF | |
26421 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26422 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26423 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26424 | ac_status=$? |
ac1cb8d3 VS |
26425 | grep -v '^ *+' conftest.er1 >conftest.err |
26426 | rm -f conftest.er1 | |
26427 | cat conftest.err >&5 | |
a848cd7e SC |
26428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26429 | (exit $ac_status); } && | |
89be85c2 VS |
26430 | { ac_try='test -z "$ac_c_werror_flag" |
26431 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26433 | (eval $ac_try) 2>&5 | |
26434 | ac_status=$? | |
26435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26436 | (exit $ac_status); }; } && | |
26437 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26439 | (eval $ac_try) 2>&5 | |
26440 | ac_status=$? | |
26441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26442 | (exit $ac_status); }; }; then | |
26443 | ac_cv_func_shmat=yes | |
26444 | else | |
26445 | echo "$as_me: failed program was:" >&5 | |
26446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26447 | ||
26448 | ac_cv_func_shmat=no | |
26449 | fi | |
ac1cb8d3 VS |
26450 | rm -f conftest.err conftest.$ac_objext \ |
26451 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26452 | fi |
26453 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
26454 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
26455 | ||
26456 | if test $ac_cv_func_shmat = no; then | |
26457 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
26458 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
26459 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
26460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26461 | else | |
26462 | ac_check_lib_save_LIBS=$LIBS | |
26463 | LIBS="-lipc $LIBS" | |
26464 | cat >conftest.$ac_ext <<_ACEOF | |
26465 | /* confdefs.h. */ | |
26466 | _ACEOF | |
26467 | cat confdefs.h >>conftest.$ac_ext | |
26468 | cat >>conftest.$ac_ext <<_ACEOF | |
26469 | /* end confdefs.h. */ | |
26470 | ||
26471 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26472 | #ifdef __cplusplus | |
26473 | extern "C" | |
26474 | #endif | |
26475 | /* We use char because int might match the return type of a gcc2 | |
26476 | builtin and then its argument prototype would still apply. */ | |
26477 | char shmat (); | |
26478 | int | |
26479 | main () | |
26480 | { | |
26481 | shmat (); | |
26482 | ; | |
26483 | return 0; | |
26484 | } | |
26485 | _ACEOF | |
26486 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26487 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26488 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26489 | ac_status=$? |
ac1cb8d3 VS |
26490 | grep -v '^ *+' conftest.er1 >conftest.err |
26491 | rm -f conftest.er1 | |
26492 | cat conftest.err >&5 | |
a848cd7e SC |
26493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26494 | (exit $ac_status); } && | |
89be85c2 VS |
26495 | { ac_try='test -z "$ac_c_werror_flag" |
26496 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26498 | (eval $ac_try) 2>&5 | |
26499 | ac_status=$? | |
26500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26501 | (exit $ac_status); }; } && | |
26502 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26504 | (eval $ac_try) 2>&5 | |
26505 | ac_status=$? | |
26506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26507 | (exit $ac_status); }; }; then | |
26508 | ac_cv_lib_ipc_shmat=yes | |
26509 | else | |
26510 | echo "$as_me: failed program was:" >&5 | |
26511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26512 | ||
26513 | ac_cv_lib_ipc_shmat=no | |
26514 | fi | |
ac1cb8d3 VS |
26515 | rm -f conftest.err conftest.$ac_objext \ |
26516 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26517 | LIBS=$ac_check_lib_save_LIBS |
26518 | fi | |
26519 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
26520 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
26521 | if test $ac_cv_lib_ipc_shmat = yes; then | |
26522 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
26523 | fi | |
26524 | ||
26525 | fi | |
26526 | fi | |
26527 | ||
26528 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
26529 | ac_save_LDFLAGS=$LDFLAGS | |
26530 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
26531 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
26532 | # check for ICE first), but we must link in the order -lSM -lICE or | |
26533 | # we get undefined symbols. So assume we have SM if we have ICE. | |
26534 | # These have to be linked with before -lX11, unlike the other | |
26535 | # libraries we check for below, so use a different variable. | |
26536 | # John Interrante, Karl Berry | |
26537 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
26538 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
26539 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
26540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26541 | else | |
26542 | ac_check_lib_save_LIBS=$LIBS | |
26543 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
26544 | cat >conftest.$ac_ext <<_ACEOF | |
26545 | /* confdefs.h. */ | |
26546 | _ACEOF | |
26547 | cat confdefs.h >>conftest.$ac_ext | |
26548 | cat >>conftest.$ac_ext <<_ACEOF | |
26549 | /* end confdefs.h. */ | |
26550 | ||
26551 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26552 | #ifdef __cplusplus | |
26553 | extern "C" | |
26554 | #endif | |
26555 | /* We use char because int might match the return type of a gcc2 | |
26556 | builtin and then its argument prototype would still apply. */ | |
26557 | char IceConnectionNumber (); | |
26558 | int | |
26559 | main () | |
26560 | { | |
26561 | IceConnectionNumber (); | |
26562 | ; | |
26563 | return 0; | |
26564 | } | |
26565 | _ACEOF | |
26566 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26567 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26568 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26569 | ac_status=$? |
ac1cb8d3 VS |
26570 | grep -v '^ *+' conftest.er1 >conftest.err |
26571 | rm -f conftest.er1 | |
26572 | cat conftest.err >&5 | |
a848cd7e SC |
26573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26574 | (exit $ac_status); } && | |
89be85c2 VS |
26575 | { ac_try='test -z "$ac_c_werror_flag" |
26576 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26578 | (eval $ac_try) 2>&5 | |
26579 | ac_status=$? | |
26580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26581 | (exit $ac_status); }; } && | |
26582 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26584 | (eval $ac_try) 2>&5 | |
26585 | ac_status=$? | |
26586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26587 | (exit $ac_status); }; }; then | |
26588 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
26589 | else | |
26590 | echo "$as_me: failed program was:" >&5 | |
26591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26592 | ||
26593 | ac_cv_lib_ICE_IceConnectionNumber=no | |
26594 | fi | |
ac1cb8d3 VS |
26595 | rm -f conftest.err conftest.$ac_objext \ |
26596 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26597 | LIBS=$ac_check_lib_save_LIBS |
26598 | fi | |
26599 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
26600 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
26601 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
26602 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
26603 | fi | |
26604 | ||
26605 | LDFLAGS=$ac_save_LDFLAGS | |
26606 | ||
26607 | fi | |
26608 | ||
26609 | ||
26610 | if test "$no_x" = "yes"; then | |
26611 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 | |
26612 | echo "$as_me: error: X11 not found" >&2;} | |
26613 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
26614 | fi | |
26615 | ||
74b84332 VS |
26616 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
26617 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
26618 | AFMINSTALL=afminstall |
26619 | COMPILED_X_PROGRAM=0 | |
26620 | ||
74b84332 VS |
26621 | fi |
26622 | ||
26623 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
26624 | if test "$wxUSE_NANOX" = "yes"; then |
26625 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
26626 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
26627 | if test "x$MICROWIN" = x ; then | |
26628 | echo "$as_me:$LINENO: result: not found" >&5 | |
26629 | echo "${ECHO_T}not found" >&6 | |
26630 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
26631 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
26632 | { (exit 1); exit 1; }; } | |
26633 | else | |
26634 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
26635 | echo "${ECHO_T}$MICROWIN" >&6 | |
26636 | cat >>confdefs.h <<\_ACEOF | |
26637 | #define wxUSE_NANOX 1 | |
26638 | _ACEOF | |
26639 | ||
26640 | fi | |
26641 | fi | |
26642 | ||
26643 | if test "$wxUSE_UNICODE" = "yes"; then | |
26644 | ||
26645 | succeeded=no | |
26646 | ||
26647 | if test -z "$PKG_CONFIG"; then | |
26648 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
26649 | set dummy pkg-config; ac_word=$2 | |
26650 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26651 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26652 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
26653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26654 | else | |
26655 | case $PKG_CONFIG in | |
26656 | [\\/]* | ?:[\\/]*) | |
26657 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
26658 | ;; | |
26659 | *) | |
26660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26661 | for as_dir in $PATH | |
26662 | do | |
26663 | IFS=$as_save_IFS | |
26664 | test -z "$as_dir" && as_dir=. | |
26665 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26666 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26667 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26668 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26669 | break 2 | |
26670 | fi | |
26671 | done | |
26672 | done | |
26673 | ||
26674 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
26675 | ;; | |
26676 | esac | |
26677 | fi | |
26678 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
26679 | ||
26680 | if test -n "$PKG_CONFIG"; then | |
26681 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
26682 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
26683 | else | |
26684 | echo "$as_me:$LINENO: result: no" >&5 | |
26685 | echo "${ECHO_T}no" >&6 | |
26686 | fi | |
26687 | ||
26688 | fi | |
26689 | ||
26690 | if test "$PKG_CONFIG" = "no" ; then | |
26691 | echo "*** The pkg-config script could not be found. Make sure it is" | |
26692 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
26693 | echo "*** to the full path to pkg-config." | |
26694 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
26695 | else | |
26696 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
26697 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
26698 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
26699 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
26700 | ||
26701 | if $PKG_CONFIG --exists "pangox" ; then | |
26702 | echo "$as_me:$LINENO: result: yes" >&5 | |
26703 | echo "${ECHO_T}yes" >&6 | |
26704 | succeeded=yes | |
26705 | ||
26706 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
26707 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
26708 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
26709 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
26710 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
26711 | ||
26712 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
26713 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
26714 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
26715 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
26716 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
26717 | else | |
26718 | PANGOX_CFLAGS="" | |
26719 | PANGOX_LIBS="" | |
26720 | ## If we have a custom action on failure, don't print errors, but | |
26721 | ## do set a variable so people can do so. | |
26722 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
26723 | ||
26724 | fi | |
26725 | ||
26726 | ||
26727 | ||
26728 | else | |
26729 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
26730 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
26731 | fi | |
26732 | fi | |
26733 | ||
26734 | if test $succeeded = yes; then | |
26735 | ||
26736 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
26737 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
26738 | ||
26739 | else | |
26740 | ||
26741 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
26742 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
26743 | { (exit 1); exit 1; }; } | |
26744 | ||
26745 | ||
26746 | fi | |
26747 | ||
26748 | ||
26749 | succeeded=no | |
26750 | ||
26751 | if test -z "$PKG_CONFIG"; then | |
26752 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
26753 | set dummy pkg-config; ac_word=$2 | |
26754 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26755 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26756 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
26757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26758 | else | |
26759 | case $PKG_CONFIG in | |
26760 | [\\/]* | ?:[\\/]*) | |
26761 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
26762 | ;; | |
26763 | *) | |
26764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26765 | for as_dir in $PATH | |
26766 | do | |
26767 | IFS=$as_save_IFS | |
26768 | test -z "$as_dir" && as_dir=. | |
26769 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26770 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26771 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26772 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26773 | break 2 | |
26774 | fi | |
26775 | done | |
26776 | done | |
26777 | ||
26778 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
26779 | ;; | |
26780 | esac | |
26781 | fi | |
26782 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
26783 | ||
26784 | if test -n "$PKG_CONFIG"; then | |
26785 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
26786 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
26787 | else | |
26788 | echo "$as_me:$LINENO: result: no" >&5 | |
26789 | echo "${ECHO_T}no" >&6 | |
26790 | fi | |
26791 | ||
26792 | fi | |
26793 | ||
26794 | if test "$PKG_CONFIG" = "no" ; then | |
26795 | echo "*** The pkg-config script could not be found. Make sure it is" | |
26796 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
26797 | echo "*** to the full path to pkg-config." | |
26798 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
26799 | else | |
26800 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
26801 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
26802 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
26803 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
26804 | ||
26805 | if $PKG_CONFIG --exists "pangoft2" ; then | |
26806 | echo "$as_me:$LINENO: result: yes" >&5 | |
26807 | echo "${ECHO_T}yes" >&6 | |
26808 | succeeded=yes | |
26809 | ||
26810 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
26811 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
26812 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
26813 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
26814 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
26815 | ||
26816 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
26817 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
26818 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
26819 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
26820 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
26821 | else | |
26822 | PANGOFT2_CFLAGS="" | |
26823 | PANGOFT2_LIBS="" | |
26824 | ## If we have a custom action on failure, don't print errors, but | |
26825 | ## do set a variable so people can do so. | |
26826 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
26827 | ||
26828 | fi | |
26829 | ||
26830 | ||
26831 | ||
26832 | else | |
26833 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
26834 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
26835 | fi | |
26836 | fi | |
26837 | ||
26838 | if test $succeeded = yes; then | |
26839 | ||
26840 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
26841 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
26842 | ||
26843 | else | |
26844 | ||
26845 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
26846 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
26847 | wxUSE_PRINTING_ARCHITECTURE="no" | |
26848 | ||
26849 | ||
26850 | fi | |
26851 | ||
26852 | ||
26853 | succeeded=no | |
26854 | ||
26855 | if test -z "$PKG_CONFIG"; then | |
26856 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
26857 | set dummy pkg-config; ac_word=$2 | |
26858 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26859 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26860 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
26861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26862 | else | |
26863 | case $PKG_CONFIG in | |
26864 | [\\/]* | ?:[\\/]*) | |
26865 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
26866 | ;; | |
26867 | *) | |
26868 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26869 | for as_dir in $PATH | |
26870 | do | |
26871 | IFS=$as_save_IFS | |
26872 | test -z "$as_dir" && as_dir=. | |
26873 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26874 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26875 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26876 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26877 | break 2 | |
26878 | fi | |
26879 | done | |
26880 | done | |
26881 | ||
26882 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
26883 | ;; | |
26884 | esac | |
26885 | fi | |
26886 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
26887 | ||
26888 | if test -n "$PKG_CONFIG"; then | |
26889 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
26890 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
26891 | else | |
26892 | echo "$as_me:$LINENO: result: no" >&5 | |
26893 | echo "${ECHO_T}no" >&6 | |
26894 | fi | |
26895 | ||
26896 | fi | |
26897 | ||
26898 | if test "$PKG_CONFIG" = "no" ; then | |
26899 | echo "*** The pkg-config script could not be found. Make sure it is" | |
26900 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
26901 | echo "*** to the full path to pkg-config." | |
26902 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
26903 | else | |
26904 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
26905 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
26906 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
26907 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
26908 | ||
26909 | if $PKG_CONFIG --exists "pangoxft" ; then | |
26910 | echo "$as_me:$LINENO: result: yes" >&5 | |
26911 | echo "${ECHO_T}yes" >&6 | |
26912 | succeeded=yes | |
26913 | ||
26914 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
26915 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
26916 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
26917 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
26918 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
26919 | ||
26920 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
26921 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
26922 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
26923 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
26924 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
26925 | else | |
26926 | PANGOXFT_CFLAGS="" | |
26927 | PANGOXFT_LIBS="" | |
26928 | ## If we have a custom action on failure, don't print errors, but | |
26929 | ## do set a variable so people can do so. | |
26930 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
26931 | ||
26932 | fi | |
26933 | ||
26934 | ||
26935 | ||
26936 | else | |
26937 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
26938 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
26939 | fi | |
26940 | fi | |
26941 | ||
26942 | if test $succeeded = yes; then | |
26943 | ||
4ae1af05 MB |
26944 | cat >>confdefs.h <<\_ACEOF |
26945 | #define HAVE_PANGO_XFT 1 | |
26946 | _ACEOF | |
26947 | ||
a848cd7e SC |
26948 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
26949 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
26950 | ||
26951 | else | |
26952 | ||
26953 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
26954 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
26955 | ||
26956 | ||
26957 | fi | |
26958 | ||
304205f1 VS |
26959 | save_CFLAGS="$CFLAGS" |
26960 | save_LIBS="$LIBS" | |
26961 | CFLAGS="$CFLAGS $PANGOX_CFLAGS" | |
26962 | LIBS="$LIBS $PANGOX_LIBS" | |
26963 | ||
26964 | for ac_func in pango_font_family_is_monospace | |
26965 | do | |
26966 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
26967 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26968 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26969 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26971 | else | |
26972 | cat >conftest.$ac_ext <<_ACEOF | |
26973 | /* confdefs.h. */ | |
26974 | _ACEOF | |
26975 | cat confdefs.h >>conftest.$ac_ext | |
26976 | cat >>conftest.$ac_ext <<_ACEOF | |
26977 | /* end confdefs.h. */ | |
26978 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
26979 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26980 | #define $ac_func innocuous_$ac_func | |
26981 | ||
26982 | /* System header to define __stub macros and hopefully few prototypes, | |
26983 | which can conflict with char $ac_func (); below. | |
26984 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26985 | <limits.h> exists even on freestanding compilers. */ | |
26986 | ||
26987 | #ifdef __STDC__ | |
26988 | # include <limits.h> | |
26989 | #else | |
26990 | # include <assert.h> | |
26991 | #endif | |
26992 | ||
26993 | #undef $ac_func | |
26994 | ||
26995 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26996 | #ifdef __cplusplus | |
26997 | extern "C" | |
26998 | { | |
26999 | #endif | |
27000 | /* We use char because int might match the return type of a gcc2 | |
27001 | builtin and then its argument prototype would still apply. */ | |
27002 | char $ac_func (); | |
27003 | /* The GNU C library defines this for functions which it implements | |
27004 | to always fail with ENOSYS. Some functions are actually named | |
27005 | something starting with __ and the normal name is an alias. */ | |
27006 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27007 | choke me | |
27008 | #else | |
27009 | char (*f) () = $ac_func; | |
27010 | #endif | |
27011 | #ifdef __cplusplus | |
27012 | } | |
27013 | #endif | |
27014 | ||
27015 | int | |
27016 | main () | |
27017 | { | |
27018 | return f != $ac_func; | |
27019 | ; | |
27020 | return 0; | |
27021 | } | |
27022 | _ACEOF | |
27023 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27024 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27025 | (eval $ac_link) 2>conftest.er1 | |
27026 | ac_status=$? | |
27027 | grep -v '^ *+' conftest.er1 >conftest.err | |
27028 | rm -f conftest.er1 | |
27029 | cat conftest.err >&5 | |
27030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27031 | (exit $ac_status); } && | |
89be85c2 VS |
27032 | { ac_try='test -z "$ac_c_werror_flag" |
27033 | || test ! -s conftest.err' | |
304205f1 VS |
27034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27035 | (eval $ac_try) 2>&5 | |
27036 | ac_status=$? | |
27037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27038 | (exit $ac_status); }; } && | |
27039 | { ac_try='test -s conftest$ac_exeext' | |
27040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27041 | (eval $ac_try) 2>&5 | |
27042 | ac_status=$? | |
27043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27044 | (exit $ac_status); }; }; then | |
27045 | eval "$as_ac_var=yes" | |
27046 | else | |
27047 | echo "$as_me: failed program was:" >&5 | |
27048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27049 | ||
27050 | eval "$as_ac_var=no" | |
27051 | fi | |
27052 | rm -f conftest.err conftest.$ac_objext \ | |
27053 | conftest$ac_exeext conftest.$ac_ext | |
27054 | fi | |
27055 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27056 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27057 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27058 | cat >>confdefs.h <<_ACEOF | |
27059 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27060 | _ACEOF | |
27061 | ||
27062 | fi | |
27063 | done | |
27064 | ||
27065 | CFLAGS="$save_CFLAGS" | |
27066 | LIBS="$save_LIBS" | |
a848cd7e SC |
27067 | fi |
27068 | ||
27069 | wxUSE_UNIVERSAL="yes" | |
27070 | ||
27071 | if test "$wxUSE_NANOX" = "yes"; then | |
27072 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
27073 | 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" | |
27074 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
27075 | else | |
27076 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
27077 | fi | |
27078 | ||
a848cd7e SC |
27079 | TOOLKIT=X11 |
27080 | GUIDIST=X11_DIST | |
27081 | fi | |
27082 | ||
27083 | if test "$wxUSE_MOTIF" = 1; then | |
74b84332 VS |
27084 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
27085 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 27086 | |
74b84332 VS |
27087 | ac_find_includes= |
27088 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
27089 | do | |
27090 | if test -f "$ac_dir/Xm/Xm.h"; then | |
27091 | ac_find_includes=$ac_dir | |
27092 | break | |
27093 | fi | |
27094 | done | |
a848cd7e | 27095 | |
74b84332 VS |
27096 | if test "$ac_find_includes" != "" ; then |
27097 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
27098 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
27099 | ||
27100 | if test "x$ac_find_includes" = "x/usr/include"; then | |
27101 | ac_path_to_include="" | |
27102 | else | |
27103 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
27104 | result=$? | |
27105 | if test $result = 0; then | |
27106 | ac_path_to_include="" | |
27107 | else | |
27108 | ac_path_to_include=" -I$ac_find_includes" | |
27109 | fi | |
a848cd7e SC |
27110 | fi |
27111 | ||
74b84332 VS |
27112 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
27113 | else | |
27114 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
27115 | /* confdefs.h. */ |
27116 | _ACEOF | |
27117 | cat confdefs.h >>conftest.$ac_ext | |
27118 | cat >>conftest.$ac_ext <<_ACEOF | |
27119 | /* end confdefs.h. */ | |
27120 | ||
74b84332 VS |
27121 | #include <Xm/Xm.h> |
27122 | ||
a848cd7e SC |
27123 | int |
27124 | main () | |
27125 | { | |
27126 | ||
74b84332 VS |
27127 | int version; |
27128 | version = xmUseVersion; | |
27129 | ||
a848cd7e SC |
27130 | ; |
27131 | return 0; | |
27132 | } | |
27133 | _ACEOF | |
74b84332 VS |
27134 | rm -f conftest.$ac_objext |
27135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27136 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 27137 | ac_status=$? |
ac1cb8d3 VS |
27138 | grep -v '^ *+' conftest.er1 >conftest.err |
27139 | rm -f conftest.er1 | |
27140 | cat conftest.err >&5 | |
a848cd7e SC |
27141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27142 | (exit $ac_status); } && | |
89be85c2 VS |
27143 | { ac_try='test -z "$ac_c_werror_flag" |
27144 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27146 | (eval $ac_try) 2>&5 | |
27147 | ac_status=$? | |
27148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27149 | (exit $ac_status); }; } && | |
74b84332 | 27150 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
27151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27152 | (eval $ac_try) 2>&5 | |
27153 | ac_status=$? | |
27154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27155 | (exit $ac_status); }; }; then | |
74b84332 VS |
27156 | |
27157 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
27158 | echo "${ECHO_T}found in default search path" >&6 | |
27159 | COMPILED_X_PROGRAM=1 | |
27160 | ||
a848cd7e SC |
27161 | else |
27162 | echo "$as_me: failed program was:" >&5 | |
27163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27164 | ||
a848cd7e | 27165 | |
74b84332 VS |
27166 | echo "$as_me:$LINENO: result: no" >&5 |
27167 | echo "${ECHO_T}no" >&6 | |
27168 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
27169 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
27170 | { (exit 1); exit 1; }; } | |
a848cd7e | 27171 | |
a848cd7e | 27172 | |
a848cd7e | 27173 | fi |
74b84332 VS |
27174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
27175 | fi | |
27176 | ||
27177 | if test "$COMPILED_X_PROGRAM" = 0; then | |
27178 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
27179 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
27180 | ||
27181 | ac_find_libraries= | |
27182 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27183 | do | |
27184 | for ac_extension in a so sl dylib; do | |
27185 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
27186 | ac_find_libraries=$ac_dir | |
27187 | break 2 | |
a848cd7e | 27188 | fi |
74b84332 VS |
27189 | done |
27190 | done | |
a848cd7e | 27191 | |
74b84332 VS |
27192 | if test "$ac_find_libraries" != "" ; then |
27193 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
27194 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
a848cd7e | 27195 | |
74b84332 VS |
27196 | |
27197 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
27198 | result=$? | |
27199 | if test $result = 0; then | |
27200 | ac_path_to_link="" | |
a848cd7e | 27201 | else |
74b84332 VS |
27202 | ac_path_to_link=" -L$ac_find_libraries" |
27203 | fi | |
27204 | ||
27205 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
27206 | else | |
27207 | save_CFLAGS=$CFLAGS | |
27208 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
27209 | ||
27210 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
27211 | /* confdefs.h. */ |
27212 | _ACEOF | |
27213 | cat confdefs.h >>conftest.$ac_ext | |
27214 | cat >>conftest.$ac_ext <<_ACEOF | |
27215 | /* end confdefs.h. */ | |
27216 | ||
74b84332 VS |
27217 | #include <Xm/Xm.h> |
27218 | ||
a848cd7e SC |
27219 | int |
27220 | main () | |
27221 | { | |
74b84332 VS |
27222 | |
27223 | int version; | |
27224 | version = xmUseVersion; | |
27225 | ||
a848cd7e SC |
27226 | ; |
27227 | return 0; | |
27228 | } | |
27229 | _ACEOF | |
74b84332 VS |
27230 | rm -f conftest.$ac_objext |
27231 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27232 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 27233 | ac_status=$? |
ac1cb8d3 VS |
27234 | grep -v '^ *+' conftest.er1 >conftest.err |
27235 | rm -f conftest.er1 | |
27236 | cat conftest.err >&5 | |
a848cd7e SC |
27237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27238 | (exit $ac_status); } && | |
89be85c2 VS |
27239 | { ac_try='test -z "$ac_c_werror_flag" |
27240 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27242 | (eval $ac_try) 2>&5 | |
27243 | ac_status=$? | |
27244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27245 | (exit $ac_status); }; } && | |
74b84332 | 27246 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
27247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27248 | (eval $ac_try) 2>&5 | |
27249 | ac_status=$? | |
27250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27251 | (exit $ac_status); }; }; then | |
74b84332 VS |
27252 | |
27253 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
27254 | echo "${ECHO_T}found in default search path" >&6 | |
27255 | COMPILED_X_PROGRAM=1 | |
27256 | ||
a848cd7e SC |
27257 | else |
27258 | echo "$as_me: failed program was:" >&5 | |
27259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27260 | ||
74b84332 VS |
27261 | |
27262 | echo "$as_me:$LINENO: result: no" >&5 | |
27263 | echo "${ECHO_T}no" >&6 | |
27264 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
27265 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
27266 | { (exit 1); exit 1; }; } | |
27267 | ||
27268 | ||
27269 | fi | |
27270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27271 | ||
27272 | CFLAGS=$save_CFLAGS | |
27273 | fi | |
27274 | fi | |
27275 | ||
27276 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
27277 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
27278 | libp_link="" | |
27279 | libsm_ice_link="" | |
27280 | libs_found=0 | |
27281 | for libp in "" " -lXp"; do | |
27282 | if test "$libs_found" = "0"; then | |
27283 | for libsm_ice in "" " -lSM -lICE"; do | |
27284 | if test "$libs_found" = "0"; then | |
27285 | save_LIBS="$LIBS" | |
27286 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
27287 | save_CFLAGS=$CFLAGS | |
27288 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
27289 | ||
27290 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
27291 | /* confdefs.h. */ |
27292 | _ACEOF | |
27293 | cat confdefs.h >>conftest.$ac_ext | |
27294 | cat >>conftest.$ac_ext <<_ACEOF | |
27295 | /* end confdefs.h. */ | |
27296 | ||
74b84332 VS |
27297 | #include <Xm/Xm.h> |
27298 | #include <Xm/List.h> | |
27299 | ||
a848cd7e SC |
27300 | int |
27301 | main () | |
27302 | { | |
74b84332 VS |
27303 | |
27304 | XmString string = NULL; | |
27305 | Widget w = NULL; | |
27306 | int position = 0; | |
27307 | XmListAddItem(w, string, position); | |
27308 | ||
a848cd7e SC |
27309 | ; |
27310 | return 0; | |
27311 | } | |
27312 | _ACEOF | |
27313 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27314 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27315 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27316 | ac_status=$? |
ac1cb8d3 VS |
27317 | grep -v '^ *+' conftest.er1 >conftest.err |
27318 | rm -f conftest.er1 | |
27319 | cat conftest.err >&5 | |
a848cd7e SC |
27320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27321 | (exit $ac_status); } && | |
89be85c2 VS |
27322 | { ac_try='test -z "$ac_c_werror_flag" |
27323 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27325 | (eval $ac_try) 2>&5 | |
27326 | ac_status=$? | |
27327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27328 | (exit $ac_status); }; } && | |
27329 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27331 | (eval $ac_try) 2>&5 | |
27332 | ac_status=$? | |
27333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27334 | (exit $ac_status); }; }; then | |
27335 | ||
27336 | libp_link="$libp" | |
27337 | libsm_ice_link="$libsm_ice" | |
27338 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
27339 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
27340 | libs_found=1 | |
27341 | ||
27342 | else | |
27343 | echo "$as_me: failed program was:" >&5 | |
27344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27345 | ||
27346 | ||
27347 | ||
27348 | fi | |
ac1cb8d3 VS |
27349 | rm -f conftest.err conftest.$ac_objext \ |
27350 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27351 | |
27352 | LIBS="$save_LIBS" | |
27353 | CFLAGS=$save_CFLAGS | |
27354 | fi | |
27355 | done | |
27356 | fi | |
27357 | done | |
27358 | ||
27359 | if test "$libs_found" = "0"; then | |
27360 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
27361 | echo "${ECHO_T}can't find the right libraries" >&6 | |
27362 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
27363 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
27364 | { (exit 1); exit 1; }; } | |
27365 | fi | |
27366 | ||
27367 | save_CFLAGS=$CFLAGS | |
27368 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
27369 | echo "$as_me:$LINENO: checking for Motif 2" >&5 | |
27370 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
27371 | cat >conftest.$ac_ext <<_ACEOF | |
27372 | /* confdefs.h. */ | |
27373 | _ACEOF | |
27374 | cat confdefs.h >>conftest.$ac_ext | |
27375 | cat >>conftest.$ac_ext <<_ACEOF | |
27376 | /* end confdefs.h. */ | |
27377 | ||
27378 | #include <Xm/Xm.h> | |
27379 | ||
27380 | int | |
27381 | main () | |
27382 | { | |
27383 | ||
27384 | #if XmVersion < 2000 | |
27385 | #error "Not Motif 2" | |
27386 | #endif | |
27387 | ||
27388 | ; | |
27389 | return 0; | |
27390 | } | |
27391 | _ACEOF | |
27392 | rm -f conftest.$ac_objext | |
27393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27394 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27395 | ac_status=$? |
ac1cb8d3 VS |
27396 | grep -v '^ *+' conftest.er1 >conftest.err |
27397 | rm -f conftest.er1 | |
27398 | cat conftest.err >&5 | |
a848cd7e SC |
27399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27400 | (exit $ac_status); } && | |
89be85c2 VS |
27401 | { ac_try='test -z "$ac_c_werror_flag" |
27402 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27404 | (eval $ac_try) 2>&5 | |
27405 | ac_status=$? | |
27406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27407 | (exit $ac_status); }; } && | |
27408 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27410 | (eval $ac_try) 2>&5 | |
27411 | ac_status=$? | |
27412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27413 | (exit $ac_status); }; }; then | |
27414 | ||
27415 | cat >>confdefs.h <<\_ACEOF | |
27416 | #define __WXMOTIF20__ 1 | |
27417 | _ACEOF | |
27418 | ||
27419 | echo "$as_me:$LINENO: result: found" >&5 | |
27420 | echo "${ECHO_T}found" >&6 | |
27421 | ||
27422 | else | |
27423 | echo "$as_me: failed program was:" >&5 | |
27424 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27425 | ||
27426 | ||
27427 | cat >>confdefs.h <<\_ACEOF | |
27428 | #define __WXMOTIF20__ 0 | |
27429 | _ACEOF | |
27430 | ||
27431 | echo "$as_me:$LINENO: result: not found" >&5 | |
27432 | echo "${ECHO_T}not found" >&6 | |
27433 | ||
27434 | fi | |
ac1cb8d3 | 27435 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27436 | CFLAGS=$save_CFLAGS |
27437 | ||
27438 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
a848cd7e SC |
27439 | TOOLKIT=MOTIF |
27440 | GUIDIST=MOTIF_DIST | |
27441 | fi | |
27442 | ||
74b84332 | 27443 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
27444 | if test "$wxUSE_LIBXPM" = "sys"; then |
27445 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
27446 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
27447 | ||
27448 | ac_find_libraries= | |
27449 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27450 | do | |
27451 | for ac_extension in a so sl dylib; do | |
27452 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
27453 | ac_find_libraries=$ac_dir | |
27454 | break 2 | |
27455 | fi | |
27456 | done | |
27457 | done | |
27458 | ||
27459 | if test "$ac_find_libraries" != "" ; then | |
27460 | ||
27461 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
27462 | result=$? | |
27463 | if test $result = 0; then | |
27464 | ac_path_to_link="" | |
27465 | else | |
27466 | ac_path_to_link=" -L$ac_find_libraries" | |
27467 | fi | |
27468 | ||
27469 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
27470 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
27471 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
27472 | ||
27473 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
27474 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
27475 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
27476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27477 | else | |
27478 | ||
27479 | save_CFLAGS=$CFLAGS | |
27480 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
27481 | ||
27482 | cat >conftest.$ac_ext <<_ACEOF | |
27483 | /* confdefs.h. */ | |
27484 | _ACEOF | |
27485 | cat confdefs.h >>conftest.$ac_ext | |
27486 | cat >>conftest.$ac_ext <<_ACEOF | |
27487 | /* end confdefs.h. */ | |
27488 | ||
27489 | #include <X11/xpm.h> | |
27490 | ||
27491 | int | |
27492 | main () | |
27493 | { | |
27494 | ||
27495 | int version; | |
27496 | version = XpmLibraryVersion(); | |
27497 | ||
27498 | ; | |
27499 | return 0; | |
27500 | } | |
27501 | _ACEOF | |
27502 | rm -f conftest.$ac_objext | |
27503 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27504 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27505 | ac_status=$? |
ac1cb8d3 VS |
27506 | grep -v '^ *+' conftest.er1 >conftest.err |
27507 | rm -f conftest.er1 | |
27508 | cat conftest.err >&5 | |
a848cd7e SC |
27509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27510 | (exit $ac_status); } && | |
89be85c2 VS |
27511 | { ac_try='test -z "$ac_c_werror_flag" |
27512 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27514 | (eval $ac_try) 2>&5 | |
27515 | ac_status=$? | |
27516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27517 | (exit $ac_status); }; } && | |
27518 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27520 | (eval $ac_try) 2>&5 | |
27521 | ac_status=$? | |
27522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27523 | (exit $ac_status); }; }; then | |
27524 | wx_cv_x11_xpm_h=yes | |
27525 | else | |
27526 | echo "$as_me: failed program was:" >&5 | |
27527 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27528 | ||
27529 | wx_cv_x11_xpm_h=no | |
27530 | ||
27531 | fi | |
ac1cb8d3 | 27532 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27533 | |
27534 | CFLAGS=$save_CFLAGS | |
27535 | ||
27536 | ||
27537 | fi | |
27538 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
27539 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
27540 | ||
27541 | if test $wx_cv_x11_xpm_h = "yes"; then | |
27542 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
27543 | cat >>confdefs.h <<\_ACEOF | |
27544 | #define wxHAVE_LIB_XPM 1 | |
27545 | _ACEOF | |
27546 | ||
27547 | else | |
27548 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
27549 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
27550 | fi | |
27551 | fi | |
27552 | ||
27553 | fi | |
27554 | ||
27555 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
27556 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
27557 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
27558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27559 | else | |
27560 | ac_check_lib_save_LIBS=$LIBS | |
27561 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
27562 | cat >conftest.$ac_ext <<_ACEOF | |
27563 | /* confdefs.h. */ | |
27564 | _ACEOF | |
27565 | cat confdefs.h >>conftest.$ac_ext | |
27566 | cat >>conftest.$ac_ext <<_ACEOF | |
27567 | /* end confdefs.h. */ | |
27568 | ||
27569 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27570 | #ifdef __cplusplus | |
27571 | extern "C" | |
27572 | #endif | |
27573 | /* We use char because int might match the return type of a gcc2 | |
27574 | builtin and then its argument prototype would still apply. */ | |
27575 | char XShapeQueryExtension (); | |
27576 | int | |
27577 | main () | |
27578 | { | |
27579 | XShapeQueryExtension (); | |
27580 | ; | |
27581 | return 0; | |
27582 | } | |
27583 | _ACEOF | |
27584 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27585 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27586 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27587 | ac_status=$? |
ac1cb8d3 VS |
27588 | grep -v '^ *+' conftest.er1 >conftest.err |
27589 | rm -f conftest.er1 | |
27590 | cat conftest.err >&5 | |
a848cd7e SC |
27591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27592 | (exit $ac_status); } && | |
89be85c2 VS |
27593 | { ac_try='test -z "$ac_c_werror_flag" |
27594 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27596 | (eval $ac_try) 2>&5 | |
27597 | ac_status=$? | |
27598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27599 | (exit $ac_status); }; } && | |
27600 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27602 | (eval $ac_try) 2>&5 | |
27603 | ac_status=$? | |
27604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27605 | (exit $ac_status); }; }; then | |
27606 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
27607 | else | |
27608 | echo "$as_me: failed program was:" >&5 | |
27609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27610 | ||
27611 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
27612 | fi | |
ac1cb8d3 VS |
27613 | rm -f conftest.err conftest.$ac_objext \ |
27614 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27615 | LIBS=$ac_check_lib_save_LIBS |
27616 | fi | |
27617 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
27618 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
27619 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
27620 | ||
27621 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
27622 | wxHAVE_XEXT_LIB=1 | |
27623 | ||
27624 | fi | |
27625 | ||
27626 | ||
27627 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
27628 | save_CFLAGS="$CFLAGS" | |
27629 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
27630 | ||
27631 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
27632 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
27633 | cat >conftest.$ac_ext <<_ACEOF | |
27634 | /* confdefs.h. */ | |
27635 | _ACEOF | |
27636 | cat confdefs.h >>conftest.$ac_ext | |
27637 | cat >>conftest.$ac_ext <<_ACEOF | |
27638 | /* end confdefs.h. */ | |
27639 | ||
27640 | #include <X11/Xlib.h> | |
27641 | #include <X11/extensions/shape.h> | |
27642 | ||
27643 | int | |
27644 | main () | |
27645 | { | |
27646 | ||
27647 | int dummy1, dummy2; | |
27648 | XShapeQueryExtension((Display*)NULL, | |
27649 | (int*)NULL, (int*)NULL); | |
27650 | ||
27651 | ; | |
27652 | return 0; | |
27653 | } | |
27654 | _ACEOF | |
27655 | rm -f conftest.$ac_objext | |
27656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27657 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27658 | ac_status=$? |
ac1cb8d3 VS |
27659 | grep -v '^ *+' conftest.er1 >conftest.err |
27660 | rm -f conftest.er1 | |
27661 | cat conftest.err >&5 | |
a848cd7e SC |
27662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27663 | (exit $ac_status); } && | |
89be85c2 VS |
27664 | { ac_try='test -z "$ac_c_werror_flag" |
27665 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27667 | (eval $ac_try) 2>&5 | |
27668 | ac_status=$? | |
27669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27670 | (exit $ac_status); }; } && | |
27671 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27673 | (eval $ac_try) 2>&5 | |
27674 | ac_status=$? | |
27675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27676 | (exit $ac_status); }; }; then | |
27677 | ||
27678 | cat >>confdefs.h <<\_ACEOF | |
27679 | #define HAVE_XSHAPE 1 | |
27680 | _ACEOF | |
27681 | ||
27682 | echo "$as_me:$LINENO: result: found" >&5 | |
27683 | echo "${ECHO_T}found" >&6 | |
27684 | ||
27685 | else | |
27686 | echo "$as_me: failed program was:" >&5 | |
27687 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27688 | ||
27689 | ||
27690 | echo "$as_me:$LINENO: result: not found" >&5 | |
27691 | echo "${ECHO_T}not found" >&6 | |
27692 | ||
27693 | fi | |
ac1cb8d3 | 27694 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27695 | CFLAGS="$save_CFLAGS" |
27696 | ||
27697 | fi | |
27698 | fi | |
27699 | ||
27700 | if test "$wxUSE_MAC" = 1; then | |
27701 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
27702 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
27703 | if test "$GCC" = yes; then | |
27704 | echo "$as_me:$LINENO: result: gcc" >&5 | |
27705 | echo "${ECHO_T}gcc" >&6 | |
27706 | CPPFLAGS_PASCAL="-fpascal-strings" | |
27707 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
27708 | echo "$as_me:$LINENO: result: xlc" >&5 | |
27709 | echo "${ECHO_T}xlc" >&6 | |
27710 | CPPFLAGS_PASCAL="-qmacpstr" | |
27711 | else | |
27712 | echo "$as_me:$LINENO: result: none" >&5 | |
27713 | echo "${ECHO_T}none" >&6 | |
27714 | fi | |
27715 | ||
1e9e8aba DE |
27716 | if test "x$wxUSE_UNIX" = "xyes"; then |
27717 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon" | |
27718 | else | |
27719 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON" | |
27720 | fi | |
a848cd7e | 27721 | |
a848cd7e SC |
27722 | TOOLKIT=MAC |
27723 | GUIDIST=MACX_DIST | |
dd21ced8 | 27724 | WXBASEPORT="_carbon" |
a848cd7e SC |
27725 | fi |
27726 | ||
27727 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
27728 | TOOLKIT=COCOA |
27729 | GUIDIST=COCOA_DIST | |
27730 | fi | |
27731 | ||
27732 | if test "$wxUSE_PM" = 1; then | |
27733 | TOOLKIT=PM | |
de59c161 RD |
27734 | GUIDIST=PM_DIST |
27735 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
27736 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
27737 | if test "${wx_cv_spbcdata+set}" = set; then | |
27738 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27739 | else | |
27740 | ||
27741 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
27742 | /* confdefs.h. */ |
27743 | _ACEOF | |
27744 | cat confdefs.h >>conftest.$ac_ext | |
27745 | cat >>conftest.$ac_ext <<_ACEOF | |
27746 | /* end confdefs.h. */ | |
27747 | ||
27748 | #define INCL_PM | |
27749 | #include <os2.h> | |
27750 | ||
27751 | int | |
27752 | main () | |
27753 | { | |
27754 | ||
27755 | SPBCDATA test; | |
27756 | ||
27757 | ; | |
27758 | return 0; | |
27759 | } | |
27760 | _ACEOF | |
27761 | rm -f conftest.$ac_objext | |
27762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27763 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 27764 | ac_status=$? |
ac1cb8d3 VS |
27765 | grep -v '^ *+' conftest.er1 >conftest.err |
27766 | rm -f conftest.er1 | |
27767 | cat conftest.err >&5 | |
de59c161 RD |
27768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27769 | (exit $ac_status); } && | |
89be85c2 VS |
27770 | { ac_try='test -z "$ac_c_werror_flag" |
27771 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27773 | (eval $ac_try) 2>&5 | |
27774 | ac_status=$? | |
27775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27776 | (exit $ac_status); }; } && | |
27777 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
27778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27779 | (eval $ac_try) 2>&5 | |
27780 | ac_status=$? | |
27781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27782 | (exit $ac_status); }; }; then | |
27783 | wx_cv_spbcdata=yes | |
27784 | else | |
27785 | echo "$as_me: failed program was:" >&5 | |
27786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27787 | ||
27788 | wx_cv_spbcdata=no | |
27789 | ||
27790 | fi | |
ac1cb8d3 | 27791 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
27792 | |
27793 | ||
27794 | fi | |
27795 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
27796 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
27797 | ||
27798 | if test $wx_cv_spbcdata = "yes"; then | |
27799 | cat >>confdefs.h <<\_ACEOF | |
27800 | #define HAVE_SPBCDATA 1 | |
27801 | _ACEOF | |
27802 | ||
27803 | fi | |
a848cd7e SC |
27804 | fi |
27805 | ||
27806 | if test "$TOOLKIT" = "PM" ; then | |
27807 | TOOLKIT_DIR="os2" | |
27808 | else | |
27809 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
27810 | fi | |
27811 | ||
a848cd7e | 27812 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
27813 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
27814 | WIDGET_SET=univ | |
a848cd7e SC |
27815 | fi |
27816 | ||
27817 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
27818 | DISTDIR="wx\$(TOOLKIT)" | |
27819 | else | |
27820 | USE_GUI=0 | |
27821 | ||
27822 | TOOLKIT_DIR="base" | |
27823 | ||
27824 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 27825 | TOOLKIT="MSW" |
a848cd7e SC |
27826 | fi |
27827 | ||
a848cd7e SC |
27828 | GUIDIST="BASE_DIST" |
27829 | DISTDIR="wxBase" | |
27830 | fi | |
27831 | ||
27832 | ||
27833 | ||
27834 | ||
27835 | IODBC_C_SRC="" | |
27836 | ||
27837 | ||
27838 | if test "$TOOLKIT" != "MSW" ; then | |
27839 | ||
27840 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
27841 | ||
27842 | if test "${ac_cv_header_sql_h+set}" = set; then | |
27843 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
27844 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
27845 | if test "${ac_cv_header_sql_h+set}" = set; then | |
27846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27847 | fi | |
27848 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
27849 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
27850 | else | |
27851 | # Is the header compilable? | |
27852 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
27853 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
27854 | cat >conftest.$ac_ext <<_ACEOF | |
27855 | /* confdefs.h. */ | |
27856 | _ACEOF | |
27857 | cat confdefs.h >>conftest.$ac_ext | |
27858 | cat >>conftest.$ac_ext <<_ACEOF | |
27859 | /* end confdefs.h. */ | |
27860 | $ac_includes_default | |
27861 | #include <sql.h> | |
27862 | _ACEOF | |
27863 | rm -f conftest.$ac_objext | |
27864 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27865 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27866 | ac_status=$? |
ac1cb8d3 VS |
27867 | grep -v '^ *+' conftest.er1 >conftest.err |
27868 | rm -f conftest.er1 | |
27869 | cat conftest.err >&5 | |
a848cd7e SC |
27870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27871 | (exit $ac_status); } && | |
89be85c2 VS |
27872 | { ac_try='test -z "$ac_c_werror_flag" |
27873 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27875 | (eval $ac_try) 2>&5 | |
27876 | ac_status=$? | |
27877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27878 | (exit $ac_status); }; } && | |
27879 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27881 | (eval $ac_try) 2>&5 | |
27882 | ac_status=$? | |
27883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27884 | (exit $ac_status); }; }; then | |
27885 | ac_header_compiler=yes | |
27886 | else | |
27887 | echo "$as_me: failed program was:" >&5 | |
27888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27889 | ||
27890 | ac_header_compiler=no | |
27891 | fi | |
ac1cb8d3 | 27892 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27893 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27894 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27895 | ||
27896 | # Is the header present? | |
27897 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
27898 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
27899 | cat >conftest.$ac_ext <<_ACEOF | |
27900 | /* confdefs.h. */ | |
27901 | _ACEOF | |
27902 | cat confdefs.h >>conftest.$ac_ext | |
27903 | cat >>conftest.$ac_ext <<_ACEOF | |
27904 | /* end confdefs.h. */ | |
27905 | #include <sql.h> | |
27906 | _ACEOF | |
27907 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27908 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27909 | ac_status=$? | |
27910 | grep -v '^ *+' conftest.er1 >conftest.err | |
27911 | rm -f conftest.er1 | |
27912 | cat conftest.err >&5 | |
27913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27914 | (exit $ac_status); } >/dev/null; then | |
27915 | if test -s conftest.err; then | |
27916 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27917 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
27918 | else |
27919 | ac_cpp_err= | |
27920 | fi | |
27921 | else | |
27922 | ac_cpp_err=yes | |
27923 | fi | |
27924 | if test -z "$ac_cpp_err"; then | |
27925 | ac_header_preproc=yes | |
27926 | else | |
27927 | echo "$as_me: failed program was:" >&5 | |
27928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27929 | ||
27930 | ac_header_preproc=no | |
27931 | fi | |
27932 | rm -f conftest.err conftest.$ac_ext | |
27933 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27934 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27935 | ||
27936 | # So? What about this header? | |
ac1cb8d3 VS |
27937 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
27938 | yes:no: ) | |
a848cd7e SC |
27939 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
27940 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27941 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
27942 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
27943 | ac_header_preproc=yes | |
a848cd7e | 27944 | ;; |
ac1cb8d3 | 27945 | no:yes:* ) |
a848cd7e SC |
27946 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
27947 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27948 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
27949 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
27950 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
27951 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
27952 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
27953 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
27954 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
27955 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27956 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
27957 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
27958 | ( |
27959 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27960 | ## ----------------------------------------- ## |
27961 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27962 | ## ----------------------------------------- ## | |
a848cd7e SC |
27963 | _ASBOX |
27964 | ) | | |
27965 | sed "s/^/$as_me: WARNING: /" >&2 | |
27966 | ;; | |
27967 | esac | |
27968 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
27969 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
27970 | if test "${ac_cv_header_sql_h+set}" = set; then | |
27971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27972 | else | |
27973 | ac_cv_header_sql_h=$ac_header_preproc | |
27974 | fi | |
27975 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
27976 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
27977 | ||
27978 | fi | |
27979 | if test $ac_cv_header_sql_h = yes; then | |
27980 | found_sql_h=1 | |
27981 | fi | |
27982 | ||
27983 | ||
27984 | if test "x$found_sql_h" = "x1" ; then | |
27985 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
27986 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
27987 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
27988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27989 | else | |
27990 | ac_check_lib_save_LIBS=$LIBS | |
27991 | LIBS="-liodbc $LIBS" | |
27992 | cat >conftest.$ac_ext <<_ACEOF | |
27993 | /* confdefs.h. */ | |
27994 | _ACEOF | |
27995 | cat confdefs.h >>conftest.$ac_ext | |
27996 | cat >>conftest.$ac_ext <<_ACEOF | |
27997 | /* end confdefs.h. */ | |
27998 | ||
27999 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28000 | #ifdef __cplusplus | |
28001 | extern "C" | |
28002 | #endif | |
28003 | /* We use char because int might match the return type of a gcc2 | |
28004 | builtin and then its argument prototype would still apply. */ | |
28005 | char SQLAllocEnv (); | |
28006 | int | |
28007 | main () | |
28008 | { | |
28009 | SQLAllocEnv (); | |
28010 | ; | |
28011 | return 0; | |
28012 | } | |
28013 | _ACEOF | |
28014 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28015 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28016 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28017 | ac_status=$? |
ac1cb8d3 VS |
28018 | grep -v '^ *+' conftest.er1 >conftest.err |
28019 | rm -f conftest.er1 | |
28020 | cat conftest.err >&5 | |
a848cd7e SC |
28021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28022 | (exit $ac_status); } && | |
89be85c2 VS |
28023 | { ac_try='test -z "$ac_c_werror_flag" |
28024 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28026 | (eval $ac_try) 2>&5 | |
28027 | ac_status=$? | |
28028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28029 | (exit $ac_status); }; } && | |
28030 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28032 | (eval $ac_try) 2>&5 | |
28033 | ac_status=$? | |
28034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28035 | (exit $ac_status); }; }; then | |
28036 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
28037 | else | |
28038 | echo "$as_me: failed program was:" >&5 | |
28039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28040 | ||
28041 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
28042 | fi | |
ac1cb8d3 VS |
28043 | rm -f conftest.err conftest.$ac_objext \ |
28044 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28045 | LIBS=$ac_check_lib_save_LIBS |
28046 | fi | |
28047 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
28048 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
28049 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
28050 | ODBC_LINK=" -liodbc" | |
28051 | else | |
28052 | ||
28053 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
28054 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
28055 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
28056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28057 | else | |
28058 | ac_check_lib_save_LIBS=$LIBS | |
28059 | LIBS="-lunixodbc $LIBS" | |
28060 | cat >conftest.$ac_ext <<_ACEOF | |
28061 | /* confdefs.h. */ | |
28062 | _ACEOF | |
28063 | cat confdefs.h >>conftest.$ac_ext | |
28064 | cat >>conftest.$ac_ext <<_ACEOF | |
28065 | /* end confdefs.h. */ | |
28066 | ||
28067 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28068 | #ifdef __cplusplus | |
28069 | extern "C" | |
28070 | #endif | |
28071 | /* We use char because int might match the return type of a gcc2 | |
28072 | builtin and then its argument prototype would still apply. */ | |
28073 | char SQLAllocEnv (); | |
28074 | int | |
28075 | main () | |
28076 | { | |
28077 | SQLAllocEnv (); | |
28078 | ; | |
28079 | return 0; | |
28080 | } | |
28081 | _ACEOF | |
28082 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28083 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28084 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28085 | ac_status=$? |
ac1cb8d3 VS |
28086 | grep -v '^ *+' conftest.er1 >conftest.err |
28087 | rm -f conftest.er1 | |
28088 | cat conftest.err >&5 | |
a848cd7e SC |
28089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28090 | (exit $ac_status); } && | |
89be85c2 VS |
28091 | { ac_try='test -z "$ac_c_werror_flag" |
28092 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28094 | (eval $ac_try) 2>&5 | |
28095 | ac_status=$? | |
28096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28097 | (exit $ac_status); }; } && | |
28098 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28100 | (eval $ac_try) 2>&5 | |
28101 | ac_status=$? | |
28102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28103 | (exit $ac_status); }; }; then | |
28104 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
28105 | else | |
28106 | echo "$as_me: failed program was:" >&5 | |
28107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28108 | ||
28109 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
28110 | fi | |
ac1cb8d3 VS |
28111 | rm -f conftest.err conftest.$ac_objext \ |
28112 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28113 | LIBS=$ac_check_lib_save_LIBS |
28114 | fi | |
28115 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
28116 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
28117 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
28118 | ODBC_LINK=" -lunixodbc" | |
28119 | else | |
28120 | ||
28121 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
28122 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
28123 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
28124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28125 | else | |
28126 | ac_check_lib_save_LIBS=$LIBS | |
28127 | LIBS="-lodbc $LIBS" | |
28128 | cat >conftest.$ac_ext <<_ACEOF | |
28129 | /* confdefs.h. */ | |
28130 | _ACEOF | |
28131 | cat confdefs.h >>conftest.$ac_ext | |
28132 | cat >>conftest.$ac_ext <<_ACEOF | |
28133 | /* end confdefs.h. */ | |
28134 | ||
28135 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28136 | #ifdef __cplusplus | |
28137 | extern "C" | |
28138 | #endif | |
28139 | /* We use char because int might match the return type of a gcc2 | |
28140 | builtin and then its argument prototype would still apply. */ | |
28141 | char SQLAllocEnv (); | |
28142 | int | |
28143 | main () | |
28144 | { | |
28145 | SQLAllocEnv (); | |
28146 | ; | |
28147 | return 0; | |
28148 | } | |
28149 | _ACEOF | |
28150 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28151 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28152 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28153 | ac_status=$? |
ac1cb8d3 VS |
28154 | grep -v '^ *+' conftest.er1 >conftest.err |
28155 | rm -f conftest.er1 | |
28156 | cat conftest.err >&5 | |
a848cd7e SC |
28157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28158 | (exit $ac_status); } && | |
89be85c2 VS |
28159 | { ac_try='test -z "$ac_c_werror_flag" |
28160 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28162 | (eval $ac_try) 2>&5 | |
28163 | ac_status=$? | |
28164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28165 | (exit $ac_status); }; } && | |
28166 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28168 | (eval $ac_try) 2>&5 | |
28169 | ac_status=$? | |
28170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28171 | (exit $ac_status); }; }; then | |
28172 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
28173 | else | |
28174 | echo "$as_me: failed program was:" >&5 | |
28175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28176 | ||
28177 | ac_cv_lib_odbc_SQLAllocEnv=no | |
28178 | fi | |
ac1cb8d3 VS |
28179 | rm -f conftest.err conftest.$ac_objext \ |
28180 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28181 | LIBS=$ac_check_lib_save_LIBS |
28182 | fi | |
28183 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
28184 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
28185 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
28186 | ODBC_LINK=" -lodbc" | |
28187 | fi | |
28188 | ||
28189 | ||
28190 | fi | |
28191 | ||
28192 | ||
28193 | fi | |
28194 | ||
28195 | fi | |
28196 | if test "x$ODBC_LINK" = "x" ; then | |
28197 | if test "$wxUSE_ODBC" = "sys" ; then | |
28198 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
28199 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
28200 | { (exit 1); exit 1; }; } | |
28201 | else | |
28202 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
28203 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
28204 | wxUSE_ODBC=builtin | |
28205 | fi | |
28206 | else | |
28207 | wxUSE_ODBC=sys | |
28208 | fi | |
28209 | fi | |
28210 | if test "$wxUSE_ODBC" != "no" ; then | |
28211 | cat >>confdefs.h <<\_ACEOF | |
28212 | #define wxUSE_ODBC 1 | |
28213 | _ACEOF | |
28214 | ||
28215 | if test "$wxUSE_ODBC" = "builtin" ; then | |
28216 | cat >>confdefs.h <<\_ACEOF | |
28217 | #define wxUSE_BUILTIN_IODBC 1 | |
28218 | _ACEOF | |
28219 | ||
28220 | fi | |
28221 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
28222 | ||
28223 | WXODBCFLAG="-D_IODBC_" | |
28224 | fi | |
28225 | fi | |
28226 | ||
a848cd7e | 28227 | |
01cb68df | 28228 | |
a848cd7e | 28229 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 28230 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
28231 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
28232 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
28233 | ||
28234 | ac_find_libraries= | |
28235 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28236 | do | |
28237 | for ac_extension in a so sl dylib; do | |
28238 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
28239 | ac_find_libraries=$ac_dir | |
28240 | break 2 | |
28241 | fi | |
28242 | done | |
28243 | done | |
28244 | ||
28245 | if test "$ac_find_libraries" != "" ; then | |
28246 | ||
28247 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
28248 | result=$? | |
28249 | if test $result = 0; then | |
28250 | ac_path_to_link="" | |
28251 | else | |
28252 | ac_path_to_link=" -L$ac_find_libraries" | |
28253 | fi | |
28254 | ||
28255 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
28256 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
28257 | fi | |
28258 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
28259 | echo "$as_me:$LINENO: result: yes" >&5 | |
28260 | echo "${ECHO_T}yes" >&6 | |
28261 | ||
28262 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
28263 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
28264 | ||
28265 | ac_find_libraries= | |
28266 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28267 | do | |
28268 | for ac_extension in a so sl dylib; do | |
28269 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then | |
28270 | ac_find_libraries=$ac_dir | |
28271 | break 2 | |
28272 | fi | |
28273 | done | |
28274 | done | |
28275 | ||
28276 | if test "$ac_find_libraries" != "" ; then | |
28277 | echo "$as_me:$LINENO: result: yes" >&5 | |
28278 | echo "${ECHO_T}yes" >&6 | |
28279 | ||
28280 | for ac_header in X11/extensions/xf86vmode.h | |
28281 | do | |
28282 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
28283 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
28284 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28285 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28287 | else | |
28288 | cat >conftest.$ac_ext <<_ACEOF | |
28289 | /* confdefs.h. */ | |
28290 | _ACEOF | |
28291 | cat confdefs.h >>conftest.$ac_ext | |
28292 | cat >>conftest.$ac_ext <<_ACEOF | |
28293 | /* end confdefs.h. */ | |
28294 | ||
28295 | #if HAVE_X11_XLIB_H | |
28296 | #include <X11/Xlib.h> | |
28297 | #endif | |
28298 | ||
28299 | ||
28300 | #include <$ac_header> | |
28301 | _ACEOF | |
28302 | rm -f conftest.$ac_objext | |
28303 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28304 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28305 | ac_status=$? |
ac1cb8d3 VS |
28306 | grep -v '^ *+' conftest.er1 >conftest.err |
28307 | rm -f conftest.er1 | |
28308 | cat conftest.err >&5 | |
a848cd7e SC |
28309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28310 | (exit $ac_status); } && | |
89be85c2 VS |
28311 | { ac_try='test -z "$ac_c_werror_flag" |
28312 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28314 | (eval $ac_try) 2>&5 | |
28315 | ac_status=$? | |
28316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28317 | (exit $ac_status); }; } && | |
28318 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28320 | (eval $ac_try) 2>&5 | |
28321 | ac_status=$? | |
28322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28323 | (exit $ac_status); }; }; then | |
28324 | eval "$as_ac_Header=yes" | |
28325 | else | |
28326 | echo "$as_me: failed program was:" >&5 | |
28327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28328 | ||
28329 | eval "$as_ac_Header=no" | |
28330 | fi | |
ac1cb8d3 | 28331 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28332 | fi |
28333 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
28334 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
28335 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
28336 | cat >>confdefs.h <<_ACEOF | |
28337 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
28338 | _ACEOF | |
28339 | ||
28340 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
28341 | ||
28342 | fi | |
28343 | ||
28344 | done | |
28345 | ||
28346 | else | |
28347 | echo "$as_me:$LINENO: result: no" >&5 | |
28348 | echo "${ECHO_T}no" >&6 | |
28349 | fi | |
28350 | ||
28351 | else | |
28352 | echo "$as_me:$LINENO: result: no" >&5 | |
28353 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
28354 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
28355 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
28356 | wxUSE_DISPLAY="no" |
28357 | fi | |
01cb68df RG |
28358 | elif test "$wxUSE_MSW" = 1; then |
28359 | ||
28360 | ||
28361 | for ac_header in multimon.h ddraw.h | |
28362 | do | |
28363 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5294a27e | 28364 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
01cb68df RG |
28365 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
28366 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
01cb68df | 28368 | else |
5294a27e | 28369 | cat >conftest.$ac_ext <<_ACEOF |
01cb68df RG |
28370 | /* confdefs.h. */ |
28371 | _ACEOF | |
28372 | cat confdefs.h >>conftest.$ac_ext | |
28373 | cat >>conftest.$ac_ext <<_ACEOF | |
28374 | /* end confdefs.h. */ | |
5294a27e VZ |
28375 | #include <windows.h> |
28376 | ||
01cb68df RG |
28377 | #include <$ac_header> |
28378 | _ACEOF | |
28379 | rm -f conftest.$ac_objext | |
28380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28381 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 28382 | ac_status=$? |
ac1cb8d3 VS |
28383 | grep -v '^ *+' conftest.er1 >conftest.err |
28384 | rm -f conftest.er1 | |
28385 | cat conftest.err >&5 | |
01cb68df RG |
28386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28387 | (exit $ac_status); } && | |
89be85c2 VS |
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); }; } && | |
28395 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
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 | |
5294a27e | 28401 | eval "$as_ac_Header=yes" |
01cb68df RG |
28402 | else |
28403 | echo "$as_me: failed program was:" >&5 | |
28404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28405 | ||
5294a27e | 28406 | eval "$as_ac_Header=no" |
01cb68df | 28407 | fi |
ac1cb8d3 | 28408 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
28409 | fi |
28410 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
28411 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
01cb68df RG |
28412 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
28413 | cat >>confdefs.h <<_ACEOF | |
28414 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
28415 | _ACEOF | |
28416 | ||
28417 | else | |
28418 | ||
5294a27e VZ |
28419 | wxUSE_DISPLAY="no" |
28420 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 | |
dcc1b6ad | 28421 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} |
01cb68df RG |
28422 | |
28423 | fi | |
28424 | ||
28425 | done | |
28426 | ||
a848cd7e SC |
28427 | fi |
28428 | fi | |
28429 | ||
28430 | ||
28431 | USE_OPENGL=0 | |
28432 | if test "$wxUSE_OPENGL" = "yes"; then | |
28433 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
28434 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
28435 | elif test "$wxUSE_MSW" = 1; then | |
28436 | OPENGL_LIBS="-lopengl32 -lglu32" | |
28437 | else | |
28438 | ||
28439 | ||
28440 | ac_find_includes= | |
28441 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
28442 | do | |
28443 | if test -f "$ac_dir/GL/gl.h"; then | |
28444 | ac_find_includes=$ac_dir | |
28445 | break | |
28446 | fi | |
28447 | done | |
28448 | ||
28449 | if test "$ac_find_includes" != "" ; then | |
28450 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
28451 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
28452 | ||
28453 | if test "x$ac_find_includes" = "x/usr/include"; then | |
28454 | ac_path_to_include="" | |
28455 | else | |
28456 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
28457 | result=$? | |
28458 | if test $result = 0; then | |
28459 | ac_path_to_include="" | |
28460 | else | |
28461 | ac_path_to_include=" -I$ac_find_includes" | |
28462 | fi | |
28463 | fi | |
28464 | ||
28465 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
28466 | fi | |
28467 | ||
28468 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
28469 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
28470 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
28471 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
28472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28473 | fi | |
28474 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
28475 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
28476 | else | |
28477 | # Is the header compilable? | |
28478 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
28479 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
28480 | cat >conftest.$ac_ext <<_ACEOF | |
28481 | /* confdefs.h. */ | |
28482 | _ACEOF | |
28483 | cat confdefs.h >>conftest.$ac_ext | |
28484 | cat >>conftest.$ac_ext <<_ACEOF | |
28485 | /* end confdefs.h. */ | |
28486 | $ac_includes_default | |
28487 | #include <GL/gl.h> | |
28488 | _ACEOF | |
28489 | rm -f conftest.$ac_objext | |
28490 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28491 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28492 | ac_status=$? |
ac1cb8d3 VS |
28493 | grep -v '^ *+' conftest.er1 >conftest.err |
28494 | rm -f conftest.er1 | |
28495 | cat conftest.err >&5 | |
a848cd7e SC |
28496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28497 | (exit $ac_status); } && | |
89be85c2 VS |
28498 | { ac_try='test -z "$ac_c_werror_flag" |
28499 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28501 | (eval $ac_try) 2>&5 | |
28502 | ac_status=$? | |
28503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28504 | (exit $ac_status); }; } && | |
28505 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28507 | (eval $ac_try) 2>&5 | |
28508 | ac_status=$? | |
28509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28510 | (exit $ac_status); }; }; then | |
28511 | ac_header_compiler=yes | |
28512 | else | |
28513 | echo "$as_me: failed program was:" >&5 | |
28514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28515 | ||
28516 | ac_header_compiler=no | |
28517 | fi | |
ac1cb8d3 | 28518 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28519 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
28520 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
28521 | ||
28522 | # Is the header present? | |
28523 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
28524 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
28525 | cat >conftest.$ac_ext <<_ACEOF | |
28526 | /* confdefs.h. */ | |
28527 | _ACEOF | |
28528 | cat confdefs.h >>conftest.$ac_ext | |
28529 | cat >>conftest.$ac_ext <<_ACEOF | |
28530 | /* end confdefs.h. */ | |
28531 | #include <GL/gl.h> | |
28532 | _ACEOF | |
28533 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
28534 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
28535 | ac_status=$? | |
28536 | grep -v '^ *+' conftest.er1 >conftest.err | |
28537 | rm -f conftest.er1 | |
28538 | cat conftest.err >&5 | |
28539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28540 | (exit $ac_status); } >/dev/null; then | |
28541 | if test -s conftest.err; then | |
28542 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 28543 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
28544 | else |
28545 | ac_cpp_err= | |
28546 | fi | |
28547 | else | |
28548 | ac_cpp_err=yes | |
28549 | fi | |
28550 | if test -z "$ac_cpp_err"; then | |
28551 | ac_header_preproc=yes | |
28552 | else | |
28553 | echo "$as_me: failed program was:" >&5 | |
28554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28555 | ||
28556 | ac_header_preproc=no | |
28557 | fi | |
28558 | rm -f conftest.err conftest.$ac_ext | |
28559 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
28560 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
28561 | ||
28562 | # So? What about this header? | |
ac1cb8d3 VS |
28563 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
28564 | yes:no: ) | |
a848cd7e SC |
28565 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
28566 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
28567 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
28568 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
28569 | ac_header_preproc=yes | |
a848cd7e | 28570 | ;; |
ac1cb8d3 | 28571 | no:yes:* ) |
a848cd7e SC |
28572 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
28573 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
28574 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
28575 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
28576 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
28577 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
28578 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
28579 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
28580 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
28581 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
28582 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
28583 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
28584 | ( |
28585 | cat <<\_ASBOX | |
ac1cb8d3 VS |
28586 | ## ----------------------------------------- ## |
28587 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
28588 | ## ----------------------------------------- ## | |
a848cd7e SC |
28589 | _ASBOX |
28590 | ) | | |
28591 | sed "s/^/$as_me: WARNING: /" >&2 | |
28592 | ;; | |
28593 | esac | |
28594 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
28595 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
28596 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
28597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28598 | else | |
28599 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
28600 | fi | |
28601 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
28602 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
28603 | ||
28604 | fi | |
28605 | if test $ac_cv_header_GL_gl_h = yes; then | |
28606 | ||
28607 | found_gl=0 | |
28608 | ||
28609 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
28610 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
28611 | ||
28612 | ac_find_libraries= | |
28613 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28614 | do | |
28615 | for ac_extension in a so sl dylib; do | |
28616 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
28617 | ac_find_libraries=$ac_dir | |
28618 | break 2 | |
28619 | fi | |
28620 | done | |
28621 | done | |
28622 | ||
28623 | if test "$ac_find_libraries" != "" ; then | |
28624 | ||
28625 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
28626 | result=$? | |
28627 | if test $result = 0; then | |
28628 | ac_path_to_link="" | |
28629 | else | |
28630 | ac_path_to_link=" -L$ac_find_libraries" | |
28631 | fi | |
28632 | ||
28633 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
28634 | LDFLAGS_GL="$ac_path_to_link" | |
28635 | fi | |
28636 | ||
28637 | ||
28638 | ac_find_libraries= | |
28639 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28640 | do | |
28641 | for ac_extension in a so sl dylib; do | |
28642 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
28643 | ac_find_libraries=$ac_dir | |
28644 | break 2 | |
28645 | fi | |
28646 | done | |
28647 | done | |
28648 | ||
28649 | if test "$ac_find_libraries" != "" ; then | |
28650 | ||
28651 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
28652 | result=$? | |
28653 | if test $result = 0; then | |
28654 | ac_path_to_link="" | |
28655 | else | |
28656 | ac_path_to_link=" -L$ac_find_libraries" | |
28657 | fi | |
28658 | ||
28659 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
28660 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
28661 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
28662 | fi | |
28663 | ||
28664 | found_gl=1 | |
28665 | OPENGL_LIBS="-lGL -lGLU" | |
28666 | echo "$as_me:$LINENO: result: yes" >&5 | |
28667 | echo "${ECHO_T}yes" >&6 | |
28668 | fi | |
28669 | fi | |
28670 | ||
28671 | if test "$found_gl" != 1; then | |
28672 | echo "$as_me:$LINENO: result: no" >&5 | |
28673 | echo "${ECHO_T}no" >&6 | |
28674 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
28675 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
28676 | ||
28677 | ac_find_libraries= | |
28678 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28679 | do | |
28680 | for ac_extension in a so sl dylib; do | |
28681 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
28682 | ac_find_libraries=$ac_dir | |
28683 | break 2 | |
28684 | fi | |
28685 | done | |
28686 | done | |
28687 | ||
28688 | if test "$ac_find_libraries" != "" ; then | |
28689 | ||
28690 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
28691 | result=$? | |
28692 | if test $result = 0; then | |
28693 | ac_path_to_link="" | |
28694 | else | |
28695 | ac_path_to_link=" -L$ac_find_libraries" | |
28696 | fi | |
28697 | ||
28698 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
28699 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
28700 | echo "$as_me:$LINENO: result: yes" >&5 | |
28701 | echo "${ECHO_T}yes" >&6 | |
28702 | else | |
28703 | echo "$as_me:$LINENO: result: no" >&5 | |
28704 | echo "${ECHO_T}no" >&6 | |
28705 | fi | |
28706 | fi | |
28707 | ||
28708 | fi | |
28709 | ||
28710 | ||
28711 | ||
28712 | if test "x$OPENGL_LIBS" = "x"; then | |
28713 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
28714 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
28715 | { (exit 1); exit 1; }; } | |
28716 | fi | |
28717 | fi | |
28718 | ||
28719 | if test "$wxUSE_OPENGL" = "yes"; then | |
28720 | USE_OPENGL=1 | |
28721 | cat >>confdefs.h <<\_ACEOF | |
28722 | #define wxUSE_OPENGL 1 | |
28723 | _ACEOF | |
28724 | ||
28725 | cat >>confdefs.h <<\_ACEOF | |
28726 | #define wxUSE_GLCANVAS 1 | |
28727 | _ACEOF | |
28728 | ||
28729 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
28730 | fi | |
28731 | fi | |
28732 | ||
a848cd7e SC |
28733 | |
28734 | if test -n "$TOOLKIT" ; then | |
28735 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
28736 | fi | |
28737 | ||
a848cd7e SC |
28738 | |
28739 | ||
28740 | if test "$wxUSE_SHARED" = "yes"; then | |
28741 | case "${host}" in | |
28742 | *-pc-msdosdjgpp ) | |
28743 | wxUSE_SHARED=no | |
28744 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
28745 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
28746 | ;; | |
28747 | esac | |
28748 | fi | |
28749 | ||
a848cd7e | 28750 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
28751 | |
28752 | ||
28753 | found_versioning=no | |
28754 | ||
28755 | ||
28756 | if test $found_versioning = no ; then | |
28757 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
28758 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
28759 | if test "${wx_cv_version_script+set}" = set; then | |
28760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28761 | else | |
28762 | ||
28763 | echo "VER_1 { *; };" >conftest.sym | |
28764 | echo "int main() { return 0; }" >conftest.cpp | |
28765 | ||
28766 | if { ac_try=' | |
28767 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
28768 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
28769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28770 | (eval $ac_try) 2>&5 | |
28771 | ac_status=$? | |
28772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28773 | (exit $ac_status); }; } ; then | |
28774 | if test -s conftest.stderr ; then | |
28775 | wx_cv_version_script=no | |
28776 | else | |
28777 | wx_cv_version_script=yes | |
28778 | fi | |
28779 | else | |
28780 | wx_cv_version_script=no | |
28781 | fi | |
28782 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
28783 | ||
28784 | fi | |
28785 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
28786 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
28787 | if test $wx_cv_version_script = yes ; then | |
28788 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
28789 | fi | |
28790 | fi | |
28791 | ||
28792 | ||
28793 | case "${host}" in | |
28794 | *-*-linux* | *-*-gnu* ) | |
28795 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 28796 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
28797 | ;; |
28798 | ||
28799 | *-*-solaris2* ) | |
28800 | if test "$GCC" = yes ; then | |
28801 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
28802 | ||
28803 | saveLdflags="$LDFLAGS" | |
28804 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
28805 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
28806 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
28807 | cat >conftest.$ac_ext <<_ACEOF | |
28808 | /* confdefs.h. */ | |
28809 | _ACEOF | |
28810 | cat confdefs.h >>conftest.$ac_ext | |
28811 | cat >>conftest.$ac_ext <<_ACEOF | |
28812 | /* end confdefs.h. */ | |
28813 | ||
28814 | int | |
28815 | main () | |
28816 | { | |
28817 | ||
28818 | ; | |
28819 | return 0; | |
28820 | } | |
28821 | _ACEOF | |
28822 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28823 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28824 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28825 | ac_status=$? |
ac1cb8d3 VS |
28826 | grep -v '^ *+' conftest.er1 >conftest.err |
28827 | rm -f conftest.er1 | |
28828 | cat conftest.err >&5 | |
a848cd7e SC |
28829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28830 | (exit $ac_status); } && | |
89be85c2 VS |
28831 | { ac_try='test -z "$ac_c_werror_flag" |
28832 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28834 | (eval $ac_try) 2>&5 | |
28835 | ac_status=$? | |
28836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28837 | (exit $ac_status); }; } && | |
28838 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28840 | (eval $ac_try) 2>&5 | |
28841 | ac_status=$? | |
28842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28843 | (exit $ac_status); }; }; then | |
28844 | ||
28845 | echo "$as_me:$LINENO: result: yes" >&5 | |
28846 | echo "${ECHO_T}yes" >&6 | |
28847 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 28848 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
28849 | |
28850 | else | |
28851 | echo "$as_me: failed program was:" >&5 | |
28852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28853 | ||
28854 | ||
28855 | echo "$as_me:$LINENO: result: no" >&5 | |
28856 | echo "${ECHO_T}no" >&6 | |
28857 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
28858 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
28859 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
28860 | cat >conftest.$ac_ext <<_ACEOF | |
28861 | /* confdefs.h. */ | |
28862 | _ACEOF | |
28863 | cat confdefs.h >>conftest.$ac_ext | |
28864 | cat >>conftest.$ac_ext <<_ACEOF | |
28865 | /* end confdefs.h. */ | |
28866 | ||
28867 | int | |
28868 | main () | |
28869 | { | |
28870 | ||
28871 | ; | |
28872 | return 0; | |
28873 | } | |
28874 | _ACEOF | |
28875 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28877 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28878 | ac_status=$? |
ac1cb8d3 VS |
28879 | grep -v '^ *+' conftest.er1 >conftest.err |
28880 | rm -f conftest.er1 | |
28881 | cat conftest.err >&5 | |
a848cd7e SC |
28882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28883 | (exit $ac_status); } && | |
89be85c2 VS |
28884 | { ac_try='test -z "$ac_c_werror_flag" |
28885 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28887 | (eval $ac_try) 2>&5 | |
28888 | ac_status=$? | |
28889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28890 | (exit $ac_status); }; } && | |
28891 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28893 | (eval $ac_try) 2>&5 | |
28894 | ac_status=$? | |
28895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28896 | (exit $ac_status); }; }; then | |
28897 | ||
ffa0583f | 28898 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 28899 | echo "${ECHO_T}yes" >&6 |
ffa0583f RL |
28900 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" |
28901 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
28902 | ||
a848cd7e SC |
28903 | else |
28904 | echo "$as_me: failed program was:" >&5 | |
28905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28906 | ||
28907 | ||
28908 | echo "$as_me:$LINENO: result: no" >&5 | |
28909 | echo "${ECHO_T}no" >&6 | |
28910 | ||
28911 | fi | |
ac1cb8d3 VS |
28912 | rm -f conftest.err conftest.$ac_objext \ |
28913 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28914 | |
28915 | fi | |
ac1cb8d3 VS |
28916 | rm -f conftest.err conftest.$ac_objext \ |
28917 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28918 | LDFLAGS="$saveLdflags" |
28919 | else | |
a848cd7e | 28920 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
ffa0583f | 28921 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
28922 | fi |
28923 | ;; | |
28924 | ||
28925 | powerpc-*-darwin* ) | |
28926 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
28927 | cat <<EOF >change-install-names | |
28928 | #!/bin/sh | |
28929 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
28930 | inst_cmd="install_name_tool " | |
28931 | for i in \${libnames} ; do | |
28932 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
28933 | done | |
28934 | \${inst_cmd} \${3} | |
28935 | EOF | |
28936 | chmod +x change-install-names | |
28937 | ;; | |
28938 | ||
28939 | *-*-cygwin* | *-*-mingw32* ) | |
28940 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
28941 | ;; | |
28942 | ||
81f90336 MW |
28943 | *-*-hpux* ) |
28944 | SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib" | |
28945 | WXCONFIG_RPATH="-Wl,+b,\$libdir" | |
28946 | ;; | |
28947 | ||
a848cd7e | 28948 | esac |
ceec2216 | 28949 | |
ffa0583f RL |
28950 | if test $wxUSE_RPATH = "no"; then |
28951 | SAMPLES_RPATH_FLAG='' | |
28952 | SAMPLES_RPATH_POSTLINK='' | |
28953 | WXCONFIG_RPATH='' | |
28954 | fi | |
28955 | ||
28956 | SHARED=1 | |
28957 | ||
28958 | else | |
28959 | ||
ceec2216 RL |
28960 | config_linkage_component="-static" |
28961 | SHARED=0 | |
ffa0583f | 28962 | |
ceec2216 | 28963 | fi |
a848cd7e | 28964 | |
a848cd7e | 28965 | |
ceec2216 RL |
28966 | UNICODE=0 |
28967 | lib_unicode_suffix= | |
28968 | WX_CHARTYPE="ansi" | |
28969 | if test "$wxUSE_UNICODE" = "yes"; then | |
28970 | lib_unicode_suffix=u | |
28971 | WX_CHARTYPE="unicode" | |
28972 | UNICODE=1 | |
a848cd7e SC |
28973 | fi |
28974 | ||
ceec2216 RL |
28975 | lib_debug_suffix= |
28976 | WX_DEBUGTYPE="release" | |
28977 | DEBUG_FLAG=0 | |
28978 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
28979 | lib_debug_suffix=d | |
28980 | WX_DEBUGTYPE="debug" | |
28981 | DEBUG_FLAG=1 | |
28982 | fi | |
a848cd7e | 28983 | |
ceec2216 RL |
28984 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
28985 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 28986 | |
ceec2216 RL |
28987 | DEBUG_INFO=0 |
28988 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
28989 | DEBUG_INFO=1 | |
28990 | fi | |
a848cd7e | 28991 | |
ceec2216 | 28992 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 28993 | |
ceec2216 | 28994 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 28995 | |
ceec2216 | 28996 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 28997 | |
ceec2216 RL |
28998 | if test "$cross_compiling" = "yes"; then |
28999 | HOST_SUFFIX="-$host_alias" | |
29000 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
29001 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
29002 | fi |
29003 | ||
dd21ced8 | 29004 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
ceec2216 RL |
29005 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
29006 | ||
29007 | ||
29008 | ||
a848cd7e | 29009 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
29010 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
29011 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 29012 | |
a848cd7e | 29013 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
29014 | |
29015 | # Extract the first word of "Rez", so it can be a program name with args. | |
29016 | set dummy Rez; ac_word=$2 | |
29017 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29018 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29019 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
29020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29021 | else | |
29022 | if test -n "$RESCOMP"; then | |
29023 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
29024 | else | |
29025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29026 | for as_dir in $PATH | |
29027 | do | |
29028 | IFS=$as_save_IFS | |
29029 | test -z "$as_dir" && as_dir=. | |
29030 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29031 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29032 | ac_cv_prog_RESCOMP="Rez" | |
29033 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29034 | break 2 | |
29035 | fi | |
29036 | done | |
29037 | done | |
29038 | ||
29039 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
29040 | fi | |
29041 | fi | |
29042 | RESCOMP=$ac_cv_prog_RESCOMP | |
29043 | if test -n "$RESCOMP"; then | |
29044 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
29045 | echo "${ECHO_T}$RESCOMP" >&6 | |
29046 | else | |
29047 | echo "$as_me:$LINENO: result: no" >&5 | |
29048 | echo "${ECHO_T}no" >&6 | |
29049 | fi | |
29050 | ||
29051 | # Extract the first word of "DeRez", so it can be a program name with args. | |
29052 | set dummy DeRez; ac_word=$2 | |
29053 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29054 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29055 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
29056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29057 | else | |
29058 | if test -n "$DEREZ"; then | |
29059 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
29060 | else | |
29061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29062 | for as_dir in $PATH | |
29063 | do | |
29064 | IFS=$as_save_IFS | |
29065 | test -z "$as_dir" && as_dir=. | |
29066 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29067 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29068 | ac_cv_prog_DEREZ="DeRez" | |
29069 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29070 | break 2 | |
29071 | fi | |
29072 | done | |
29073 | done | |
29074 | ||
29075 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
29076 | fi | |
29077 | fi | |
29078 | DEREZ=$ac_cv_prog_DEREZ | |
29079 | if test -n "$DEREZ"; then | |
29080 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
29081 | echo "${ECHO_T}$DEREZ" >&6 | |
29082 | else | |
29083 | echo "$as_me:$LINENO: result: no" >&5 | |
29084 | echo "${ECHO_T}no" >&6 | |
29085 | fi | |
29086 | ||
29087 | # Extract the first word of "SetFile", so it can be a program name with args. | |
29088 | set dummy SetFile; ac_word=$2 | |
29089 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29090 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29091 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
29092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29093 | else | |
29094 | if test -n "$SETFILE"; then | |
29095 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
29096 | else | |
29097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29098 | for as_dir in $PATH | |
29099 | do | |
29100 | IFS=$as_save_IFS | |
29101 | test -z "$as_dir" && as_dir=. | |
29102 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29103 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29104 | ac_cv_prog_SETFILE="SetFile" | |
29105 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29106 | break 2 | |
29107 | fi | |
29108 | done | |
29109 | done | |
29110 | ||
29111 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
29112 | fi | |
29113 | fi | |
29114 | SETFILE=$ac_cv_prog_SETFILE | |
29115 | if test -n "$SETFILE"; then | |
29116 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
29117 | echo "${ECHO_T}$SETFILE" >&6 | |
29118 | else | |
29119 | echo "$as_me:$LINENO: result: no" >&5 | |
29120 | echo "${ECHO_T}no" >&6 | |
29121 | fi | |
29122 | ||
29123 | ||
29124 | MACSETFILE="\$(SETFILE)" | |
29125 | ||
29126 | if test "$wxUSE_MAC" = 1; then | |
29127 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" | |
29128 | ||
29129 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
29130 | else | |
29131 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
29132 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
29133 | fi | |
29134 | else | |
ffa0583f RL |
29135 | MACSETFILE="@true" |
29136 | MACRESWXCONFIG="@true" | |
a848cd7e SC |
29137 | |
29138 | if test "$wxUSE_PM" = 1; then | |
29139 | MACRESCOMP="emxbind -ep" | |
29140 | else | |
ffa0583f | 29141 | MACRESCOMP="@true" |
a848cd7e SC |
29142 | fi |
29143 | fi | |
29144 | ||
29145 | ||
29146 | ||
29147 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
29148 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
29149 | if test "${ac_cv_type_mode_t+set}" = set; then | |
29150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29151 | else | |
29152 | cat >conftest.$ac_ext <<_ACEOF | |
29153 | /* confdefs.h. */ | |
29154 | _ACEOF | |
29155 | cat confdefs.h >>conftest.$ac_ext | |
29156 | cat >>conftest.$ac_ext <<_ACEOF | |
29157 | /* end confdefs.h. */ | |
29158 | $ac_includes_default | |
29159 | int | |
29160 | main () | |
29161 | { | |
29162 | if ((mode_t *) 0) | |
29163 | return 0; | |
29164 | if (sizeof (mode_t)) | |
29165 | return 0; | |
29166 | ; | |
29167 | return 0; | |
29168 | } | |
29169 | _ACEOF | |
29170 | rm -f conftest.$ac_objext | |
29171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29172 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29173 | ac_status=$? |
ac1cb8d3 VS |
29174 | grep -v '^ *+' conftest.er1 >conftest.err |
29175 | rm -f conftest.er1 | |
29176 | cat conftest.err >&5 | |
a848cd7e SC |
29177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29178 | (exit $ac_status); } && | |
89be85c2 VS |
29179 | { ac_try='test -z "$ac_c_werror_flag" |
29180 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29182 | (eval $ac_try) 2>&5 | |
29183 | ac_status=$? | |
29184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29185 | (exit $ac_status); }; } && | |
29186 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29188 | (eval $ac_try) 2>&5 | |
29189 | ac_status=$? | |
29190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29191 | (exit $ac_status); }; }; then | |
29192 | ac_cv_type_mode_t=yes | |
29193 | else | |
29194 | echo "$as_me: failed program was:" >&5 | |
29195 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29196 | ||
29197 | ac_cv_type_mode_t=no | |
29198 | fi | |
ac1cb8d3 | 29199 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29200 | fi |
29201 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
29202 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
29203 | if test $ac_cv_type_mode_t = yes; then | |
29204 | : | |
29205 | else | |
29206 | ||
29207 | cat >>confdefs.h <<_ACEOF | |
29208 | #define mode_t int | |
29209 | _ACEOF | |
29210 | ||
29211 | fi | |
29212 | ||
29213 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
29214 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
29215 | if test "${ac_cv_type_off_t+set}" = set; then | |
29216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29217 | else | |
29218 | cat >conftest.$ac_ext <<_ACEOF | |
29219 | /* confdefs.h. */ | |
29220 | _ACEOF | |
29221 | cat confdefs.h >>conftest.$ac_ext | |
29222 | cat >>conftest.$ac_ext <<_ACEOF | |
29223 | /* end confdefs.h. */ | |
29224 | $ac_includes_default | |
29225 | int | |
29226 | main () | |
29227 | { | |
29228 | if ((off_t *) 0) | |
29229 | return 0; | |
29230 | if (sizeof (off_t)) | |
29231 | return 0; | |
29232 | ; | |
29233 | return 0; | |
29234 | } | |
29235 | _ACEOF | |
29236 | rm -f conftest.$ac_objext | |
29237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29238 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29239 | ac_status=$? |
ac1cb8d3 VS |
29240 | grep -v '^ *+' conftest.er1 >conftest.err |
29241 | rm -f conftest.er1 | |
29242 | cat conftest.err >&5 | |
a848cd7e SC |
29243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29244 | (exit $ac_status); } && | |
89be85c2 VS |
29245 | { ac_try='test -z "$ac_c_werror_flag" |
29246 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29248 | (eval $ac_try) 2>&5 | |
29249 | ac_status=$? | |
29250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29251 | (exit $ac_status); }; } && | |
29252 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29254 | (eval $ac_try) 2>&5 | |
29255 | ac_status=$? | |
29256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29257 | (exit $ac_status); }; }; then | |
29258 | ac_cv_type_off_t=yes | |
29259 | else | |
29260 | echo "$as_me: failed program was:" >&5 | |
29261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29262 | ||
29263 | ac_cv_type_off_t=no | |
29264 | fi | |
ac1cb8d3 | 29265 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29266 | fi |
29267 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
29268 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
29269 | if test $ac_cv_type_off_t = yes; then | |
29270 | : | |
29271 | else | |
29272 | ||
29273 | cat >>confdefs.h <<_ACEOF | |
29274 | #define off_t long | |
29275 | _ACEOF | |
29276 | ||
29277 | fi | |
29278 | ||
29279 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
29280 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
29281 | if test "${ac_cv_type_pid_t+set}" = set; then | |
29282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29283 | else | |
29284 | cat >conftest.$ac_ext <<_ACEOF | |
29285 | /* confdefs.h. */ | |
29286 | _ACEOF | |
29287 | cat confdefs.h >>conftest.$ac_ext | |
29288 | cat >>conftest.$ac_ext <<_ACEOF | |
29289 | /* end confdefs.h. */ | |
29290 | $ac_includes_default | |
29291 | int | |
29292 | main () | |
29293 | { | |
29294 | if ((pid_t *) 0) | |
29295 | return 0; | |
29296 | if (sizeof (pid_t)) | |
29297 | return 0; | |
29298 | ; | |
29299 | return 0; | |
29300 | } | |
29301 | _ACEOF | |
29302 | rm -f conftest.$ac_objext | |
29303 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29304 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29305 | ac_status=$? |
ac1cb8d3 VS |
29306 | grep -v '^ *+' conftest.er1 >conftest.err |
29307 | rm -f conftest.er1 | |
29308 | cat conftest.err >&5 | |
a848cd7e SC |
29309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29310 | (exit $ac_status); } && | |
89be85c2 VS |
29311 | { ac_try='test -z "$ac_c_werror_flag" |
29312 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29314 | (eval $ac_try) 2>&5 | |
29315 | ac_status=$? | |
29316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29317 | (exit $ac_status); }; } && | |
29318 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29320 | (eval $ac_try) 2>&5 | |
29321 | ac_status=$? | |
29322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29323 | (exit $ac_status); }; }; then | |
29324 | ac_cv_type_pid_t=yes | |
29325 | else | |
29326 | echo "$as_me: failed program was:" >&5 | |
29327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29328 | ||
29329 | ac_cv_type_pid_t=no | |
29330 | fi | |
ac1cb8d3 | 29331 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29332 | fi |
29333 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
29334 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
29335 | if test $ac_cv_type_pid_t = yes; then | |
29336 | : | |
29337 | else | |
29338 | ||
29339 | cat >>confdefs.h <<_ACEOF | |
29340 | #define pid_t int | |
29341 | _ACEOF | |
29342 | ||
29343 | fi | |
29344 | ||
29345 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
29346 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
29347 | if test "${ac_cv_type_size_t+set}" = set; then | |
29348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29349 | else | |
29350 | cat >conftest.$ac_ext <<_ACEOF | |
29351 | /* confdefs.h. */ | |
29352 | _ACEOF | |
29353 | cat confdefs.h >>conftest.$ac_ext | |
29354 | cat >>conftest.$ac_ext <<_ACEOF | |
29355 | /* end confdefs.h. */ | |
29356 | $ac_includes_default | |
29357 | int | |
29358 | main () | |
29359 | { | |
29360 | if ((size_t *) 0) | |
29361 | return 0; | |
29362 | if (sizeof (size_t)) | |
29363 | return 0; | |
29364 | ; | |
29365 | return 0; | |
29366 | } | |
29367 | _ACEOF | |
29368 | rm -f conftest.$ac_objext | |
29369 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29370 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29371 | ac_status=$? |
ac1cb8d3 VS |
29372 | grep -v '^ *+' conftest.er1 >conftest.err |
29373 | rm -f conftest.er1 | |
29374 | cat conftest.err >&5 | |
a848cd7e SC |
29375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29376 | (exit $ac_status); } && | |
89be85c2 VS |
29377 | { ac_try='test -z "$ac_c_werror_flag" |
29378 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29380 | (eval $ac_try) 2>&5 | |
29381 | ac_status=$? | |
29382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29383 | (exit $ac_status); }; } && | |
29384 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29386 | (eval $ac_try) 2>&5 | |
29387 | ac_status=$? | |
29388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29389 | (exit $ac_status); }; }; then | |
29390 | ac_cv_type_size_t=yes | |
29391 | else | |
29392 | echo "$as_me: failed program was:" >&5 | |
29393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29394 | ||
29395 | ac_cv_type_size_t=no | |
29396 | fi | |
ac1cb8d3 | 29397 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29398 | fi |
29399 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
29400 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
29401 | if test $ac_cv_type_size_t = yes; then | |
29402 | : | |
29403 | else | |
29404 | ||
29405 | cat >>confdefs.h <<_ACEOF | |
29406 | #define size_t unsigned | |
29407 | _ACEOF | |
29408 | ||
29409 | fi | |
29410 | ||
29411 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
29412 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
29413 | if test "${ac_cv_type_uid_t+set}" = set; then | |
29414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29415 | else | |
29416 | cat >conftest.$ac_ext <<_ACEOF | |
29417 | /* confdefs.h. */ | |
29418 | _ACEOF | |
29419 | cat confdefs.h >>conftest.$ac_ext | |
29420 | cat >>conftest.$ac_ext <<_ACEOF | |
29421 | /* end confdefs.h. */ | |
29422 | #include <sys/types.h> | |
29423 | ||
29424 | _ACEOF | |
29425 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
29426 | $EGREP "uid_t" >/dev/null 2>&1; then | |
29427 | ac_cv_type_uid_t=yes | |
29428 | else | |
29429 | ac_cv_type_uid_t=no | |
29430 | fi | |
29431 | rm -f conftest* | |
29432 | ||
29433 | fi | |
29434 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
29435 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
29436 | if test $ac_cv_type_uid_t = no; then | |
29437 | ||
29438 | cat >>confdefs.h <<\_ACEOF | |
29439 | #define uid_t int | |
29440 | _ACEOF | |
29441 | ||
29442 | ||
29443 | cat >>confdefs.h <<\_ACEOF | |
29444 | #define gid_t int | |
29445 | _ACEOF | |
29446 | ||
29447 | fi | |
29448 | ||
29449 | ||
d51253e8 RL |
29450 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
29451 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
29452 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
29453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29454 | else | |
29455 | cat >conftest.$ac_ext <<_ACEOF | |
29456 | /* confdefs.h. */ | |
29457 | _ACEOF | |
29458 | cat confdefs.h >>conftest.$ac_ext | |
29459 | cat >>conftest.$ac_ext <<_ACEOF | |
29460 | /* end confdefs.h. */ | |
29461 | $ac_includes_default | |
29462 | int | |
29463 | main () | |
29464 | { | |
29465 | if ((ssize_t *) 0) | |
29466 | return 0; | |
29467 | if (sizeof (ssize_t)) | |
29468 | return 0; | |
29469 | ; | |
29470 | return 0; | |
29471 | } | |
29472 | _ACEOF | |
29473 | rm -f conftest.$ac_objext | |
29474 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29475 | (eval $ac_compile) 2>conftest.er1 | |
29476 | ac_status=$? | |
29477 | grep -v '^ *+' conftest.er1 >conftest.err | |
29478 | rm -f conftest.er1 | |
29479 | cat conftest.err >&5 | |
29480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29481 | (exit $ac_status); } && | |
89be85c2 VS |
29482 | { ac_try='test -z "$ac_c_werror_flag" |
29483 | || test ! -s conftest.err' | |
d51253e8 RL |
29484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29485 | (eval $ac_try) 2>&5 | |
29486 | ac_status=$? | |
29487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29488 | (exit $ac_status); }; } && | |
29489 | { ac_try='test -s conftest.$ac_objext' | |
29490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29491 | (eval $ac_try) 2>&5 | |
29492 | ac_status=$? | |
29493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29494 | (exit $ac_status); }; }; then | |
29495 | ac_cv_type_ssize_t=yes | |
29496 | else | |
29497 | echo "$as_me: failed program was:" >&5 | |
29498 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29499 | ||
29500 | ac_cv_type_ssize_t=no | |
29501 | fi | |
29502 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
29503 | fi | |
29504 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
29505 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
29506 | if test $ac_cv_type_ssize_t = yes; then | |
29507 | ||
29508 | cat >>confdefs.h <<_ACEOF | |
29509 | #define HAVE_SSIZE_T 1 | |
29510 | _ACEOF | |
29511 | ||
29512 | ||
29513 | fi | |
29514 | ||
29515 | ||
a848cd7e SC |
29516 | |
29517 | ||
29518 | ac_ext=cc | |
29519 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29520 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29521 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29522 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29523 | ||
29524 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
29525 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
29526 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
29527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29528 | else | |
29529 | ||
29530 | cat >conftest.$ac_ext <<_ACEOF | |
29531 | /* confdefs.h. */ | |
29532 | _ACEOF | |
29533 | cat confdefs.h >>conftest.$ac_ext | |
29534 | cat >>conftest.$ac_ext <<_ACEOF | |
29535 | /* end confdefs.h. */ | |
29536 | #include <stddef.h> | |
29537 | int | |
29538 | main () | |
29539 | { | |
29540 | ||
29541 | return 0; } | |
29542 | ||
29543 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
29544 | ||
29545 | int bar() { | |
29546 | ||
29547 | ; | |
29548 | return 0; | |
29549 | } | |
29550 | _ACEOF | |
29551 | rm -f conftest.$ac_objext | |
29552 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29553 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29554 | ac_status=$? |
ac1cb8d3 VS |
29555 | grep -v '^ *+' conftest.er1 >conftest.err |
29556 | rm -f conftest.er1 | |
29557 | cat conftest.err >&5 | |
a848cd7e SC |
29558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29559 | (exit $ac_status); } && | |
89be85c2 VS |
29560 | { ac_try='test -z "$ac_cxx_werror_flag" |
29561 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29563 | (eval $ac_try) 2>&5 | |
29564 | ac_status=$? | |
29565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29566 | (exit $ac_status); }; } && | |
29567 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29569 | (eval $ac_try) 2>&5 | |
29570 | ac_status=$? | |
29571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29572 | (exit $ac_status); }; }; then | |
29573 | wx_cv_size_t_is_uint=no | |
29574 | else | |
29575 | echo "$as_me: failed program was:" >&5 | |
29576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29577 | ||
29578 | wx_cv_size_t_is_uint=yes | |
29579 | ||
29580 | fi | |
ac1cb8d3 | 29581 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29582 | |
29583 | ||
29584 | fi | |
29585 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
29586 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
29587 | ||
29588 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
29589 | cat >>confdefs.h <<\_ACEOF | |
29590 | #define wxSIZE_T_IS_UINT 1 | |
29591 | _ACEOF | |
29592 | ||
29593 | else | |
29594 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
29595 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
29596 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
29597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29598 | else | |
29599 | cat >conftest.$ac_ext <<_ACEOF | |
29600 | /* confdefs.h. */ | |
29601 | _ACEOF | |
29602 | cat confdefs.h >>conftest.$ac_ext | |
29603 | cat >>conftest.$ac_ext <<_ACEOF | |
29604 | /* end confdefs.h. */ | |
29605 | #include <stddef.h> | |
29606 | int | |
29607 | main () | |
29608 | { | |
29609 | ||
29610 | return 0; } | |
29611 | ||
29612 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
29613 | ||
29614 | int bar() { | |
29615 | ||
29616 | ; | |
29617 | return 0; | |
29618 | } | |
29619 | _ACEOF | |
29620 | rm -f conftest.$ac_objext | |
29621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29622 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29623 | ac_status=$? |
ac1cb8d3 VS |
29624 | grep -v '^ *+' conftest.er1 >conftest.err |
29625 | rm -f conftest.er1 | |
29626 | cat conftest.err >&5 | |
a848cd7e SC |
29627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29628 | (exit $ac_status); } && | |
89be85c2 VS |
29629 | { ac_try='test -z "$ac_cxx_werror_flag" |
29630 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29632 | (eval $ac_try) 2>&5 | |
29633 | ac_status=$? | |
29634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29635 | (exit $ac_status); }; } && | |
29636 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29638 | (eval $ac_try) 2>&5 | |
29639 | ac_status=$? | |
29640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29641 | (exit $ac_status); }; }; then | |
29642 | wx_cv_size_t_is_ulong=no | |
29643 | else | |
29644 | echo "$as_me: failed program was:" >&5 | |
29645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29646 | ||
29647 | wx_cv_size_t_is_ulong=yes | |
29648 | ||
29649 | fi | |
ac1cb8d3 | 29650 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29651 | |
29652 | fi | |
29653 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
29654 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
29655 | ||
29656 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
29657 | cat >>confdefs.h <<\_ACEOF | |
29658 | #define wxSIZE_T_IS_ULONG 1 | |
29659 | _ACEOF | |
29660 | ||
29661 | fi | |
29662 | fi | |
29663 | ||
29664 | ac_ext=c | |
29665 | ac_cpp='$CPP $CPPFLAGS' | |
29666 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29667 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29668 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29669 | ||
29670 | ||
29671 | ||
29672 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
29673 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
29674 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
29675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29676 | else | |
29677 | ||
29678 | cat >conftest.$ac_ext <<_ACEOF | |
29679 | /* confdefs.h. */ | |
29680 | _ACEOF | |
29681 | cat confdefs.h >>conftest.$ac_ext | |
29682 | cat >>conftest.$ac_ext <<_ACEOF | |
29683 | /* end confdefs.h. */ | |
29684 | #include <pwd.h> | |
29685 | int | |
29686 | main () | |
29687 | { | |
29688 | ||
29689 | char *p; | |
29690 | struct passwd *pw; | |
29691 | p = pw->pw_gecos; | |
29692 | ||
29693 | ; | |
29694 | return 0; | |
29695 | } | |
29696 | _ACEOF | |
29697 | rm -f conftest.$ac_objext | |
29698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29699 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29700 | ac_status=$? |
ac1cb8d3 VS |
29701 | grep -v '^ *+' conftest.er1 >conftest.err |
29702 | rm -f conftest.er1 | |
29703 | cat conftest.err >&5 | |
a848cd7e SC |
29704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29705 | (exit $ac_status); } && | |
89be85c2 VS |
29706 | { ac_try='test -z "$ac_c_werror_flag" |
29707 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29709 | (eval $ac_try) 2>&5 | |
29710 | ac_status=$? | |
29711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29712 | (exit $ac_status); }; } && | |
29713 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29715 | (eval $ac_try) 2>&5 | |
29716 | ac_status=$? | |
29717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29718 | (exit $ac_status); }; }; then | |
29719 | ||
29720 | wx_cv_struct_pw_gecos=yes | |
29721 | ||
29722 | else | |
29723 | echo "$as_me: failed program was:" >&5 | |
29724 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29725 | ||
29726 | ||
29727 | wx_cv_struct_pw_gecos=no | |
29728 | ||
29729 | ||
29730 | fi | |
ac1cb8d3 | 29731 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29732 | |
29733 | ||
29734 | fi | |
29735 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
29736 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
29737 | ||
29738 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
29739 | cat >>confdefs.h <<\_ACEOF | |
29740 | #define HAVE_PW_GECOS 1 | |
29741 | _ACEOF | |
29742 | ||
29743 | fi | |
29744 | ||
29745 | ||
29746 | if test "$wx_cv_sizeof_wchar_t" != "0"; then | |
29747 | cat >>confdefs.h <<\_ACEOF | |
29748 | #define wxUSE_WCHAR_T 1 | |
29749 | _ACEOF | |
29750 | ||
29751 | ||
29752 | WCSLEN_FOUND=0 | |
29753 | WCHAR_LINK= | |
29754 | ||
29755 | for ac_func in wcslen | |
29756 | do | |
29757 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29758 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29759 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29760 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29762 | else | |
29763 | cat >conftest.$ac_ext <<_ACEOF | |
29764 | /* confdefs.h. */ | |
29765 | _ACEOF | |
29766 | cat confdefs.h >>conftest.$ac_ext | |
29767 | cat >>conftest.$ac_ext <<_ACEOF | |
29768 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29769 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29770 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29771 | #define $ac_func innocuous_$ac_func | |
29772 | ||
a848cd7e SC |
29773 | /* System header to define __stub macros and hopefully few prototypes, |
29774 | which can conflict with char $ac_func (); below. | |
29775 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29776 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29777 | |
a848cd7e SC |
29778 | #ifdef __STDC__ |
29779 | # include <limits.h> | |
29780 | #else | |
29781 | # include <assert.h> | |
29782 | #endif | |
ac1cb8d3 VS |
29783 | |
29784 | #undef $ac_func | |
29785 | ||
a848cd7e SC |
29786 | /* Override any gcc2 internal prototype to avoid an error. */ |
29787 | #ifdef __cplusplus | |
29788 | extern "C" | |
29789 | { | |
29790 | #endif | |
29791 | /* We use char because int might match the return type of a gcc2 | |
29792 | builtin and then its argument prototype would still apply. */ | |
29793 | char $ac_func (); | |
29794 | /* The GNU C library defines this for functions which it implements | |
29795 | to always fail with ENOSYS. Some functions are actually named | |
29796 | something starting with __ and the normal name is an alias. */ | |
29797 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29798 | choke me | |
29799 | #else | |
29800 | char (*f) () = $ac_func; | |
29801 | #endif | |
29802 | #ifdef __cplusplus | |
29803 | } | |
29804 | #endif | |
29805 | ||
29806 | int | |
29807 | main () | |
29808 | { | |
29809 | return f != $ac_func; | |
29810 | ; | |
29811 | return 0; | |
29812 | } | |
29813 | _ACEOF | |
29814 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29815 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29816 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29817 | ac_status=$? |
ac1cb8d3 VS |
29818 | grep -v '^ *+' conftest.er1 >conftest.err |
29819 | rm -f conftest.er1 | |
29820 | cat conftest.err >&5 | |
a848cd7e SC |
29821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29822 | (exit $ac_status); } && | |
89be85c2 VS |
29823 | { ac_try='test -z "$ac_c_werror_flag" |
29824 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29826 | (eval $ac_try) 2>&5 | |
29827 | ac_status=$? | |
29828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29829 | (exit $ac_status); }; } && | |
29830 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29832 | (eval $ac_try) 2>&5 | |
29833 | ac_status=$? | |
29834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29835 | (exit $ac_status); }; }; then | |
29836 | eval "$as_ac_var=yes" | |
29837 | else | |
29838 | echo "$as_me: failed program was:" >&5 | |
29839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29840 | ||
29841 | eval "$as_ac_var=no" | |
29842 | fi | |
ac1cb8d3 VS |
29843 | rm -f conftest.err conftest.$ac_objext \ |
29844 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29845 | fi |
29846 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29847 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29848 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29849 | cat >>confdefs.h <<_ACEOF | |
29850 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29851 | _ACEOF | |
29852 | WCSLEN_FOUND=1 | |
29853 | fi | |
29854 | done | |
29855 | ||
29856 | ||
29857 | if test "$WCSLEN_FOUND" = 0; then | |
29858 | if test "$TOOLKIT" = "MSW"; then | |
29859 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
29860 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
29861 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
29862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29863 | else | |
29864 | ac_check_lib_save_LIBS=$LIBS | |
29865 | LIBS="-lmsvcrt $LIBS" | |
29866 | cat >conftest.$ac_ext <<_ACEOF | |
29867 | /* confdefs.h. */ | |
29868 | _ACEOF | |
29869 | cat confdefs.h >>conftest.$ac_ext | |
29870 | cat >>conftest.$ac_ext <<_ACEOF | |
29871 | /* end confdefs.h. */ | |
29872 | ||
29873 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29874 | #ifdef __cplusplus | |
29875 | extern "C" | |
29876 | #endif | |
29877 | /* We use char because int might match the return type of a gcc2 | |
29878 | builtin and then its argument prototype would still apply. */ | |
29879 | char wcslen (); | |
29880 | int | |
29881 | main () | |
29882 | { | |
29883 | wcslen (); | |
29884 | ; | |
29885 | return 0; | |
29886 | } | |
29887 | _ACEOF | |
29888 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29889 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29890 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29891 | ac_status=$? |
ac1cb8d3 VS |
29892 | grep -v '^ *+' conftest.er1 >conftest.err |
29893 | rm -f conftest.er1 | |
29894 | cat conftest.err >&5 | |
a848cd7e SC |
29895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29896 | (exit $ac_status); } && | |
89be85c2 VS |
29897 | { ac_try='test -z "$ac_c_werror_flag" |
29898 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29900 | (eval $ac_try) 2>&5 | |
29901 | ac_status=$? | |
29902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29903 | (exit $ac_status); }; } && | |
29904 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29906 | (eval $ac_try) 2>&5 | |
29907 | ac_status=$? | |
29908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29909 | (exit $ac_status); }; }; then | |
29910 | ac_cv_lib_msvcrt_wcslen=yes | |
29911 | else | |
29912 | echo "$as_me: failed program was:" >&5 | |
29913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29914 | ||
29915 | ac_cv_lib_msvcrt_wcslen=no | |
29916 | fi | |
ac1cb8d3 VS |
29917 | rm -f conftest.err conftest.$ac_objext \ |
29918 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29919 | LIBS=$ac_check_lib_save_LIBS |
29920 | fi | |
29921 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
29922 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
29923 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
29924 | WCHAR_OK=1 | |
29925 | fi | |
29926 | ||
29927 | else | |
29928 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
29929 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
29930 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
29931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29932 | else | |
29933 | ac_check_lib_save_LIBS=$LIBS | |
29934 | LIBS="-lw $LIBS" | |
29935 | cat >conftest.$ac_ext <<_ACEOF | |
29936 | /* confdefs.h. */ | |
29937 | _ACEOF | |
29938 | cat confdefs.h >>conftest.$ac_ext | |
29939 | cat >>conftest.$ac_ext <<_ACEOF | |
29940 | /* end confdefs.h. */ | |
29941 | ||
29942 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29943 | #ifdef __cplusplus | |
29944 | extern "C" | |
29945 | #endif | |
29946 | /* We use char because int might match the return type of a gcc2 | |
29947 | builtin and then its argument prototype would still apply. */ | |
29948 | char wcslen (); | |
29949 | int | |
29950 | main () | |
29951 | { | |
29952 | wcslen (); | |
29953 | ; | |
29954 | return 0; | |
29955 | } | |
29956 | _ACEOF | |
29957 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29958 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29959 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29960 | ac_status=$? |
ac1cb8d3 VS |
29961 | grep -v '^ *+' conftest.er1 >conftest.err |
29962 | rm -f conftest.er1 | |
29963 | cat conftest.err >&5 | |
a848cd7e SC |
29964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29965 | (exit $ac_status); } && | |
89be85c2 VS |
29966 | { ac_try='test -z "$ac_c_werror_flag" |
29967 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29975 | (eval $ac_try) 2>&5 | |
29976 | ac_status=$? | |
29977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29978 | (exit $ac_status); }; }; then | |
29979 | ac_cv_lib_w_wcslen=yes | |
29980 | else | |
29981 | echo "$as_me: failed program was:" >&5 | |
29982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29983 | ||
29984 | ac_cv_lib_w_wcslen=no | |
29985 | fi | |
ac1cb8d3 VS |
29986 | rm -f conftest.err conftest.$ac_objext \ |
29987 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29988 | LIBS=$ac_check_lib_save_LIBS |
29989 | fi | |
29990 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
29991 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
29992 | if test $ac_cv_lib_w_wcslen = yes; then | |
29993 | ||
29994 | WCHAR_LINK=" -lw" | |
29995 | WCSLEN_FOUND=1 | |
29996 | ||
29997 | fi | |
29998 | ||
29999 | fi | |
30000 | fi | |
30001 | ||
30002 | if test "$WCSLEN_FOUND" = 1; then | |
30003 | cat >>confdefs.h <<\_ACEOF | |
30004 | #define HAVE_WCSLEN 1 | |
30005 | _ACEOF | |
30006 | ||
30007 | fi | |
30008 | ||
81f90336 | 30009 | if test "$USE_HPUX" = 1; then |
473276a9 VS |
30010 | CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE " |
30011 | fi | |
30012 | ||
a848cd7e SC |
30013 | |
30014 | for ac_func in wcsrtombs | |
30015 | do | |
30016 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30017 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30018 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30019 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30021 | else | |
30022 | cat >conftest.$ac_ext <<_ACEOF | |
30023 | /* confdefs.h. */ | |
30024 | _ACEOF | |
30025 | cat confdefs.h >>conftest.$ac_ext | |
30026 | cat >>conftest.$ac_ext <<_ACEOF | |
30027 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30028 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30029 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30030 | #define $ac_func innocuous_$ac_func | |
30031 | ||
a848cd7e SC |
30032 | /* System header to define __stub macros and hopefully few prototypes, |
30033 | which can conflict with char $ac_func (); below. | |
30034 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30035 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30036 | |
a848cd7e SC |
30037 | #ifdef __STDC__ |
30038 | # include <limits.h> | |
30039 | #else | |
30040 | # include <assert.h> | |
30041 | #endif | |
ac1cb8d3 VS |
30042 | |
30043 | #undef $ac_func | |
30044 | ||
a848cd7e SC |
30045 | /* Override any gcc2 internal prototype to avoid an error. */ |
30046 | #ifdef __cplusplus | |
30047 | extern "C" | |
30048 | { | |
30049 | #endif | |
30050 | /* We use char because int might match the return type of a gcc2 | |
30051 | builtin and then its argument prototype would still apply. */ | |
30052 | char $ac_func (); | |
30053 | /* The GNU C library defines this for functions which it implements | |
30054 | to always fail with ENOSYS. Some functions are actually named | |
30055 | something starting with __ and the normal name is an alias. */ | |
30056 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30057 | choke me | |
30058 | #else | |
30059 | char (*f) () = $ac_func; | |
30060 | #endif | |
30061 | #ifdef __cplusplus | |
30062 | } | |
30063 | #endif | |
30064 | ||
30065 | int | |
30066 | main () | |
30067 | { | |
30068 | return f != $ac_func; | |
30069 | ; | |
30070 | return 0; | |
30071 | } | |
30072 | _ACEOF | |
30073 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30074 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30075 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30076 | ac_status=$? |
ac1cb8d3 VS |
30077 | grep -v '^ *+' conftest.er1 >conftest.err |
30078 | rm -f conftest.er1 | |
30079 | cat conftest.err >&5 | |
a848cd7e SC |
30080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30081 | (exit $ac_status); } && | |
89be85c2 VS |
30082 | { ac_try='test -z "$ac_c_werror_flag" |
30083 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30085 | (eval $ac_try) 2>&5 | |
30086 | ac_status=$? | |
30087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30088 | (exit $ac_status); }; } && | |
30089 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30091 | (eval $ac_try) 2>&5 | |
30092 | ac_status=$? | |
30093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30094 | (exit $ac_status); }; }; then | |
30095 | eval "$as_ac_var=yes" | |
30096 | else | |
30097 | echo "$as_me: failed program was:" >&5 | |
30098 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30099 | ||
30100 | eval "$as_ac_var=no" | |
30101 | fi | |
ac1cb8d3 VS |
30102 | rm -f conftest.err conftest.$ac_objext \ |
30103 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30104 | fi |
30105 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30106 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30107 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30108 | cat >>confdefs.h <<_ACEOF | |
30109 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30110 | _ACEOF | |
30111 | ||
30112 | fi | |
30113 | done | |
30114 | ||
30115 | else | |
30116 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
30117 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
30118 | fi | |
30119 | ||
30120 | ||
30121 | ||
30122 | ac_ext=cc | |
30123 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30124 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30125 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30126 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30127 | ||
30128 | ||
30129 | ||
30130 | for ac_func in vsnprintf | |
30131 | do | |
30132 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30133 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30134 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30135 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30137 | else | |
30138 | cat >conftest.$ac_ext <<_ACEOF | |
30139 | /* confdefs.h. */ | |
30140 | _ACEOF | |
30141 | cat confdefs.h >>conftest.$ac_ext | |
30142 | cat >>conftest.$ac_ext <<_ACEOF | |
30143 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30144 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30145 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30146 | #define $ac_func innocuous_$ac_func | |
30147 | ||
a848cd7e SC |
30148 | /* System header to define __stub macros and hopefully few prototypes, |
30149 | which can conflict with char $ac_func (); below. | |
30150 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30151 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30152 | |
a848cd7e SC |
30153 | #ifdef __STDC__ |
30154 | # include <limits.h> | |
30155 | #else | |
30156 | # include <assert.h> | |
30157 | #endif | |
ac1cb8d3 VS |
30158 | |
30159 | #undef $ac_func | |
30160 | ||
a848cd7e SC |
30161 | /* Override any gcc2 internal prototype to avoid an error. */ |
30162 | #ifdef __cplusplus | |
30163 | extern "C" | |
30164 | { | |
30165 | #endif | |
30166 | /* We use char because int might match the return type of a gcc2 | |
30167 | builtin and then its argument prototype would still apply. */ | |
30168 | char $ac_func (); | |
30169 | /* The GNU C library defines this for functions which it implements | |
30170 | to always fail with ENOSYS. Some functions are actually named | |
30171 | something starting with __ and the normal name is an alias. */ | |
30172 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30173 | choke me | |
30174 | #else | |
30175 | char (*f) () = $ac_func; | |
30176 | #endif | |
30177 | #ifdef __cplusplus | |
30178 | } | |
30179 | #endif | |
30180 | ||
30181 | int | |
30182 | main () | |
30183 | { | |
30184 | return f != $ac_func; | |
30185 | ; | |
30186 | return 0; | |
30187 | } | |
30188 | _ACEOF | |
30189 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30190 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30191 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30192 | ac_status=$? |
ac1cb8d3 VS |
30193 | grep -v '^ *+' conftest.er1 >conftest.err |
30194 | rm -f conftest.er1 | |
30195 | cat conftest.err >&5 | |
a848cd7e SC |
30196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30197 | (exit $ac_status); } && | |
89be85c2 VS |
30198 | { ac_try='test -z "$ac_cxx_werror_flag" |
30199 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30201 | (eval $ac_try) 2>&5 | |
30202 | ac_status=$? | |
30203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30204 | (exit $ac_status); }; } && | |
30205 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30207 | (eval $ac_try) 2>&5 | |
30208 | ac_status=$? | |
30209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30210 | (exit $ac_status); }; }; then | |
30211 | eval "$as_ac_var=yes" | |
30212 | else | |
30213 | echo "$as_me: failed program was:" >&5 | |
30214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30215 | ||
30216 | eval "$as_ac_var=no" | |
30217 | fi | |
ac1cb8d3 VS |
30218 | rm -f conftest.err conftest.$ac_objext \ |
30219 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30220 | fi |
30221 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30222 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30223 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30224 | cat >>confdefs.h <<_ACEOF | |
30225 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30226 | _ACEOF | |
30227 | ||
30228 | fi | |
30229 | done | |
30230 | ||
30231 | ||
30232 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
30233 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
30234 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
30235 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
30236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30237 | else | |
30238 | ||
30239 | cat >conftest.$ac_ext <<_ACEOF | |
30240 | /* confdefs.h. */ | |
30241 | _ACEOF | |
30242 | cat confdefs.h >>conftest.$ac_ext | |
30243 | cat >>conftest.$ac_ext <<_ACEOF | |
30244 | /* end confdefs.h. */ | |
30245 | ||
30246 | #include <stdio.h> | |
30247 | #include <stdarg.h> | |
30248 | ||
30249 | int | |
30250 | main () | |
30251 | { | |
30252 | ||
30253 | char *buf; | |
30254 | va_list ap; | |
30255 | vsnprintf(buf, 10u, "%s", ap); | |
30256 | ||
30257 | ; | |
30258 | return 0; | |
30259 | } | |
30260 | _ACEOF | |
30261 | rm -f conftest.$ac_objext | |
30262 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30263 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30264 | ac_status=$? |
ac1cb8d3 VS |
30265 | grep -v '^ *+' conftest.er1 >conftest.err |
30266 | rm -f conftest.er1 | |
30267 | cat conftest.err >&5 | |
a848cd7e SC |
30268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30269 | (exit $ac_status); } && | |
89be85c2 VS |
30270 | { ac_try='test -z "$ac_cxx_werror_flag" |
30271 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30273 | (eval $ac_try) 2>&5 | |
30274 | ac_status=$? | |
30275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30276 | (exit $ac_status); }; } && | |
30277 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30279 | (eval $ac_try) 2>&5 | |
30280 | ac_status=$? | |
30281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30282 | (exit $ac_status); }; }; then | |
30283 | wx_cv_func_vsnprintf_decl=yes | |
30284 | else | |
30285 | echo "$as_me: failed program was:" >&5 | |
30286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30287 | ||
c122b164 DE |
30288 | |
30289 | cat >conftest.$ac_ext <<_ACEOF | |
30290 | /* confdefs.h. */ | |
30291 | _ACEOF | |
30292 | cat confdefs.h >>conftest.$ac_ext | |
30293 | cat >>conftest.$ac_ext <<_ACEOF | |
30294 | /* end confdefs.h. */ | |
30295 | ||
30296 | #include <stdio.h> | |
30297 | #include <stdarg.h> | |
30298 | using namespace std; | |
30299 | ||
30300 | int | |
30301 | main () | |
30302 | { | |
30303 | ||
30304 | char *buf; | |
30305 | va_list ap; | |
30306 | vsnprintf(buf, 10u, "%s", ap); | |
30307 | ||
30308 | ; | |
30309 | return 0; | |
30310 | } | |
30311 | _ACEOF | |
30312 | rm -f conftest.$ac_objext | |
30313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30314 | (eval $ac_compile) 2>conftest.er1 | |
30315 | ac_status=$? | |
30316 | grep -v '^ *+' conftest.er1 >conftest.err | |
30317 | rm -f conftest.er1 | |
30318 | cat conftest.err >&5 | |
30319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30320 | (exit $ac_status); } && | |
89be85c2 VS |
30321 | { ac_try='test -z "$ac_cxx_werror_flag" |
30322 | || test ! -s conftest.err' | |
c122b164 DE |
30323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30324 | (eval $ac_try) 2>&5 | |
30325 | ac_status=$? | |
30326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30327 | (exit $ac_status); }; } && | |
30328 | { ac_try='test -s conftest.$ac_objext' | |
30329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30330 | (eval $ac_try) 2>&5 | |
30331 | ac_status=$? | |
30332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30333 | (exit $ac_status); }; }; then | |
30334 | wx_cv_func_vsnprintf_decl=yes | |
30335 | else | |
30336 | echo "$as_me: failed program was:" >&5 | |
30337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30338 | ||
a848cd7e SC |
30339 | wx_cv_func_vsnprintf_decl=no |
30340 | ||
30341 | fi | |
ac1cb8d3 | 30342 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30343 | |
30344 | ||
c122b164 DE |
30345 | fi |
30346 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30347 | ||
30348 | ||
a848cd7e SC |
30349 | fi |
30350 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
30351 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
30352 | ||
30353 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
30354 | cat >>confdefs.h <<\_ACEOF | |
30355 | #define HAVE_VSNPRINTF_DECL 1 | |
30356 | _ACEOF | |
30357 | ||
30358 | fi | |
30359 | fi | |
30360 | ||
30361 | if test "$wxUSE_UNICODE" = yes; then | |
30362 | ||
30363 | ||
30364 | ||
fbe47c7b VS |
30365 | |
30366 | ||
30367 | ||
30368 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
30369 | do |
30370 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30371 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30372 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30373 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30375 | else | |
30376 | cat >conftest.$ac_ext <<_ACEOF | |
30377 | /* confdefs.h. */ | |
30378 | _ACEOF | |
30379 | cat confdefs.h >>conftest.$ac_ext | |
30380 | cat >>conftest.$ac_ext <<_ACEOF | |
30381 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30382 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30383 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30384 | #define $ac_func innocuous_$ac_func | |
30385 | ||
a848cd7e SC |
30386 | /* System header to define __stub macros and hopefully few prototypes, |
30387 | which can conflict with char $ac_func (); below. | |
30388 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30389 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30390 | |
a848cd7e SC |
30391 | #ifdef __STDC__ |
30392 | # include <limits.h> | |
30393 | #else | |
30394 | # include <assert.h> | |
30395 | #endif | |
ac1cb8d3 VS |
30396 | |
30397 | #undef $ac_func | |
30398 | ||
a848cd7e SC |
30399 | /* Override any gcc2 internal prototype to avoid an error. */ |
30400 | #ifdef __cplusplus | |
30401 | extern "C" | |
30402 | { | |
30403 | #endif | |
30404 | /* We use char because int might match the return type of a gcc2 | |
30405 | builtin and then its argument prototype would still apply. */ | |
30406 | char $ac_func (); | |
30407 | /* The GNU C library defines this for functions which it implements | |
30408 | to always fail with ENOSYS. Some functions are actually named | |
30409 | something starting with __ and the normal name is an alias. */ | |
30410 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30411 | choke me | |
30412 | #else | |
30413 | char (*f) () = $ac_func; | |
30414 | #endif | |
30415 | #ifdef __cplusplus | |
30416 | } | |
30417 | #endif | |
30418 | ||
30419 | int | |
30420 | main () | |
30421 | { | |
30422 | return f != $ac_func; | |
30423 | ; | |
30424 | return 0; | |
30425 | } | |
30426 | _ACEOF | |
30427 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30428 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30429 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30430 | ac_status=$? |
ac1cb8d3 VS |
30431 | grep -v '^ *+' conftest.er1 >conftest.err |
30432 | rm -f conftest.er1 | |
30433 | cat conftest.err >&5 | |
a848cd7e SC |
30434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30435 | (exit $ac_status); } && | |
89be85c2 VS |
30436 | { ac_try='test -z "$ac_cxx_werror_flag" |
30437 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30439 | (eval $ac_try) 2>&5 | |
30440 | ac_status=$? | |
30441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30442 | (exit $ac_status); }; } && | |
30443 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30445 | (eval $ac_try) 2>&5 | |
30446 | ac_status=$? | |
30447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30448 | (exit $ac_status); }; }; then | |
30449 | eval "$as_ac_var=yes" | |
30450 | else | |
30451 | echo "$as_me: failed program was:" >&5 | |
30452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30453 | ||
30454 | eval "$as_ac_var=no" | |
30455 | fi | |
ac1cb8d3 VS |
30456 | rm -f conftest.err conftest.$ac_objext \ |
30457 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30458 | fi |
30459 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30460 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30461 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30462 | cat >>confdefs.h <<_ACEOF | |
30463 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30464 | _ACEOF | |
30465 | ||
30466 | fi | |
30467 | done | |
30468 | ||
30469 | ||
30470 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
30471 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
30472 | cat >conftest.$ac_ext <<_ACEOF | |
30473 | /* confdefs.h. */ | |
30474 | _ACEOF | |
30475 | cat confdefs.h >>conftest.$ac_ext | |
30476 | cat >>conftest.$ac_ext <<_ACEOF | |
30477 | /* end confdefs.h. */ | |
30478 | #include <wchar.h> | |
30479 | int | |
30480 | main () | |
30481 | { | |
30482 | &_vsnwprintf; | |
30483 | ; | |
30484 | return 0; | |
30485 | } | |
30486 | _ACEOF | |
30487 | rm -f conftest.$ac_objext | |
30488 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30489 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30490 | ac_status=$? |
ac1cb8d3 VS |
30491 | grep -v '^ *+' conftest.er1 >conftest.err |
30492 | rm -f conftest.er1 | |
30493 | cat conftest.err >&5 | |
a848cd7e SC |
30494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30495 | (exit $ac_status); } && | |
89be85c2 VS |
30496 | { ac_try='test -z "$ac_cxx_werror_flag" |
30497 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30499 | (eval $ac_try) 2>&5 | |
30500 | ac_status=$? | |
30501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30502 | (exit $ac_status); }; } && | |
30503 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30505 | (eval $ac_try) 2>&5 | |
30506 | ac_status=$? | |
30507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30508 | (exit $ac_status); }; }; then | |
30509 | echo "$as_me:$LINENO: result: yes" >&5 | |
30510 | echo "${ECHO_T}yes" >&6 | |
30511 | cat >>confdefs.h <<\_ACEOF | |
30512 | #define HAVE__VSNWPRINTF 1 | |
30513 | _ACEOF | |
30514 | ||
30515 | else | |
30516 | echo "$as_me: failed program was:" >&5 | |
30517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30518 | ||
30519 | echo "$as_me:$LINENO: result: no" >&5 | |
30520 | echo "${ECHO_T}no" >&6 | |
30521 | fi | |
ac1cb8d3 | 30522 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
30523 | fi |
30524 | ||
30525 | ac_ext=c | |
30526 | ac_cpp='$CPP $CPPFLAGS' | |
30527 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30528 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30529 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30530 | ||
30531 | ||
30532 | ||
30533 | ||
30534 | if test "$TOOLKIT" != "MSW"; then | |
30535 | ||
30536 | ||
30537 | ||
30538 | ||
30539 | ac_ext=cc | |
30540 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30541 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30542 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30543 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30544 | ||
30545 | ||
30546 | ||
30547 | ||
30548 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
30549 | if test "${with_libiconv_prefix+set}" = set; then | |
30550 | withval="$with_libiconv_prefix" | |
30551 | ||
30552 | for dir in `echo "$withval" | tr : ' '`; do | |
30553 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
30554 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
30555 | done | |
30556 | ||
30557 | fi; | |
30558 | ||
30559 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
30560 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
30561 | if test "${am_cv_func_iconv+set}" = set; then | |
30562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30563 | else | |
30564 | ||
30565 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
30566 | am_cv_lib_iconv=no | |
30567 | cat >conftest.$ac_ext <<_ACEOF | |
30568 | /* confdefs.h. */ | |
30569 | _ACEOF | |
30570 | cat confdefs.h >>conftest.$ac_ext | |
30571 | cat >>conftest.$ac_ext <<_ACEOF | |
30572 | /* end confdefs.h. */ | |
30573 | #include <stdlib.h> | |
30574 | #include <iconv.h> | |
30575 | int | |
30576 | main () | |
30577 | { | |
30578 | iconv_t cd = iconv_open("",""); | |
30579 | iconv(cd,NULL,NULL,NULL,NULL); | |
30580 | iconv_close(cd); | |
30581 | ; | |
30582 | return 0; | |
30583 | } | |
30584 | _ACEOF | |
30585 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30586 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30587 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30588 | ac_status=$? |
ac1cb8d3 VS |
30589 | grep -v '^ *+' conftest.er1 >conftest.err |
30590 | rm -f conftest.er1 | |
30591 | cat conftest.err >&5 | |
a848cd7e SC |
30592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30593 | (exit $ac_status); } && | |
89be85c2 VS |
30594 | { ac_try='test -z "$ac_cxx_werror_flag" |
30595 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30597 | (eval $ac_try) 2>&5 | |
30598 | ac_status=$? | |
30599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30600 | (exit $ac_status); }; } && | |
30601 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30603 | (eval $ac_try) 2>&5 | |
30604 | ac_status=$? | |
30605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30606 | (exit $ac_status); }; }; then | |
30607 | am_cv_func_iconv=yes | |
30608 | else | |
30609 | echo "$as_me: failed program was:" >&5 | |
30610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30611 | ||
30612 | fi | |
ac1cb8d3 VS |
30613 | rm -f conftest.err conftest.$ac_objext \ |
30614 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30615 | if test "$am_cv_func_iconv" != yes; then |
30616 | am_save_LIBS="$LIBS" | |
30617 | LIBS="$LIBS -liconv" | |
30618 | cat >conftest.$ac_ext <<_ACEOF | |
30619 | /* confdefs.h. */ | |
30620 | _ACEOF | |
30621 | cat confdefs.h >>conftest.$ac_ext | |
30622 | cat >>conftest.$ac_ext <<_ACEOF | |
30623 | /* end confdefs.h. */ | |
30624 | #include <stdlib.h> | |
30625 | #include <iconv.h> | |
30626 | int | |
30627 | main () | |
30628 | { | |
30629 | iconv_t cd = iconv_open("",""); | |
30630 | iconv(cd,NULL,NULL,NULL,NULL); | |
30631 | iconv_close(cd); | |
30632 | ; | |
30633 | return 0; | |
30634 | } | |
30635 | _ACEOF | |
30636 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30637 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30638 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30639 | ac_status=$? |
ac1cb8d3 VS |
30640 | grep -v '^ *+' conftest.er1 >conftest.err |
30641 | rm -f conftest.er1 | |
30642 | cat conftest.err >&5 | |
a848cd7e SC |
30643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30644 | (exit $ac_status); } && | |
89be85c2 VS |
30645 | { ac_try='test -z "$ac_cxx_werror_flag" |
30646 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30648 | (eval $ac_try) 2>&5 | |
30649 | ac_status=$? | |
30650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30651 | (exit $ac_status); }; } && | |
30652 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30654 | (eval $ac_try) 2>&5 | |
30655 | ac_status=$? | |
30656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30657 | (exit $ac_status); }; }; then | |
30658 | am_cv_lib_iconv=yes | |
30659 | am_cv_func_iconv=yes | |
30660 | else | |
30661 | echo "$as_me: failed program was:" >&5 | |
30662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30663 | ||
30664 | fi | |
ac1cb8d3 VS |
30665 | rm -f conftest.err conftest.$ac_objext \ |
30666 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30667 | LIBS="$am_save_LIBS" |
30668 | fi | |
30669 | ||
30670 | fi | |
30671 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
30672 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
30673 | if test "$am_cv_func_iconv" = yes; then | |
30674 | ||
30675 | cat >>confdefs.h <<\_ACEOF | |
30676 | #define HAVE_ICONV 1 | |
30677 | _ACEOF | |
30678 | ||
30679 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
30680 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
30681 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
30682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30683 | else | |
30684 | cat >conftest.$ac_ext <<_ACEOF | |
30685 | /* confdefs.h. */ | |
30686 | _ACEOF | |
30687 | cat confdefs.h >>conftest.$ac_ext | |
30688 | cat >>conftest.$ac_ext <<_ACEOF | |
30689 | /* end confdefs.h. */ | |
30690 | ||
30691 | #include <stdlib.h> | |
30692 | #include <iconv.h> | |
30693 | extern | |
30694 | #ifdef __cplusplus | |
30695 | "C" | |
30696 | #endif | |
30697 | #if defined(__STDC__) || defined(__cplusplus) | |
30698 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
30699 | #else | |
30700 | size_t iconv(); | |
30701 | #endif | |
30702 | ||
30703 | int | |
30704 | main () | |
30705 | { | |
30706 | ||
30707 | ; | |
30708 | return 0; | |
30709 | } | |
30710 | _ACEOF | |
30711 | rm -f conftest.$ac_objext | |
30712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30713 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30714 | ac_status=$? |
ac1cb8d3 VS |
30715 | grep -v '^ *+' conftest.er1 >conftest.err |
30716 | rm -f conftest.er1 | |
30717 | cat conftest.err >&5 | |
a848cd7e SC |
30718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30719 | (exit $ac_status); } && | |
89be85c2 VS |
30720 | { ac_try='test -z "$ac_cxx_werror_flag" |
30721 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30723 | (eval $ac_try) 2>&5 | |
30724 | ac_status=$? | |
30725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30726 | (exit $ac_status); }; } && | |
30727 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30729 | (eval $ac_try) 2>&5 | |
30730 | ac_status=$? | |
30731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30732 | (exit $ac_status); }; }; then | |
30733 | wx_cv_func_iconv_const="no" | |
30734 | else | |
30735 | echo "$as_me: failed program was:" >&5 | |
30736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30737 | ||
30738 | wx_cv_func_iconv_const="yes" | |
30739 | ||
30740 | fi | |
ac1cb8d3 | 30741 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30742 | |
30743 | fi | |
30744 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
30745 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
30746 | ||
30747 | iconv_const= | |
30748 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
30749 | iconv_const="const" | |
30750 | fi | |
30751 | ||
30752 | ||
30753 | cat >>confdefs.h <<_ACEOF | |
30754 | #define ICONV_CONST $iconv_const | |
30755 | _ACEOF | |
30756 | ||
30757 | fi | |
30758 | LIBICONV= | |
30759 | if test "$am_cv_lib_iconv" = yes; then | |
30760 | LIBICONV="-liconv" | |
30761 | fi | |
30762 | ||
30763 | ||
30764 | LIBS="$LIBICONV $LIBS" | |
30765 | ac_ext=c | |
30766 | ac_cpp='$CPP $CPPFLAGS' | |
30767 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30768 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30769 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30770 | ||
30771 | ||
30772 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
30773 | ||
30774 | for ac_func in sigaction | |
30775 | do | |
30776 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30777 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30778 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30779 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30781 | else | |
30782 | cat >conftest.$ac_ext <<_ACEOF | |
30783 | /* confdefs.h. */ | |
30784 | _ACEOF | |
30785 | cat confdefs.h >>conftest.$ac_ext | |
30786 | cat >>conftest.$ac_ext <<_ACEOF | |
30787 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30788 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30789 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30790 | #define $ac_func innocuous_$ac_func | |
30791 | ||
a848cd7e SC |
30792 | /* System header to define __stub macros and hopefully few prototypes, |
30793 | which can conflict with char $ac_func (); below. | |
30794 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30795 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30796 | |
a848cd7e SC |
30797 | #ifdef __STDC__ |
30798 | # include <limits.h> | |
30799 | #else | |
30800 | # include <assert.h> | |
30801 | #endif | |
ac1cb8d3 VS |
30802 | |
30803 | #undef $ac_func | |
30804 | ||
a848cd7e SC |
30805 | /* Override any gcc2 internal prototype to avoid an error. */ |
30806 | #ifdef __cplusplus | |
30807 | extern "C" | |
30808 | { | |
30809 | #endif | |
30810 | /* We use char because int might match the return type of a gcc2 | |
30811 | builtin and then its argument prototype would still apply. */ | |
30812 | char $ac_func (); | |
30813 | /* The GNU C library defines this for functions which it implements | |
30814 | to always fail with ENOSYS. Some functions are actually named | |
30815 | something starting with __ and the normal name is an alias. */ | |
30816 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30817 | choke me | |
30818 | #else | |
30819 | char (*f) () = $ac_func; | |
30820 | #endif | |
30821 | #ifdef __cplusplus | |
30822 | } | |
30823 | #endif | |
30824 | ||
30825 | int | |
30826 | main () | |
30827 | { | |
30828 | return f != $ac_func; | |
30829 | ; | |
30830 | return 0; | |
30831 | } | |
30832 | _ACEOF | |
30833 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30834 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30835 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30836 | ac_status=$? |
ac1cb8d3 VS |
30837 | grep -v '^ *+' conftest.er1 >conftest.err |
30838 | rm -f conftest.er1 | |
30839 | cat conftest.err >&5 | |
a848cd7e SC |
30840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30841 | (exit $ac_status); } && | |
89be85c2 VS |
30842 | { ac_try='test -z "$ac_c_werror_flag" |
30843 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30845 | (eval $ac_try) 2>&5 | |
30846 | ac_status=$? | |
30847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30848 | (exit $ac_status); }; } && | |
30849 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30851 | (eval $ac_try) 2>&5 | |
30852 | ac_status=$? | |
30853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30854 | (exit $ac_status); }; }; then | |
30855 | eval "$as_ac_var=yes" | |
30856 | else | |
30857 | echo "$as_me: failed program was:" >&5 | |
30858 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30859 | ||
30860 | eval "$as_ac_var=no" | |
30861 | fi | |
ac1cb8d3 VS |
30862 | rm -f conftest.err conftest.$ac_objext \ |
30863 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30864 | fi |
30865 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30866 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30867 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30868 | cat >>confdefs.h <<_ACEOF | |
30869 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30870 | _ACEOF | |
30871 | ||
30872 | fi | |
30873 | done | |
30874 | ||
30875 | ||
30876 | if test "$ac_cv_func_sigaction" = "no"; then | |
30877 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
30878 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
30879 | wxUSE_ON_FATAL_EXCEPTION=no | |
30880 | fi | |
30881 | ||
30882 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
30883 | ||
30884 | ||
30885 | ac_ext=cc | |
30886 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30887 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30888 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30889 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30890 | ||
30891 | ||
30892 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
30893 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
30894 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
30895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30896 | else | |
30897 | ||
30898 | cat >conftest.$ac_ext <<_ACEOF | |
30899 | /* confdefs.h. */ | |
30900 | _ACEOF | |
30901 | cat confdefs.h >>conftest.$ac_ext | |
30902 | cat >>conftest.$ac_ext <<_ACEOF | |
30903 | /* end confdefs.h. */ | |
30904 | #include <signal.h> | |
30905 | int | |
30906 | main () | |
30907 | { | |
30908 | ||
30909 | extern void testSigHandler(int); | |
30910 | ||
30911 | struct sigaction sa; | |
30912 | sa.sa_handler = testSigHandler; | |
30913 | ||
30914 | ; | |
30915 | return 0; | |
30916 | } | |
30917 | _ACEOF | |
30918 | rm -f conftest.$ac_objext | |
30919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30920 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30921 | ac_status=$? |
ac1cb8d3 VS |
30922 | grep -v '^ *+' conftest.er1 >conftest.err |
30923 | rm -f conftest.er1 | |
30924 | cat conftest.err >&5 | |
a848cd7e SC |
30925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30926 | (exit $ac_status); } && | |
89be85c2 VS |
30927 | { ac_try='test -z "$ac_cxx_werror_flag" |
30928 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30930 | (eval $ac_try) 2>&5 | |
30931 | ac_status=$? | |
30932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30933 | (exit $ac_status); }; } && | |
30934 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30936 | (eval $ac_try) 2>&5 | |
30937 | ac_status=$? | |
30938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30939 | (exit $ac_status); }; }; then | |
30940 | ||
30941 | wx_cv_type_sa_handler=int | |
30942 | ||
30943 | else | |
30944 | echo "$as_me: failed program was:" >&5 | |
30945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30946 | ||
30947 | ||
30948 | wx_cv_type_sa_handler=void | |
30949 | ||
30950 | fi | |
ac1cb8d3 | 30951 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30952 | |
30953 | fi | |
30954 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
30955 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
30956 | ||
30957 | ac_ext=c | |
30958 | ac_cpp='$CPP $CPPFLAGS' | |
30959 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30960 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30961 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30962 | ||
30963 | ||
30964 | cat >>confdefs.h <<_ACEOF | |
30965 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
30966 | _ACEOF | |
30967 | ||
30968 | fi | |
30969 | fi | |
30970 | ||
eaff0f0d VZ |
30971 | if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
30972 | ||
30973 | ||
30974 | ac_ext=cc | |
30975 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30976 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30977 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30978 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30979 | ||
30980 | ||
30981 | echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5 | |
30982 | echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6 | |
30983 | if test "${wx_cv_func_backtrace+set}" = set; then | |
30984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30985 | else | |
30986 | ||
30987 | cat >conftest.$ac_ext <<_ACEOF | |
30988 | /* confdefs.h. */ | |
30989 | _ACEOF | |
30990 | cat confdefs.h >>conftest.$ac_ext | |
30991 | cat >>conftest.$ac_ext <<_ACEOF | |
30992 | /* end confdefs.h. */ | |
30993 | #include <execinfo.h> | |
30994 | int | |
30995 | main () | |
30996 | { | |
30997 | ||
30998 | void *trace[1]; | |
30999 | char **messages; | |
31000 | ||
31001 | backtrace(trace, 1); | |
31002 | messages = backtrace_symbols(trace, 1); | |
31003 | ||
31004 | ; | |
31005 | return 0; | |
31006 | } | |
31007 | _ACEOF | |
31008 | rm -f conftest.$ac_objext | |
31009 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31010 | (eval $ac_compile) 2>conftest.er1 | |
31011 | ac_status=$? | |
31012 | grep -v '^ *+' conftest.er1 >conftest.err | |
31013 | rm -f conftest.er1 | |
31014 | cat conftest.err >&5 | |
31015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31016 | (exit $ac_status); } && | |
89be85c2 VS |
31017 | { ac_try='test -z "$ac_cxx_werror_flag" |
31018 | || test ! -s conftest.err' | |
eaff0f0d VZ |
31019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31020 | (eval $ac_try) 2>&5 | |
31021 | ac_status=$? | |
31022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31023 | (exit $ac_status); }; } && | |
31024 | { ac_try='test -s conftest.$ac_objext' | |
31025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31026 | (eval $ac_try) 2>&5 | |
31027 | ac_status=$? | |
31028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31029 | (exit $ac_status); }; }; then | |
31030 | wx_cv_func_backtrace=yes | |
31031 | else | |
31032 | echo "$as_me: failed program was:" >&5 | |
31033 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31034 | ||
31035 | wx_cv_func_backtrace=no | |
31036 | ||
31037 | fi | |
31038 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31039 | ||
31040 | ||
31041 | fi | |
31042 | echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5 | |
31043 | echo "${ECHO_T}$wx_cv_func_backtrace" >&6 | |
31044 | ||
31045 | ||
31046 | if test "$wx_cv_func_backtrace" = "no"; then | |
31047 | { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5 | |
31048 | echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;} | |
31049 | wxUSE_STACKWALKER=no | |
31050 | else | |
31051 | echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5 | |
31052 | echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6 | |
31053 | if test "${wx_cv_func_cxa_demangle+set}" = set; then | |
31054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31055 | else | |
31056 | ||
31057 | cat >conftest.$ac_ext <<_ACEOF | |
31058 | /* confdefs.h. */ | |
31059 | _ACEOF | |
31060 | cat confdefs.h >>conftest.$ac_ext | |
31061 | cat >>conftest.$ac_ext <<_ACEOF | |
31062 | /* end confdefs.h. */ | |
31063 | #include <cxxabi.h> | |
31064 | int | |
31065 | main () | |
31066 | { | |
31067 | ||
31068 | int rc; | |
31069 | __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc); | |
31070 | ||
31071 | ; | |
31072 | return 0; | |
31073 | } | |
31074 | _ACEOF | |
31075 | rm -f conftest.$ac_objext | |
31076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31077 | (eval $ac_compile) 2>conftest.er1 | |
31078 | ac_status=$? | |
31079 | grep -v '^ *+' conftest.er1 >conftest.err | |
31080 | rm -f conftest.er1 | |
31081 | cat conftest.err >&5 | |
31082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31083 | (exit $ac_status); } && | |
89be85c2 VS |
31084 | { ac_try='test -z "$ac_cxx_werror_flag" |
31085 | || test ! -s conftest.err' | |
eaff0f0d VZ |
31086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31087 | (eval $ac_try) 2>&5 | |
31088 | ac_status=$? | |
31089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31090 | (exit $ac_status); }; } && | |
31091 | { ac_try='test -s conftest.$ac_objext' | |
31092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31093 | (eval $ac_try) 2>&5 | |
31094 | ac_status=$? | |
31095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31096 | (exit $ac_status); }; }; then | |
31097 | wx_cv_func_cxa_demangle=yes | |
31098 | else | |
31099 | echo "$as_me: failed program was:" >&5 | |
31100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31101 | ||
31102 | wx_cv_func_cxa_demangle=no | |
31103 | ||
31104 | fi | |
31105 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31106 | ||
31107 | ||
31108 | fi | |
31109 | echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5 | |
31110 | echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6 | |
31111 | ||
31112 | if test "$wx_cv_func_cxa_demangle" = "yes"; then | |
31113 | cat >>confdefs.h <<\_ACEOF | |
31114 | #define HAVE_CXA_DEMANGLE 1 | |
31115 | _ACEOF | |
31116 | ||
31117 | fi | |
31118 | fi | |
31119 | ||
31120 | ac_ext=c | |
31121 | ac_cpp='$CPP $CPPFLAGS' | |
31122 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31123 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31124 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31125 | ||
31126 | fi | |
31127 | ||
a848cd7e SC |
31128 | |
31129 | ||
31130 | for ac_func in mkstemp mktemp | |
31131 | do | |
31132 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31133 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31134 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31135 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31137 | else | |
31138 | cat >conftest.$ac_ext <<_ACEOF | |
31139 | /* confdefs.h. */ | |
31140 | _ACEOF | |
31141 | cat confdefs.h >>conftest.$ac_ext | |
31142 | cat >>conftest.$ac_ext <<_ACEOF | |
31143 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31144 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31145 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31146 | #define $ac_func innocuous_$ac_func | |
31147 | ||
a848cd7e SC |
31148 | /* System header to define __stub macros and hopefully few prototypes, |
31149 | which can conflict with char $ac_func (); below. | |
31150 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31151 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31152 | |
a848cd7e SC |
31153 | #ifdef __STDC__ |
31154 | # include <limits.h> | |
31155 | #else | |
31156 | # include <assert.h> | |
31157 | #endif | |
ac1cb8d3 VS |
31158 | |
31159 | #undef $ac_func | |
31160 | ||
a848cd7e SC |
31161 | /* Override any gcc2 internal prototype to avoid an error. */ |
31162 | #ifdef __cplusplus | |
31163 | extern "C" | |
31164 | { | |
31165 | #endif | |
31166 | /* We use char because int might match the return type of a gcc2 | |
31167 | builtin and then its argument prototype would still apply. */ | |
31168 | char $ac_func (); | |
31169 | /* The GNU C library defines this for functions which it implements | |
31170 | to always fail with ENOSYS. Some functions are actually named | |
31171 | something starting with __ and the normal name is an alias. */ | |
31172 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31173 | choke me | |
31174 | #else | |
31175 | char (*f) () = $ac_func; | |
31176 | #endif | |
31177 | #ifdef __cplusplus | |
31178 | } | |
31179 | #endif | |
31180 | ||
31181 | int | |
31182 | main () | |
31183 | { | |
31184 | return f != $ac_func; | |
31185 | ; | |
31186 | return 0; | |
31187 | } | |
31188 | _ACEOF | |
31189 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31190 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31191 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31192 | ac_status=$? |
ac1cb8d3 VS |
31193 | grep -v '^ *+' conftest.er1 >conftest.err |
31194 | rm -f conftest.er1 | |
31195 | cat conftest.err >&5 | |
a848cd7e SC |
31196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31197 | (exit $ac_status); } && | |
89be85c2 VS |
31198 | { ac_try='test -z "$ac_c_werror_flag" |
31199 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31201 | (eval $ac_try) 2>&5 | |
31202 | ac_status=$? | |
31203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31204 | (exit $ac_status); }; } && | |
31205 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31207 | (eval $ac_try) 2>&5 | |
31208 | ac_status=$? | |
31209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31210 | (exit $ac_status); }; }; then | |
31211 | eval "$as_ac_var=yes" | |
31212 | else | |
31213 | echo "$as_me: failed program was:" >&5 | |
31214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31215 | ||
31216 | eval "$as_ac_var=no" | |
31217 | fi | |
ac1cb8d3 VS |
31218 | rm -f conftest.err conftest.$ac_objext \ |
31219 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31220 | fi |
31221 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31222 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31223 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31224 | cat >>confdefs.h <<_ACEOF | |
31225 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31226 | _ACEOF | |
31227 | break | |
31228 | fi | |
31229 | done | |
31230 | ||
31231 | ||
31232 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
31233 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
31234 | if test "${wx_cv_func_statfs+set}" = set; then | |
31235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31236 | else | |
31237 | cat >conftest.$ac_ext <<_ACEOF | |
31238 | /* confdefs.h. */ | |
31239 | _ACEOF | |
31240 | cat confdefs.h >>conftest.$ac_ext | |
31241 | cat >>conftest.$ac_ext <<_ACEOF | |
31242 | /* end confdefs.h. */ | |
31243 | ||
31244 | #if defined(__BSD__) | |
31245 | #include <sys/param.h> | |
31246 | #include <sys/mount.h> | |
31247 | #else | |
31248 | #include <sys/vfs.h> | |
31249 | #endif | |
31250 | ||
31251 | int | |
31252 | main () | |
31253 | { | |
31254 | ||
31255 | long l; | |
31256 | struct statfs fs; | |
31257 | statfs("/", &fs); | |
31258 | l = fs.f_bsize; | |
31259 | l += fs.f_blocks; | |
31260 | l += fs.f_bavail; | |
31261 | ||
31262 | ; | |
31263 | return 0; | |
31264 | } | |
31265 | _ACEOF | |
31266 | rm -f conftest.$ac_objext | |
31267 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31268 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31269 | ac_status=$? |
ac1cb8d3 VS |
31270 | grep -v '^ *+' conftest.er1 >conftest.err |
31271 | rm -f conftest.er1 | |
31272 | cat conftest.err >&5 | |
a848cd7e SC |
31273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31274 | (exit $ac_status); } && | |
89be85c2 VS |
31275 | { ac_try='test -z "$ac_c_werror_flag" |
31276 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31278 | (eval $ac_try) 2>&5 | |
31279 | ac_status=$? | |
31280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31281 | (exit $ac_status); }; } && | |
31282 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31284 | (eval $ac_try) 2>&5 | |
31285 | ac_status=$? | |
31286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31287 | (exit $ac_status); }; }; then | |
31288 | ||
31289 | wx_cv_func_statfs=yes | |
31290 | ||
31291 | else | |
31292 | echo "$as_me: failed program was:" >&5 | |
31293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31294 | ||
31295 | ||
31296 | wx_cv_func_statfs=no | |
31297 | ||
31298 | ||
31299 | fi | |
ac1cb8d3 | 31300 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31301 | |
31302 | fi | |
31303 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
31304 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
31305 | ||
31306 | if test "$wx_cv_func_statfs" = "yes"; then | |
31307 | wx_cv_type_statvfs_t="struct statfs" | |
31308 | cat >>confdefs.h <<\_ACEOF | |
31309 | #define HAVE_STATFS 1 | |
31310 | _ACEOF | |
31311 | ||
31312 | else | |
31313 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
31314 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
31315 | if test "${wx_cv_func_statvfs+set}" = set; then | |
31316 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31317 | else | |
31318 | cat >conftest.$ac_ext <<_ACEOF | |
31319 | /* confdefs.h. */ | |
31320 | _ACEOF | |
31321 | cat confdefs.h >>conftest.$ac_ext | |
31322 | cat >>conftest.$ac_ext <<_ACEOF | |
31323 | /* end confdefs.h. */ | |
31324 | ||
31325 | #include <stddef.h> | |
31326 | #include <sys/statvfs.h> | |
31327 | ||
31328 | int | |
31329 | main () | |
31330 | { | |
31331 | ||
31332 | statvfs("/", NULL); | |
31333 | ||
31334 | ; | |
31335 | return 0; | |
31336 | } | |
31337 | _ACEOF | |
31338 | rm -f conftest.$ac_objext | |
31339 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31340 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31341 | ac_status=$? |
ac1cb8d3 VS |
31342 | grep -v '^ *+' conftest.er1 >conftest.err |
31343 | rm -f conftest.er1 | |
31344 | cat conftest.err >&5 | |
a848cd7e SC |
31345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31346 | (exit $ac_status); } && | |
89be85c2 VS |
31347 | { ac_try='test -z "$ac_c_werror_flag" |
31348 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31350 | (eval $ac_try) 2>&5 | |
31351 | ac_status=$? | |
31352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31353 | (exit $ac_status); }; } && | |
31354 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31356 | (eval $ac_try) 2>&5 | |
31357 | ac_status=$? | |
31358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31359 | (exit $ac_status); }; }; then | |
31360 | wx_cv_func_statvfs=yes | |
31361 | else | |
31362 | echo "$as_me: failed program was:" >&5 | |
31363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31364 | ||
31365 | wx_cv_func_statvfs=no | |
31366 | ||
31367 | fi | |
ac1cb8d3 | 31368 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31369 | |
31370 | fi | |
31371 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
31372 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
31373 | ||
31374 | if test "$wx_cv_func_statvfs" = "yes"; then | |
31375 | ||
31376 | ||
31377 | ac_ext=cc | |
31378 | ac_cpp='$CXXCPP $CPPFLAGS' | |
31379 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31380 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31381 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31382 | ||
31383 | ||
31384 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
31385 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
31386 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
31387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31388 | else | |
31389 | cat >conftest.$ac_ext <<_ACEOF | |
31390 | /* confdefs.h. */ | |
31391 | _ACEOF | |
31392 | cat confdefs.h >>conftest.$ac_ext | |
31393 | cat >>conftest.$ac_ext <<_ACEOF | |
31394 | /* end confdefs.h. */ | |
31395 | ||
31396 | #include <sys/statvfs.h> | |
31397 | ||
31398 | int | |
31399 | main () | |
31400 | { | |
31401 | ||
31402 | long l; | |
31403 | statvfs_t fs; | |
31404 | statvfs("/", &fs); | |
31405 | l = fs.f_bsize; | |
31406 | l += fs.f_blocks; | |
31407 | l += fs.f_bavail; | |
31408 | ||
31409 | ; | |
31410 | return 0; | |
31411 | } | |
31412 | _ACEOF | |
31413 | rm -f conftest.$ac_objext | |
31414 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31415 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31416 | ac_status=$? |
ac1cb8d3 VS |
31417 | grep -v '^ *+' conftest.er1 >conftest.err |
31418 | rm -f conftest.er1 | |
31419 | cat conftest.err >&5 | |
a848cd7e SC |
31420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31421 | (exit $ac_status); } && | |
89be85c2 VS |
31422 | { ac_try='test -z "$ac_cxx_werror_flag" |
31423 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31425 | (eval $ac_try) 2>&5 | |
31426 | ac_status=$? | |
31427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31428 | (exit $ac_status); }; } && | |
31429 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31431 | (eval $ac_try) 2>&5 | |
31432 | ac_status=$? | |
31433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31434 | (exit $ac_status); }; }; then | |
31435 | wx_cv_type_statvfs_t=statvfs_t | |
31436 | else | |
31437 | echo "$as_me: failed program was:" >&5 | |
31438 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31439 | ||
31440 | ||
31441 | cat >conftest.$ac_ext <<_ACEOF | |
31442 | /* confdefs.h. */ | |
31443 | _ACEOF | |
31444 | cat confdefs.h >>conftest.$ac_ext | |
31445 | cat >>conftest.$ac_ext <<_ACEOF | |
31446 | /* end confdefs.h. */ | |
31447 | ||
31448 | #include <sys/statvfs.h> | |
31449 | ||
31450 | int | |
31451 | main () | |
31452 | { | |
31453 | ||
31454 | long l; | |
31455 | struct statvfs fs; | |
31456 | statvfs("/", &fs); | |
31457 | l = fs.f_bsize; | |
31458 | l += fs.f_blocks; | |
31459 | l += fs.f_bavail; | |
31460 | ||
31461 | ; | |
31462 | return 0; | |
31463 | } | |
31464 | _ACEOF | |
31465 | rm -f conftest.$ac_objext | |
31466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31467 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31468 | ac_status=$? |
ac1cb8d3 VS |
31469 | grep -v '^ *+' conftest.er1 >conftest.err |
31470 | rm -f conftest.er1 | |
31471 | cat conftest.err >&5 | |
a848cd7e SC |
31472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31473 | (exit $ac_status); } && | |
89be85c2 VS |
31474 | { ac_try='test -z "$ac_cxx_werror_flag" |
31475 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31477 | (eval $ac_try) 2>&5 | |
31478 | ac_status=$? | |
31479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31480 | (exit $ac_status); }; } && | |
31481 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31483 | (eval $ac_try) 2>&5 | |
31484 | ac_status=$? | |
31485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31486 | (exit $ac_status); }; }; then | |
31487 | wx_cv_type_statvfs_t="struct statvfs" | |
31488 | else | |
31489 | echo "$as_me: failed program was:" >&5 | |
31490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31491 | ||
31492 | wx_cv_type_statvfs_t="unknown" | |
31493 | ||
31494 | fi | |
ac1cb8d3 | 31495 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31496 | |
31497 | ||
31498 | fi | |
ac1cb8d3 | 31499 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31500 | |
31501 | fi | |
31502 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
31503 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
31504 | ||
31505 | ac_ext=c | |
31506 | ac_cpp='$CPP $CPPFLAGS' | |
31507 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31508 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31509 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31510 | ||
31511 | ||
31512 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
31513 | cat >>confdefs.h <<\_ACEOF | |
31514 | #define HAVE_STATVFS 1 | |
31515 | _ACEOF | |
31516 | ||
31517 | fi | |
31518 | else | |
31519 | wx_cv_type_statvfs_t="unknown" | |
31520 | fi | |
31521 | fi | |
31522 | ||
31523 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
31524 | cat >>confdefs.h <<_ACEOF | |
31525 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
31526 | _ACEOF | |
31527 | ||
31528 | else | |
31529 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
31530 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
31531 | fi | |
31532 | ||
31533 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
31534 | ||
31535 | ||
31536 | for ac_func in fcntl flock | |
31537 | do | |
31538 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31539 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31540 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31541 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31543 | else | |
31544 | cat >conftest.$ac_ext <<_ACEOF | |
31545 | /* confdefs.h. */ | |
31546 | _ACEOF | |
31547 | cat confdefs.h >>conftest.$ac_ext | |
31548 | cat >>conftest.$ac_ext <<_ACEOF | |
31549 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31550 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31551 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31552 | #define $ac_func innocuous_$ac_func | |
31553 | ||
a848cd7e SC |
31554 | /* System header to define __stub macros and hopefully few prototypes, |
31555 | which can conflict with char $ac_func (); below. | |
31556 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31557 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31558 | |
a848cd7e SC |
31559 | #ifdef __STDC__ |
31560 | # include <limits.h> | |
31561 | #else | |
31562 | # include <assert.h> | |
31563 | #endif | |
ac1cb8d3 VS |
31564 | |
31565 | #undef $ac_func | |
31566 | ||
a848cd7e SC |
31567 | /* Override any gcc2 internal prototype to avoid an error. */ |
31568 | #ifdef __cplusplus | |
31569 | extern "C" | |
31570 | { | |
31571 | #endif | |
31572 | /* We use char because int might match the return type of a gcc2 | |
31573 | builtin and then its argument prototype would still apply. */ | |
31574 | char $ac_func (); | |
31575 | /* The GNU C library defines this for functions which it implements | |
31576 | to always fail with ENOSYS. Some functions are actually named | |
31577 | something starting with __ and the normal name is an alias. */ | |
31578 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31579 | choke me | |
31580 | #else | |
31581 | char (*f) () = $ac_func; | |
31582 | #endif | |
31583 | #ifdef __cplusplus | |
31584 | } | |
31585 | #endif | |
31586 | ||
31587 | int | |
31588 | main () | |
31589 | { | |
31590 | return f != $ac_func; | |
31591 | ; | |
31592 | return 0; | |
31593 | } | |
31594 | _ACEOF | |
31595 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31596 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31597 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31598 | ac_status=$? |
ac1cb8d3 VS |
31599 | grep -v '^ *+' conftest.er1 >conftest.err |
31600 | rm -f conftest.er1 | |
31601 | cat conftest.err >&5 | |
a848cd7e SC |
31602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31603 | (exit $ac_status); } && | |
89be85c2 VS |
31604 | { ac_try='test -z "$ac_c_werror_flag" |
31605 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31607 | (eval $ac_try) 2>&5 | |
31608 | ac_status=$? | |
31609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31610 | (exit $ac_status); }; } && | |
31611 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31613 | (eval $ac_try) 2>&5 | |
31614 | ac_status=$? | |
31615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31616 | (exit $ac_status); }; }; then | |
31617 | eval "$as_ac_var=yes" | |
31618 | else | |
31619 | echo "$as_me: failed program was:" >&5 | |
31620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31621 | ||
31622 | eval "$as_ac_var=no" | |
31623 | fi | |
ac1cb8d3 VS |
31624 | rm -f conftest.err conftest.$ac_objext \ |
31625 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31626 | fi |
31627 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31628 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31629 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31630 | cat >>confdefs.h <<_ACEOF | |
31631 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31632 | _ACEOF | |
31633 | break | |
31634 | fi | |
31635 | done | |
31636 | ||
31637 | ||
31638 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
31639 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
31640 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
31641 | wxUSE_SNGLINST_CHECKER=no | |
31642 | fi | |
31643 | fi | |
31644 | ||
31645 | ||
31646 | for ac_func in timegm | |
31647 | do | |
31648 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31649 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31650 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31651 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31653 | else | |
31654 | cat >conftest.$ac_ext <<_ACEOF | |
31655 | /* confdefs.h. */ | |
31656 | _ACEOF | |
31657 | cat confdefs.h >>conftest.$ac_ext | |
31658 | cat >>conftest.$ac_ext <<_ACEOF | |
31659 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31660 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31661 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31662 | #define $ac_func innocuous_$ac_func | |
31663 | ||
a848cd7e SC |
31664 | /* System header to define __stub macros and hopefully few prototypes, |
31665 | which can conflict with char $ac_func (); below. | |
31666 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31667 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31668 | |
a848cd7e SC |
31669 | #ifdef __STDC__ |
31670 | # include <limits.h> | |
31671 | #else | |
31672 | # include <assert.h> | |
31673 | #endif | |
ac1cb8d3 VS |
31674 | |
31675 | #undef $ac_func | |
31676 | ||
a848cd7e SC |
31677 | /* Override any gcc2 internal prototype to avoid an error. */ |
31678 | #ifdef __cplusplus | |
31679 | extern "C" | |
31680 | { | |
31681 | #endif | |
31682 | /* We use char because int might match the return type of a gcc2 | |
31683 | builtin and then its argument prototype would still apply. */ | |
31684 | char $ac_func (); | |
31685 | /* The GNU C library defines this for functions which it implements | |
31686 | to always fail with ENOSYS. Some functions are actually named | |
31687 | something starting with __ and the normal name is an alias. */ | |
31688 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31689 | choke me | |
31690 | #else | |
31691 | char (*f) () = $ac_func; | |
31692 | #endif | |
31693 | #ifdef __cplusplus | |
31694 | } | |
31695 | #endif | |
31696 | ||
31697 | int | |
31698 | main () | |
31699 | { | |
31700 | return f != $ac_func; | |
31701 | ; | |
31702 | return 0; | |
31703 | } | |
31704 | _ACEOF | |
31705 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31706 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31707 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31708 | ac_status=$? |
ac1cb8d3 VS |
31709 | grep -v '^ *+' conftest.er1 >conftest.err |
31710 | rm -f conftest.er1 | |
31711 | cat conftest.err >&5 | |
a848cd7e SC |
31712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31713 | (exit $ac_status); } && | |
89be85c2 VS |
31714 | { ac_try='test -z "$ac_c_werror_flag" |
31715 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31717 | (eval $ac_try) 2>&5 | |
31718 | ac_status=$? | |
31719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31720 | (exit $ac_status); }; } && | |
31721 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31723 | (eval $ac_try) 2>&5 | |
31724 | ac_status=$? | |
31725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31726 | (exit $ac_status); }; }; then | |
31727 | eval "$as_ac_var=yes" | |
31728 | else | |
31729 | echo "$as_me: failed program was:" >&5 | |
31730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31731 | ||
31732 | eval "$as_ac_var=no" | |
31733 | fi | |
ac1cb8d3 VS |
31734 | rm -f conftest.err conftest.$ac_objext \ |
31735 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31736 | fi |
31737 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31738 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31739 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31740 | cat >>confdefs.h <<_ACEOF | |
31741 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31742 | _ACEOF | |
31743 | ||
31744 | fi | |
31745 | done | |
31746 | ||
31747 | ||
31748 | ||
31749 | ||
31750 | for ac_func in putenv setenv | |
31751 | do | |
31752 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31753 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31754 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31755 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31757 | else | |
31758 | cat >conftest.$ac_ext <<_ACEOF | |
31759 | /* confdefs.h. */ | |
31760 | _ACEOF | |
31761 | cat confdefs.h >>conftest.$ac_ext | |
31762 | cat >>conftest.$ac_ext <<_ACEOF | |
31763 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31764 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31765 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31766 | #define $ac_func innocuous_$ac_func | |
31767 | ||
a848cd7e SC |
31768 | /* System header to define __stub macros and hopefully few prototypes, |
31769 | which can conflict with char $ac_func (); below. | |
31770 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31771 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31772 | |
a848cd7e SC |
31773 | #ifdef __STDC__ |
31774 | # include <limits.h> | |
31775 | #else | |
31776 | # include <assert.h> | |
31777 | #endif | |
ac1cb8d3 VS |
31778 | |
31779 | #undef $ac_func | |
31780 | ||
a848cd7e SC |
31781 | /* Override any gcc2 internal prototype to avoid an error. */ |
31782 | #ifdef __cplusplus | |
31783 | extern "C" | |
31784 | { | |
31785 | #endif | |
31786 | /* We use char because int might match the return type of a gcc2 | |
31787 | builtin and then its argument prototype would still apply. */ | |
31788 | char $ac_func (); | |
31789 | /* The GNU C library defines this for functions which it implements | |
31790 | to always fail with ENOSYS. Some functions are actually named | |
31791 | something starting with __ and the normal name is an alias. */ | |
31792 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31793 | choke me | |
31794 | #else | |
31795 | char (*f) () = $ac_func; | |
31796 | #endif | |
31797 | #ifdef __cplusplus | |
31798 | } | |
31799 | #endif | |
31800 | ||
31801 | int | |
31802 | main () | |
31803 | { | |
31804 | return f != $ac_func; | |
31805 | ; | |
31806 | return 0; | |
31807 | } | |
31808 | _ACEOF | |
31809 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31810 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31811 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31812 | ac_status=$? |
ac1cb8d3 VS |
31813 | grep -v '^ *+' conftest.er1 >conftest.err |
31814 | rm -f conftest.er1 | |
31815 | cat conftest.err >&5 | |
a848cd7e SC |
31816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31817 | (exit $ac_status); } && | |
89be85c2 VS |
31818 | { ac_try='test -z "$ac_c_werror_flag" |
31819 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31821 | (eval $ac_try) 2>&5 | |
31822 | ac_status=$? | |
31823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31824 | (exit $ac_status); }; } && | |
31825 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31827 | (eval $ac_try) 2>&5 | |
31828 | ac_status=$? | |
31829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31830 | (exit $ac_status); }; }; then | |
31831 | eval "$as_ac_var=yes" | |
31832 | else | |
31833 | echo "$as_me: failed program was:" >&5 | |
31834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31835 | ||
31836 | eval "$as_ac_var=no" | |
31837 | fi | |
ac1cb8d3 VS |
31838 | rm -f conftest.err conftest.$ac_objext \ |
31839 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31840 | fi |
31841 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31842 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31843 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31844 | cat >>confdefs.h <<_ACEOF | |
31845 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31846 | _ACEOF | |
31847 | break | |
31848 | fi | |
31849 | done | |
31850 | ||
31851 | ||
31852 | HAVE_SOME_SLEEP_FUNC=0 | |
31853 | if test "$USE_BEOS" = 1; then | |
31854 | cat >>confdefs.h <<\_ACEOF | |
31855 | #define HAVE_SLEEP 1 | |
31856 | _ACEOF | |
31857 | ||
31858 | HAVE_SOME_SLEEP_FUNC=1 | |
31859 | fi | |
31860 | ||
31861 | if test "$USE_DARWIN" = 1; then | |
31862 | cat >>confdefs.h <<\_ACEOF | |
31863 | #define HAVE_USLEEP 1 | |
31864 | _ACEOF | |
31865 | ||
31866 | HAVE_SOME_SLEEP_FUNC=1 | |
31867 | fi | |
31868 | ||
31869 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
31870 | POSIX4_LINK= | |
31871 | ||
31872 | for ac_func in nanosleep | |
31873 | do | |
31874 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31875 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31876 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31877 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31879 | else | |
31880 | cat >conftest.$ac_ext <<_ACEOF | |
31881 | /* confdefs.h. */ | |
31882 | _ACEOF | |
31883 | cat confdefs.h >>conftest.$ac_ext | |
31884 | cat >>conftest.$ac_ext <<_ACEOF | |
31885 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31886 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31887 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31888 | #define $ac_func innocuous_$ac_func | |
31889 | ||
a848cd7e SC |
31890 | /* System header to define __stub macros and hopefully few prototypes, |
31891 | which can conflict with char $ac_func (); below. | |
31892 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31893 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31894 | |
a848cd7e SC |
31895 | #ifdef __STDC__ |
31896 | # include <limits.h> | |
31897 | #else | |
31898 | # include <assert.h> | |
31899 | #endif | |
ac1cb8d3 VS |
31900 | |
31901 | #undef $ac_func | |
31902 | ||
a848cd7e SC |
31903 | /* Override any gcc2 internal prototype to avoid an error. */ |
31904 | #ifdef __cplusplus | |
31905 | extern "C" | |
31906 | { | |
31907 | #endif | |
31908 | /* We use char because int might match the return type of a gcc2 | |
31909 | builtin and then its argument prototype would still apply. */ | |
31910 | char $ac_func (); | |
31911 | /* The GNU C library defines this for functions which it implements | |
31912 | to always fail with ENOSYS. Some functions are actually named | |
31913 | something starting with __ and the normal name is an alias. */ | |
31914 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31915 | choke me | |
31916 | #else | |
31917 | char (*f) () = $ac_func; | |
31918 | #endif | |
31919 | #ifdef __cplusplus | |
31920 | } | |
31921 | #endif | |
31922 | ||
31923 | int | |
31924 | main () | |
31925 | { | |
31926 | return f != $ac_func; | |
31927 | ; | |
31928 | return 0; | |
31929 | } | |
31930 | _ACEOF | |
31931 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31932 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31933 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31934 | ac_status=$? |
ac1cb8d3 VS |
31935 | grep -v '^ *+' conftest.er1 >conftest.err |
31936 | rm -f conftest.er1 | |
31937 | cat conftest.err >&5 | |
a848cd7e SC |
31938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31939 | (exit $ac_status); } && | |
89be85c2 VS |
31940 | { ac_try='test -z "$ac_c_werror_flag" |
31941 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31943 | (eval $ac_try) 2>&5 | |
31944 | ac_status=$? | |
31945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31946 | (exit $ac_status); }; } && | |
31947 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31949 | (eval $ac_try) 2>&5 | |
31950 | ac_status=$? | |
31951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31952 | (exit $ac_status); }; }; then | |
31953 | eval "$as_ac_var=yes" | |
31954 | else | |
31955 | echo "$as_me: failed program was:" >&5 | |
31956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31957 | ||
31958 | eval "$as_ac_var=no" | |
31959 | fi | |
ac1cb8d3 VS |
31960 | rm -f conftest.err conftest.$ac_objext \ |
31961 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31962 | fi |
31963 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31964 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31965 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31966 | cat >>confdefs.h <<_ACEOF | |
31967 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31968 | _ACEOF | |
31969 | cat >>confdefs.h <<\_ACEOF | |
31970 | #define HAVE_NANOSLEEP 1 | |
31971 | _ACEOF | |
31972 | ||
31973 | else | |
31974 | ||
31975 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
31976 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
31977 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
31978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31979 | else | |
31980 | ac_check_lib_save_LIBS=$LIBS | |
31981 | LIBS="-lposix4 $LIBS" | |
31982 | cat >conftest.$ac_ext <<_ACEOF | |
31983 | /* confdefs.h. */ | |
31984 | _ACEOF | |
31985 | cat confdefs.h >>conftest.$ac_ext | |
31986 | cat >>conftest.$ac_ext <<_ACEOF | |
31987 | /* end confdefs.h. */ | |
31988 | ||
31989 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31990 | #ifdef __cplusplus | |
31991 | extern "C" | |
31992 | #endif | |
31993 | /* We use char because int might match the return type of a gcc2 | |
31994 | builtin and then its argument prototype would still apply. */ | |
31995 | char nanosleep (); | |
31996 | int | |
31997 | main () | |
31998 | { | |
31999 | nanosleep (); | |
32000 | ; | |
32001 | return 0; | |
32002 | } | |
32003 | _ACEOF | |
32004 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32005 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32006 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32007 | ac_status=$? |
ac1cb8d3 VS |
32008 | grep -v '^ *+' conftest.er1 >conftest.err |
32009 | rm -f conftest.er1 | |
32010 | cat conftest.err >&5 | |
a848cd7e SC |
32011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32012 | (exit $ac_status); } && | |
89be85c2 VS |
32013 | { ac_try='test -z "$ac_c_werror_flag" |
32014 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32016 | (eval $ac_try) 2>&5 | |
32017 | ac_status=$? | |
32018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32019 | (exit $ac_status); }; } && | |
32020 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32022 | (eval $ac_try) 2>&5 | |
32023 | ac_status=$? | |
32024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32025 | (exit $ac_status); }; }; then | |
32026 | ac_cv_lib_posix4_nanosleep=yes | |
32027 | else | |
32028 | echo "$as_me: failed program was:" >&5 | |
32029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32030 | ||
32031 | ac_cv_lib_posix4_nanosleep=no | |
32032 | fi | |
ac1cb8d3 VS |
32033 | rm -f conftest.err conftest.$ac_objext \ |
32034 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32035 | LIBS=$ac_check_lib_save_LIBS |
32036 | fi | |
32037 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
32038 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
32039 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
32040 | ||
32041 | cat >>confdefs.h <<\_ACEOF | |
32042 | #define HAVE_NANOSLEEP 1 | |
32043 | _ACEOF | |
32044 | ||
32045 | POSIX4_LINK=" -lposix4" | |
32046 | ||
32047 | else | |
32048 | ||
32049 | ||
32050 | for ac_func in usleep | |
32051 | do | |
32052 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32053 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32054 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32055 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32057 | else | |
32058 | cat >conftest.$ac_ext <<_ACEOF | |
32059 | /* confdefs.h. */ | |
32060 | _ACEOF | |
32061 | cat confdefs.h >>conftest.$ac_ext | |
32062 | cat >>conftest.$ac_ext <<_ACEOF | |
32063 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32064 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32065 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32066 | #define $ac_func innocuous_$ac_func | |
32067 | ||
a848cd7e SC |
32068 | /* System header to define __stub macros and hopefully few prototypes, |
32069 | which can conflict with char $ac_func (); below. | |
32070 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32071 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32072 | |
a848cd7e SC |
32073 | #ifdef __STDC__ |
32074 | # include <limits.h> | |
32075 | #else | |
32076 | # include <assert.h> | |
32077 | #endif | |
ac1cb8d3 VS |
32078 | |
32079 | #undef $ac_func | |
32080 | ||
a848cd7e SC |
32081 | /* Override any gcc2 internal prototype to avoid an error. */ |
32082 | #ifdef __cplusplus | |
32083 | extern "C" | |
32084 | { | |
32085 | #endif | |
32086 | /* We use char because int might match the return type of a gcc2 | |
32087 | builtin and then its argument prototype would still apply. */ | |
32088 | char $ac_func (); | |
32089 | /* The GNU C library defines this for functions which it implements | |
32090 | to always fail with ENOSYS. Some functions are actually named | |
32091 | something starting with __ and the normal name is an alias. */ | |
32092 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32093 | choke me | |
32094 | #else | |
32095 | char (*f) () = $ac_func; | |
32096 | #endif | |
32097 | #ifdef __cplusplus | |
32098 | } | |
32099 | #endif | |
32100 | ||
32101 | int | |
32102 | main () | |
32103 | { | |
32104 | return f != $ac_func; | |
32105 | ; | |
32106 | return 0; | |
32107 | } | |
32108 | _ACEOF | |
32109 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32110 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32111 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32112 | ac_status=$? |
ac1cb8d3 VS |
32113 | grep -v '^ *+' conftest.er1 >conftest.err |
32114 | rm -f conftest.er1 | |
32115 | cat conftest.err >&5 | |
a848cd7e SC |
32116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32117 | (exit $ac_status); } && | |
89be85c2 VS |
32118 | { ac_try='test -z "$ac_c_werror_flag" |
32119 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32121 | (eval $ac_try) 2>&5 | |
32122 | ac_status=$? | |
32123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32124 | (exit $ac_status); }; } && | |
32125 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32127 | (eval $ac_try) 2>&5 | |
32128 | ac_status=$? | |
32129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32130 | (exit $ac_status); }; }; then | |
32131 | eval "$as_ac_var=yes" | |
32132 | else | |
32133 | echo "$as_me: failed program was:" >&5 | |
32134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32135 | ||
32136 | eval "$as_ac_var=no" | |
32137 | fi | |
ac1cb8d3 VS |
32138 | rm -f conftest.err conftest.$ac_objext \ |
32139 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32140 | fi |
32141 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32142 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32143 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32144 | cat >>confdefs.h <<_ACEOF | |
32145 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32146 | _ACEOF | |
32147 | cat >>confdefs.h <<\_ACEOF | |
32148 | #define HAVE_USLEEP 1 | |
32149 | _ACEOF | |
32150 | ||
32151 | else | |
32152 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
32153 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
32154 | ||
32155 | fi | |
32156 | done | |
32157 | ||
32158 | ||
32159 | ||
32160 | fi | |
32161 | ||
32162 | ||
32163 | ||
32164 | fi | |
32165 | done | |
32166 | ||
32167 | fi | |
32168 | ||
32169 | ||
32170 | ||
32171 | for ac_func in uname gethostname | |
32172 | do | |
32173 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32174 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32175 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32176 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32178 | else | |
32179 | cat >conftest.$ac_ext <<_ACEOF | |
32180 | /* confdefs.h. */ | |
32181 | _ACEOF | |
32182 | cat confdefs.h >>conftest.$ac_ext | |
32183 | cat >>conftest.$ac_ext <<_ACEOF | |
32184 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32185 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32186 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32187 | #define $ac_func innocuous_$ac_func | |
32188 | ||
a848cd7e SC |
32189 | /* System header to define __stub macros and hopefully few prototypes, |
32190 | which can conflict with char $ac_func (); below. | |
32191 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32192 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32193 | |
a848cd7e SC |
32194 | #ifdef __STDC__ |
32195 | # include <limits.h> | |
32196 | #else | |
32197 | # include <assert.h> | |
32198 | #endif | |
ac1cb8d3 VS |
32199 | |
32200 | #undef $ac_func | |
32201 | ||
a848cd7e SC |
32202 | /* Override any gcc2 internal prototype to avoid an error. */ |
32203 | #ifdef __cplusplus | |
32204 | extern "C" | |
32205 | { | |
32206 | #endif | |
32207 | /* We use char because int might match the return type of a gcc2 | |
32208 | builtin and then its argument prototype would still apply. */ | |
32209 | char $ac_func (); | |
32210 | /* The GNU C library defines this for functions which it implements | |
32211 | to always fail with ENOSYS. Some functions are actually named | |
32212 | something starting with __ and the normal name is an alias. */ | |
32213 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32214 | choke me | |
32215 | #else | |
32216 | char (*f) () = $ac_func; | |
32217 | #endif | |
32218 | #ifdef __cplusplus | |
32219 | } | |
32220 | #endif | |
32221 | ||
32222 | int | |
32223 | main () | |
32224 | { | |
32225 | return f != $ac_func; | |
32226 | ; | |
32227 | return 0; | |
32228 | } | |
32229 | _ACEOF | |
32230 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32231 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32232 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32233 | ac_status=$? |
ac1cb8d3 VS |
32234 | grep -v '^ *+' conftest.er1 >conftest.err |
32235 | rm -f conftest.er1 | |
32236 | cat conftest.err >&5 | |
a848cd7e SC |
32237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32238 | (exit $ac_status); } && | |
89be85c2 VS |
32239 | { ac_try='test -z "$ac_c_werror_flag" |
32240 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32242 | (eval $ac_try) 2>&5 | |
32243 | ac_status=$? | |
32244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32245 | (exit $ac_status); }; } && | |
32246 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32248 | (eval $ac_try) 2>&5 | |
32249 | ac_status=$? | |
32250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32251 | (exit $ac_status); }; }; then | |
32252 | eval "$as_ac_var=yes" | |
32253 | else | |
32254 | echo "$as_me: failed program was:" >&5 | |
32255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32256 | ||
32257 | eval "$as_ac_var=no" | |
32258 | fi | |
ac1cb8d3 VS |
32259 | rm -f conftest.err conftest.$ac_objext \ |
32260 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32261 | fi |
32262 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32263 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32264 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32265 | cat >>confdefs.h <<_ACEOF | |
32266 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32267 | _ACEOF | |
32268 | break | |
32269 | fi | |
32270 | done | |
32271 | ||
32272 | ||
32273 | ||
32274 | ||
32275 | ac_ext=cc | |
32276 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32277 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32278 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32279 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32280 | ||
32281 | ||
32282 | ||
32283 | for ac_func in strtok_r | |
32284 | do | |
32285 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32286 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32287 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32288 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32290 | else | |
32291 | cat >conftest.$ac_ext <<_ACEOF | |
32292 | /* confdefs.h. */ | |
32293 | _ACEOF | |
32294 | cat confdefs.h >>conftest.$ac_ext | |
32295 | cat >>conftest.$ac_ext <<_ACEOF | |
32296 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32297 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32298 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32299 | #define $ac_func innocuous_$ac_func | |
32300 | ||
a848cd7e SC |
32301 | /* System header to define __stub macros and hopefully few prototypes, |
32302 | which can conflict with char $ac_func (); below. | |
32303 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32304 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32305 | |
a848cd7e SC |
32306 | #ifdef __STDC__ |
32307 | # include <limits.h> | |
32308 | #else | |
32309 | # include <assert.h> | |
32310 | #endif | |
ac1cb8d3 VS |
32311 | |
32312 | #undef $ac_func | |
32313 | ||
a848cd7e SC |
32314 | /* Override any gcc2 internal prototype to avoid an error. */ |
32315 | #ifdef __cplusplus | |
32316 | extern "C" | |
32317 | { | |
32318 | #endif | |
32319 | /* We use char because int might match the return type of a gcc2 | |
32320 | builtin and then its argument prototype would still apply. */ | |
32321 | char $ac_func (); | |
32322 | /* The GNU C library defines this for functions which it implements | |
32323 | to always fail with ENOSYS. Some functions are actually named | |
32324 | something starting with __ and the normal name is an alias. */ | |
32325 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32326 | choke me | |
32327 | #else | |
32328 | char (*f) () = $ac_func; | |
32329 | #endif | |
32330 | #ifdef __cplusplus | |
32331 | } | |
32332 | #endif | |
32333 | ||
32334 | int | |
32335 | main () | |
32336 | { | |
32337 | return f != $ac_func; | |
32338 | ; | |
32339 | return 0; | |
32340 | } | |
32341 | _ACEOF | |
32342 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32343 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32344 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32345 | ac_status=$? |
ac1cb8d3 VS |
32346 | grep -v '^ *+' conftest.er1 >conftest.err |
32347 | rm -f conftest.er1 | |
32348 | cat conftest.err >&5 | |
a848cd7e SC |
32349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32350 | (exit $ac_status); } && | |
89be85c2 VS |
32351 | { ac_try='test -z "$ac_cxx_werror_flag" |
32352 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32354 | (eval $ac_try) 2>&5 | |
32355 | ac_status=$? | |
32356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32357 | (exit $ac_status); }; } && | |
32358 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32360 | (eval $ac_try) 2>&5 | |
32361 | ac_status=$? | |
32362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32363 | (exit $ac_status); }; }; then | |
32364 | eval "$as_ac_var=yes" | |
32365 | else | |
32366 | echo "$as_me: failed program was:" >&5 | |
32367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32368 | ||
32369 | eval "$as_ac_var=no" | |
32370 | fi | |
ac1cb8d3 VS |
32371 | rm -f conftest.err conftest.$ac_objext \ |
32372 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32373 | fi |
32374 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32375 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32376 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32377 | cat >>confdefs.h <<_ACEOF | |
32378 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32379 | _ACEOF | |
32380 | ||
32381 | fi | |
32382 | done | |
32383 | ||
32384 | ||
32385 | ac_ext=c | |
32386 | ac_cpp='$CPP $CPPFLAGS' | |
32387 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32388 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32389 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32390 | ||
32391 | ||
32392 | INET_LINK= | |
32393 | ||
32394 | for ac_func in inet_addr | |
32395 | do | |
32396 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32397 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32398 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32399 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32401 | else | |
32402 | cat >conftest.$ac_ext <<_ACEOF | |
32403 | /* confdefs.h. */ | |
32404 | _ACEOF | |
32405 | cat confdefs.h >>conftest.$ac_ext | |
32406 | cat >>conftest.$ac_ext <<_ACEOF | |
32407 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32408 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32409 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32410 | #define $ac_func innocuous_$ac_func | |
32411 | ||
a848cd7e SC |
32412 | /* System header to define __stub macros and hopefully few prototypes, |
32413 | which can conflict with char $ac_func (); below. | |
32414 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32415 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32416 | |
a848cd7e SC |
32417 | #ifdef __STDC__ |
32418 | # include <limits.h> | |
32419 | #else | |
32420 | # include <assert.h> | |
32421 | #endif | |
ac1cb8d3 VS |
32422 | |
32423 | #undef $ac_func | |
32424 | ||
a848cd7e SC |
32425 | /* Override any gcc2 internal prototype to avoid an error. */ |
32426 | #ifdef __cplusplus | |
32427 | extern "C" | |
32428 | { | |
32429 | #endif | |
32430 | /* We use char because int might match the return type of a gcc2 | |
32431 | builtin and then its argument prototype would still apply. */ | |
32432 | char $ac_func (); | |
32433 | /* The GNU C library defines this for functions which it implements | |
32434 | to always fail with ENOSYS. Some functions are actually named | |
32435 | something starting with __ and the normal name is an alias. */ | |
32436 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32437 | choke me | |
32438 | #else | |
32439 | char (*f) () = $ac_func; | |
32440 | #endif | |
32441 | #ifdef __cplusplus | |
32442 | } | |
32443 | #endif | |
32444 | ||
32445 | int | |
32446 | main () | |
32447 | { | |
32448 | return f != $ac_func; | |
32449 | ; | |
32450 | return 0; | |
32451 | } | |
32452 | _ACEOF | |
32453 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32454 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32455 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32456 | ac_status=$? |
ac1cb8d3 VS |
32457 | grep -v '^ *+' conftest.er1 >conftest.err |
32458 | rm -f conftest.er1 | |
32459 | cat conftest.err >&5 | |
a848cd7e SC |
32460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32461 | (exit $ac_status); } && | |
89be85c2 VS |
32462 | { ac_try='test -z "$ac_c_werror_flag" |
32463 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32465 | (eval $ac_try) 2>&5 | |
32466 | ac_status=$? | |
32467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32468 | (exit $ac_status); }; } && | |
32469 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32471 | (eval $ac_try) 2>&5 | |
32472 | ac_status=$? | |
32473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32474 | (exit $ac_status); }; }; then | |
32475 | eval "$as_ac_var=yes" | |
32476 | else | |
32477 | echo "$as_me: failed program was:" >&5 | |
32478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32479 | ||
32480 | eval "$as_ac_var=no" | |
32481 | fi | |
ac1cb8d3 VS |
32482 | rm -f conftest.err conftest.$ac_objext \ |
32483 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32484 | fi |
32485 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32486 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32487 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32488 | cat >>confdefs.h <<_ACEOF | |
32489 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32490 | _ACEOF | |
32491 | cat >>confdefs.h <<\_ACEOF | |
32492 | #define HAVE_INET_ADDR 1 | |
32493 | _ACEOF | |
32494 | ||
32495 | else | |
32496 | ||
32497 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
32498 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
32499 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
32500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32501 | else | |
32502 | ac_check_lib_save_LIBS=$LIBS | |
32503 | LIBS="-lnsl $LIBS" | |
32504 | cat >conftest.$ac_ext <<_ACEOF | |
32505 | /* confdefs.h. */ | |
32506 | _ACEOF | |
32507 | cat confdefs.h >>conftest.$ac_ext | |
32508 | cat >>conftest.$ac_ext <<_ACEOF | |
32509 | /* end confdefs.h. */ | |
32510 | ||
32511 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32512 | #ifdef __cplusplus | |
32513 | extern "C" | |
32514 | #endif | |
32515 | /* We use char because int might match the return type of a gcc2 | |
32516 | builtin and then its argument prototype would still apply. */ | |
32517 | char inet_addr (); | |
32518 | int | |
32519 | main () | |
32520 | { | |
32521 | inet_addr (); | |
32522 | ; | |
32523 | return 0; | |
32524 | } | |
32525 | _ACEOF | |
32526 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32527 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32528 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32529 | ac_status=$? |
ac1cb8d3 VS |
32530 | grep -v '^ *+' conftest.er1 >conftest.err |
32531 | rm -f conftest.er1 | |
32532 | cat conftest.err >&5 | |
a848cd7e SC |
32533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32534 | (exit $ac_status); } && | |
89be85c2 VS |
32535 | { ac_try='test -z "$ac_c_werror_flag" |
32536 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32538 | (eval $ac_try) 2>&5 | |
32539 | ac_status=$? | |
32540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32541 | (exit $ac_status); }; } && | |
32542 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32544 | (eval $ac_try) 2>&5 | |
32545 | ac_status=$? | |
32546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32547 | (exit $ac_status); }; }; then | |
32548 | ac_cv_lib_nsl_inet_addr=yes | |
32549 | else | |
32550 | echo "$as_me: failed program was:" >&5 | |
32551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32552 | ||
32553 | ac_cv_lib_nsl_inet_addr=no | |
32554 | fi | |
ac1cb8d3 VS |
32555 | rm -f conftest.err conftest.$ac_objext \ |
32556 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32557 | LIBS=$ac_check_lib_save_LIBS |
32558 | fi | |
32559 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
32560 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
32561 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
32562 | INET_LINK="nsl" | |
32563 | else | |
32564 | ||
32565 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
32566 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
32567 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
32568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32569 | else | |
32570 | ac_check_lib_save_LIBS=$LIBS | |
32571 | LIBS="-lresolv $LIBS" | |
32572 | cat >conftest.$ac_ext <<_ACEOF | |
32573 | /* confdefs.h. */ | |
32574 | _ACEOF | |
32575 | cat confdefs.h >>conftest.$ac_ext | |
32576 | cat >>conftest.$ac_ext <<_ACEOF | |
32577 | /* end confdefs.h. */ | |
32578 | ||
32579 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32580 | #ifdef __cplusplus | |
32581 | extern "C" | |
32582 | #endif | |
32583 | /* We use char because int might match the return type of a gcc2 | |
32584 | builtin and then its argument prototype would still apply. */ | |
32585 | char inet_addr (); | |
32586 | int | |
32587 | main () | |
32588 | { | |
32589 | inet_addr (); | |
32590 | ; | |
32591 | return 0; | |
32592 | } | |
32593 | _ACEOF | |
32594 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32595 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32596 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32597 | ac_status=$? |
ac1cb8d3 VS |
32598 | grep -v '^ *+' conftest.er1 >conftest.err |
32599 | rm -f conftest.er1 | |
32600 | cat conftest.err >&5 | |
a848cd7e SC |
32601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32602 | (exit $ac_status); } && | |
89be85c2 VS |
32603 | { ac_try='test -z "$ac_c_werror_flag" |
32604 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32606 | (eval $ac_try) 2>&5 | |
32607 | ac_status=$? | |
32608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32609 | (exit $ac_status); }; } && | |
32610 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32612 | (eval $ac_try) 2>&5 | |
32613 | ac_status=$? | |
32614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32615 | (exit $ac_status); }; }; then | |
32616 | ac_cv_lib_resolv_inet_addr=yes | |
32617 | else | |
32618 | echo "$as_me: failed program was:" >&5 | |
32619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32620 | ||
32621 | ac_cv_lib_resolv_inet_addr=no | |
32622 | fi | |
ac1cb8d3 VS |
32623 | rm -f conftest.err conftest.$ac_objext \ |
32624 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32625 | LIBS=$ac_check_lib_save_LIBS |
32626 | fi | |
32627 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
32628 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
32629 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
32630 | INET_LINK="resolv" | |
32631 | else | |
32632 | ||
32633 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
32634 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
32635 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
32636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32637 | else | |
32638 | ac_check_lib_save_LIBS=$LIBS | |
32639 | LIBS="-lsocket $LIBS" | |
32640 | cat >conftest.$ac_ext <<_ACEOF | |
32641 | /* confdefs.h. */ | |
32642 | _ACEOF | |
32643 | cat confdefs.h >>conftest.$ac_ext | |
32644 | cat >>conftest.$ac_ext <<_ACEOF | |
32645 | /* end confdefs.h. */ | |
32646 | ||
32647 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32648 | #ifdef __cplusplus | |
32649 | extern "C" | |
32650 | #endif | |
32651 | /* We use char because int might match the return type of a gcc2 | |
32652 | builtin and then its argument prototype would still apply. */ | |
32653 | char inet_addr (); | |
32654 | int | |
32655 | main () | |
32656 | { | |
32657 | inet_addr (); | |
32658 | ; | |
32659 | return 0; | |
32660 | } | |
32661 | _ACEOF | |
32662 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32663 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32664 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32665 | ac_status=$? |
ac1cb8d3 VS |
32666 | grep -v '^ *+' conftest.er1 >conftest.err |
32667 | rm -f conftest.er1 | |
32668 | cat conftest.err >&5 | |
a848cd7e SC |
32669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32670 | (exit $ac_status); } && | |
89be85c2 VS |
32671 | { ac_try='test -z "$ac_c_werror_flag" |
32672 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32674 | (eval $ac_try) 2>&5 | |
32675 | ac_status=$? | |
32676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32677 | (exit $ac_status); }; } && | |
32678 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32680 | (eval $ac_try) 2>&5 | |
32681 | ac_status=$? | |
32682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32683 | (exit $ac_status); }; }; then | |
32684 | ac_cv_lib_socket_inet_addr=yes | |
32685 | else | |
32686 | echo "$as_me: failed program was:" >&5 | |
32687 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32688 | ||
32689 | ac_cv_lib_socket_inet_addr=no | |
32690 | fi | |
ac1cb8d3 VS |
32691 | rm -f conftest.err conftest.$ac_objext \ |
32692 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32693 | LIBS=$ac_check_lib_save_LIBS |
32694 | fi | |
32695 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
32696 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
32697 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
32698 | INET_LINK="socket" | |
32699 | ||
32700 | fi | |
32701 | ||
32702 | ||
32703 | ||
32704 | fi | |
32705 | ||
32706 | ||
32707 | ||
32708 | fi | |
32709 | ||
32710 | ||
32711 | ||
32712 | fi | |
32713 | done | |
32714 | ||
32715 | ||
32716 | ||
32717 | for ac_func in inet_aton | |
32718 | do | |
32719 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32720 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32721 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32722 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32723 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32724 | else | |
32725 | cat >conftest.$ac_ext <<_ACEOF | |
32726 | /* confdefs.h. */ | |
32727 | _ACEOF | |
32728 | cat confdefs.h >>conftest.$ac_ext | |
32729 | cat >>conftest.$ac_ext <<_ACEOF | |
32730 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32731 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32732 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32733 | #define $ac_func innocuous_$ac_func | |
32734 | ||
a848cd7e SC |
32735 | /* System header to define __stub macros and hopefully few prototypes, |
32736 | which can conflict with char $ac_func (); below. | |
32737 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32738 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32739 | |
a848cd7e SC |
32740 | #ifdef __STDC__ |
32741 | # include <limits.h> | |
32742 | #else | |
32743 | # include <assert.h> | |
32744 | #endif | |
ac1cb8d3 VS |
32745 | |
32746 | #undef $ac_func | |
32747 | ||
a848cd7e SC |
32748 | /* Override any gcc2 internal prototype to avoid an error. */ |
32749 | #ifdef __cplusplus | |
32750 | extern "C" | |
32751 | { | |
32752 | #endif | |
32753 | /* We use char because int might match the return type of a gcc2 | |
32754 | builtin and then its argument prototype would still apply. */ | |
32755 | char $ac_func (); | |
32756 | /* The GNU C library defines this for functions which it implements | |
32757 | to always fail with ENOSYS. Some functions are actually named | |
32758 | something starting with __ and the normal name is an alias. */ | |
32759 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32760 | choke me | |
32761 | #else | |
32762 | char (*f) () = $ac_func; | |
32763 | #endif | |
32764 | #ifdef __cplusplus | |
32765 | } | |
32766 | #endif | |
32767 | ||
32768 | int | |
32769 | main () | |
32770 | { | |
32771 | return f != $ac_func; | |
32772 | ; | |
32773 | return 0; | |
32774 | } | |
32775 | _ACEOF | |
32776 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32777 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32778 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32779 | ac_status=$? |
ac1cb8d3 VS |
32780 | grep -v '^ *+' conftest.er1 >conftest.err |
32781 | rm -f conftest.er1 | |
32782 | cat conftest.err >&5 | |
a848cd7e SC |
32783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32784 | (exit $ac_status); } && | |
89be85c2 VS |
32785 | { ac_try='test -z "$ac_c_werror_flag" |
32786 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32788 | (eval $ac_try) 2>&5 | |
32789 | ac_status=$? | |
32790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32791 | (exit $ac_status); }; } && | |
32792 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32794 | (eval $ac_try) 2>&5 | |
32795 | ac_status=$? | |
32796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32797 | (exit $ac_status); }; }; then | |
32798 | eval "$as_ac_var=yes" | |
32799 | else | |
32800 | echo "$as_me: failed program was:" >&5 | |
32801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32802 | ||
32803 | eval "$as_ac_var=no" | |
32804 | fi | |
ac1cb8d3 VS |
32805 | rm -f conftest.err conftest.$ac_objext \ |
32806 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32807 | fi |
32808 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32809 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32810 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32811 | cat >>confdefs.h <<_ACEOF | |
32812 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32813 | _ACEOF | |
32814 | cat >>confdefs.h <<\_ACEOF | |
32815 | #define HAVE_INET_ATON 1 | |
32816 | _ACEOF | |
32817 | ||
32818 | else | |
32819 | ||
32820 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
32821 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
32822 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
32823 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
32824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32825 | else | |
32826 | ac_check_lib_save_LIBS=$LIBS | |
32827 | LIBS="-l$INET_LINK $LIBS" | |
32828 | cat >conftest.$ac_ext <<_ACEOF | |
32829 | /* confdefs.h. */ | |
32830 | _ACEOF | |
32831 | cat confdefs.h >>conftest.$ac_ext | |
32832 | cat >>conftest.$ac_ext <<_ACEOF | |
32833 | /* end confdefs.h. */ | |
32834 | ||
32835 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32836 | #ifdef __cplusplus | |
32837 | extern "C" | |
32838 | #endif | |
32839 | /* We use char because int might match the return type of a gcc2 | |
32840 | builtin and then its argument prototype would still apply. */ | |
32841 | char inet_aton (); | |
32842 | int | |
32843 | main () | |
32844 | { | |
32845 | inet_aton (); | |
32846 | ; | |
32847 | return 0; | |
32848 | } | |
32849 | _ACEOF | |
32850 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32851 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32852 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32853 | ac_status=$? |
ac1cb8d3 VS |
32854 | grep -v '^ *+' conftest.er1 >conftest.err |
32855 | rm -f conftest.er1 | |
32856 | cat conftest.err >&5 | |
a848cd7e SC |
32857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32858 | (exit $ac_status); } && | |
89be85c2 VS |
32859 | { ac_try='test -z "$ac_c_werror_flag" |
32860 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32862 | (eval $ac_try) 2>&5 | |
32863 | ac_status=$? | |
32864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32865 | (exit $ac_status); }; } && | |
32866 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32868 | (eval $ac_try) 2>&5 | |
32869 | ac_status=$? | |
32870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32871 | (exit $ac_status); }; }; then | |
32872 | eval "$as_ac_Lib=yes" | |
32873 | else | |
32874 | echo "$as_me: failed program was:" >&5 | |
32875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32876 | ||
32877 | eval "$as_ac_Lib=no" | |
32878 | fi | |
ac1cb8d3 VS |
32879 | rm -f conftest.err conftest.$ac_objext \ |
32880 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32881 | LIBS=$ac_check_lib_save_LIBS |
32882 | fi | |
32883 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
32884 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
32885 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
32886 | cat >>confdefs.h <<\_ACEOF | |
32887 | #define HAVE_INET_ATON 1 | |
32888 | _ACEOF | |
32889 | ||
32890 | fi | |
32891 | ||
32892 | ||
32893 | fi | |
32894 | done | |
32895 | ||
32896 | ||
32897 | if test "x$INET_LINK" != "x"; then | |
32898 | cat >>confdefs.h <<\_ACEOF | |
32899 | #define HAVE_INET_ADDR 1 | |
32900 | _ACEOF | |
32901 | ||
32902 | INET_LINK=" -l$INET_LINK" | |
32903 | fi | |
32904 | ||
32905 | fi | |
32906 | ||
32907 | ||
32908 | ||
32909 | EXTRALIBS_ESD= | |
32910 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
32911 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
32912 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
32913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32914 | else | |
32915 | ac_check_lib_save_LIBS=$LIBS | |
32916 | LIBS="-lesd $LIBS" | |
32917 | cat >conftest.$ac_ext <<_ACEOF | |
32918 | /* confdefs.h. */ | |
32919 | _ACEOF | |
32920 | cat confdefs.h >>conftest.$ac_ext | |
32921 | cat >>conftest.$ac_ext <<_ACEOF | |
32922 | /* end confdefs.h. */ | |
32923 | ||
32924 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32925 | #ifdef __cplusplus | |
32926 | extern "C" | |
32927 | #endif | |
32928 | /* We use char because int might match the return type of a gcc2 | |
32929 | builtin and then its argument prototype would still apply. */ | |
32930 | char esd_close (); | |
32931 | int | |
32932 | main () | |
32933 | { | |
32934 | esd_close (); | |
32935 | ; | |
32936 | return 0; | |
32937 | } | |
32938 | _ACEOF | |
32939 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32940 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32941 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32942 | ac_status=$? |
ac1cb8d3 VS |
32943 | grep -v '^ *+' conftest.er1 >conftest.err |
32944 | rm -f conftest.er1 | |
32945 | cat conftest.err >&5 | |
a848cd7e SC |
32946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32947 | (exit $ac_status); } && | |
89be85c2 VS |
32948 | { ac_try='test -z "$ac_c_werror_flag" |
32949 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32951 | (eval $ac_try) 2>&5 | |
32952 | ac_status=$? | |
32953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32954 | (exit $ac_status); }; } && | |
32955 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32957 | (eval $ac_try) 2>&5 | |
32958 | ac_status=$? | |
32959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32960 | (exit $ac_status); }; }; then | |
32961 | ac_cv_lib_esd_esd_close=yes | |
32962 | else | |
32963 | echo "$as_me: failed program was:" >&5 | |
32964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32965 | ||
32966 | ac_cv_lib_esd_esd_close=no | |
32967 | fi | |
ac1cb8d3 VS |
32968 | rm -f conftest.err conftest.$ac_objext \ |
32969 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32970 | LIBS=$ac_check_lib_save_LIBS |
32971 | fi | |
32972 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
32973 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
32974 | if test $ac_cv_lib_esd_esd_close = yes; then | |
32975 | ||
32976 | ||
32977 | for ac_header in esd.h | |
32978 | do | |
32979 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
32980 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32981 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32982 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32983 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32985 | fi | |
32986 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32987 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32988 | else | |
32989 | # Is the header compilable? | |
32990 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
32991 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
32992 | cat >conftest.$ac_ext <<_ACEOF | |
32993 | /* confdefs.h. */ | |
32994 | _ACEOF | |
32995 | cat confdefs.h >>conftest.$ac_ext | |
32996 | cat >>conftest.$ac_ext <<_ACEOF | |
32997 | /* end confdefs.h. */ | |
32998 | $ac_includes_default | |
32999 | #include <$ac_header> | |
33000 | _ACEOF | |
33001 | rm -f conftest.$ac_objext | |
33002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33003 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33004 | ac_status=$? |
ac1cb8d3 VS |
33005 | grep -v '^ *+' conftest.er1 >conftest.err |
33006 | rm -f conftest.er1 | |
33007 | cat conftest.err >&5 | |
a848cd7e SC |
33008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33009 | (exit $ac_status); } && | |
89be85c2 VS |
33010 | { ac_try='test -z "$ac_c_werror_flag" |
33011 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33013 | (eval $ac_try) 2>&5 | |
33014 | ac_status=$? | |
33015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33016 | (exit $ac_status); }; } && | |
33017 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33019 | (eval $ac_try) 2>&5 | |
33020 | ac_status=$? | |
33021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33022 | (exit $ac_status); }; }; then | |
33023 | ac_header_compiler=yes | |
33024 | else | |
33025 | echo "$as_me: failed program was:" >&5 | |
33026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33027 | ||
33028 | ac_header_compiler=no | |
33029 | fi | |
ac1cb8d3 | 33030 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33031 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
33032 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
33033 | ||
33034 | # Is the header present? | |
33035 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
33036 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
33037 | cat >conftest.$ac_ext <<_ACEOF | |
33038 | /* confdefs.h. */ | |
33039 | _ACEOF | |
33040 | cat confdefs.h >>conftest.$ac_ext | |
33041 | cat >>conftest.$ac_ext <<_ACEOF | |
33042 | /* end confdefs.h. */ | |
33043 | #include <$ac_header> | |
33044 | _ACEOF | |
33045 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
33046 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
33047 | ac_status=$? | |
33048 | grep -v '^ *+' conftest.er1 >conftest.err | |
33049 | rm -f conftest.er1 | |
33050 | cat conftest.err >&5 | |
33051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33052 | (exit $ac_status); } >/dev/null; then | |
33053 | if test -s conftest.err; then | |
33054 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 33055 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
33056 | else |
33057 | ac_cpp_err= | |
33058 | fi | |
33059 | else | |
33060 | ac_cpp_err=yes | |
33061 | fi | |
33062 | if test -z "$ac_cpp_err"; then | |
33063 | ac_header_preproc=yes | |
33064 | else | |
33065 | echo "$as_me: failed program was:" >&5 | |
33066 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33067 | ||
33068 | ac_header_preproc=no | |
33069 | fi | |
33070 | rm -f conftest.err conftest.$ac_ext | |
33071 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
33072 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
33073 | ||
33074 | # So? What about this header? | |
ac1cb8d3 VS |
33075 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
33076 | yes:no: ) | |
a848cd7e SC |
33077 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
33078 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
33079 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
33080 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
33081 | ac_header_preproc=yes | |
a848cd7e | 33082 | ;; |
ac1cb8d3 | 33083 | no:yes:* ) |
a848cd7e SC |
33084 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
33085 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
33086 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
33087 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
33088 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
33089 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
33090 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
33091 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
33092 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
33093 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
33094 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
33095 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
33096 | ( |
33097 | cat <<\_ASBOX | |
ac1cb8d3 VS |
33098 | ## ----------------------------------------- ## |
33099 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
33100 | ## ----------------------------------------- ## | |
a848cd7e SC |
33101 | _ASBOX |
33102 | ) | | |
33103 | sed "s/^/$as_me: WARNING: /" >&2 | |
33104 | ;; | |
33105 | esac | |
33106 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33107 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33108 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33109 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33110 | else | |
ac1cb8d3 | 33111 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
33112 | fi |
33113 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33114 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33115 | ||
33116 | fi | |
33117 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
33118 | cat >>confdefs.h <<_ACEOF | |
33119 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
33120 | _ACEOF | |
33121 | ||
33122 | EXTRALIBS_ESD="-lesd" | |
33123 | ||
33124 | fi | |
33125 | ||
33126 | done | |
33127 | ||
33128 | ||
33129 | fi | |
33130 | ||
33131 | ||
33132 | ||
33133 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
33134 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
33135 | cat >conftest.$ac_ext <<_ACEOF | |
33136 | /* confdefs.h. */ | |
33137 | _ACEOF | |
33138 | cat confdefs.h >>conftest.$ac_ext | |
33139 | cat >>conftest.$ac_ext <<_ACEOF | |
33140 | /* end confdefs.h. */ | |
33141 | #ifdef __linux__ | |
33142 | #include <linux/cdrom.h> | |
33143 | #else | |
33144 | /* For Solaris */ | |
33145 | #include <sys/cdio.h> | |
33146 | #endif | |
33147 | ||
33148 | int | |
33149 | main () | |
33150 | { | |
33151 | struct cdrom_tocentry entry, old_entry; | |
33152 | ; | |
33153 | return 0; | |
33154 | } | |
33155 | _ACEOF | |
33156 | rm -f conftest.$ac_objext | |
33157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33158 | (eval $ac_compile) 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); } && | |
89be85c2 VS |
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_objext' | |
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 | echo "$as_me:$LINENO: result: yes" >&5 | |
33179 | echo "${ECHO_T}yes" >&6 | |
33180 | cat >>confdefs.h <<\_ACEOF | |
33181 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
33182 | _ACEOF | |
33183 | ||
33184 | else | |
33185 | echo "$as_me: failed program was:" >&5 | |
33186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33187 | ||
33188 | echo "$as_me:$LINENO: result: no" >&5 | |
33189 | echo "${ECHO_T}no" >&6 | |
33190 | fi | |
ac1cb8d3 | 33191 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33192 | |
33193 | ||
33194 | cat >confcache <<\_ACEOF | |
33195 | # This file is a shell script that caches the results of configure | |
33196 | # tests run on this system so they can be shared between configure | |
33197 | # scripts and configure runs, see configure's option --config-cache. | |
33198 | # It is not useful on other systems. If it contains results you don't | |
33199 | # want to keep, you may remove or edit it. | |
33200 | # | |
33201 | # config.status only pays attention to the cache file if you give it | |
33202 | # the --recheck option to rerun configure. | |
33203 | # | |
33204 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
33205 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
33206 | # following values. | |
33207 | ||
33208 | _ACEOF | |
33209 | ||
33210 | # The following way of writing the cache mishandles newlines in values, | |
33211 | # but we know of no workaround that is simple, portable, and efficient. | |
33212 | # So, don't put newlines in cache variables' values. | |
33213 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
33214 | # and sets the high bit in the cache file unless we assign to the vars. | |
33215 | { | |
33216 | (set) 2>&1 | | |
33217 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
33218 | *ac_space=\ *) | |
33219 | # `set' does not quote correctly, so add quotes (double-quote | |
33220 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
33221 | sed -n \ | |
ac1cb8d3 VS |
33222 | "s/'/'\\\\''/g; |
33223 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
33224 | ;; |
33225 | *) | |
33226 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
33227 | sed -n \ | |
ac1cb8d3 | 33228 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
33229 | ;; |
33230 | esac; | |
33231 | } | | |
33232 | sed ' | |
33233 | t clear | |
33234 | : clear | |
33235 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
33236 | t end | |
33237 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
33238 | : end' >>confcache | |
33239 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
33240 | if test -w $cache_file; then | |
33241 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
33242 | cat confcache >$cache_file | |
33243 | else | |
33244 | echo "not updating unwritable cache $cache_file" | |
33245 | fi | |
33246 | fi | |
33247 | rm -f confcache | |
33248 | ||
33249 | ||
33250 | CPP_MT_FLAG= | |
33251 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
33252 | ||
33253 | ||
33254 | THREADS_LINK= | |
33255 | THREADS_CFLAGS= | |
33256 | ||
33257 | if test "$wxUSE_THREADS" = "yes" ; then | |
33258 | if test "$USE_BEOS" = 1; then | |
33259 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
33260 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
33261 | wxUSE_THREADS="no" | |
33262 | fi | |
33263 | fi | |
33264 | ||
33265 | if test "$wxUSE_THREADS" = "yes" ; then | |
33266 | ||
33267 | ||
33268 | THREAD_OPTS="-pthread" | |
33269 | case "${host}" in | |
33270 | *-*-solaris2* | *-*-sunos4* ) | |
33271 | if test "x$GCC" = "xyes"; then | |
33272 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
33273 | else | |
33274 | THREAD_OPTS="-mt $THREAD_OPTS" | |
33275 | fi | |
33276 | ;; | |
33277 | *-*-freebsd*) | |
33278 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
33279 | ;; | |
33280 | *-*-darwin* | *-*-cygwin* ) | |
33281 | THREAD_OPTS="" | |
33282 | ;; | |
33283 | *-*-aix*) | |
33284 | THREAD_OPTS="pthreads" | |
33285 | ;; | |
33286 | *-hp-hpux* ) | |
33287 | if test "x$GCC" != "xyes"; then | |
33288 | THREAD_OPTS="" | |
33289 | fi | |
33290 | ;; | |
33291 | ||
33292 | *-*-irix* ) | |
33293 | if test "x$GCC" = "xyes"; then | |
33294 | THREAD_OPTS="" | |
33295 | fi | |
33296 | ;; | |
33297 | ||
33298 | *-*-*UnixWare*) | |
33299 | if test "x$GCC" != "xyes"; then | |
33300 | THREAD_OPTS="-Ethread" | |
33301 | fi | |
33302 | ;; | |
33303 | esac | |
33304 | ||
33305 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
33306 | ||
33307 | THREADS_OK=no | |
33308 | for flag in $THREAD_OPTS; do | |
33309 | case $flag in | |
33310 | none) | |
33311 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
33312 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
33313 | ;; | |
33314 | ||
33315 | -*) | |
33316 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
33317 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
33318 | THREADS_CFLAGS="$flag" | |
33319 | ;; | |
33320 | ||
33321 | *) | |
33322 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
33323 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
33324 | THREADS_LINK="-l$flag" | |
33325 | ;; | |
33326 | esac | |
33327 | ||
33328 | save_LIBS="$LIBS" | |
33329 | save_CFLAGS="$CFLAGS" | |
33330 | LIBS="$THREADS_LINK $LIBS" | |
33331 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
33332 | ||
33333 | cat >conftest.$ac_ext <<_ACEOF | |
33334 | /* confdefs.h. */ | |
33335 | _ACEOF | |
33336 | cat confdefs.h >>conftest.$ac_ext | |
33337 | cat >>conftest.$ac_ext <<_ACEOF | |
33338 | /* end confdefs.h. */ | |
33339 | #include <pthread.h> | |
33340 | int | |
33341 | main () | |
33342 | { | |
33343 | pthread_create(0,0,0,0); | |
33344 | ; | |
33345 | return 0; | |
33346 | } | |
33347 | _ACEOF | |
33348 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33349 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33350 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33351 | ac_status=$? |
ac1cb8d3 VS |
33352 | grep -v '^ *+' conftest.er1 >conftest.err |
33353 | rm -f conftest.er1 | |
33354 | cat conftest.err >&5 | |
a848cd7e SC |
33355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33356 | (exit $ac_status); } && | |
89be85c2 VS |
33357 | { ac_try='test -z "$ac_c_werror_flag" |
33358 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33360 | (eval $ac_try) 2>&5 | |
33361 | ac_status=$? | |
33362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33363 | (exit $ac_status); }; } && | |
33364 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33366 | (eval $ac_try) 2>&5 | |
33367 | ac_status=$? | |
33368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33369 | (exit $ac_status); }; }; then | |
33370 | THREADS_OK=yes | |
33371 | else | |
33372 | echo "$as_me: failed program was:" >&5 | |
33373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33374 | ||
33375 | fi | |
ac1cb8d3 VS |
33376 | rm -f conftest.err conftest.$ac_objext \ |
33377 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33378 | |
33379 | LIBS="$save_LIBS" | |
33380 | CFLAGS="$save_CFLAGS" | |
33381 | ||
33382 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
33383 | echo "${ECHO_T}$THREADS_OK" >&6 | |
33384 | if test "x$THREADS_OK" = "xyes"; then | |
33385 | break; | |
33386 | fi | |
33387 | ||
33388 | THREADS_LINK="" | |
33389 | THREADS_CFLAGS="" | |
33390 | done | |
33391 | ||
33392 | if test "x$THREADS_OK" != "xyes"; then | |
33393 | wxUSE_THREADS=no | |
33394 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
33395 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
33396 | else | |
33397 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
33398 | LIBS="$THREADS_LINK $LIBS" | |
33399 | ||
33400 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
33401 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
33402 | flag=no | |
33403 | case "${host}" in | |
33404 | *-aix*) | |
33405 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
33406 | flag="-D_THREAD_SAFE" | |
33407 | ;; | |
33408 | *-freebsd*) | |
33409 | flag="-D_THREAD_SAFE" | |
33410 | ;; | |
33411 | *-hp-hpux* ) | |
33412 | flag="-D_REENTRANT" | |
33413 | if test "x$GCC" != "xyes"; then | |
33414 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
33415 | fi | |
33416 | ;; | |
33417 | *solaris* | alpha*-osf*) | |
33418 | flag="-D_REENTRANT" | |
33419 | ;; | |
33420 | esac | |
33421 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
33422 | echo "${ECHO_T}${flag}" >&6 | |
33423 | if test "x$flag" != xno; then | |
33424 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
33425 | fi | |
33426 | ||
33427 | if test "x$THREADS_CFLAGS" != "x"; then | |
33428 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
33429 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
33430 | fi | |
33431 | fi | |
33432 | fi | |
33433 | ||
33434 | if test "$wxUSE_THREADS" = "yes" ; then | |
33435 | ||
33436 | for ac_func in thr_setconcurrency | |
33437 | do | |
33438 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33439 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33440 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33441 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33443 | else | |
33444 | cat >conftest.$ac_ext <<_ACEOF | |
33445 | /* confdefs.h. */ | |
33446 | _ACEOF | |
33447 | cat confdefs.h >>conftest.$ac_ext | |
33448 | cat >>conftest.$ac_ext <<_ACEOF | |
33449 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33450 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33451 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33452 | #define $ac_func innocuous_$ac_func | |
33453 | ||
a848cd7e SC |
33454 | /* System header to define __stub macros and hopefully few prototypes, |
33455 | which can conflict with char $ac_func (); below. | |
33456 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33457 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33458 | |
a848cd7e SC |
33459 | #ifdef __STDC__ |
33460 | # include <limits.h> | |
33461 | #else | |
33462 | # include <assert.h> | |
33463 | #endif | |
ac1cb8d3 VS |
33464 | |
33465 | #undef $ac_func | |
33466 | ||
a848cd7e SC |
33467 | /* Override any gcc2 internal prototype to avoid an error. */ |
33468 | #ifdef __cplusplus | |
33469 | extern "C" | |
33470 | { | |
33471 | #endif | |
33472 | /* We use char because int might match the return type of a gcc2 | |
33473 | builtin and then its argument prototype would still apply. */ | |
33474 | char $ac_func (); | |
33475 | /* The GNU C library defines this for functions which it implements | |
33476 | to always fail with ENOSYS. Some functions are actually named | |
33477 | something starting with __ and the normal name is an alias. */ | |
33478 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33479 | choke me | |
33480 | #else | |
33481 | char (*f) () = $ac_func; | |
33482 | #endif | |
33483 | #ifdef __cplusplus | |
33484 | } | |
33485 | #endif | |
33486 | ||
33487 | int | |
33488 | main () | |
33489 | { | |
33490 | return f != $ac_func; | |
33491 | ; | |
33492 | return 0; | |
33493 | } | |
33494 | _ACEOF | |
33495 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33496 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33497 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33498 | ac_status=$? |
ac1cb8d3 VS |
33499 | grep -v '^ *+' conftest.er1 >conftest.err |
33500 | rm -f conftest.er1 | |
33501 | cat conftest.err >&5 | |
a848cd7e SC |
33502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33503 | (exit $ac_status); } && | |
89be85c2 VS |
33504 | { ac_try='test -z "$ac_c_werror_flag" |
33505 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33507 | (eval $ac_try) 2>&5 | |
33508 | ac_status=$? | |
33509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33510 | (exit $ac_status); }; } && | |
33511 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33513 | (eval $ac_try) 2>&5 | |
33514 | ac_status=$? | |
33515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33516 | (exit $ac_status); }; }; then | |
33517 | eval "$as_ac_var=yes" | |
33518 | else | |
33519 | echo "$as_me: failed program was:" >&5 | |
33520 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33521 | ||
33522 | eval "$as_ac_var=no" | |
33523 | fi | |
ac1cb8d3 VS |
33524 | rm -f conftest.err conftest.$ac_objext \ |
33525 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33526 | fi |
33527 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33528 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33529 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33530 | cat >>confdefs.h <<_ACEOF | |
33531 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33532 | _ACEOF | |
33533 | ||
33534 | fi | |
33535 | done | |
33536 | ||
33537 | ||
33538 | ||
33539 | for ac_header in sched.h | |
33540 | do | |
33541 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
33542 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33543 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33544 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33545 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33547 | fi | |
33548 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33549 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33550 | else | |
33551 | # Is the header compilable? | |
33552 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
33553 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
33554 | cat >conftest.$ac_ext <<_ACEOF | |
33555 | /* confdefs.h. */ | |
33556 | _ACEOF | |
33557 | cat confdefs.h >>conftest.$ac_ext | |
33558 | cat >>conftest.$ac_ext <<_ACEOF | |
33559 | /* end confdefs.h. */ | |
33560 | $ac_includes_default | |
33561 | #include <$ac_header> | |
33562 | _ACEOF | |
33563 | rm -f conftest.$ac_objext | |
33564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33565 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33566 | ac_status=$? |
ac1cb8d3 VS |
33567 | grep -v '^ *+' conftest.er1 >conftest.err |
33568 | rm -f conftest.er1 | |
33569 | cat conftest.err >&5 | |
a848cd7e SC |
33570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33571 | (exit $ac_status); } && | |
89be85c2 VS |
33572 | { ac_try='test -z "$ac_c_werror_flag" |
33573 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33575 | (eval $ac_try) 2>&5 | |
33576 | ac_status=$? | |
33577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33578 | (exit $ac_status); }; } && | |
33579 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33581 | (eval $ac_try) 2>&5 | |
33582 | ac_status=$? | |
33583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33584 | (exit $ac_status); }; }; then | |
33585 | ac_header_compiler=yes | |
33586 | else | |
33587 | echo "$as_me: failed program was:" >&5 | |
33588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33589 | ||
33590 | ac_header_compiler=no | |
33591 | fi | |
ac1cb8d3 | 33592 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33593 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
33594 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
33595 | ||
33596 | # Is the header present? | |
33597 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
33598 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
33599 | cat >conftest.$ac_ext <<_ACEOF | |
33600 | /* confdefs.h. */ | |
33601 | _ACEOF | |
33602 | cat confdefs.h >>conftest.$ac_ext | |
33603 | cat >>conftest.$ac_ext <<_ACEOF | |
33604 | /* end confdefs.h. */ | |
33605 | #include <$ac_header> | |
33606 | _ACEOF | |
33607 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
33608 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
33609 | ac_status=$? | |
33610 | grep -v '^ *+' conftest.er1 >conftest.err | |
33611 | rm -f conftest.er1 | |
33612 | cat conftest.err >&5 | |
33613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33614 | (exit $ac_status); } >/dev/null; then | |
33615 | if test -s conftest.err; then | |
33616 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 33617 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
33618 | else |
33619 | ac_cpp_err= | |
33620 | fi | |
33621 | else | |
33622 | ac_cpp_err=yes | |
33623 | fi | |
33624 | if test -z "$ac_cpp_err"; then | |
33625 | ac_header_preproc=yes | |
33626 | else | |
33627 | echo "$as_me: failed program was:" >&5 | |
33628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33629 | ||
33630 | ac_header_preproc=no | |
33631 | fi | |
33632 | rm -f conftest.err conftest.$ac_ext | |
33633 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
33634 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
33635 | ||
33636 | # So? What about this header? | |
ac1cb8d3 VS |
33637 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
33638 | yes:no: ) | |
a848cd7e SC |
33639 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
33640 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
33641 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
33642 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
33643 | ac_header_preproc=yes | |
a848cd7e | 33644 | ;; |
ac1cb8d3 | 33645 | no:yes:* ) |
a848cd7e SC |
33646 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
33647 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
33648 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
33649 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
33650 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
33651 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
33652 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
33653 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
33654 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
33655 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
33656 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
33657 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
33658 | ( |
33659 | cat <<\_ASBOX | |
ac1cb8d3 VS |
33660 | ## ----------------------------------------- ## |
33661 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
33662 | ## ----------------------------------------- ## | |
a848cd7e SC |
33663 | _ASBOX |
33664 | ) | | |
33665 | sed "s/^/$as_me: WARNING: /" >&2 | |
33666 | ;; | |
33667 | esac | |
33668 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33669 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33670 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33672 | else | |
ac1cb8d3 | 33673 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
33674 | fi |
33675 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33676 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33677 | ||
33678 | fi | |
33679 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
33680 | cat >>confdefs.h <<_ACEOF | |
33681 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
33682 | _ACEOF | |
33683 | ||
33684 | fi | |
33685 | ||
33686 | done | |
33687 | ||
33688 | if test "$ac_cv_header_sched_h" = "yes"; then | |
33689 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
33690 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
33691 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
33692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33693 | else | |
33694 | cat >conftest.$ac_ext <<_ACEOF | |
33695 | /* confdefs.h. */ | |
33696 | _ACEOF | |
33697 | cat confdefs.h >>conftest.$ac_ext | |
33698 | cat >>conftest.$ac_ext <<_ACEOF | |
33699 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33700 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
33701 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33702 | #define sched_yield innocuous_sched_yield | |
33703 | ||
a848cd7e SC |
33704 | /* System header to define __stub macros and hopefully few prototypes, |
33705 | which can conflict with char sched_yield (); below. | |
33706 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33707 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33708 | |
a848cd7e SC |
33709 | #ifdef __STDC__ |
33710 | # include <limits.h> | |
33711 | #else | |
33712 | # include <assert.h> | |
33713 | #endif | |
ac1cb8d3 VS |
33714 | |
33715 | #undef sched_yield | |
33716 | ||
a848cd7e SC |
33717 | /* Override any gcc2 internal prototype to avoid an error. */ |
33718 | #ifdef __cplusplus | |
33719 | extern "C" | |
33720 | { | |
33721 | #endif | |
33722 | /* We use char because int might match the return type of a gcc2 | |
33723 | builtin and then its argument prototype would still apply. */ | |
33724 | char sched_yield (); | |
33725 | /* The GNU C library defines this for functions which it implements | |
33726 | to always fail with ENOSYS. Some functions are actually named | |
33727 | something starting with __ and the normal name is an alias. */ | |
33728 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
33729 | choke me | |
33730 | #else | |
33731 | char (*f) () = sched_yield; | |
33732 | #endif | |
33733 | #ifdef __cplusplus | |
33734 | } | |
33735 | #endif | |
33736 | ||
33737 | int | |
33738 | main () | |
33739 | { | |
33740 | return f != sched_yield; | |
33741 | ; | |
33742 | return 0; | |
33743 | } | |
33744 | _ACEOF | |
33745 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33746 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33747 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33748 | ac_status=$? |
ac1cb8d3 VS |
33749 | grep -v '^ *+' conftest.er1 >conftest.err |
33750 | rm -f conftest.er1 | |
33751 | cat conftest.err >&5 | |
a848cd7e SC |
33752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33753 | (exit $ac_status); } && | |
89be85c2 VS |
33754 | { ac_try='test -z "$ac_c_werror_flag" |
33755 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33757 | (eval $ac_try) 2>&5 | |
33758 | ac_status=$? | |
33759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33760 | (exit $ac_status); }; } && | |
33761 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33763 | (eval $ac_try) 2>&5 | |
33764 | ac_status=$? | |
33765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33766 | (exit $ac_status); }; }; then | |
33767 | ac_cv_func_sched_yield=yes | |
33768 | else | |
33769 | echo "$as_me: failed program was:" >&5 | |
33770 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33771 | ||
33772 | ac_cv_func_sched_yield=no | |
33773 | fi | |
ac1cb8d3 VS |
33774 | rm -f conftest.err conftest.$ac_objext \ |
33775 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33776 | fi |
33777 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
33778 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
33779 | if test $ac_cv_func_sched_yield = yes; then | |
33780 | cat >>confdefs.h <<\_ACEOF | |
33781 | #define HAVE_SCHED_YIELD 1 | |
33782 | _ACEOF | |
33783 | ||
33784 | else | |
33785 | ||
33786 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
33787 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
33788 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
33789 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33790 | else | |
33791 | ac_check_lib_save_LIBS=$LIBS | |
33792 | LIBS="-lposix4 $LIBS" | |
33793 | cat >conftest.$ac_ext <<_ACEOF | |
33794 | /* confdefs.h. */ | |
33795 | _ACEOF | |
33796 | cat confdefs.h >>conftest.$ac_ext | |
33797 | cat >>conftest.$ac_ext <<_ACEOF | |
33798 | /* end confdefs.h. */ | |
33799 | ||
33800 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33801 | #ifdef __cplusplus | |
33802 | extern "C" | |
33803 | #endif | |
33804 | /* We use char because int might match the return type of a gcc2 | |
33805 | builtin and then its argument prototype would still apply. */ | |
33806 | char sched_yield (); | |
33807 | int | |
33808 | main () | |
33809 | { | |
33810 | sched_yield (); | |
33811 | ; | |
33812 | return 0; | |
33813 | } | |
33814 | _ACEOF | |
33815 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33816 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33817 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33818 | ac_status=$? |
ac1cb8d3 VS |
33819 | grep -v '^ *+' conftest.er1 >conftest.err |
33820 | rm -f conftest.er1 | |
33821 | cat conftest.err >&5 | |
a848cd7e SC |
33822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33823 | (exit $ac_status); } && | |
89be85c2 VS |
33824 | { ac_try='test -z "$ac_c_werror_flag" |
33825 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33827 | (eval $ac_try) 2>&5 | |
33828 | ac_status=$? | |
33829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33830 | (exit $ac_status); }; } && | |
33831 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33833 | (eval $ac_try) 2>&5 | |
33834 | ac_status=$? | |
33835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33836 | (exit $ac_status); }; }; then | |
33837 | ac_cv_lib_posix4_sched_yield=yes | |
33838 | else | |
33839 | echo "$as_me: failed program was:" >&5 | |
33840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33841 | ||
33842 | ac_cv_lib_posix4_sched_yield=no | |
33843 | fi | |
ac1cb8d3 VS |
33844 | rm -f conftest.err conftest.$ac_objext \ |
33845 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33846 | LIBS=$ac_check_lib_save_LIBS |
33847 | fi | |
33848 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
33849 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
33850 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
33851 | cat >>confdefs.h <<\_ACEOF | |
33852 | #define HAVE_SCHED_YIELD 1 | |
33853 | _ACEOF | |
33854 | POSIX4_LINK=" -lposix4" | |
33855 | else | |
33856 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
33857 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
33858 | ||
33859 | fi | |
33860 | ||
33861 | ||
33862 | ||
33863 | fi | |
33864 | ||
33865 | fi | |
33866 | ||
33867 | HAVE_PRIOR_FUNCS=0 | |
33868 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
33869 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
33870 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
33871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33872 | else | |
33873 | cat >conftest.$ac_ext <<_ACEOF | |
33874 | /* confdefs.h. */ | |
33875 | _ACEOF | |
33876 | cat confdefs.h >>conftest.$ac_ext | |
33877 | cat >>conftest.$ac_ext <<_ACEOF | |
33878 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33879 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
33880 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33881 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
33882 | ||
a848cd7e SC |
33883 | /* System header to define __stub macros and hopefully few prototypes, |
33884 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
33885 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33886 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33887 | |
a848cd7e SC |
33888 | #ifdef __STDC__ |
33889 | # include <limits.h> | |
33890 | #else | |
33891 | # include <assert.h> | |
33892 | #endif | |
ac1cb8d3 VS |
33893 | |
33894 | #undef pthread_attr_getschedpolicy | |
33895 | ||
a848cd7e SC |
33896 | /* Override any gcc2 internal prototype to avoid an error. */ |
33897 | #ifdef __cplusplus | |
33898 | extern "C" | |
33899 | { | |
33900 | #endif | |
33901 | /* We use char because int might match the return type of a gcc2 | |
33902 | builtin and then its argument prototype would still apply. */ | |
33903 | char pthread_attr_getschedpolicy (); | |
33904 | /* The GNU C library defines this for functions which it implements | |
33905 | to always fail with ENOSYS. Some functions are actually named | |
33906 | something starting with __ and the normal name is an alias. */ | |
33907 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
33908 | choke me | |
33909 | #else | |
33910 | char (*f) () = pthread_attr_getschedpolicy; | |
33911 | #endif | |
33912 | #ifdef __cplusplus | |
33913 | } | |
33914 | #endif | |
33915 | ||
33916 | int | |
33917 | main () | |
33918 | { | |
33919 | return f != pthread_attr_getschedpolicy; | |
33920 | ; | |
33921 | return 0; | |
33922 | } | |
33923 | _ACEOF | |
33924 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33925 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33926 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33927 | ac_status=$? |
ac1cb8d3 VS |
33928 | grep -v '^ *+' conftest.er1 >conftest.err |
33929 | rm -f conftest.er1 | |
33930 | cat conftest.err >&5 | |
a848cd7e SC |
33931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33932 | (exit $ac_status); } && | |
89be85c2 VS |
33933 | { ac_try='test -z "$ac_c_werror_flag" |
33934 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33936 | (eval $ac_try) 2>&5 | |
33937 | ac_status=$? | |
33938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33939 | (exit $ac_status); }; } && | |
33940 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33942 | (eval $ac_try) 2>&5 | |
33943 | ac_status=$? | |
33944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33945 | (exit $ac_status); }; }; then | |
33946 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
33947 | else | |
33948 | echo "$as_me: failed program was:" >&5 | |
33949 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33950 | ||
33951 | ac_cv_func_pthread_attr_getschedpolicy=no | |
33952 | fi | |
ac1cb8d3 VS |
33953 | rm -f conftest.err conftest.$ac_objext \ |
33954 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33955 | fi |
33956 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
33957 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
33958 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
33959 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
33960 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
33961 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
33962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33963 | else | |
33964 | cat >conftest.$ac_ext <<_ACEOF | |
33965 | /* confdefs.h. */ | |
33966 | _ACEOF | |
33967 | cat confdefs.h >>conftest.$ac_ext | |
33968 | cat >>conftest.$ac_ext <<_ACEOF | |
33969 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33970 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
33971 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33972 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
33973 | ||
a848cd7e SC |
33974 | /* System header to define __stub macros and hopefully few prototypes, |
33975 | which can conflict with char pthread_attr_setschedparam (); below. | |
33976 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33977 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33978 | |
a848cd7e SC |
33979 | #ifdef __STDC__ |
33980 | # include <limits.h> | |
33981 | #else | |
33982 | # include <assert.h> | |
33983 | #endif | |
ac1cb8d3 VS |
33984 | |
33985 | #undef pthread_attr_setschedparam | |
33986 | ||
a848cd7e SC |
33987 | /* Override any gcc2 internal prototype to avoid an error. */ |
33988 | #ifdef __cplusplus | |
33989 | extern "C" | |
33990 | { | |
33991 | #endif | |
33992 | /* We use char because int might match the return type of a gcc2 | |
33993 | builtin and then its argument prototype would still apply. */ | |
33994 | char pthread_attr_setschedparam (); | |
33995 | /* The GNU C library defines this for functions which it implements | |
33996 | to always fail with ENOSYS. Some functions are actually named | |
33997 | something starting with __ and the normal name is an alias. */ | |
33998 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
33999 | choke me | |
34000 | #else | |
34001 | char (*f) () = pthread_attr_setschedparam; | |
34002 | #endif | |
34003 | #ifdef __cplusplus | |
34004 | } | |
34005 | #endif | |
34006 | ||
34007 | int | |
34008 | main () | |
34009 | { | |
34010 | return f != pthread_attr_setschedparam; | |
34011 | ; | |
34012 | return 0; | |
34013 | } | |
34014 | _ACEOF | |
34015 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34016 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34017 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34018 | ac_status=$? |
ac1cb8d3 VS |
34019 | grep -v '^ *+' conftest.er1 >conftest.err |
34020 | rm -f conftest.er1 | |
34021 | cat conftest.err >&5 | |
a848cd7e SC |
34022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34023 | (exit $ac_status); } && | |
89be85c2 VS |
34024 | { ac_try='test -z "$ac_c_werror_flag" |
34025 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
34031 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34033 | (eval $ac_try) 2>&5 | |
34034 | ac_status=$? | |
34035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34036 | (exit $ac_status); }; }; then | |
34037 | ac_cv_func_pthread_attr_setschedparam=yes | |
34038 | else | |
34039 | echo "$as_me: failed program was:" >&5 | |
34040 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34041 | ||
34042 | ac_cv_func_pthread_attr_setschedparam=no | |
34043 | fi | |
ac1cb8d3 VS |
34044 | rm -f conftest.err conftest.$ac_objext \ |
34045 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34046 | fi |
34047 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
34048 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
34049 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
34050 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
34051 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
34052 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
34053 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34054 | else | |
34055 | cat >conftest.$ac_ext <<_ACEOF | |
34056 | /* confdefs.h. */ | |
34057 | _ACEOF | |
34058 | cat confdefs.h >>conftest.$ac_ext | |
34059 | cat >>conftest.$ac_ext <<_ACEOF | |
34060 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34061 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
34062 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34063 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
34064 | ||
a848cd7e SC |
34065 | /* System header to define __stub macros and hopefully few prototypes, |
34066 | which can conflict with char sched_get_priority_max (); below. | |
34067 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34068 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34069 | |
a848cd7e SC |
34070 | #ifdef __STDC__ |
34071 | # include <limits.h> | |
34072 | #else | |
34073 | # include <assert.h> | |
34074 | #endif | |
ac1cb8d3 VS |
34075 | |
34076 | #undef sched_get_priority_max | |
34077 | ||
a848cd7e SC |
34078 | /* Override any gcc2 internal prototype to avoid an error. */ |
34079 | #ifdef __cplusplus | |
34080 | extern "C" | |
34081 | { | |
34082 | #endif | |
34083 | /* We use char because int might match the return type of a gcc2 | |
34084 | builtin and then its argument prototype would still apply. */ | |
34085 | char sched_get_priority_max (); | |
34086 | /* The GNU C library defines this for functions which it implements | |
34087 | to always fail with ENOSYS. Some functions are actually named | |
34088 | something starting with __ and the normal name is an alias. */ | |
34089 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
34090 | choke me | |
34091 | #else | |
34092 | char (*f) () = sched_get_priority_max; | |
34093 | #endif | |
34094 | #ifdef __cplusplus | |
34095 | } | |
34096 | #endif | |
34097 | ||
34098 | int | |
34099 | main () | |
34100 | { | |
34101 | return f != sched_get_priority_max; | |
34102 | ; | |
34103 | return 0; | |
34104 | } | |
34105 | _ACEOF | |
34106 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34107 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34108 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34109 | ac_status=$? |
ac1cb8d3 VS |
34110 | grep -v '^ *+' conftest.er1 >conftest.err |
34111 | rm -f conftest.er1 | |
34112 | cat conftest.err >&5 | |
a848cd7e SC |
34113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34114 | (exit $ac_status); } && | |
89be85c2 VS |
34115 | { ac_try='test -z "$ac_c_werror_flag" |
34116 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34118 | (eval $ac_try) 2>&5 | |
34119 | ac_status=$? | |
34120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34121 | (exit $ac_status); }; } && | |
34122 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34124 | (eval $ac_try) 2>&5 | |
34125 | ac_status=$? | |
34126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34127 | (exit $ac_status); }; }; then | |
34128 | ac_cv_func_sched_get_priority_max=yes | |
34129 | else | |
34130 | echo "$as_me: failed program was:" >&5 | |
34131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34132 | ||
34133 | ac_cv_func_sched_get_priority_max=no | |
34134 | fi | |
ac1cb8d3 VS |
34135 | rm -f conftest.err conftest.$ac_objext \ |
34136 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34137 | fi |
34138 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
34139 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
34140 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
34141 | HAVE_PRIOR_FUNCS=1 | |
34142 | else | |
34143 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
34144 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
34145 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
34146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34147 | else | |
34148 | ac_check_lib_save_LIBS=$LIBS | |
34149 | LIBS="-lposix4 $LIBS" | |
34150 | cat >conftest.$ac_ext <<_ACEOF | |
34151 | /* confdefs.h. */ | |
34152 | _ACEOF | |
34153 | cat confdefs.h >>conftest.$ac_ext | |
34154 | cat >>conftest.$ac_ext <<_ACEOF | |
34155 | /* end confdefs.h. */ | |
34156 | ||
34157 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34158 | #ifdef __cplusplus | |
34159 | extern "C" | |
34160 | #endif | |
34161 | /* We use char because int might match the return type of a gcc2 | |
34162 | builtin and then its argument prototype would still apply. */ | |
34163 | char sched_get_priority_max (); | |
34164 | int | |
34165 | main () | |
34166 | { | |
34167 | sched_get_priority_max (); | |
34168 | ; | |
34169 | return 0; | |
34170 | } | |
34171 | _ACEOF | |
34172 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34173 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34174 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34175 | ac_status=$? |
ac1cb8d3 VS |
34176 | grep -v '^ *+' conftest.er1 >conftest.err |
34177 | rm -f conftest.er1 | |
34178 | cat conftest.err >&5 | |
a848cd7e SC |
34179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34180 | (exit $ac_status); } && | |
89be85c2 VS |
34181 | { ac_try='test -z "$ac_c_werror_flag" |
34182 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34184 | (eval $ac_try) 2>&5 | |
34185 | ac_status=$? | |
34186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34187 | (exit $ac_status); }; } && | |
34188 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34190 | (eval $ac_try) 2>&5 | |
34191 | ac_status=$? | |
34192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34193 | (exit $ac_status); }; }; then | |
34194 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
34195 | else | |
34196 | echo "$as_me: failed program was:" >&5 | |
34197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34198 | ||
34199 | ac_cv_lib_posix4_sched_get_priority_max=no | |
34200 | fi | |
ac1cb8d3 VS |
34201 | rm -f conftest.err conftest.$ac_objext \ |
34202 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34203 | LIBS=$ac_check_lib_save_LIBS |
34204 | fi | |
34205 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
34206 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
34207 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
34208 | ||
34209 | HAVE_PRIOR_FUNCS=1 | |
34210 | POSIX4_LINK=" -lposix4" | |
34211 | ||
34212 | fi | |
34213 | ||
34214 | ||
34215 | fi | |
34216 | ||
34217 | ||
34218 | fi | |
34219 | ||
34220 | ||
34221 | fi | |
34222 | ||
34223 | ||
34224 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
34225 | cat >>confdefs.h <<\_ACEOF | |
34226 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
34227 | _ACEOF | |
34228 | ||
34229 | else | |
34230 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
34231 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
34232 | fi | |
34233 | ||
34234 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
34235 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
34236 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
34237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34238 | else | |
34239 | cat >conftest.$ac_ext <<_ACEOF | |
34240 | /* confdefs.h. */ | |
34241 | _ACEOF | |
34242 | cat confdefs.h >>conftest.$ac_ext | |
34243 | cat >>conftest.$ac_ext <<_ACEOF | |
34244 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34245 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
34246 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34247 | #define pthread_cancel innocuous_pthread_cancel | |
34248 | ||
a848cd7e SC |
34249 | /* System header to define __stub macros and hopefully few prototypes, |
34250 | which can conflict with char pthread_cancel (); below. | |
34251 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34252 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34253 | |
a848cd7e SC |
34254 | #ifdef __STDC__ |
34255 | # include <limits.h> | |
34256 | #else | |
34257 | # include <assert.h> | |
34258 | #endif | |
ac1cb8d3 VS |
34259 | |
34260 | #undef pthread_cancel | |
34261 | ||
a848cd7e SC |
34262 | /* Override any gcc2 internal prototype to avoid an error. */ |
34263 | #ifdef __cplusplus | |
34264 | extern "C" | |
34265 | { | |
34266 | #endif | |
34267 | /* We use char because int might match the return type of a gcc2 | |
34268 | builtin and then its argument prototype would still apply. */ | |
34269 | char pthread_cancel (); | |
34270 | /* The GNU C library defines this for functions which it implements | |
34271 | to always fail with ENOSYS. Some functions are actually named | |
34272 | something starting with __ and the normal name is an alias. */ | |
34273 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
34274 | choke me | |
34275 | #else | |
34276 | char (*f) () = pthread_cancel; | |
34277 | #endif | |
34278 | #ifdef __cplusplus | |
34279 | } | |
34280 | #endif | |
34281 | ||
34282 | int | |
34283 | main () | |
34284 | { | |
34285 | return f != pthread_cancel; | |
34286 | ; | |
34287 | return 0; | |
34288 | } | |
34289 | _ACEOF | |
34290 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34291 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34292 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34293 | ac_status=$? |
ac1cb8d3 VS |
34294 | grep -v '^ *+' conftest.er1 >conftest.err |
34295 | rm -f conftest.er1 | |
34296 | cat conftest.err >&5 | |
a848cd7e SC |
34297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34298 | (exit $ac_status); } && | |
89be85c2 VS |
34299 | { ac_try='test -z "$ac_c_werror_flag" |
34300 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34302 | (eval $ac_try) 2>&5 | |
34303 | ac_status=$? | |
34304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34305 | (exit $ac_status); }; } && | |
34306 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34308 | (eval $ac_try) 2>&5 | |
34309 | ac_status=$? | |
34310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34311 | (exit $ac_status); }; }; then | |
34312 | ac_cv_func_pthread_cancel=yes | |
34313 | else | |
34314 | echo "$as_me: failed program was:" >&5 | |
34315 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34316 | ||
34317 | ac_cv_func_pthread_cancel=no | |
34318 | fi | |
ac1cb8d3 VS |
34319 | rm -f conftest.err conftest.$ac_objext \ |
34320 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34321 | fi |
34322 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
34323 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
34324 | if test $ac_cv_func_pthread_cancel = yes; then | |
34325 | cat >>confdefs.h <<\_ACEOF | |
34326 | #define HAVE_PTHREAD_CANCEL 1 | |
34327 | _ACEOF | |
34328 | ||
34329 | else | |
34330 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
34331 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
34332 | fi | |
34333 | ||
34334 | ||
34335 | ||
34336 | ||
34337 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
34338 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
34339 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
34340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34341 | else | |
34342 | ||
34343 | cat >conftest.$ac_ext <<_ACEOF | |
34344 | /* confdefs.h. */ | |
34345 | _ACEOF | |
34346 | cat confdefs.h >>conftest.$ac_ext | |
34347 | cat >>conftest.$ac_ext <<_ACEOF | |
34348 | /* end confdefs.h. */ | |
34349 | #include <pthread.h> | |
34350 | int | |
34351 | main () | |
34352 | { | |
34353 | ||
34354 | pthread_mutexattr_t attr; | |
34355 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
34356 | ||
34357 | ; | |
34358 | return 0; | |
34359 | } | |
34360 | _ACEOF | |
34361 | rm -f conftest.$ac_objext | |
34362 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34363 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34364 | ac_status=$? |
ac1cb8d3 VS |
34365 | grep -v '^ *+' conftest.er1 >conftest.err |
34366 | rm -f conftest.er1 | |
34367 | cat conftest.err >&5 | |
a848cd7e SC |
34368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34369 | (exit $ac_status); } && | |
89be85c2 VS |
34370 | { ac_try='test -z "$ac_c_werror_flag" |
34371 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34373 | (eval $ac_try) 2>&5 | |
34374 | ac_status=$? | |
34375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34376 | (exit $ac_status); }; } && | |
34377 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34379 | (eval $ac_try) 2>&5 | |
34380 | ac_status=$? | |
34381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34382 | (exit $ac_status); }; }; then | |
34383 | ||
34384 | wx_cv_type_pthread_mutexattr_t=yes | |
34385 | ||
34386 | else | |
34387 | echo "$as_me: failed program was:" >&5 | |
34388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34389 | ||
34390 | ||
34391 | wx_cv_type_pthread_mutexattr_t=no | |
34392 | ||
34393 | ||
34394 | fi | |
ac1cb8d3 | 34395 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34396 | |
34397 | fi | |
34398 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
34399 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
34400 | ||
34401 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
34402 | cat >>confdefs.h <<\_ACEOF | |
34403 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
34404 | _ACEOF | |
34405 | ||
34406 | else | |
34407 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
34408 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
34409 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
34410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34411 | else | |
34412 | ||
34413 | cat >conftest.$ac_ext <<_ACEOF | |
34414 | /* confdefs.h. */ | |
34415 | _ACEOF | |
34416 | cat confdefs.h >>conftest.$ac_ext | |
34417 | cat >>conftest.$ac_ext <<_ACEOF | |
34418 | /* end confdefs.h. */ | |
34419 | #include <pthread.h> | |
34420 | int | |
34421 | main () | |
34422 | { | |
34423 | ||
34424 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
34425 | ||
34426 | ; | |
34427 | return 0; | |
34428 | } | |
34429 | _ACEOF | |
34430 | rm -f conftest.$ac_objext | |
34431 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34432 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34433 | ac_status=$? |
ac1cb8d3 VS |
34434 | grep -v '^ *+' conftest.er1 >conftest.err |
34435 | rm -f conftest.er1 | |
34436 | cat conftest.err >&5 | |
a848cd7e SC |
34437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34438 | (exit $ac_status); } && | |
89be85c2 VS |
34439 | { ac_try='test -z "$ac_c_werror_flag" |
34440 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34442 | (eval $ac_try) 2>&5 | |
34443 | ac_status=$? | |
34444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34445 | (exit $ac_status); }; } && | |
34446 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34448 | (eval $ac_try) 2>&5 | |
34449 | ac_status=$? | |
34450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34451 | (exit $ac_status); }; }; then | |
34452 | ||
34453 | wx_cv_type_pthread_rec_mutex_init=yes | |
34454 | ||
34455 | else | |
34456 | echo "$as_me: failed program was:" >&5 | |
34457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34458 | ||
34459 | ||
34460 | wx_cv_type_pthread_rec_mutex_init=no | |
34461 | ||
34462 | ||
34463 | fi | |
ac1cb8d3 | 34464 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34465 | |
34466 | fi | |
34467 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
34468 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
34469 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
34470 | cat >>confdefs.h <<\_ACEOF | |
34471 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
34472 | _ACEOF | |
34473 | ||
34474 | else | |
34475 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
34476 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
34477 | fi | |
34478 | fi | |
34479 | fi | |
34480 | ||
34481 | else | |
34482 | if test "$wxUSE_THREADS" = "yes" ; then | |
34483 | case "${host}" in | |
34484 | *-*-mingw32* ) | |
34485 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
34486 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
34487 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
34488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34489 | else | |
34490 | ||
34491 | CFLAGS_OLD="$CFLAGS" | |
34492 | CFLAGS="$CFLAGS -mthreads" | |
34493 | cat >conftest.$ac_ext <<_ACEOF | |
34494 | /* confdefs.h. */ | |
34495 | _ACEOF | |
34496 | cat confdefs.h >>conftest.$ac_ext | |
34497 | cat >>conftest.$ac_ext <<_ACEOF | |
34498 | /* end confdefs.h. */ | |
34499 | ||
34500 | int | |
34501 | main () | |
34502 | { | |
34503 | ||
34504 | ; | |
34505 | return 0; | |
34506 | } | |
34507 | _ACEOF | |
34508 | rm -f conftest.$ac_objext | |
34509 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34510 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34511 | ac_status=$? |
ac1cb8d3 VS |
34512 | grep -v '^ *+' conftest.er1 >conftest.err |
34513 | rm -f conftest.er1 | |
34514 | cat conftest.err >&5 | |
a848cd7e SC |
34515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34516 | (exit $ac_status); } && | |
89be85c2 VS |
34517 | { ac_try='test -z "$ac_c_werror_flag" |
34518 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34520 | (eval $ac_try) 2>&5 | |
34521 | ac_status=$? | |
34522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34523 | (exit $ac_status); }; } && | |
34524 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34526 | (eval $ac_try) 2>&5 | |
34527 | ac_status=$? | |
34528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34529 | (exit $ac_status); }; }; then | |
34530 | wx_cv_cflags_mthread=yes | |
34531 | else | |
34532 | echo "$as_me: failed program was:" >&5 | |
34533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34534 | ||
34535 | wx_cv_cflags_mthread=no | |
34536 | ||
34537 | fi | |
ac1cb8d3 | 34538 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34539 | |
34540 | ||
34541 | fi | |
34542 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
34543 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
34544 | ||
34545 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
34546 | CXXFLAGS="$CXXFLAGS -mthreads" | |
34547 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
34548 | LDFLAGS="$LDFLAGS -mthreads" | |
34549 | else | |
34550 | CFLAGS="$CFLAGS_OLD" | |
34551 | fi | |
34552 | ;; | |
34553 | *-pc-os2*emx ) | |
34554 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
34555 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
34556 | LDFLAGS="$LDFLAGS -Zmt" | |
34557 | ;; | |
34558 | esac | |
34559 | fi | |
34560 | fi | |
34561 | ||
34562 | if test "$wxUSE_THREADS" = "yes"; then | |
34563 | cat >>confdefs.h <<\_ACEOF | |
34564 | #define wxUSE_THREADS 1 | |
34565 | _ACEOF | |
34566 | ||
34567 | ||
34568 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
34569 | else | |
34570 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
34571 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
34572 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
34573 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
34574 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
34575 | echo "$as_me:$LINENO: result: yes" >&5 | |
34576 | echo "${ECHO_T}yes" >&6 | |
34577 | else | |
34578 | echo "$as_me:$LINENO: result: no" >&5 | |
34579 | echo "${ECHO_T}no" >&6 | |
34580 | fi | |
34581 | fi | |
34582 | fi | |
34583 | ||
34584 | if test "$WXGTK20" = 1 ; then | |
34585 | cat >>confdefs.h <<_ACEOF | |
34586 | #define __WXGTK20__ $WXGTK20 | |
34587 | _ACEOF | |
34588 | ||
34589 | WXGTK12=1 | |
34590 | fi | |
34591 | ||
34592 | if test "$WXGTK12" = 1 ; then | |
34593 | cat >>confdefs.h <<_ACEOF | |
34594 | #define __WXGTK12__ $WXGTK12 | |
34595 | _ACEOF | |
34596 | ||
34597 | fi | |
34598 | ||
34599 | if test "$WXGTK127" = 1 ; then | |
34600 | cat >>confdefs.h <<_ACEOF | |
34601 | #define __WXGTK127__ $WXGTK127 | |
34602 | _ACEOF | |
34603 | ||
34604 | fi | |
34605 | ||
34606 | if test "$WXGPE" = 1 ; then | |
34607 | cat >>confdefs.h <<_ACEOF | |
34608 | #define __WXGPE__ $WXGPE | |
34609 | _ACEOF | |
34610 | ||
34611 | fi | |
34612 | ||
34613 | WXDEBUG= | |
34614 | ||
34615 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
34616 | WXDEBUG="-g" | |
34617 | wxUSE_OPTIMISE=no | |
34618 | fi | |
34619 | ||
34620 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
34621 | wxUSE_DEBUG_INFO=yes | |
34622 | WXDEBUG="-ggdb" | |
34623 | fi | |
34624 | ||
34625 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
34626 | cat >>confdefs.h <<\_ACEOF | |
34627 | #define WXDEBUG 1 | |
34628 | _ACEOF | |
34629 | ||
34630 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
34631 | else | |
34632 | if test "$wxUSE_GTK" = 1 ; then | |
34633 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
34634 | fi | |
34635 | fi | |
34636 | ||
34637 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
34638 | cat >>confdefs.h <<\_ACEOF | |
34639 | #define wxUSE_MEMORY_TRACING 1 | |
34640 | _ACEOF | |
34641 | ||
34642 | cat >>confdefs.h <<\_ACEOF | |
34643 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
34644 | _ACEOF | |
34645 | ||
34646 | cat >>confdefs.h <<\_ACEOF | |
34647 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
34648 | _ACEOF | |
34649 | ||
34650 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
34651 | fi | |
34652 | ||
34653 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
34654 | DMALLOC_LIBS="-ldmalloc" | |
34655 | fi | |
34656 | ||
34657 | PROFILE= | |
34658 | if test "$wxUSE_PROFILE" = "yes" ; then | |
34659 | PROFILE=" -pg" | |
34660 | fi | |
34661 | ||
34662 | CODE_GEN_FLAGS= | |
34663 | CODE_GEN_FLAGS_CXX= | |
34664 | if test "$GCC" = "yes" ; then | |
34665 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
34666 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
34667 | fi | |
34668 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
34669 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
34670 | fi | |
34671 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
34672 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
34673 | fi | |
34674 | ||
34675 | case "${host}" in | |
34676 | powerpc*-*-aix* ) | |
34677 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
34678 | ;; | |
34679 | *-hppa* ) | |
34680 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
34681 | ;; | |
34682 | esac | |
34683 | fi | |
34684 | ||
34685 | OPTIMISE= | |
34686 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
34687 | if test "$GCC" = yes ; then | |
34688 | OPTIMISE="-O0" | |
34689 | fi | |
34690 | else | |
34691 | if test "$GCC" = yes ; then | |
34692 | OPTIMISE="-O2" | |
34693 | ||
34694 | case "${host}" in | |
34695 | i586-*-*|i686-*-* ) | |
34696 | OPTIMISE="${OPTIMISE} " | |
34697 | ;; | |
34698 | esac | |
34699 | else | |
34700 | OPTIMISE="-O" | |
34701 | fi | |
34702 | fi | |
34703 | ||
34704 | ||
34705 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then | |
34706 | cat >>confdefs.h <<\_ACEOF | |
34707 | #define WXWIN_COMPATIBILITY_2_2 1 | |
34708 | _ACEOF | |
34709 | ||
34710 | ||
34711 | WXWIN_COMPATIBILITY_2_4="yes" | |
34712 | fi | |
34713 | ||
34714 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then | |
34715 | cat >>confdefs.h <<\_ACEOF | |
34716 | #define WXWIN_COMPATIBILITY_2_4 1 | |
34717 | _ACEOF | |
34718 | ||
34719 | fi | |
34720 | ||
34721 | ||
34722 | if test "$wxUSE_GUI" = "yes"; then | |
881bfcd6 | 34723 | cat >>confdefs.h <<\_ACEOF |
a848cd7e SC |
34724 | #define wxUSE_GUI 1 |
34725 | _ACEOF | |
34726 | ||
34727 | ||
370fd4c2 | 34728 | fi |
a848cd7e SC |
34729 | |
34730 | ||
34731 | if test "$wxUSE_UNIX" = "yes"; then | |
34732 | cat >>confdefs.h <<\_ACEOF | |
34733 | #define wxUSE_UNIX 1 | |
34734 | _ACEOF | |
34735 | ||
34736 | fi | |
34737 | ||
34738 | ||
34739 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
34740 | ||
34741 | HAVE_DL_FUNCS=0 | |
34742 | HAVE_SHL_FUNCS=0 | |
34743 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
34744 | if test "$USE_DARWIN" = 1; then | |
34745 | HAVE_DL_FUNCS=1 | |
34746 | else | |
34747 | ||
34748 | for ac_func in dlopen | |
34749 | do | |
34750 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34751 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34752 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34753 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34755 | else | |
34756 | cat >conftest.$ac_ext <<_ACEOF | |
34757 | /* confdefs.h. */ | |
34758 | _ACEOF | |
34759 | cat confdefs.h >>conftest.$ac_ext | |
34760 | cat >>conftest.$ac_ext <<_ACEOF | |
34761 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34762 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34763 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34764 | #define $ac_func innocuous_$ac_func | |
34765 | ||
a848cd7e SC |
34766 | /* System header to define __stub macros and hopefully few prototypes, |
34767 | which can conflict with char $ac_func (); below. | |
34768 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34769 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34770 | |
a848cd7e SC |
34771 | #ifdef __STDC__ |
34772 | # include <limits.h> | |
34773 | #else | |
34774 | # include <assert.h> | |
34775 | #endif | |
ac1cb8d3 VS |
34776 | |
34777 | #undef $ac_func | |
34778 | ||
a848cd7e SC |
34779 | /* Override any gcc2 internal prototype to avoid an error. */ |
34780 | #ifdef __cplusplus | |
34781 | extern "C" | |
34782 | { | |
34783 | #endif | |
34784 | /* We use char because int might match the return type of a gcc2 | |
34785 | builtin and then its argument prototype would still apply. */ | |
34786 | char $ac_func (); | |
34787 | /* The GNU C library defines this for functions which it implements | |
34788 | to always fail with ENOSYS. Some functions are actually named | |
34789 | something starting with __ and the normal name is an alias. */ | |
34790 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34791 | choke me | |
34792 | #else | |
34793 | char (*f) () = $ac_func; | |
34794 | #endif | |
34795 | #ifdef __cplusplus | |
34796 | } | |
34797 | #endif | |
34798 | ||
34799 | int | |
34800 | main () | |
34801 | { | |
34802 | return f != $ac_func; | |
34803 | ; | |
34804 | return 0; | |
34805 | } | |
34806 | _ACEOF | |
34807 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34808 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34809 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34810 | ac_status=$? |
ac1cb8d3 VS |
34811 | grep -v '^ *+' conftest.er1 >conftest.err |
34812 | rm -f conftest.er1 | |
34813 | cat conftest.err >&5 | |
a848cd7e SC |
34814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34815 | (exit $ac_status); } && | |
89be85c2 VS |
34816 | { ac_try='test -z "$ac_c_werror_flag" |
34817 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34819 | (eval $ac_try) 2>&5 | |
34820 | ac_status=$? | |
34821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34822 | (exit $ac_status); }; } && | |
34823 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34825 | (eval $ac_try) 2>&5 | |
34826 | ac_status=$? | |
34827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34828 | (exit $ac_status); }; }; then | |
34829 | eval "$as_ac_var=yes" | |
34830 | else | |
34831 | echo "$as_me: failed program was:" >&5 | |
34832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34833 | ||
34834 | eval "$as_ac_var=no" | |
34835 | fi | |
ac1cb8d3 VS |
34836 | rm -f conftest.err conftest.$ac_objext \ |
34837 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34838 | fi |
34839 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34840 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34841 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34842 | cat >>confdefs.h <<_ACEOF | |
34843 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34844 | _ACEOF | |
34845 | ||
34846 | cat >>confdefs.h <<\_ACEOF | |
34847 | #define HAVE_DLOPEN 1 | |
34848 | _ACEOF | |
34849 | ||
34850 | HAVE_DL_FUNCS=1 | |
34851 | ||
34852 | else | |
34853 | ||
34854 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
34855 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
34856 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
34857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34858 | else | |
34859 | ac_check_lib_save_LIBS=$LIBS | |
34860 | LIBS="-ldl $LIBS" | |
34861 | cat >conftest.$ac_ext <<_ACEOF | |
34862 | /* confdefs.h. */ | |
34863 | _ACEOF | |
34864 | cat confdefs.h >>conftest.$ac_ext | |
34865 | cat >>conftest.$ac_ext <<_ACEOF | |
34866 | /* end confdefs.h. */ | |
34867 | ||
34868 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34869 | #ifdef __cplusplus | |
34870 | extern "C" | |
34871 | #endif | |
34872 | /* We use char because int might match the return type of a gcc2 | |
34873 | builtin and then its argument prototype would still apply. */ | |
34874 | char dlopen (); | |
34875 | int | |
34876 | main () | |
34877 | { | |
34878 | dlopen (); | |
34879 | ; | |
34880 | return 0; | |
34881 | } | |
34882 | _ACEOF | |
34883 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34884 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34885 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34886 | ac_status=$? |
ac1cb8d3 VS |
34887 | grep -v '^ *+' conftest.er1 >conftest.err |
34888 | rm -f conftest.er1 | |
34889 | cat conftest.err >&5 | |
a848cd7e SC |
34890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34891 | (exit $ac_status); } && | |
89be85c2 VS |
34892 | { ac_try='test -z "$ac_c_werror_flag" |
34893 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34895 | (eval $ac_try) 2>&5 | |
34896 | ac_status=$? | |
34897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34898 | (exit $ac_status); }; } && | |
34899 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34901 | (eval $ac_try) 2>&5 | |
34902 | ac_status=$? | |
34903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34904 | (exit $ac_status); }; }; then | |
34905 | ac_cv_lib_dl_dlopen=yes | |
34906 | else | |
34907 | echo "$as_me: failed program was:" >&5 | |
34908 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34909 | ||
34910 | ac_cv_lib_dl_dlopen=no | |
34911 | fi | |
ac1cb8d3 VS |
34912 | rm -f conftest.err conftest.$ac_objext \ |
34913 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34914 | LIBS=$ac_check_lib_save_LIBS |
34915 | fi | |
34916 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
34917 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
34918 | if test $ac_cv_lib_dl_dlopen = yes; then | |
34919 | ||
34920 | cat >>confdefs.h <<\_ACEOF | |
34921 | #define HAVE_DLOPEN 1 | |
34922 | _ACEOF | |
34923 | ||
34924 | HAVE_DL_FUNCS=1 | |
34925 | DL_LINK=" -ldl$DL_LINK" | |
34926 | ||
34927 | else | |
34928 | ||
34929 | ||
34930 | for ac_func in shl_load | |
34931 | do | |
34932 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34933 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34934 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34935 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34937 | else | |
34938 | cat >conftest.$ac_ext <<_ACEOF | |
34939 | /* confdefs.h. */ | |
34940 | _ACEOF | |
34941 | cat confdefs.h >>conftest.$ac_ext | |
34942 | cat >>conftest.$ac_ext <<_ACEOF | |
34943 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34944 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34945 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34946 | #define $ac_func innocuous_$ac_func | |
34947 | ||
a848cd7e SC |
34948 | /* System header to define __stub macros and hopefully few prototypes, |
34949 | which can conflict with char $ac_func (); below. | |
34950 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34951 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34952 | |
a848cd7e SC |
34953 | #ifdef __STDC__ |
34954 | # include <limits.h> | |
34955 | #else | |
34956 | # include <assert.h> | |
34957 | #endif | |
ac1cb8d3 VS |
34958 | |
34959 | #undef $ac_func | |
34960 | ||
a848cd7e SC |
34961 | /* Override any gcc2 internal prototype to avoid an error. */ |
34962 | #ifdef __cplusplus | |
34963 | extern "C" | |
34964 | { | |
34965 | #endif | |
34966 | /* We use char because int might match the return type of a gcc2 | |
34967 | builtin and then its argument prototype would still apply. */ | |
34968 | char $ac_func (); | |
34969 | /* The GNU C library defines this for functions which it implements | |
34970 | to always fail with ENOSYS. Some functions are actually named | |
34971 | something starting with __ and the normal name is an alias. */ | |
34972 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34973 | choke me | |
34974 | #else | |
34975 | char (*f) () = $ac_func; | |
34976 | #endif | |
34977 | #ifdef __cplusplus | |
34978 | } | |
34979 | #endif | |
34980 | ||
34981 | int | |
34982 | main () | |
34983 | { | |
34984 | return f != $ac_func; | |
34985 | ; | |
34986 | return 0; | |
34987 | } | |
34988 | _ACEOF | |
34989 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34990 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34991 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34992 | ac_status=$? |
ac1cb8d3 VS |
34993 | grep -v '^ *+' conftest.er1 >conftest.err |
34994 | rm -f conftest.er1 | |
34995 | cat conftest.err >&5 | |
a848cd7e SC |
34996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34997 | (exit $ac_status); } && | |
89be85c2 VS |
34998 | { ac_try='test -z "$ac_c_werror_flag" |
34999 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35001 | (eval $ac_try) 2>&5 | |
35002 | ac_status=$? | |
35003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35004 | (exit $ac_status); }; } && | |
35005 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35007 | (eval $ac_try) 2>&5 | |
35008 | ac_status=$? | |
35009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35010 | (exit $ac_status); }; }; then | |
35011 | eval "$as_ac_var=yes" | |
35012 | else | |
35013 | echo "$as_me: failed program was:" >&5 | |
35014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35015 | ||
35016 | eval "$as_ac_var=no" | |
35017 | fi | |
ac1cb8d3 VS |
35018 | rm -f conftest.err conftest.$ac_objext \ |
35019 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35020 | fi |
35021 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35022 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35023 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35024 | cat >>confdefs.h <<_ACEOF | |
35025 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35026 | _ACEOF | |
35027 | ||
35028 | cat >>confdefs.h <<\_ACEOF | |
35029 | #define HAVE_SHL_LOAD 1 | |
35030 | _ACEOF | |
35031 | ||
35032 | HAVE_SHL_FUNCS=1 | |
35033 | ||
35034 | else | |
35035 | ||
35036 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
35037 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
35038 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
35039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35040 | else | |
35041 | ac_check_lib_save_LIBS=$LIBS | |
35042 | LIBS="-lshl_load $LIBS" | |
35043 | cat >conftest.$ac_ext <<_ACEOF | |
35044 | /* confdefs.h. */ | |
35045 | _ACEOF | |
35046 | cat confdefs.h >>conftest.$ac_ext | |
35047 | cat >>conftest.$ac_ext <<_ACEOF | |
35048 | /* end confdefs.h. */ | |
35049 | ||
35050 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35051 | #ifdef __cplusplus | |
35052 | extern "C" | |
35053 | #endif | |
35054 | /* We use char because int might match the return type of a gcc2 | |
35055 | builtin and then its argument prototype would still apply. */ | |
35056 | char dld (); | |
35057 | int | |
35058 | main () | |
35059 | { | |
35060 | dld (); | |
35061 | ; | |
35062 | return 0; | |
35063 | } | |
35064 | _ACEOF | |
35065 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35066 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35067 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35068 | ac_status=$? |
ac1cb8d3 VS |
35069 | grep -v '^ *+' conftest.er1 >conftest.err |
35070 | rm -f conftest.er1 | |
35071 | cat conftest.err >&5 | |
a848cd7e SC |
35072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35073 | (exit $ac_status); } && | |
89be85c2 VS |
35074 | { ac_try='test -z "$ac_c_werror_flag" |
35075 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35077 | (eval $ac_try) 2>&5 | |
35078 | ac_status=$? | |
35079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35080 | (exit $ac_status); }; } && | |
35081 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35083 | (eval $ac_try) 2>&5 | |
35084 | ac_status=$? | |
35085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35086 | (exit $ac_status); }; }; then | |
35087 | ac_cv_lib_shl_load_dld=yes | |
35088 | else | |
35089 | echo "$as_me: failed program was:" >&5 | |
35090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35091 | ||
35092 | ac_cv_lib_shl_load_dld=no | |
35093 | fi | |
ac1cb8d3 VS |
35094 | rm -f conftest.err conftest.$ac_objext \ |
35095 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35096 | LIBS=$ac_check_lib_save_LIBS |
35097 | fi | |
35098 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
35099 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
35100 | if test $ac_cv_lib_shl_load_dld = yes; then | |
35101 | ||
35102 | HAVE_SHL_FUNCS=1 | |
35103 | DL_LINK=" -ldld$DL_LINK" | |
35104 | ||
35105 | fi | |
35106 | ||
35107 | ||
35108 | fi | |
35109 | done | |
35110 | ||
35111 | ||
35112 | fi | |
35113 | ||
35114 | ||
35115 | fi | |
35116 | done | |
35117 | ||
35118 | ||
35119 | if test "$HAVE_DL_FUNCS" = 1; then | |
35120 | ||
35121 | for ac_func in dlerror | |
35122 | do | |
35123 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35124 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35125 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35126 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35128 | else | |
35129 | cat >conftest.$ac_ext <<_ACEOF | |
35130 | /* confdefs.h. */ | |
35131 | _ACEOF | |
35132 | cat confdefs.h >>conftest.$ac_ext | |
35133 | cat >>conftest.$ac_ext <<_ACEOF | |
35134 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35135 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35136 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35137 | #define $ac_func innocuous_$ac_func | |
35138 | ||
a848cd7e SC |
35139 | /* System header to define __stub macros and hopefully few prototypes, |
35140 | which can conflict with char $ac_func (); below. | |
35141 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35142 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35143 | |
a848cd7e SC |
35144 | #ifdef __STDC__ |
35145 | # include <limits.h> | |
35146 | #else | |
35147 | # include <assert.h> | |
35148 | #endif | |
ac1cb8d3 VS |
35149 | |
35150 | #undef $ac_func | |
35151 | ||
a848cd7e SC |
35152 | /* Override any gcc2 internal prototype to avoid an error. */ |
35153 | #ifdef __cplusplus | |
35154 | extern "C" | |
35155 | { | |
35156 | #endif | |
35157 | /* We use char because int might match the return type of a gcc2 | |
35158 | builtin and then its argument prototype would still apply. */ | |
35159 | char $ac_func (); | |
35160 | /* The GNU C library defines this for functions which it implements | |
35161 | to always fail with ENOSYS. Some functions are actually named | |
35162 | something starting with __ and the normal name is an alias. */ | |
35163 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35164 | choke me | |
35165 | #else | |
35166 | char (*f) () = $ac_func; | |
35167 | #endif | |
35168 | #ifdef __cplusplus | |
35169 | } | |
35170 | #endif | |
35171 | ||
35172 | int | |
35173 | main () | |
35174 | { | |
35175 | return f != $ac_func; | |
35176 | ; | |
35177 | return 0; | |
35178 | } | |
35179 | _ACEOF | |
35180 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35181 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35182 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35183 | ac_status=$? |
ac1cb8d3 VS |
35184 | grep -v '^ *+' conftest.er1 >conftest.err |
35185 | rm -f conftest.er1 | |
35186 | cat conftest.err >&5 | |
a848cd7e SC |
35187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35188 | (exit $ac_status); } && | |
89be85c2 VS |
35189 | { ac_try='test -z "$ac_c_werror_flag" |
35190 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35192 | (eval $ac_try) 2>&5 | |
35193 | ac_status=$? | |
35194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35195 | (exit $ac_status); }; } && | |
35196 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35198 | (eval $ac_try) 2>&5 | |
35199 | ac_status=$? | |
35200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35201 | (exit $ac_status); }; }; then | |
35202 | eval "$as_ac_var=yes" | |
35203 | else | |
35204 | echo "$as_me: failed program was:" >&5 | |
35205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35206 | ||
35207 | eval "$as_ac_var=no" | |
35208 | fi | |
ac1cb8d3 VS |
35209 | rm -f conftest.err conftest.$ac_objext \ |
35210 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35211 | fi |
35212 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35213 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35214 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35215 | cat >>confdefs.h <<_ACEOF | |
35216 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35217 | _ACEOF | |
35218 | cat >>confdefs.h <<\_ACEOF | |
35219 | #define HAVE_DLERROR 1 | |
35220 | _ACEOF | |
35221 | ||
35222 | else | |
35223 | ||
35224 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
35225 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
35226 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
35227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35228 | else | |
35229 | ac_check_lib_save_LIBS=$LIBS | |
35230 | LIBS="-ldl $LIBS" | |
35231 | cat >conftest.$ac_ext <<_ACEOF | |
35232 | /* confdefs.h. */ | |
35233 | _ACEOF | |
35234 | cat confdefs.h >>conftest.$ac_ext | |
35235 | cat >>conftest.$ac_ext <<_ACEOF | |
35236 | /* end confdefs.h. */ | |
35237 | ||
35238 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35239 | #ifdef __cplusplus | |
35240 | extern "C" | |
35241 | #endif | |
35242 | /* We use char because int might match the return type of a gcc2 | |
35243 | builtin and then its argument prototype would still apply. */ | |
35244 | char dlerror (); | |
35245 | int | |
35246 | main () | |
35247 | { | |
35248 | dlerror (); | |
35249 | ; | |
35250 | return 0; | |
35251 | } | |
35252 | _ACEOF | |
35253 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35254 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35255 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35256 | ac_status=$? |
ac1cb8d3 VS |
35257 | grep -v '^ *+' conftest.er1 >conftest.err |
35258 | rm -f conftest.er1 | |
35259 | cat conftest.err >&5 | |
a848cd7e SC |
35260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35261 | (exit $ac_status); } && | |
89be85c2 VS |
35262 | { ac_try='test -z "$ac_c_werror_flag" |
35263 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35265 | (eval $ac_try) 2>&5 | |
35266 | ac_status=$? | |
35267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35268 | (exit $ac_status); }; } && | |
35269 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35271 | (eval $ac_try) 2>&5 | |
35272 | ac_status=$? | |
35273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35274 | (exit $ac_status); }; }; then | |
35275 | ac_cv_lib_dl_dlerror=yes | |
35276 | else | |
35277 | echo "$as_me: failed program was:" >&5 | |
35278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35279 | ||
35280 | ac_cv_lib_dl_dlerror=no | |
35281 | fi | |
ac1cb8d3 VS |
35282 | rm -f conftest.err conftest.$ac_objext \ |
35283 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35284 | LIBS=$ac_check_lib_save_LIBS |
35285 | fi | |
35286 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
35287 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
35288 | if test $ac_cv_lib_dl_dlerror = yes; then | |
35289 | cat >>confdefs.h <<\_ACEOF | |
35290 | #define HAVE_DLERROR 1 | |
35291 | _ACEOF | |
35292 | ||
35293 | fi | |
35294 | ||
35295 | ||
35296 | ||
35297 | fi | |
35298 | done | |
35299 | ||
35300 | fi | |
35301 | fi | |
35302 | ||
35303 | if test "$HAVE_DL_FUNCS" = 0; then | |
35304 | if test "$HAVE_SHL_FUNCS" = 0; then | |
35305 | if test "$USE_UNIX" = 1; then | |
35306 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 | |
35307 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
35308 | wxUSE_DYNAMIC_LOADER=no | |
35309 | wxUSE_DYNLIB_CLASS=no | |
35310 | else | |
35311 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
35312 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
35313 | fi | |
35314 | fi | |
35315 | fi | |
35316 | fi | |
35317 | fi | |
35318 | ||
35319 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
35320 | cat >>confdefs.h <<\_ACEOF | |
35321 | #define wxUSE_DYNAMIC_LOADER 1 | |
35322 | _ACEOF | |
35323 | ||
35324 | fi | |
35325 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
35326 | cat >>confdefs.h <<\_ACEOF | |
35327 | #define wxUSE_DYNLIB_CLASS 1 | |
35328 | _ACEOF | |
35329 | ||
35330 | fi | |
35331 | ||
35332 | ||
35333 | ||
35334 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
35335 | if test "$wxUSE_SHARED" = "no" ; then | |
35336 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
35337 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
35338 | wxUSE_PLUGINS=no | |
35339 | fi | |
35340 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
35341 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
35342 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
35343 | wxUSE_PLUGINS=no | |
35344 | fi | |
35345 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
35346 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
35347 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
35348 | wxUSE_PLUGINS=no | |
35349 | fi | |
35350 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
35351 | cat >>confdefs.h <<\_ACEOF | |
35352 | #define wxUSE_PLUGINS 1 | |
35353 | _ACEOF | |
35354 | ||
35355 | fi | |
35356 | fi | |
35357 | ||
35358 | ||
35359 | if test "$wxUSE_STL" = "yes"; then | |
35360 | cat >>confdefs.h <<\_ACEOF | |
35361 | #define wxUSE_STL 1 | |
35362 | _ACEOF | |
35363 | ||
35364 | fi | |
35365 | ||
35366 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
35367 | cat >>confdefs.h <<\_ACEOF | |
35368 | #define wxUSE_APPLE_IEEE 1 | |
35369 | _ACEOF | |
35370 | ||
35371 | fi | |
35372 | ||
35373 | if test "$wxUSE_TIMER" = "yes"; then | |
35374 | cat >>confdefs.h <<\_ACEOF | |
35375 | #define wxUSE_TIMER 1 | |
35376 | _ACEOF | |
35377 | ||
35378 | fi | |
35379 | ||
35380 | WITH_PLUGIN_SDL=0 | |
35381 | if test "$wxUSE_SOUND" = "yes"; then | |
35382 | if test "$USE_UNIX" = "1" ; then | |
35383 | ||
35384 | for ac_header in sys/soundcard.h | |
35385 | do | |
35386 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
35387 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35388 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35389 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35390 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35391 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35392 | fi | |
35393 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35394 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35395 | else | |
35396 | # Is the header compilable? | |
35397 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
35398 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
35399 | cat >conftest.$ac_ext <<_ACEOF | |
35400 | /* confdefs.h. */ | |
35401 | _ACEOF | |
35402 | cat confdefs.h >>conftest.$ac_ext | |
35403 | cat >>conftest.$ac_ext <<_ACEOF | |
35404 | /* end confdefs.h. */ | |
35405 | $ac_includes_default | |
35406 | #include <$ac_header> | |
35407 | _ACEOF | |
35408 | rm -f conftest.$ac_objext | |
35409 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35410 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35411 | ac_status=$? |
ac1cb8d3 VS |
35412 | grep -v '^ *+' conftest.er1 >conftest.err |
35413 | rm -f conftest.er1 | |
35414 | cat conftest.err >&5 | |
a848cd7e SC |
35415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35416 | (exit $ac_status); } && | |
89be85c2 VS |
35417 | { ac_try='test -z "$ac_c_werror_flag" |
35418 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35420 | (eval $ac_try) 2>&5 | |
35421 | ac_status=$? | |
35422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35423 | (exit $ac_status); }; } && | |
35424 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35426 | (eval $ac_try) 2>&5 | |
35427 | ac_status=$? | |
35428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35429 | (exit $ac_status); }; }; then | |
35430 | ac_header_compiler=yes | |
35431 | else | |
35432 | echo "$as_me: failed program was:" >&5 | |
35433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35434 | ||
35435 | ac_header_compiler=no | |
35436 | fi | |
ac1cb8d3 | 35437 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35438 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
35439 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
35440 | ||
35441 | # Is the header present? | |
35442 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
35443 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
35444 | cat >conftest.$ac_ext <<_ACEOF | |
35445 | /* confdefs.h. */ | |
35446 | _ACEOF | |
35447 | cat confdefs.h >>conftest.$ac_ext | |
35448 | cat >>conftest.$ac_ext <<_ACEOF | |
35449 | /* end confdefs.h. */ | |
35450 | #include <$ac_header> | |
35451 | _ACEOF | |
35452 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
35453 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
35454 | ac_status=$? | |
35455 | grep -v '^ *+' conftest.er1 >conftest.err | |
35456 | rm -f conftest.er1 | |
35457 | cat conftest.err >&5 | |
35458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35459 | (exit $ac_status); } >/dev/null; then | |
35460 | if test -s conftest.err; then | |
35461 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 35462 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
35463 | else |
35464 | ac_cpp_err= | |
35465 | fi | |
35466 | else | |
35467 | ac_cpp_err=yes | |
35468 | fi | |
35469 | if test -z "$ac_cpp_err"; then | |
35470 | ac_header_preproc=yes | |
35471 | else | |
35472 | echo "$as_me: failed program was:" >&5 | |
35473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35474 | ||
35475 | ac_header_preproc=no | |
35476 | fi | |
35477 | rm -f conftest.err conftest.$ac_ext | |
35478 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
35479 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
35480 | ||
35481 | # So? What about this header? | |
ac1cb8d3 VS |
35482 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
35483 | yes:no: ) | |
a848cd7e SC |
35484 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
35485 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
35486 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
35487 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
35488 | ac_header_preproc=yes | |
a848cd7e | 35489 | ;; |
ac1cb8d3 | 35490 | no:yes:* ) |
a848cd7e SC |
35491 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
35492 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
35493 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
35494 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
35495 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
35496 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
35497 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
35498 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
35499 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
35500 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
35501 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
35502 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
35503 | ( |
35504 | cat <<\_ASBOX | |
ac1cb8d3 VS |
35505 | ## ----------------------------------------- ## |
35506 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
35507 | ## ----------------------------------------- ## | |
a848cd7e SC |
35508 | _ASBOX |
35509 | ) | | |
35510 | sed "s/^/$as_me: WARNING: /" >&2 | |
35511 | ;; | |
35512 | esac | |
35513 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35514 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35515 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35517 | else | |
ac1cb8d3 | 35518 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
35519 | fi |
35520 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35521 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35522 | ||
35523 | fi | |
35524 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
35525 | cat >>confdefs.h <<_ACEOF | |
35526 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
35527 | _ACEOF | |
35528 | ||
35529 | fi | |
35530 | ||
35531 | done | |
35532 | ||
35533 | ||
35534 | if test "$wxUSE_LIBSDL" != "no"; then | |
35535 | ||
35536 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
35537 | if test "${with_sdl_prefix+set}" = set; then | |
35538 | withval="$with_sdl_prefix" | |
35539 | sdl_prefix="$withval" | |
35540 | else | |
35541 | sdl_prefix="" | |
35542 | fi; | |
35543 | ||
35544 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
35545 | if test "${with_sdl_exec_prefix+set}" = set; then | |
35546 | withval="$with_sdl_exec_prefix" | |
35547 | sdl_exec_prefix="$withval" | |
35548 | else | |
35549 | sdl_exec_prefix="" | |
35550 | fi; | |
35551 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
35552 | if test "${enable_sdltest+set}" = set; then | |
35553 | enableval="$enable_sdltest" | |
35554 | ||
35555 | else | |
35556 | enable_sdltest=yes | |
35557 | fi; | |
35558 | ||
35559 | if test x$sdl_exec_prefix != x ; then | |
35560 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
35561 | if test x${SDL_CONFIG+set} != xset ; then | |
35562 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
35563 | fi | |
35564 | fi | |
35565 | if test x$sdl_prefix != x ; then | |
35566 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
35567 | if test x${SDL_CONFIG+set} != xset ; then | |
35568 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
35569 | fi | |
35570 | fi | |
35571 | ||
35572 | ||
35573 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
35574 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
35575 | set dummy sdl-config; ac_word=$2 | |
35576 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
35577 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
35578 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
35579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35580 | else | |
35581 | case $SDL_CONFIG in | |
35582 | [\\/]* | ?:[\\/]*) | |
35583 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
35584 | ;; | |
35585 | *) | |
35586 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35587 | for as_dir in $PATH | |
35588 | do | |
35589 | IFS=$as_save_IFS | |
35590 | test -z "$as_dir" && as_dir=. | |
35591 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35592 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
35593 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
35594 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
35595 | break 2 | |
35596 | fi | |
35597 | done | |
35598 | done | |
35599 | ||
35600 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
35601 | ;; | |
35602 | esac | |
35603 | fi | |
35604 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
35605 | ||
35606 | if test -n "$SDL_CONFIG"; then | |
35607 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
35608 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
35609 | else | |
35610 | echo "$as_me:$LINENO: result: no" >&5 | |
35611 | echo "${ECHO_T}no" >&6 | |
35612 | fi | |
35613 | ||
35614 | min_sdl_version=1.2.0 | |
35615 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
35616 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
35617 | no_sdl="" | |
35618 | if test "$SDL_CONFIG" = "no" ; then | |
35619 | no_sdl=yes | |
35620 | else | |
35621 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
35622 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
35623 | ||
35624 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
35625 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
35626 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
35627 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
35628 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
35629 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
35630 | if test "x$enable_sdltest" = "xyes" ; then | |
35631 | ac_save_CFLAGS="$CFLAGS" | |
94acd38e | 35632 | ac_save_CXXFLAGS="$CXXFLAGS" |
a848cd7e SC |
35633 | ac_save_LIBS="$LIBS" |
35634 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 35635 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
35636 | LIBS="$LIBS $SDL_LIBS" |
35637 | rm -f conf.sdltest | |
35638 | if test "$cross_compiling" = yes; then | |
35639 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
35640 | else | |
35641 | cat >conftest.$ac_ext <<_ACEOF | |
35642 | /* confdefs.h. */ | |
35643 | _ACEOF | |
35644 | cat confdefs.h >>conftest.$ac_ext | |
35645 | cat >>conftest.$ac_ext <<_ACEOF | |
35646 | /* end confdefs.h. */ | |
35647 | ||
35648 | #include <stdio.h> | |
35649 | #include <stdlib.h> | |
35650 | #include <string.h> | |
35651 | #include "SDL.h" | |
35652 | ||
35653 | char* | |
35654 | my_strdup (char *str) | |
35655 | { | |
35656 | char *new_str; | |
35657 | ||
35658 | if (str) | |
35659 | { | |
35660 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
35661 | strcpy (new_str, str); | |
35662 | } | |
35663 | else | |
35664 | new_str = NULL; | |
35665 | ||
35666 | return new_str; | |
35667 | } | |
35668 | ||
35669 | int main (int argc, char *argv[]) | |
35670 | { | |
35671 | int major, minor, micro; | |
35672 | char *tmp_version; | |
35673 | ||
35674 | /* This hangs on some systems (?) | |
35675 | system ("touch conf.sdltest"); | |
35676 | */ | |
35677 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
35678 | ||
35679 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
35680 | tmp_version = my_strdup("$min_sdl_version"); | |
35681 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
35682 | printf("%s, bad version string\n", "$min_sdl_version"); | |
35683 | exit(1); | |
35684 | } | |
35685 | ||
35686 | if (($sdl_major_version > major) || | |
35687 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
35688 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
35689 | { | |
35690 | return 0; | |
35691 | } | |
35692 | else | |
35693 | { | |
35694 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
35695 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
35696 | printf("*** best to upgrade to the required version.\n"); | |
35697 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
35698 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
35699 | printf("*** config.cache before re-running configure\n"); | |
35700 | return 1; | |
35701 | } | |
35702 | } | |
35703 | ||
35704 | ||
35705 | _ACEOF | |
35706 | rm -f conftest$ac_exeext | |
35707 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35708 | (eval $ac_link) 2>&5 | |
35709 | ac_status=$? | |
35710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35711 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
35712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35713 | (eval $ac_try) 2>&5 | |
35714 | ac_status=$? | |
35715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35716 | (exit $ac_status); }; }; then | |
35717 | : | |
35718 | else | |
35719 | echo "$as_me: program exited with status $ac_status" >&5 | |
35720 | echo "$as_me: failed program was:" >&5 | |
35721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35722 | ||
35723 | ( exit $ac_status ) | |
35724 | no_sdl=yes | |
35725 | fi | |
ac1cb8d3 | 35726 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35727 | fi |
35728 | CFLAGS="$ac_save_CFLAGS" | |
94acd38e | 35729 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
35730 | LIBS="$ac_save_LIBS" |
35731 | fi | |
35732 | fi | |
35733 | if test "x$no_sdl" = x ; then | |
35734 | echo "$as_me:$LINENO: result: yes" >&5 | |
35735 | echo "${ECHO_T}yes" >&6 | |
35736 | ||
35737 | EXTRALIBS_SDL="$SDL_LIBS" | |
35738 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
35739 | cat >>confdefs.h <<\_ACEOF | |
35740 | #define wxUSE_LIBSDL 1 | |
35741 | _ACEOF | |
35742 | ||
35743 | ||
35744 | else | |
35745 | echo "$as_me:$LINENO: result: no" >&5 | |
35746 | echo "${ECHO_T}no" >&6 | |
35747 | if test "$SDL_CONFIG" = "no" ; then | |
35748 | echo "*** The sdl-config script installed by SDL could not be found" | |
35749 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
35750 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
35751 | echo "*** full path to sdl-config." | |
35752 | else | |
35753 | if test -f conf.sdltest ; then | |
35754 | : | |
35755 | else | |
35756 | echo "*** Could not run SDL test program, checking why..." | |
35757 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 35758 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
35759 | LIBS="$LIBS $SDL_LIBS" |
35760 | cat >conftest.$ac_ext <<_ACEOF | |
35761 | /* confdefs.h. */ | |
35762 | _ACEOF | |
35763 | cat confdefs.h >>conftest.$ac_ext | |
35764 | cat >>conftest.$ac_ext <<_ACEOF | |
35765 | /* end confdefs.h. */ | |
35766 | ||
35767 | #include <stdio.h> | |
35768 | #include "SDL.h" | |
35769 | ||
35770 | int main(int argc, char *argv[]) | |
35771 | { return 0; } | |
35772 | #undef main | |
35773 | #define main K_and_R_C_main | |
35774 | ||
35775 | int | |
35776 | main () | |
35777 | { | |
35778 | return 0; | |
35779 | ; | |
35780 | return 0; | |
35781 | } | |
35782 | _ACEOF | |
35783 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35784 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35785 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35786 | ac_status=$? |
ac1cb8d3 VS |
35787 | grep -v '^ *+' conftest.er1 >conftest.err |
35788 | rm -f conftest.er1 | |
35789 | cat conftest.err >&5 | |
a848cd7e SC |
35790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35791 | (exit $ac_status); } && | |
89be85c2 VS |
35792 | { ac_try='test -z "$ac_c_werror_flag" |
35793 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35795 | (eval $ac_try) 2>&5 | |
35796 | ac_status=$? | |
35797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35798 | (exit $ac_status); }; } && | |
35799 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35801 | (eval $ac_try) 2>&5 | |
35802 | ac_status=$? | |
35803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35804 | (exit $ac_status); }; }; then | |
35805 | echo "*** The test program compiled, but did not run. This usually means" | |
35806 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
35807 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
35808 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
35809 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
35810 | echo "*** is required on your system" | |
35811 | echo "***" | |
35812 | echo "*** If you have an old version installed, it is best to remove it, although" | |
35813 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
35814 | else | |
35815 | echo "$as_me: failed program was:" >&5 | |
35816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35817 | ||
35818 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
35819 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
35820 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
35821 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
35822 | fi | |
ac1cb8d3 VS |
35823 | rm -f conftest.err conftest.$ac_objext \ |
35824 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 35825 | CFLAGS="$ac_save_CFLAGS" |
94acd38e | 35826 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
35827 | LIBS="$ac_save_LIBS" |
35828 | fi | |
35829 | fi | |
35830 | SDL_CFLAGS="" | |
35831 | SDL_LIBS="" | |
35832 | wxUSE_LIBSDL="no" | |
35833 | fi | |
35834 | ||
35835 | ||
35836 | rm -f conf.sdltest | |
35837 | ||
35838 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
35839 | WITH_PLUGIN_SDL=1 | |
35840 | fi | |
35841 | fi | |
35842 | fi | |
35843 | ||
35844 | cat >>confdefs.h <<\_ACEOF | |
35845 | #define wxUSE_SOUND 1 | |
35846 | _ACEOF | |
35847 | ||
35848 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
35849 | fi | |
35850 | ||
d1c38808 VZ |
35851 | if test "$WXGTK20" = 1; then |
35852 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
35853 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
35854 | ||
35855 | ||
35856 | succeeded=no | |
35857 | ||
35858 | if test -z "$PKG_CONFIG"; then | |
35859 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
35860 | set dummy pkg-config; ac_word=$2 | |
35861 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
35862 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
35863 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
35864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35865 | else | |
35866 | case $PKG_CONFIG in | |
35867 | [\\/]* | ?:[\\/]*) | |
35868 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
35869 | ;; | |
35870 | *) | |
35871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35872 | for as_dir in $PATH | |
35873 | do | |
35874 | IFS=$as_save_IFS | |
35875 | test -z "$as_dir" && as_dir=. | |
35876 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35877 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
35878 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
35879 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
35880 | break 2 | |
35881 | fi | |
35882 | done | |
35883 | done | |
35884 | ||
35885 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
35886 | ;; | |
35887 | esac | |
35888 | fi | |
35889 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
35890 | ||
35891 | if test -n "$PKG_CONFIG"; then | |
35892 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
35893 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
35894 | else | |
35895 | echo "$as_me:$LINENO: result: no" >&5 | |
35896 | echo "${ECHO_T}no" >&6 | |
35897 | fi | |
35898 | ||
35899 | fi | |
35900 | ||
35901 | if test "$PKG_CONFIG" = "no" ; then | |
35902 | echo "*** The pkg-config script could not be found. Make sure it is" | |
35903 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
35904 | echo "*** to the full path to pkg-config." | |
35905 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
35906 | else | |
35907 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
35908 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ffa762ff VS |
35909 | echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5 |
35910 | echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6 | |
d1c38808 | 35911 | |
ffa762ff | 35912 | if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then |
d1c38808 VZ |
35913 | echo "$as_me:$LINENO: result: yes" >&5 |
35914 | echo "${ECHO_T}yes" >&6 | |
35915 | succeeded=yes | |
35916 | ||
35917 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5 | |
35918 | echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6 | |
ffa762ff | 35919 | LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
35920 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5 |
35921 | echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6 | |
35922 | ||
35923 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5 | |
35924 | echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6 | |
ffa762ff | 35925 | LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
35926 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5 |
35927 | echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6 | |
35928 | else | |
35929 | LIBGNOMEPRINTUI_CFLAGS="" | |
35930 | LIBGNOMEPRINTUI_LIBS="" | |
35931 | ## If we have a custom action on failure, don't print errors, but | |
35932 | ## do set a variable so people can do so. | |
ffa762ff | 35933 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
35934 | |
35935 | fi | |
35936 | ||
35937 | ||
35938 | ||
35939 | else | |
35940 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
35941 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
35942 | fi | |
35943 | fi | |
35944 | ||
35945 | if test $succeeded = yes; then | |
35946 | ||
d1c38808 VZ |
35947 | CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS" |
35948 | cat >>confdefs.h <<\_ACEOF | |
35949 | #define wxUSE_LIBGNOMEPRINT 1 | |
35950 | _ACEOF | |
35951 | ||
35952 | ||
35953 | else | |
35954 | ||
35955 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
35956 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
35957 | wxUSE_LIBGNOMEPRINT="no" | |
35958 | ||
35959 | ||
35960 | fi | |
35961 | ||
35962 | fi | |
35963 | fi | |
35964 | fi | |
35965 | ||
35966 | ||
a848cd7e SC |
35967 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
35968 | cat >>confdefs.h <<\_ACEOF | |
35969 | #define wxUSE_CMDLINE_PARSER 1 | |
35970 | _ACEOF | |
35971 | ||
35972 | fi | |
35973 | ||
35974 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
35975 | cat >>confdefs.h <<\_ACEOF | |
35976 | #define wxUSE_STOPWATCH 1 | |
35977 | _ACEOF | |
35978 | ||
35979 | fi | |
35980 | ||
35981 | if test "$wxUSE_DATETIME" = "yes"; then | |
35982 | cat >>confdefs.h <<\_ACEOF | |
35983 | #define wxUSE_DATETIME 1 | |
35984 | _ACEOF | |
35985 | ||
35986 | fi | |
35987 | ||
35988 | if test "$wxUSE_FILE" = "yes"; then | |
35989 | cat >>confdefs.h <<\_ACEOF | |
35990 | #define wxUSE_FILE 1 | |
35991 | _ACEOF | |
35992 | ||
35993 | fi | |
35994 | ||
35995 | if test "$wxUSE_FFILE" = "yes"; then | |
35996 | cat >>confdefs.h <<\_ACEOF | |
35997 | #define wxUSE_FFILE 1 | |
35998 | _ACEOF | |
35999 | ||
36000 | fi | |
36001 | ||
36002 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
36003 | cat >>confdefs.h <<\_ACEOF | |
36004 | #define wxUSE_FILESYSTEM 1 | |
36005 | _ACEOF | |
36006 | ||
36007 | fi | |
36008 | ||
36009 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
36010 | cat >>confdefs.h <<\_ACEOF | |
36011 | #define wxUSE_FS_ZIP 1 | |
36012 | _ACEOF | |
36013 | ||
36014 | fi | |
36015 | ||
9e8e867f | 36016 | if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then |
a848cd7e | 36017 | cat >>confdefs.h <<\_ACEOF |
9e8e867f | 36018 | #define wxUSE_ARCHIVE_STREAMS 1 |
81f90336 MW |
36019 | _ACEOF |
36020 | ||
36021 | fi | |
36022 | ||
36023 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
9e8e867f | 36024 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then |
81f90336 MW |
36025 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5 |
36026 | echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;} | |
36027 | elif test "$wxUSE_ZLIB" = "no"; then | |
36028 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5 | |
36029 | echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;} | |
36030 | else | |
36031 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
36032 | #define wxUSE_ZIPSTREAM 1 |
36033 | _ACEOF | |
36034 | ||
81f90336 | 36035 | fi |
a848cd7e SC |
36036 | fi |
36037 | ||
a848cd7e SC |
36038 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
36039 | cat >>confdefs.h <<\_ACEOF | |
36040 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
36041 | _ACEOF | |
36042 | ||
36043 | fi | |
36044 | ||
eaff0f0d VZ |
36045 | if test "$wxUSE_STACKWALKER" = "yes"; then |
36046 | cat >>confdefs.h <<\_ACEOF | |
36047 | #define wxUSE_STACKWALKER 1 | |
36048 | _ACEOF | |
36049 | ||
36050 | fi | |
36051 | ||
a848cd7e SC |
36052 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
36053 | cat >>confdefs.h <<\_ACEOF | |
36054 | #define wxUSE_SNGLINST_CHECKER 1 | |
36055 | _ACEOF | |
36056 | ||
36057 | fi | |
36058 | ||
36059 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
36060 | cat >>confdefs.h <<\_ACEOF | |
36061 | #define wxUSE_BUSYINFO 1 | |
36062 | _ACEOF | |
36063 | ||
36064 | fi | |
36065 | ||
36066 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
36067 | cat >>confdefs.h <<\_ACEOF | |
36068 | #define wxUSE_STD_IOSTREAM 1 | |
36069 | _ACEOF | |
36070 | ||
36071 | fi | |
36072 | ||
36073 | if test "$wxUSE_TEXTBUFFER" = "yes"; then | |
36074 | cat >>confdefs.h <<\_ACEOF | |
36075 | #define wxUSE_TEXTBUFFER 1 | |
36076 | _ACEOF | |
36077 | ||
36078 | fi | |
36079 | ||
36080 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
36081 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
36082 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
36083 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
36084 | else | |
36085 | cat >>confdefs.h <<\_ACEOF | |
36086 | #define wxUSE_TEXTFILE 1 | |
36087 | _ACEOF | |
36088 | ||
36089 | fi | |
36090 | fi | |
36091 | ||
36092 | if test "$wxUSE_CONFIG" = "yes" ; then | |
36093 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
36094 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
36095 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
36096 | else | |
36097 | cat >>confdefs.h <<\_ACEOF | |
36098 | #define wxUSE_CONFIG 1 | |
89be85c2 VS |
36099 | _ACEOF |
36100 | ||
36101 | cat >>confdefs.h <<\_ACEOF | |
36102 | #define wxUSE_CONFIG_NATIVE 1 | |
a848cd7e SC |
36103 | _ACEOF |
36104 | ||
36105 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
36106 | fi | |
36107 | fi | |
36108 | ||
36109 | if test "$wxUSE_INTL" = "yes" ; then | |
36110 | if test "$wxUSE_FILE" != "yes"; then | |
36111 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
36112 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
36113 | else | |
36114 | cat >>confdefs.h <<\_ACEOF | |
36115 | #define wxUSE_INTL 1 | |
36116 | _ACEOF | |
36117 | ||
36118 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
36119 | GUIDIST="$GUIDIST INTL_DIST" | |
36120 | fi | |
36121 | fi | |
36122 | ||
36123 | if test "$wxUSE_LOG" = "yes"; then | |
36124 | cat >>confdefs.h <<\_ACEOF | |
36125 | #define wxUSE_LOG 1 | |
36126 | _ACEOF | |
36127 | ||
36128 | ||
36129 | if test "$wxUSE_LOGGUI" = "yes"; then | |
36130 | cat >>confdefs.h <<\_ACEOF | |
36131 | #define wxUSE_LOGGUI 1 | |
36132 | _ACEOF | |
36133 | ||
36134 | fi | |
36135 | ||
36136 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
36137 | cat >>confdefs.h <<\_ACEOF | |
36138 | #define wxUSE_LOGWINDOW 1 | |
36139 | _ACEOF | |
36140 | ||
36141 | fi | |
36142 | ||
36143 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
36144 | cat >>confdefs.h <<\_ACEOF | |
36145 | #define wxUSE_LOG_DIALOG 1 | |
36146 | _ACEOF | |
36147 | ||
36148 | fi | |
36149 | fi | |
36150 | ||
36151 | if test "$wxUSE_LONGLONG" = "yes"; then | |
36152 | cat >>confdefs.h <<\_ACEOF | |
36153 | #define wxUSE_LONGLONG 1 | |
36154 | _ACEOF | |
36155 | ||
36156 | fi | |
36157 | ||
36158 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
36159 | cat >>confdefs.h <<\_ACEOF | |
36160 | #define wxUSE_GEOMETRY 1 | |
36161 | _ACEOF | |
36162 | ||
36163 | fi | |
36164 | ||
a848cd7e SC |
36165 | if test "$wxUSE_STREAMS" = "yes" ; then |
36166 | cat >>confdefs.h <<\_ACEOF | |
36167 | #define wxUSE_STREAMS 1 | |
36168 | _ACEOF | |
36169 | ||
36170 | fi | |
36171 | ||
36172 | ||
36173 | if test "$wxUSE_DATETIME" = "yes"; then | |
36174 | ||
36175 | for ac_func in strptime | |
36176 | do | |
36177 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36178 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36179 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36180 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36181 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36182 | else | |
36183 | cat >conftest.$ac_ext <<_ACEOF | |
36184 | /* confdefs.h. */ | |
36185 | _ACEOF | |
36186 | cat confdefs.h >>conftest.$ac_ext | |
36187 | cat >>conftest.$ac_ext <<_ACEOF | |
36188 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36189 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36190 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36191 | #define $ac_func innocuous_$ac_func | |
36192 | ||
a848cd7e SC |
36193 | /* System header to define __stub macros and hopefully few prototypes, |
36194 | which can conflict with char $ac_func (); below. | |
36195 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36196 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36197 | |
a848cd7e SC |
36198 | #ifdef __STDC__ |
36199 | # include <limits.h> | |
36200 | #else | |
36201 | # include <assert.h> | |
36202 | #endif | |
ac1cb8d3 VS |
36203 | |
36204 | #undef $ac_func | |
36205 | ||
a848cd7e SC |
36206 | /* Override any gcc2 internal prototype to avoid an error. */ |
36207 | #ifdef __cplusplus | |
36208 | extern "C" | |
36209 | { | |
36210 | #endif | |
36211 | /* We use char because int might match the return type of a gcc2 | |
36212 | builtin and then its argument prototype would still apply. */ | |
36213 | char $ac_func (); | |
36214 | /* The GNU C library defines this for functions which it implements | |
36215 | to always fail with ENOSYS. Some functions are actually named | |
36216 | something starting with __ and the normal name is an alias. */ | |
36217 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36218 | choke me | |
36219 | #else | |
36220 | char (*f) () = $ac_func; | |
36221 | #endif | |
36222 | #ifdef __cplusplus | |
36223 | } | |
36224 | #endif | |
36225 | ||
36226 | int | |
36227 | main () | |
36228 | { | |
36229 | return f != $ac_func; | |
36230 | ; | |
36231 | return 0; | |
36232 | } | |
36233 | _ACEOF | |
36234 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36235 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36236 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36237 | ac_status=$? |
ac1cb8d3 VS |
36238 | grep -v '^ *+' conftest.er1 >conftest.err |
36239 | rm -f conftest.er1 | |
36240 | cat conftest.err >&5 | |
a848cd7e SC |
36241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36242 | (exit $ac_status); } && | |
89be85c2 VS |
36243 | { ac_try='test -z "$ac_c_werror_flag" |
36244 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36246 | (eval $ac_try) 2>&5 | |
36247 | ac_status=$? | |
36248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36249 | (exit $ac_status); }; } && | |
36250 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36252 | (eval $ac_try) 2>&5 | |
36253 | ac_status=$? | |
36254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36255 | (exit $ac_status); }; }; then | |
36256 | eval "$as_ac_var=yes" | |
36257 | else | |
36258 | echo "$as_me: failed program was:" >&5 | |
36259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36260 | ||
36261 | eval "$as_ac_var=no" | |
36262 | fi | |
ac1cb8d3 VS |
36263 | rm -f conftest.err conftest.$ac_objext \ |
36264 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36265 | fi |
36266 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36267 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36268 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36269 | cat >>confdefs.h <<_ACEOF | |
36270 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36271 | _ACEOF | |
36272 | ||
36273 | fi | |
36274 | done | |
36275 | ||
36276 | ||
36277 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
36278 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
36279 | if test "${wx_cv_var_timezone+set}" = set; then | |
36280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36281 | else | |
36282 | ||
36283 | cat >conftest.$ac_ext <<_ACEOF | |
36284 | /* confdefs.h. */ | |
36285 | _ACEOF | |
36286 | cat confdefs.h >>conftest.$ac_ext | |
36287 | cat >>conftest.$ac_ext <<_ACEOF | |
36288 | /* end confdefs.h. */ | |
36289 | ||
36290 | #include <time.h> | |
36291 | ||
36292 | int | |
36293 | main () | |
36294 | { | |
36295 | ||
36296 | int tz; | |
36297 | tz = timezone; | |
36298 | ||
36299 | ; | |
36300 | return 0; | |
36301 | } | |
36302 | _ACEOF | |
36303 | rm -f conftest.$ac_objext | |
36304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36305 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36306 | ac_status=$? |
ac1cb8d3 VS |
36307 | grep -v '^ *+' conftest.er1 >conftest.err |
36308 | rm -f conftest.er1 | |
36309 | cat conftest.err >&5 | |
a848cd7e SC |
36310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36311 | (exit $ac_status); } && | |
89be85c2 VS |
36312 | { ac_try='test -z "$ac_c_werror_flag" |
36313 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36315 | (eval $ac_try) 2>&5 | |
36316 | ac_status=$? | |
36317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36318 | (exit $ac_status); }; } && | |
36319 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36321 | (eval $ac_try) 2>&5 | |
36322 | ac_status=$? | |
36323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36324 | (exit $ac_status); }; }; then | |
36325 | ||
36326 | wx_cv_var_timezone=timezone | |
36327 | ||
36328 | else | |
36329 | echo "$as_me: failed program was:" >&5 | |
36330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36331 | ||
36332 | ||
36333 | cat >conftest.$ac_ext <<_ACEOF | |
36334 | /* confdefs.h. */ | |
36335 | _ACEOF | |
36336 | cat confdefs.h >>conftest.$ac_ext | |
36337 | cat >>conftest.$ac_ext <<_ACEOF | |
36338 | /* end confdefs.h. */ | |
36339 | ||
36340 | #include <time.h> | |
36341 | ||
36342 | int | |
36343 | main () | |
36344 | { | |
36345 | ||
36346 | int tz; | |
36347 | tz = _timezone; | |
36348 | ||
36349 | ; | |
36350 | return 0; | |
36351 | } | |
36352 | _ACEOF | |
36353 | rm -f conftest.$ac_objext | |
36354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36355 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36356 | ac_status=$? |
ac1cb8d3 VS |
36357 | grep -v '^ *+' conftest.er1 >conftest.err |
36358 | rm -f conftest.er1 | |
36359 | cat conftest.err >&5 | |
a848cd7e SC |
36360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36361 | (exit $ac_status); } && | |
89be85c2 VS |
36362 | { ac_try='test -z "$ac_c_werror_flag" |
36363 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36365 | (eval $ac_try) 2>&5 | |
36366 | ac_status=$? | |
36367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36368 | (exit $ac_status); }; } && | |
36369 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36371 | (eval $ac_try) 2>&5 | |
36372 | ac_status=$? | |
36373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36374 | (exit $ac_status); }; }; then | |
36375 | ||
36376 | wx_cv_var_timezone=_timezone | |
36377 | ||
36378 | else | |
36379 | echo "$as_me: failed program was:" >&5 | |
36380 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36381 | ||
36382 | ||
36383 | cat >conftest.$ac_ext <<_ACEOF | |
36384 | /* confdefs.h. */ | |
36385 | _ACEOF | |
36386 | cat confdefs.h >>conftest.$ac_ext | |
36387 | cat >>conftest.$ac_ext <<_ACEOF | |
36388 | /* end confdefs.h. */ | |
36389 | ||
36390 | #include <time.h> | |
36391 | ||
36392 | int | |
36393 | main () | |
36394 | { | |
36395 | ||
36396 | int tz; | |
36397 | tz = __timezone; | |
36398 | ||
36399 | ; | |
36400 | return 0; | |
36401 | } | |
36402 | _ACEOF | |
36403 | rm -f conftest.$ac_objext | |
36404 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36405 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36406 | ac_status=$? |
ac1cb8d3 VS |
36407 | grep -v '^ *+' conftest.er1 >conftest.err |
36408 | rm -f conftest.er1 | |
36409 | cat conftest.err >&5 | |
a848cd7e SC |
36410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36411 | (exit $ac_status); } && | |
89be85c2 VS |
36412 | { ac_try='test -z "$ac_c_werror_flag" |
36413 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36415 | (eval $ac_try) 2>&5 | |
36416 | ac_status=$? | |
36417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36418 | (exit $ac_status); }; } && | |
36419 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36421 | (eval $ac_try) 2>&5 | |
36422 | ac_status=$? | |
36423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36424 | (exit $ac_status); }; }; then | |
36425 | ||
36426 | wx_cv_var_timezone=__timezone | |
36427 | ||
36428 | else | |
36429 | echo "$as_me: failed program was:" >&5 | |
36430 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36431 | ||
36432 | ||
36433 | if test "$USE_DOS" = 0 ; then | |
36434 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
36435 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
36436 | fi | |
36437 | ||
36438 | ||
36439 | fi | |
ac1cb8d3 | 36440 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36441 | |
36442 | ||
36443 | fi | |
ac1cb8d3 | 36444 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36445 | |
36446 | ||
36447 | fi | |
ac1cb8d3 | 36448 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36449 | |
36450 | ||
36451 | fi | |
36452 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
36453 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
36454 | ||
36455 | if test "x$wx_cv_var_timezone" != x ; then | |
36456 | cat >>confdefs.h <<_ACEOF | |
36457 | #define WX_TIMEZONE $wx_cv_var_timezone | |
36458 | _ACEOF | |
36459 | ||
36460 | fi | |
36461 | ||
36462 | ||
36463 | for ac_func in localtime | |
36464 | do | |
36465 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36466 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36467 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36468 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36470 | else | |
36471 | cat >conftest.$ac_ext <<_ACEOF | |
36472 | /* confdefs.h. */ | |
36473 | _ACEOF | |
36474 | cat confdefs.h >>conftest.$ac_ext | |
36475 | cat >>conftest.$ac_ext <<_ACEOF | |
36476 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36477 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36478 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36479 | #define $ac_func innocuous_$ac_func | |
36480 | ||
a848cd7e SC |
36481 | /* System header to define __stub macros and hopefully few prototypes, |
36482 | which can conflict with char $ac_func (); below. | |
36483 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36484 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36485 | |
a848cd7e SC |
36486 | #ifdef __STDC__ |
36487 | # include <limits.h> | |
36488 | #else | |
36489 | # include <assert.h> | |
36490 | #endif | |
ac1cb8d3 VS |
36491 | |
36492 | #undef $ac_func | |
36493 | ||
a848cd7e SC |
36494 | /* Override any gcc2 internal prototype to avoid an error. */ |
36495 | #ifdef __cplusplus | |
36496 | extern "C" | |
36497 | { | |
36498 | #endif | |
36499 | /* We use char because int might match the return type of a gcc2 | |
36500 | builtin and then its argument prototype would still apply. */ | |
36501 | char $ac_func (); | |
36502 | /* The GNU C library defines this for functions which it implements | |
36503 | to always fail with ENOSYS. Some functions are actually named | |
36504 | something starting with __ and the normal name is an alias. */ | |
36505 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36506 | choke me | |
36507 | #else | |
36508 | char (*f) () = $ac_func; | |
36509 | #endif | |
36510 | #ifdef __cplusplus | |
36511 | } | |
36512 | #endif | |
36513 | ||
36514 | int | |
36515 | main () | |
36516 | { | |
36517 | return f != $ac_func; | |
36518 | ; | |
36519 | return 0; | |
36520 | } | |
36521 | _ACEOF | |
36522 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36523 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36524 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36525 | ac_status=$? |
ac1cb8d3 VS |
36526 | grep -v '^ *+' conftest.er1 >conftest.err |
36527 | rm -f conftest.er1 | |
36528 | cat conftest.err >&5 | |
a848cd7e SC |
36529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36530 | (exit $ac_status); } && | |
89be85c2 VS |
36531 | { ac_try='test -z "$ac_c_werror_flag" |
36532 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36534 | (eval $ac_try) 2>&5 | |
36535 | ac_status=$? | |
36536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36537 | (exit $ac_status); }; } && | |
36538 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36540 | (eval $ac_try) 2>&5 | |
36541 | ac_status=$? | |
36542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36543 | (exit $ac_status); }; }; then | |
36544 | eval "$as_ac_var=yes" | |
36545 | else | |
36546 | echo "$as_me: failed program was:" >&5 | |
36547 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36548 | ||
36549 | eval "$as_ac_var=no" | |
36550 | fi | |
ac1cb8d3 VS |
36551 | rm -f conftest.err conftest.$ac_objext \ |
36552 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36553 | fi |
36554 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36555 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36556 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36557 | cat >>confdefs.h <<_ACEOF | |
36558 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36559 | _ACEOF | |
36560 | ||
36561 | fi | |
36562 | done | |
36563 | ||
36564 | ||
36565 | if test "$ac_cv_func_localtime" = "yes"; then | |
36566 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
36567 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
36568 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
36569 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36570 | else | |
36571 | ||
36572 | cat >conftest.$ac_ext <<_ACEOF | |
36573 | /* confdefs.h. */ | |
36574 | _ACEOF | |
36575 | cat confdefs.h >>conftest.$ac_ext | |
36576 | cat >>conftest.$ac_ext <<_ACEOF | |
36577 | /* end confdefs.h. */ | |
36578 | ||
36579 | #include <time.h> | |
36580 | ||
36581 | int | |
36582 | main () | |
36583 | { | |
36584 | ||
36585 | struct tm tm; | |
36586 | tm.tm_gmtoff++; | |
36587 | ||
36588 | ; | |
36589 | return 0; | |
36590 | } | |
36591 | _ACEOF | |
36592 | rm -f conftest.$ac_objext | |
36593 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36594 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36595 | ac_status=$? |
ac1cb8d3 VS |
36596 | grep -v '^ *+' conftest.er1 >conftest.err |
36597 | rm -f conftest.er1 | |
36598 | cat conftest.err >&5 | |
a848cd7e SC |
36599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36600 | (exit $ac_status); } && | |
89be85c2 VS |
36601 | { ac_try='test -z "$ac_c_werror_flag" |
36602 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36604 | (eval $ac_try) 2>&5 | |
36605 | ac_status=$? | |
36606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36607 | (exit $ac_status); }; } && | |
36608 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36610 | (eval $ac_try) 2>&5 | |
36611 | ac_status=$? | |
36612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36613 | (exit $ac_status); }; }; then | |
36614 | ||
36615 | wx_cv_struct_tm_has_gmtoff=yes | |
36616 | ||
36617 | else | |
36618 | echo "$as_me: failed program was:" >&5 | |
36619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36620 | ||
36621 | wx_cv_struct_tm_has_gmtoff=no | |
36622 | ||
36623 | fi | |
ac1cb8d3 | 36624 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36625 | |
36626 | fi | |
36627 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
36628 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
36629 | fi | |
36630 | ||
36631 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
36632 | cat >>confdefs.h <<\_ACEOF | |
36633 | #define WX_GMTOFF_IN_TM 1 | |
36634 | _ACEOF | |
36635 | ||
36636 | fi | |
36637 | ||
36638 | ||
36639 | ||
36640 | for ac_func in gettimeofday ftime | |
36641 | do | |
36642 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36643 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36644 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36645 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36647 | else | |
36648 | cat >conftest.$ac_ext <<_ACEOF | |
36649 | /* confdefs.h. */ | |
36650 | _ACEOF | |
36651 | cat confdefs.h >>conftest.$ac_ext | |
36652 | cat >>conftest.$ac_ext <<_ACEOF | |
36653 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36654 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36655 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36656 | #define $ac_func innocuous_$ac_func | |
36657 | ||
a848cd7e SC |
36658 | /* System header to define __stub macros and hopefully few prototypes, |
36659 | which can conflict with char $ac_func (); below. | |
36660 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36661 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36662 | |
a848cd7e SC |
36663 | #ifdef __STDC__ |
36664 | # include <limits.h> | |
36665 | #else | |
36666 | # include <assert.h> | |
36667 | #endif | |
ac1cb8d3 VS |
36668 | |
36669 | #undef $ac_func | |
36670 | ||
a848cd7e SC |
36671 | /* Override any gcc2 internal prototype to avoid an error. */ |
36672 | #ifdef __cplusplus | |
36673 | extern "C" | |
36674 | { | |
36675 | #endif | |
36676 | /* We use char because int might match the return type of a gcc2 | |
36677 | builtin and then its argument prototype would still apply. */ | |
36678 | char $ac_func (); | |
36679 | /* The GNU C library defines this for functions which it implements | |
36680 | to always fail with ENOSYS. Some functions are actually named | |
36681 | something starting with __ and the normal name is an alias. */ | |
36682 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36683 | choke me | |
36684 | #else | |
36685 | char (*f) () = $ac_func; | |
36686 | #endif | |
36687 | #ifdef __cplusplus | |
36688 | } | |
36689 | #endif | |
36690 | ||
36691 | int | |
36692 | main () | |
36693 | { | |
36694 | return f != $ac_func; | |
36695 | ; | |
36696 | return 0; | |
36697 | } | |
36698 | _ACEOF | |
36699 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36700 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36701 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36702 | ac_status=$? |
ac1cb8d3 VS |
36703 | grep -v '^ *+' conftest.er1 >conftest.err |
36704 | rm -f conftest.er1 | |
36705 | cat conftest.err >&5 | |
a848cd7e SC |
36706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36707 | (exit $ac_status); } && | |
89be85c2 VS |
36708 | { ac_try='test -z "$ac_c_werror_flag" |
36709 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36711 | (eval $ac_try) 2>&5 | |
36712 | ac_status=$? | |
36713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36714 | (exit $ac_status); }; } && | |
36715 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36717 | (eval $ac_try) 2>&5 | |
36718 | ac_status=$? | |
36719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36720 | (exit $ac_status); }; }; then | |
36721 | eval "$as_ac_var=yes" | |
36722 | else | |
36723 | echo "$as_me: failed program was:" >&5 | |
36724 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36725 | ||
36726 | eval "$as_ac_var=no" | |
36727 | fi | |
ac1cb8d3 VS |
36728 | rm -f conftest.err conftest.$ac_objext \ |
36729 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36730 | fi |
36731 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36732 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36733 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36734 | cat >>confdefs.h <<_ACEOF | |
36735 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36736 | _ACEOF | |
36737 | break | |
36738 | fi | |
36739 | done | |
36740 | ||
36741 | ||
36742 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
36743 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
36744 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
36745 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
36746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36747 | else | |
36748 | ||
36749 | ||
36750 | ||
36751 | ac_ext=cc | |
36752 | ac_cpp='$CXXCPP $CPPFLAGS' | |
36753 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36754 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36755 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
36756 | ||
36757 | ||
36758 | cat >conftest.$ac_ext <<_ACEOF | |
36759 | /* confdefs.h. */ | |
36760 | _ACEOF | |
36761 | cat confdefs.h >>conftest.$ac_ext | |
36762 | cat >>conftest.$ac_ext <<_ACEOF | |
36763 | /* end confdefs.h. */ | |
36764 | ||
36765 | #include <sys/time.h> | |
36766 | #include <unistd.h> | |
36767 | ||
36768 | int | |
36769 | main () | |
36770 | { | |
36771 | ||
36772 | struct timeval tv; | |
36773 | gettimeofday(&tv, NULL); | |
36774 | ||
36775 | ; | |
36776 | return 0; | |
36777 | } | |
36778 | _ACEOF | |
36779 | rm -f conftest.$ac_objext | |
36780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36781 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36782 | ac_status=$? |
ac1cb8d3 VS |
36783 | grep -v '^ *+' conftest.er1 >conftest.err |
36784 | rm -f conftest.er1 | |
36785 | cat conftest.err >&5 | |
a848cd7e SC |
36786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36787 | (exit $ac_status); } && | |
89be85c2 VS |
36788 | { ac_try='test -z "$ac_cxx_werror_flag" |
36789 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36791 | (eval $ac_try) 2>&5 | |
36792 | ac_status=$? | |
36793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36794 | (exit $ac_status); }; } && | |
36795 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36797 | (eval $ac_try) 2>&5 | |
36798 | ac_status=$? | |
36799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36800 | (exit $ac_status); }; }; then | |
36801 | wx_cv_func_gettimeofday_has_2_args=yes | |
36802 | else | |
36803 | echo "$as_me: failed program was:" >&5 | |
36804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36805 | ||
36806 | cat >conftest.$ac_ext <<_ACEOF | |
36807 | /* confdefs.h. */ | |
36808 | _ACEOF | |
36809 | cat confdefs.h >>conftest.$ac_ext | |
36810 | cat >>conftest.$ac_ext <<_ACEOF | |
36811 | /* end confdefs.h. */ | |
36812 | ||
36813 | #include <sys/time.h> | |
36814 | #include <unistd.h> | |
36815 | ||
36816 | int | |
36817 | main () | |
36818 | { | |
36819 | ||
36820 | struct timeval tv; | |
36821 | gettimeofday(&tv); | |
36822 | ||
36823 | ; | |
36824 | return 0; | |
36825 | } | |
36826 | _ACEOF | |
36827 | rm -f conftest.$ac_objext | |
36828 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36829 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36830 | ac_status=$? |
ac1cb8d3 VS |
36831 | grep -v '^ *+' conftest.er1 >conftest.err |
36832 | rm -f conftest.er1 | |
36833 | cat conftest.err >&5 | |
a848cd7e SC |
36834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36835 | (exit $ac_status); } && | |
89be85c2 VS |
36836 | { ac_try='test -z "$ac_cxx_werror_flag" |
36837 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36839 | (eval $ac_try) 2>&5 | |
36840 | ac_status=$? | |
36841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36842 | (exit $ac_status); }; } && | |
36843 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36845 | (eval $ac_try) 2>&5 | |
36846 | ac_status=$? | |
36847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36848 | (exit $ac_status); }; }; then | |
36849 | wx_cv_func_gettimeofday_has_2_args=no | |
36850 | else | |
36851 | echo "$as_me: failed program was:" >&5 | |
36852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36853 | ||
36854 | ||
36855 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
36856 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
36857 | wx_cv_func_gettimeofday_has_2_args=unknown | |
36858 | ||
36859 | ||
36860 | fi | |
ac1cb8d3 | 36861 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36862 | |
36863 | fi | |
ac1cb8d3 | 36864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36865 | ac_ext=c |
36866 | ac_cpp='$CPP $CPPFLAGS' | |
36867 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36868 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36869 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
36870 | ||
36871 | ||
36872 | fi | |
36873 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
36874 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
36875 | ||
36876 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
36877 | cat >>confdefs.h <<\_ACEOF | |
36878 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
36879 | _ACEOF | |
36880 | ||
36881 | fi | |
36882 | fi | |
36883 | ||
36884 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
36885 | fi | |
36886 | ||
36887 | ||
36888 | if test "$wxUSE_SOCKETS" = "yes"; then | |
36889 | if test "$wxUSE_MGL" = "1"; then | |
36890 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
36891 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
36892 | wxUSE_SOCKETS="no" | |
36893 | fi | |
36894 | fi | |
36895 | ||
36896 | if test "$wxUSE_SOCKETS" = "yes"; then | |
36897 | if test "$TOOLKIT" != "MSW"; then | |
36898 | echo "$as_me:$LINENO: checking for socket" >&5 | |
36899 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
36900 | if test "${ac_cv_func_socket+set}" = set; then | |
36901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36902 | else | |
36903 | cat >conftest.$ac_ext <<_ACEOF | |
36904 | /* confdefs.h. */ | |
36905 | _ACEOF | |
36906 | cat confdefs.h >>conftest.$ac_ext | |
36907 | cat >>conftest.$ac_ext <<_ACEOF | |
36908 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36909 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
36910 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36911 | #define socket innocuous_socket | |
36912 | ||
a848cd7e SC |
36913 | /* System header to define __stub macros and hopefully few prototypes, |
36914 | which can conflict with char socket (); below. | |
36915 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36916 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36917 | |
a848cd7e SC |
36918 | #ifdef __STDC__ |
36919 | # include <limits.h> | |
36920 | #else | |
36921 | # include <assert.h> | |
36922 | #endif | |
ac1cb8d3 VS |
36923 | |
36924 | #undef socket | |
36925 | ||
a848cd7e SC |
36926 | /* Override any gcc2 internal prototype to avoid an error. */ |
36927 | #ifdef __cplusplus | |
36928 | extern "C" | |
36929 | { | |
36930 | #endif | |
36931 | /* We use char because int might match the return type of a gcc2 | |
36932 | builtin and then its argument prototype would still apply. */ | |
36933 | char socket (); | |
36934 | /* The GNU C library defines this for functions which it implements | |
36935 | to always fail with ENOSYS. Some functions are actually named | |
36936 | something starting with __ and the normal name is an alias. */ | |
36937 | #if defined (__stub_socket) || defined (__stub___socket) | |
36938 | choke me | |
36939 | #else | |
36940 | char (*f) () = socket; | |
36941 | #endif | |
36942 | #ifdef __cplusplus | |
36943 | } | |
36944 | #endif | |
36945 | ||
36946 | int | |
36947 | main () | |
36948 | { | |
36949 | return f != socket; | |
36950 | ; | |
36951 | return 0; | |
36952 | } | |
36953 | _ACEOF | |
36954 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36955 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36956 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36957 | ac_status=$? |
ac1cb8d3 VS |
36958 | grep -v '^ *+' conftest.er1 >conftest.err |
36959 | rm -f conftest.er1 | |
36960 | cat conftest.err >&5 | |
a848cd7e SC |
36961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36962 | (exit $ac_status); } && | |
89be85c2 VS |
36963 | { ac_try='test -z "$ac_c_werror_flag" |
36964 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36966 | (eval $ac_try) 2>&5 | |
36967 | ac_status=$? | |
36968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36969 | (exit $ac_status); }; } && | |
36970 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36972 | (eval $ac_try) 2>&5 | |
36973 | ac_status=$? | |
36974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36975 | (exit $ac_status); }; }; then | |
36976 | ac_cv_func_socket=yes | |
36977 | else | |
36978 | echo "$as_me: failed program was:" >&5 | |
36979 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36980 | ||
36981 | ac_cv_func_socket=no | |
36982 | fi | |
ac1cb8d3 VS |
36983 | rm -f conftest.err conftest.$ac_objext \ |
36984 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36985 | fi |
36986 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
36987 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
36988 | if test $ac_cv_func_socket = yes; then | |
36989 | : | |
36990 | else | |
36991 | ||
36992 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
36993 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
36994 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
36995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36996 | else | |
36997 | ac_check_lib_save_LIBS=$LIBS | |
36998 | LIBS="-lsocket $LIBS" | |
36999 | cat >conftest.$ac_ext <<_ACEOF | |
37000 | /* confdefs.h. */ | |
37001 | _ACEOF | |
37002 | cat confdefs.h >>conftest.$ac_ext | |
37003 | cat >>conftest.$ac_ext <<_ACEOF | |
37004 | /* end confdefs.h. */ | |
37005 | ||
37006 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37007 | #ifdef __cplusplus | |
37008 | extern "C" | |
37009 | #endif | |
37010 | /* We use char because int might match the return type of a gcc2 | |
37011 | builtin and then its argument prototype would still apply. */ | |
37012 | char socket (); | |
37013 | int | |
37014 | main () | |
37015 | { | |
37016 | socket (); | |
37017 | ; | |
37018 | return 0; | |
37019 | } | |
37020 | _ACEOF | |
37021 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37022 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37023 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37024 | ac_status=$? |
ac1cb8d3 VS |
37025 | grep -v '^ *+' conftest.er1 >conftest.err |
37026 | rm -f conftest.er1 | |
37027 | cat conftest.err >&5 | |
a848cd7e SC |
37028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37029 | (exit $ac_status); } && | |
89be85c2 VS |
37030 | { ac_try='test -z "$ac_c_werror_flag" |
37031 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37033 | (eval $ac_try) 2>&5 | |
37034 | ac_status=$? | |
37035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37036 | (exit $ac_status); }; } && | |
37037 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37039 | (eval $ac_try) 2>&5 | |
37040 | ac_status=$? | |
37041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37042 | (exit $ac_status); }; }; then | |
37043 | ac_cv_lib_socket_socket=yes | |
37044 | else | |
37045 | echo "$as_me: failed program was:" >&5 | |
37046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37047 | ||
37048 | ac_cv_lib_socket_socket=no | |
37049 | fi | |
ac1cb8d3 VS |
37050 | rm -f conftest.err conftest.$ac_objext \ |
37051 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37052 | LIBS=$ac_check_lib_save_LIBS |
37053 | fi | |
37054 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
37055 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
37056 | if test $ac_cv_lib_socket_socket = yes; then | |
37057 | if test "$INET_LINK" != " -lsocket"; then | |
37058 | INET_LINK="$INET_LINK -lsocket" | |
37059 | fi | |
37060 | else | |
37061 | ||
37062 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
37063 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
37064 | wxUSE_SOCKETS=no | |
37065 | ||
37066 | ||
37067 | fi | |
37068 | ||
37069 | ||
37070 | ||
37071 | fi | |
37072 | ||
37073 | fi | |
37074 | fi | |
37075 | ||
37076 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
37077 | if test "$TOOLKIT" != "MSW"; then | |
4d4ff94c VZ |
37078 | ac_ext=cc |
37079 | ac_cpp='$CXXCPP $CPPFLAGS' | |
37080 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37081 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37082 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
37083 | ||
37084 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
a848cd7e SC |
37085 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
37086 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
37087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37088 | else | |
37089 | ||
37090 | cat >conftest.$ac_ext <<_ACEOF | |
37091 | /* confdefs.h. */ | |
37092 | _ACEOF | |
37093 | cat confdefs.h >>conftest.$ac_ext | |
37094 | cat >>conftest.$ac_ext <<_ACEOF | |
37095 | /* end confdefs.h. */ | |
37096 | ||
37097 | #include <sys/types.h> | |
37098 | #include <sys/socket.h> | |
37099 | ||
37100 | int | |
37101 | main () | |
37102 | { | |
37103 | ||
37104 | socklen_t len; | |
37105 | getsockname(0, 0, &len); | |
37106 | ||
37107 | ; | |
37108 | return 0; | |
37109 | } | |
37110 | _ACEOF | |
37111 | rm -f conftest.$ac_objext | |
37112 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37113 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37114 | ac_status=$? |
ac1cb8d3 VS |
37115 | grep -v '^ *+' conftest.er1 >conftest.err |
37116 | rm -f conftest.er1 | |
37117 | cat conftest.err >&5 | |
a848cd7e SC |
37118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37119 | (exit $ac_status); } && | |
89be85c2 VS |
37120 | { ac_try='test -z "$ac_cxx_werror_flag" |
37121 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37123 | (eval $ac_try) 2>&5 | |
37124 | ac_status=$? | |
37125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37126 | (exit $ac_status); }; } && | |
37127 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37129 | (eval $ac_try) 2>&5 | |
37130 | ac_status=$? | |
37131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37132 | (exit $ac_status); }; }; then | |
37133 | wx_cv_type_getsockname3=socklen_t | |
37134 | else | |
37135 | echo "$as_me: failed program was:" >&5 | |
37136 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37137 | ||
37138 | ||
37139 | CFLAGS_OLD="$CFLAGS" | |
37140 | if test "$GCC" = yes ; then | |
37141 | CFLAGS="$CFLAGS -Werror" | |
37142 | fi | |
37143 | ||
37144 | cat >conftest.$ac_ext <<_ACEOF | |
37145 | /* confdefs.h. */ | |
37146 | _ACEOF | |
37147 | cat confdefs.h >>conftest.$ac_ext | |
37148 | cat >>conftest.$ac_ext <<_ACEOF | |
37149 | /* end confdefs.h. */ | |
37150 | ||
37151 | #include <sys/types.h> | |
37152 | #include <sys/socket.h> | |
37153 | ||
37154 | int | |
37155 | main () | |
37156 | { | |
37157 | ||
37158 | size_t len; | |
37159 | getsockname(0, 0, &len); | |
37160 | ||
37161 | ; | |
37162 | return 0; | |
37163 | } | |
37164 | _ACEOF | |
37165 | rm -f conftest.$ac_objext | |
37166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37167 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37168 | ac_status=$? |
ac1cb8d3 VS |
37169 | grep -v '^ *+' conftest.er1 >conftest.err |
37170 | rm -f conftest.er1 | |
37171 | cat conftest.err >&5 | |
a848cd7e SC |
37172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37173 | (exit $ac_status); } && | |
89be85c2 VS |
37174 | { ac_try='test -z "$ac_cxx_werror_flag" |
37175 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37177 | (eval $ac_try) 2>&5 | |
37178 | ac_status=$? | |
37179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37180 | (exit $ac_status); }; } && | |
37181 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37183 | (eval $ac_try) 2>&5 | |
37184 | ac_status=$? | |
37185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37186 | (exit $ac_status); }; }; then | |
37187 | wx_cv_type_getsockname3=size_t | |
37188 | else | |
37189 | echo "$as_me: failed program was:" >&5 | |
37190 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37191 | ||
37192 | cat >conftest.$ac_ext <<_ACEOF | |
37193 | /* confdefs.h. */ | |
37194 | _ACEOF | |
37195 | cat confdefs.h >>conftest.$ac_ext | |
37196 | cat >>conftest.$ac_ext <<_ACEOF | |
37197 | /* end confdefs.h. */ | |
37198 | ||
37199 | #include <sys/types.h> | |
37200 | #include <sys/socket.h> | |
37201 | ||
37202 | int | |
37203 | main () | |
37204 | { | |
37205 | ||
37206 | int len; | |
37207 | getsockname(0, 0, &len); | |
37208 | ||
37209 | ; | |
37210 | return 0; | |
37211 | } | |
37212 | _ACEOF | |
37213 | rm -f conftest.$ac_objext | |
37214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37215 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37216 | ac_status=$? |
ac1cb8d3 VS |
37217 | grep -v '^ *+' conftest.er1 >conftest.err |
37218 | rm -f conftest.er1 | |
37219 | cat conftest.err >&5 | |
a848cd7e SC |
37220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37221 | (exit $ac_status); } && | |
89be85c2 VS |
37222 | { ac_try='test -z "$ac_cxx_werror_flag" |
37223 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37225 | (eval $ac_try) 2>&5 | |
37226 | ac_status=$? | |
37227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37228 | (exit $ac_status); }; } && | |
37229 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37231 | (eval $ac_try) 2>&5 | |
37232 | ac_status=$? | |
37233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37234 | (exit $ac_status); }; }; then | |
37235 | wx_cv_type_getsockname3=int | |
37236 | else | |
37237 | echo "$as_me: failed program was:" >&5 | |
37238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37239 | ||
37240 | wx_cv_type_getsockname3=unknown | |
37241 | ||
37242 | fi | |
ac1cb8d3 | 37243 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37244 | |
37245 | fi | |
ac1cb8d3 | 37246 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37247 | |
37248 | CFLAGS="$CFLAGS_OLD" | |
37249 | ||
37250 | ||
37251 | fi | |
ac1cb8d3 | 37252 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37253 | |
37254 | fi | |
37255 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
37256 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
37257 | ||
37258 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
37259 | wxUSE_SOCKETS=no | |
37260 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
37261 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
37262 | else | |
37263 | cat >>confdefs.h <<_ACEOF | |
37264 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
5b674b9d DE |
37265 | _ACEOF |
37266 | ||
37267 | fi | |
37268 | echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5 | |
37269 | echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6 | |
37270 | if test "${wx_cv_type_getsockopt5+set}" = set; then | |
37271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37272 | else | |
37273 | ||
37274 | cat >conftest.$ac_ext <<_ACEOF | |
37275 | /* confdefs.h. */ | |
37276 | _ACEOF | |
37277 | cat confdefs.h >>conftest.$ac_ext | |
37278 | cat >>conftest.$ac_ext <<_ACEOF | |
37279 | /* end confdefs.h. */ | |
37280 | ||
37281 | #include <sys/types.h> | |
37282 | #include <sys/socket.h> | |
37283 | ||
37284 | int | |
37285 | main () | |
37286 | { | |
37287 | ||
37288 | socklen_t len; | |
37289 | getsockopt(0, 0, 0, 0, &len); | |
37290 | ||
37291 | ; | |
37292 | return 0; | |
37293 | } | |
37294 | _ACEOF | |
37295 | rm -f conftest.$ac_objext | |
37296 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37297 | (eval $ac_compile) 2>conftest.er1 | |
37298 | ac_status=$? | |
37299 | grep -v '^ *+' conftest.er1 >conftest.err | |
37300 | rm -f conftest.er1 | |
37301 | cat conftest.err >&5 | |
37302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37303 | (exit $ac_status); } && | |
89be85c2 VS |
37304 | { ac_try='test -z "$ac_cxx_werror_flag" |
37305 | || test ! -s conftest.err' | |
5b674b9d DE |
37306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37307 | (eval $ac_try) 2>&5 | |
37308 | ac_status=$? | |
37309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37310 | (exit $ac_status); }; } && | |
37311 | { ac_try='test -s conftest.$ac_objext' | |
37312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37313 | (eval $ac_try) 2>&5 | |
37314 | ac_status=$? | |
37315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37316 | (exit $ac_status); }; }; then | |
37317 | wx_cv_type_getsockopt5=socklen_t | |
37318 | else | |
37319 | echo "$as_me: failed program was:" >&5 | |
37320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37321 | ||
37322 | ||
37323 | CFLAGS_OLD="$CFLAGS" | |
37324 | if test "$GCC" = yes ; then | |
37325 | CFLAGS="$CFLAGS -Werror" | |
37326 | fi | |
37327 | ||
37328 | cat >conftest.$ac_ext <<_ACEOF | |
37329 | /* confdefs.h. */ | |
37330 | _ACEOF | |
37331 | cat confdefs.h >>conftest.$ac_ext | |
37332 | cat >>conftest.$ac_ext <<_ACEOF | |
37333 | /* end confdefs.h. */ | |
37334 | ||
37335 | #include <sys/types.h> | |
37336 | #include <sys/socket.h> | |
37337 | ||
37338 | int | |
37339 | main () | |
37340 | { | |
37341 | ||
37342 | size_t len; | |
37343 | getsockopt(0, 0, 0, 0, &len); | |
37344 | ||
37345 | ; | |
37346 | return 0; | |
37347 | } | |
37348 | _ACEOF | |
37349 | rm -f conftest.$ac_objext | |
37350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37351 | (eval $ac_compile) 2>conftest.er1 | |
37352 | ac_status=$? | |
37353 | grep -v '^ *+' conftest.er1 >conftest.err | |
37354 | rm -f conftest.er1 | |
37355 | cat conftest.err >&5 | |
37356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37357 | (exit $ac_status); } && | |
89be85c2 VS |
37358 | { ac_try='test -z "$ac_cxx_werror_flag" |
37359 | || test ! -s conftest.err' | |
5b674b9d DE |
37360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37361 | (eval $ac_try) 2>&5 | |
37362 | ac_status=$? | |
37363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37364 | (exit $ac_status); }; } && | |
37365 | { ac_try='test -s conftest.$ac_objext' | |
37366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37367 | (eval $ac_try) 2>&5 | |
37368 | ac_status=$? | |
37369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37370 | (exit $ac_status); }; }; then | |
37371 | wx_cv_type_getsockopt5=size_t | |
37372 | else | |
37373 | echo "$as_me: failed program was:" >&5 | |
37374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37375 | ||
37376 | cat >conftest.$ac_ext <<_ACEOF | |
37377 | /* confdefs.h. */ | |
37378 | _ACEOF | |
37379 | cat confdefs.h >>conftest.$ac_ext | |
37380 | cat >>conftest.$ac_ext <<_ACEOF | |
37381 | /* end confdefs.h. */ | |
37382 | ||
37383 | #include <sys/types.h> | |
37384 | #include <sys/socket.h> | |
37385 | ||
37386 | int | |
37387 | main () | |
37388 | { | |
37389 | ||
37390 | int len; | |
37391 | getsockopt(0, 0, 0, 0, &len); | |
37392 | ||
37393 | ; | |
37394 | return 0; | |
37395 | } | |
37396 | _ACEOF | |
37397 | rm -f conftest.$ac_objext | |
37398 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37399 | (eval $ac_compile) 2>conftest.er1 | |
37400 | ac_status=$? | |
37401 | grep -v '^ *+' conftest.er1 >conftest.err | |
37402 | rm -f conftest.er1 | |
37403 | cat conftest.err >&5 | |
37404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37405 | (exit $ac_status); } && | |
89be85c2 VS |
37406 | { ac_try='test -z "$ac_cxx_werror_flag" |
37407 | || test ! -s conftest.err' | |
5b674b9d DE |
37408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37409 | (eval $ac_try) 2>&5 | |
37410 | ac_status=$? | |
37411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37412 | (exit $ac_status); }; } && | |
37413 | { ac_try='test -s conftest.$ac_objext' | |
37414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37415 | (eval $ac_try) 2>&5 | |
37416 | ac_status=$? | |
37417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37418 | (exit $ac_status); }; }; then | |
37419 | wx_cv_type_getsockopt5=int | |
37420 | else | |
37421 | echo "$as_me: failed program was:" >&5 | |
37422 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37423 | ||
37424 | wx_cv_type_getsockopt5=unknown | |
37425 | ||
37426 | fi | |
37427 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
37428 | ||
37429 | fi | |
37430 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
37431 | ||
37432 | CFLAGS="$CFLAGS_OLD" | |
37433 | ||
37434 | ||
37435 | fi | |
37436 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
37437 | ||
37438 | fi | |
37439 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5 | |
37440 | echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6 | |
37441 | ||
37442 | if test "$wx_cv_type_getsockopt5" = "unknown"; then | |
37443 | wxUSE_SOCKETS=no | |
37444 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
37445 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
37446 | else | |
37447 | cat >>confdefs.h <<_ACEOF | |
37448 | #define SOCKOPTLEN_T $wx_cv_type_getsockopt5 | |
a848cd7e SC |
37449 | _ACEOF |
37450 | ||
37451 | fi | |
4d4ff94c VZ |
37452 | ac_ext=c |
37453 | ac_cpp='$CPP $CPPFLAGS' | |
37454 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37455 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37456 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
37457 | ||
a848cd7e SC |
37458 | fi |
37459 | fi | |
37460 | ||
37461 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
37462 | cat >>confdefs.h <<\_ACEOF | |
37463 | #define wxUSE_SOCKETS 1 | |
37464 | _ACEOF | |
37465 | ||
37466 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
37467 | fi | |
37468 | ||
37469 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
37470 | if test "$wxUSE_SOCKETS" != "yes"; then | |
37471 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
37472 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
37473 | wxUSE_PROTOCOL=no | |
37474 | fi | |
37475 | fi | |
37476 | ||
37477 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
37478 | cat >>confdefs.h <<\_ACEOF | |
37479 | #define wxUSE_PROTOCOL 1 | |
37480 | _ACEOF | |
37481 | ||
37482 | ||
37483 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
37484 | cat >>confdefs.h <<\_ACEOF | |
37485 | #define wxUSE_PROTOCOL_HTTP 1 | |
37486 | _ACEOF | |
37487 | ||
37488 | fi | |
37489 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
37490 | cat >>confdefs.h <<\_ACEOF | |
37491 | #define wxUSE_PROTOCOL_FTP 1 | |
37492 | _ACEOF | |
37493 | ||
37494 | fi | |
37495 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
37496 | cat >>confdefs.h <<\_ACEOF | |
37497 | #define wxUSE_PROTOCOL_FILE 1 | |
37498 | _ACEOF | |
37499 | ||
37500 | fi | |
37501 | else | |
37502 | if test "$wxUSE_FS_INET" = "yes"; then | |
37503 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
37504 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
37505 | wxUSE_FS_INET="no" | |
37506 | fi | |
37507 | fi | |
37508 | ||
37509 | if test "$wxUSE_URL" = "yes"; then | |
37510 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
37511 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
37512 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
37513 | wxUSE_URL=no | |
37514 | fi | |
37515 | if test "$wxUSE_URL" = "yes"; then | |
37516 | cat >>confdefs.h <<\_ACEOF | |
37517 | #define wxUSE_URL 1 | |
37518 | _ACEOF | |
37519 | ||
37520 | fi | |
37521 | fi | |
37522 | ||
37523 | if test "$wxUSE_FS_INET" = "yes"; then | |
37524 | cat >>confdefs.h <<\_ACEOF | |
37525 | #define wxUSE_FS_INET 1 | |
37526 | _ACEOF | |
37527 | ||
37528 | fi | |
37529 | ||
37530 | ||
37531 | if test "$wxUSE_GUI" = "yes"; then | |
4cb1d3da | 37532 | if test "$wxUSE_JOYSTICK" = "yes"; then |
a848cd7e | 37533 | |
4cb1d3da | 37534 | if test "$TOOLKIT" != "MAC" -a "$TOOLKIT" != "COCOA" -a "$TOOLKIT" != "MSW"; then |
a848cd7e SC |
37535 | |
37536 | for ac_header in linux/joystick.h | |
37537 | do | |
37538 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
37539 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37540 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37541 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37542 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37544 | fi | |
37545 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37546 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37547 | else | |
37548 | # Is the header compilable? | |
37549 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
37550 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
37551 | cat >conftest.$ac_ext <<_ACEOF | |
37552 | /* confdefs.h. */ | |
37553 | _ACEOF | |
37554 | cat confdefs.h >>conftest.$ac_ext | |
37555 | cat >>conftest.$ac_ext <<_ACEOF | |
37556 | /* end confdefs.h. */ | |
37557 | $ac_includes_default | |
37558 | #include <$ac_header> | |
37559 | _ACEOF | |
37560 | rm -f conftest.$ac_objext | |
37561 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37562 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37563 | ac_status=$? |
ac1cb8d3 VS |
37564 | grep -v '^ *+' conftest.er1 >conftest.err |
37565 | rm -f conftest.er1 | |
37566 | cat conftest.err >&5 | |
a848cd7e SC |
37567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37568 | (exit $ac_status); } && | |
89be85c2 VS |
37569 | { ac_try='test -z "$ac_c_werror_flag" |
37570 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37572 | (eval $ac_try) 2>&5 | |
37573 | ac_status=$? | |
37574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37575 | (exit $ac_status); }; } && | |
37576 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37578 | (eval $ac_try) 2>&5 | |
37579 | ac_status=$? | |
37580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37581 | (exit $ac_status); }; }; then | |
37582 | ac_header_compiler=yes | |
37583 | else | |
37584 | echo "$as_me: failed program was:" >&5 | |
37585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37586 | ||
37587 | ac_header_compiler=no | |
37588 | fi | |
ac1cb8d3 | 37589 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37590 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
37591 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
37592 | ||
37593 | # Is the header present? | |
37594 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
37595 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
37596 | cat >conftest.$ac_ext <<_ACEOF | |
37597 | /* confdefs.h. */ | |
37598 | _ACEOF | |
37599 | cat confdefs.h >>conftest.$ac_ext | |
37600 | cat >>conftest.$ac_ext <<_ACEOF | |
37601 | /* end confdefs.h. */ | |
37602 | #include <$ac_header> | |
37603 | _ACEOF | |
37604 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
37605 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
37606 | ac_status=$? | |
37607 | grep -v '^ *+' conftest.er1 >conftest.err | |
37608 | rm -f conftest.er1 | |
37609 | cat conftest.err >&5 | |
37610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37611 | (exit $ac_status); } >/dev/null; then | |
37612 | if test -s conftest.err; then | |
37613 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 37614 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
37615 | else |
37616 | ac_cpp_err= | |
37617 | fi | |
37618 | else | |
37619 | ac_cpp_err=yes | |
37620 | fi | |
37621 | if test -z "$ac_cpp_err"; then | |
37622 | ac_header_preproc=yes | |
37623 | else | |
37624 | echo "$as_me: failed program was:" >&5 | |
37625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37626 | ||
37627 | ac_header_preproc=no | |
37628 | fi | |
37629 | rm -f conftest.err conftest.$ac_ext | |
37630 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
37631 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
37632 | ||
37633 | # So? What about this header? | |
ac1cb8d3 VS |
37634 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
37635 | yes:no: ) | |
a848cd7e SC |
37636 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
37637 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
37638 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
37639 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
37640 | ac_header_preproc=yes | |
a848cd7e | 37641 | ;; |
ac1cb8d3 | 37642 | no:yes:* ) |
a848cd7e SC |
37643 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
37644 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
37645 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
37646 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
37647 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
37648 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
37649 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
37650 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
37651 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
37652 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
37653 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
37654 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
37655 | ( |
37656 | cat <<\_ASBOX | |
ac1cb8d3 VS |
37657 | ## ----------------------------------------- ## |
37658 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
37659 | ## ----------------------------------------- ## | |
a848cd7e SC |
37660 | _ASBOX |
37661 | ) | | |
37662 | sed "s/^/$as_me: WARNING: /" >&2 | |
37663 | ;; | |
37664 | esac | |
37665 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37666 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37667 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37669 | else | |
ac1cb8d3 | 37670 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
37671 | fi |
37672 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37673 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37674 | ||
37675 | fi | |
37676 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
37677 | cat >>confdefs.h <<_ACEOF | |
37678 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
37679 | _ACEOF | |
37680 | ||
37681 | fi | |
37682 | ||
37683 | done | |
37684 | ||
37685 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
37686 | wxUSE_JOYSTICK=no | |
37687 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
37688 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
37689 | fi | |
4cb1d3da RN |
37690 | else |
37691 | if test "$USE_DARWIN" != 1 -a "$TOOLKIT" != "MSW"; then | |
37692 | wxUSE_JOYSTICK=no | |
37693 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
37694 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
37695 | fi | |
a848cd7e | 37696 | fi |
a848cd7e | 37697 | |
4cb1d3da RN |
37698 | |
37699 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
37700 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
37701 | #define wxUSE_JOYSTICK 1 |
37702 | _ACEOF | |
37703 | ||
4cb1d3da RN |
37704 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
37705 | fi | |
a848cd7e SC |
37706 | fi |
37707 | fi | |
37708 | ||
37709 | ||
37710 | ||
37711 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
37712 | cat >>confdefs.h <<\_ACEOF | |
37713 | #define wxUSE_FONTMAP 1 | |
37714 | _ACEOF | |
37715 | ||
37716 | fi | |
37717 | ||
37718 | if test "$wxUSE_UNICODE" = "yes" ; then | |
37719 | cat >>confdefs.h <<\_ACEOF | |
37720 | #define wxUSE_UNICODE 1 | |
37721 | _ACEOF | |
37722 | ||
37723 | ||
37724 | if test "$USE_WIN32" != 1; then | |
37725 | wxUSE_UNICODE_MSLU=no | |
37726 | fi | |
37727 | ||
37728 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
37729 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
37730 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
37731 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
37732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37733 | else | |
37734 | ac_check_lib_save_LIBS=$LIBS | |
37735 | LIBS="-lunicows $LIBS" | |
37736 | cat >conftest.$ac_ext <<_ACEOF | |
37737 | /* confdefs.h. */ | |
37738 | _ACEOF | |
37739 | cat confdefs.h >>conftest.$ac_ext | |
37740 | cat >>conftest.$ac_ext <<_ACEOF | |
37741 | /* end confdefs.h. */ | |
37742 | ||
37743 | ||
37744 | int | |
37745 | main () | |
37746 | { | |
37747 | main (); | |
37748 | ; | |
37749 | return 0; | |
37750 | } | |
37751 | _ACEOF | |
37752 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37753 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37754 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37755 | ac_status=$? |
ac1cb8d3 VS |
37756 | grep -v '^ *+' conftest.er1 >conftest.err |
37757 | rm -f conftest.er1 | |
37758 | cat conftest.err >&5 | |
a848cd7e SC |
37759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37760 | (exit $ac_status); } && | |
89be85c2 VS |
37761 | { ac_try='test -z "$ac_c_werror_flag" |
37762 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37764 | (eval $ac_try) 2>&5 | |
37765 | ac_status=$? | |
37766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37767 | (exit $ac_status); }; } && | |
37768 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37770 | (eval $ac_try) 2>&5 | |
37771 | ac_status=$? | |
37772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37773 | (exit $ac_status); }; }; then | |
37774 | ac_cv_lib_unicows_main=yes | |
37775 | else | |
37776 | echo "$as_me: failed program was:" >&5 | |
37777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37778 | ||
37779 | ac_cv_lib_unicows_main=no | |
37780 | fi | |
ac1cb8d3 VS |
37781 | rm -f conftest.err conftest.$ac_objext \ |
37782 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37783 | LIBS=$ac_check_lib_save_LIBS |
37784 | fi | |
37785 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
37786 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
37787 | if test $ac_cv_lib_unicows_main = yes; then | |
37788 | ||
37789 | cat >>confdefs.h <<\_ACEOF | |
37790 | #define wxUSE_UNICODE_MSLU 1 | |
37791 | _ACEOF | |
37792 | ||
37793 | ||
37794 | else | |
37795 | ||
37796 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
37797 | Applications will only run on Windows NT/2000/XP!" >&5 | |
37798 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
37799 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
37800 | wxUSE_UNICODE_MSLU=no | |
37801 | ||
37802 | fi | |
37803 | ||
37804 | fi | |
37805 | fi | |
37806 | ||
37807 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
37808 | cat >>confdefs.h <<\_ACEOF | |
37809 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
37810 | _ACEOF | |
37811 | ||
37812 | fi | |
37813 | ||
37814 | ||
37815 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
37816 | cat >>confdefs.h <<\_ACEOF | |
37817 | #define wxUSE_POSTSCRIPT 1 | |
37818 | _ACEOF | |
37819 | ||
37820 | fi | |
37821 | ||
37822 | cat >>confdefs.h <<\_ACEOF | |
37823 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
37824 | _ACEOF | |
37825 | ||
37826 | ||
37827 | cat >>confdefs.h <<\_ACEOF | |
37828 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
37829 | _ACEOF | |
37830 | ||
37831 | ||
37832 | ||
37833 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
37834 | cat >>confdefs.h <<\_ACEOF | |
37835 | #define wxUSE_CONSTRAINTS 1 | |
37836 | _ACEOF | |
37837 | ||
37838 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
37839 | fi | |
37840 | ||
8a7b1113 VZ |
37841 | if test "$wxUSE_MDI" = "yes"; then |
37842 | cat >>confdefs.h <<\_ACEOF | |
37843 | #define wxUSE_MDI 1 | |
37844 | _ACEOF | |
37845 | ||
37846 | ||
37847 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
37848 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
37849 | #define wxUSE_MDI_ARCHITECTURE 1 |
37850 | _ACEOF | |
37851 | ||
8a7b1113 VZ |
37852 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
37853 | fi | |
a848cd7e SC |
37854 | fi |
37855 | ||
37856 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
37857 | cat >>confdefs.h <<\_ACEOF | |
37858 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
37859 | _ACEOF | |
37860 | ||
37861 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
37862 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
37863 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
37864 | fi | |
37865 | fi | |
37866 | ||
37867 | if test "$wxUSE_HELP" = "yes"; then | |
37868 | cat >>confdefs.h <<\_ACEOF | |
37869 | #define wxUSE_HELP 1 | |
37870 | _ACEOF | |
37871 | ||
37872 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
37873 | ||
37874 | if test "$wxUSE_MSW" = 1; then | |
37875 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
37876 | cat >>confdefs.h <<\_ACEOF | |
37877 | #define wxUSE_MS_HTML_HELP 1 | |
37878 | _ACEOF | |
37879 | ||
37880 | fi | |
37881 | fi | |
37882 | ||
37883 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
37884 | if test "$wxUSE_HTML" = "yes"; then | |
37885 | cat >>confdefs.h <<\_ACEOF | |
37886 | #define wxUSE_WXHTML_HELP 1 | |
37887 | _ACEOF | |
37888 | ||
37889 | else | |
37890 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
37891 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
37892 | wxUSE_WXHTML_HELP=no | |
37893 | fi | |
37894 | fi | |
37895 | fi | |
37896 | ||
37897 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
37898 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
37899 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
37900 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
37901 | else | |
37902 | cat >>confdefs.h <<\_ACEOF | |
37903 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
37904 | _ACEOF | |
37905 | ||
37906 | fi | |
37907 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
37908 | fi | |
37909 | ||
37910 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
37911 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
37912 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
37913 | { (exit 1); exit 1; }; } | |
37914 | fi | |
37915 | ||
37916 | ||
37917 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
37918 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
37919 | -o "$wxUSE_OLE" = "yes" \ | |
37920 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
37921 | ||
37922 | for ac_header in ole2.h | |
37923 | do | |
37924 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
37925 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37926 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37927 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37928 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37930 | fi | |
37931 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37932 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37933 | else | |
37934 | # Is the header compilable? | |
37935 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
37936 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
37937 | cat >conftest.$ac_ext <<_ACEOF | |
37938 | /* confdefs.h. */ | |
37939 | _ACEOF | |
37940 | cat confdefs.h >>conftest.$ac_ext | |
37941 | cat >>conftest.$ac_ext <<_ACEOF | |
37942 | /* end confdefs.h. */ | |
37943 | $ac_includes_default | |
37944 | #include <$ac_header> | |
37945 | _ACEOF | |
37946 | rm -f conftest.$ac_objext | |
37947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37948 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37949 | ac_status=$? |
ac1cb8d3 VS |
37950 | grep -v '^ *+' conftest.er1 >conftest.err |
37951 | rm -f conftest.er1 | |
37952 | cat conftest.err >&5 | |
a848cd7e SC |
37953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37954 | (exit $ac_status); } && | |
89be85c2 VS |
37955 | { ac_try='test -z "$ac_c_werror_flag" |
37956 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37958 | (eval $ac_try) 2>&5 | |
37959 | ac_status=$? | |
37960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37961 | (exit $ac_status); }; } && | |
37962 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37964 | (eval $ac_try) 2>&5 | |
37965 | ac_status=$? | |
37966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37967 | (exit $ac_status); }; }; then | |
37968 | ac_header_compiler=yes | |
37969 | else | |
37970 | echo "$as_me: failed program was:" >&5 | |
37971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37972 | ||
37973 | ac_header_compiler=no | |
37974 | fi | |
ac1cb8d3 | 37975 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37976 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
37977 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
37978 | ||
37979 | # Is the header present? | |
37980 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
37981 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
37982 | cat >conftest.$ac_ext <<_ACEOF | |
37983 | /* confdefs.h. */ | |
37984 | _ACEOF | |
37985 | cat confdefs.h >>conftest.$ac_ext | |
37986 | cat >>conftest.$ac_ext <<_ACEOF | |
37987 | /* end confdefs.h. */ | |
37988 | #include <$ac_header> | |
37989 | _ACEOF | |
37990 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
37991 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
37992 | ac_status=$? | |
37993 | grep -v '^ *+' conftest.er1 >conftest.err | |
37994 | rm -f conftest.er1 | |
37995 | cat conftest.err >&5 | |
37996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37997 | (exit $ac_status); } >/dev/null; then | |
37998 | if test -s conftest.err; then | |
37999 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 38000 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
38001 | else |
38002 | ac_cpp_err= | |
38003 | fi | |
38004 | else | |
38005 | ac_cpp_err=yes | |
38006 | fi | |
38007 | if test -z "$ac_cpp_err"; then | |
38008 | ac_header_preproc=yes | |
38009 | else | |
38010 | echo "$as_me: failed program was:" >&5 | |
38011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38012 | ||
38013 | ac_header_preproc=no | |
38014 | fi | |
38015 | rm -f conftest.err conftest.$ac_ext | |
38016 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
38017 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
38018 | ||
38019 | # So? What about this header? | |
ac1cb8d3 VS |
38020 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
38021 | yes:no: ) | |
a848cd7e SC |
38022 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
38023 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
38024 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
38025 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
38026 | ac_header_preproc=yes | |
a848cd7e | 38027 | ;; |
ac1cb8d3 | 38028 | no:yes:* ) |
a848cd7e SC |
38029 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
38030 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
38031 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
38032 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
38033 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
38034 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
38035 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
38036 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
38037 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
38038 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
38039 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
38040 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
38041 | ( |
38042 | cat <<\_ASBOX | |
ac1cb8d3 VS |
38043 | ## ----------------------------------------- ## |
38044 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
38045 | ## ----------------------------------------- ## | |
a848cd7e SC |
38046 | _ASBOX |
38047 | ) | | |
38048 | sed "s/^/$as_me: WARNING: /" >&2 | |
38049 | ;; | |
38050 | esac | |
38051 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
38052 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
38053 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38055 | else | |
ac1cb8d3 | 38056 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
38057 | fi |
38058 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
38059 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
38060 | ||
38061 | fi | |
38062 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
38063 | cat >>confdefs.h <<_ACEOF | |
38064 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
38065 | _ACEOF | |
38066 | ||
38067 | fi | |
38068 | ||
38069 | done | |
38070 | ||
38071 | ||
38072 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
38073 | if test "$GCC" = yes ; then | |
38074 | ||
38075 | ||
38076 | ac_ext=cc | |
38077 | ac_cpp='$CXXCPP $CPPFLAGS' | |
38078 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
38079 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
38080 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
38081 | ||
38082 | ||
38083 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
38084 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
38085 | cat >conftest.$ac_ext <<_ACEOF | |
38086 | /* confdefs.h. */ | |
38087 | _ACEOF | |
38088 | cat confdefs.h >>conftest.$ac_ext | |
38089 | cat >>conftest.$ac_ext <<_ACEOF | |
38090 | /* end confdefs.h. */ | |
38091 | #include <windows.h> | |
38092 | #include <ole2.h> | |
38093 | int | |
38094 | main () | |
38095 | { | |
38096 | ||
38097 | ; | |
38098 | return 0; | |
38099 | } | |
38100 | _ACEOF | |
38101 | rm -f conftest.$ac_objext | |
38102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38103 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38104 | ac_status=$? |
ac1cb8d3 VS |
38105 | grep -v '^ *+' conftest.er1 >conftest.err |
38106 | rm -f conftest.er1 | |
38107 | cat conftest.err >&5 | |
a848cd7e SC |
38108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38109 | (exit $ac_status); } && | |
89be85c2 VS |
38110 | { ac_try='test -z "$ac_cxx_werror_flag" |
38111 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38113 | (eval $ac_try) 2>&5 | |
38114 | ac_status=$? | |
38115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38116 | (exit $ac_status); }; } && | |
38117 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38119 | (eval $ac_try) 2>&5 | |
38120 | ac_status=$? | |
38121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38122 | (exit $ac_status); }; }; then | |
38123 | echo "$as_me:$LINENO: result: no" >&5 | |
38124 | echo "${ECHO_T}no" >&6 | |
38125 | else | |
38126 | echo "$as_me: failed program was:" >&5 | |
38127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38128 | ||
38129 | echo "$as_me:$LINENO: result: yes" >&5 | |
38130 | echo "${ECHO_T}yes" >&6 | |
38131 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
38132 | fi | |
ac1cb8d3 | 38133 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38134 | ac_ext=c |
38135 | ac_cpp='$CPP $CPPFLAGS' | |
38136 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
38137 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
38138 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
38139 | ||
a848cd7e SC |
38140 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
38141 | if test "$wxUSE_OLE" = "yes" ; then | |
38142 | cat >>confdefs.h <<\_ACEOF | |
38143 | #define wxUSE_OLE 1 | |
38144 | _ACEOF | |
38145 | ||
38146 | fi | |
38147 | fi | |
38148 | ||
38149 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
38150 | cat >>confdefs.h <<\_ACEOF | |
38151 | #define wxUSE_DATAOBJ 1 | |
38152 | _ACEOF | |
38153 | ||
38154 | fi | |
38155 | else | |
38156 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
38157 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
38158 | ||
38159 | wxUSE_CLIPBOARD=no | |
38160 | wxUSE_DRAG_AND_DROP=no | |
38161 | wxUSE_DATAOBJ=no | |
38162 | wxUSE_OLE=no | |
38163 | fi | |
38164 | ||
38165 | if test "$wxUSE_METAFILE" = "yes"; then | |
38166 | cat >>confdefs.h <<\_ACEOF | |
38167 | #define wxUSE_METAFILE 1 | |
38168 | _ACEOF | |
38169 | ||
38170 | ||
38171 | cat >>confdefs.h <<\_ACEOF | |
38172 | #define wxUSE_ENH_METAFILE 1 | |
38173 | _ACEOF | |
38174 | ||
38175 | fi | |
38176 | fi | |
38177 | ||
38178 | if test "$wxUSE_IPC" = "yes"; then | |
38179 | if test "$wxUSE_SOCKETS" != "yes"; then | |
77ffb593 JS |
38180 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
38181 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
a848cd7e SC |
38182 | fi |
38183 | ||
38184 | cat >>confdefs.h <<\_ACEOF | |
38185 | #define wxUSE_IPC 1 | |
38186 | _ACEOF | |
38187 | ||
38188 | fi | |
38189 | ||
38190 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
38191 | if test "$wxUSE_MGL" = 1; then | |
38192 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
38193 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
38194 | wxUSE_CLIPBOARD=no | |
38195 | fi | |
38196 | ||
38197 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
38198 | cat >>confdefs.h <<\_ACEOF | |
38199 | #define wxUSE_CLIPBOARD 1 | |
38200 | _ACEOF | |
38201 | ||
38202 | ||
38203 | cat >>confdefs.h <<\_ACEOF | |
38204 | #define wxUSE_DATAOBJ 1 | |
38205 | _ACEOF | |
38206 | ||
38207 | fi | |
38208 | fi | |
38209 | ||
38210 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
38211 | if test "$wxUSE_GTK" = 1; then | |
38212 | if test "$WXGTK12" != 1; then | |
38213 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
38214 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
38215 | wxUSE_DRAG_AND_DROP=no | |
38216 | fi | |
38217 | fi | |
38218 | ||
38219 | if test "$wxUSE_MOTIF" = 1; then | |
38220 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
38221 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
38222 | wxUSE_DRAG_AND_DROP=no | |
38223 | fi | |
38224 | ||
38225 | if test "$wxUSE_X11" = 1; then | |
38226 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
38227 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
38228 | wxUSE_DRAG_AND_DROP=no | |
38229 | fi | |
38230 | ||
38231 | if test "$wxUSE_MGL" = 1; then | |
38232 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
38233 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
38234 | wxUSE_DRAG_AND_DROP=no | |
38235 | fi | |
38236 | ||
38237 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
38238 | cat >>confdefs.h <<\_ACEOF | |
38239 | #define wxUSE_DRAG_AND_DROP 1 | |
38240 | _ACEOF | |
38241 | ||
38242 | fi | |
38243 | ||
38244 | fi | |
38245 | ||
38246 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
38247 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
38248 | fi | |
38249 | ||
38250 | if test "$wxUSE_SPLINES" = "yes" ; then | |
38251 | cat >>confdefs.h <<\_ACEOF | |
38252 | #define wxUSE_SPLINES 1 | |
38253 | _ACEOF | |
38254 | ||
38255 | fi | |
38256 | ||
38257 | ||
38258 | USES_CONTROLS=0 | |
38259 | if test "$wxUSE_CONTROLS" = "yes"; then | |
38260 | USES_CONTROLS=1 | |
38261 | fi | |
38262 | ||
38263 | if test "$wxUSE_ACCEL" = "yes"; then | |
38264 | cat >>confdefs.h <<\_ACEOF | |
38265 | #define wxUSE_ACCEL 1 | |
38266 | _ACEOF | |
38267 | ||
38268 | USES_CONTROLS=1 | |
38269 | fi | |
38270 | ||
38271 | if test "$wxUSE_BUTTON" = "yes"; then | |
38272 | cat >>confdefs.h <<\_ACEOF | |
38273 | #define wxUSE_BUTTON 1 | |
38274 | _ACEOF | |
38275 | ||
38276 | USES_CONTROLS=1 | |
38277 | fi | |
38278 | ||
38279 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
38280 | cat >>confdefs.h <<\_ACEOF | |
38281 | #define wxUSE_BMPBUTTON 1 | |
38282 | _ACEOF | |
38283 | ||
38284 | USES_CONTROLS=1 | |
38285 | fi | |
38286 | ||
38287 | if test "$wxUSE_CALCTRL" = "yes"; then | |
38288 | cat >>confdefs.h <<\_ACEOF | |
38289 | #define wxUSE_CALENDARCTRL 1 | |
38290 | _ACEOF | |
38291 | ||
38292 | USES_CONTROLS=1 | |
38293 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
38294 | fi | |
38295 | ||
38296 | if test "$wxUSE_CARET" = "yes"; then | |
38297 | cat >>confdefs.h <<\_ACEOF | |
38298 | #define wxUSE_CARET 1 | |
38299 | _ACEOF | |
38300 | ||
38301 | USES_CONTROLS=1 | |
38302 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
38303 | fi | |
38304 | ||
38305 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
38306 | cat >>confdefs.h <<\_ACEOF | |
38307 | #define wxUSE_COMBOBOX 1 | |
38308 | _ACEOF | |
38309 | ||
38310 | USES_CONTROLS=1 | |
38311 | fi | |
38312 | ||
38313 | if test "$wxUSE_CHOICE" = "yes"; then | |
38314 | cat >>confdefs.h <<\_ACEOF | |
38315 | #define wxUSE_CHOICE 1 | |
38316 | _ACEOF | |
38317 | ||
38318 | USES_CONTROLS=1 | |
38319 | fi | |
38320 | ||
92bbdbcd WS |
38321 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
38322 | cat >>confdefs.h <<\_ACEOF | |
38323 | #define wxUSE_CHOICEBOOK 1 | |
38324 | _ACEOF | |
38325 | ||
38326 | USES_CONTROLS=1 | |
38327 | fi | |
38328 | ||
a848cd7e SC |
38329 | if test "$wxUSE_CHECKBOX" = "yes"; then |
38330 | cat >>confdefs.h <<\_ACEOF | |
38331 | #define wxUSE_CHECKBOX 1 | |
38332 | _ACEOF | |
38333 | ||
38334 | USES_CONTROLS=1 | |
38335 | fi | |
38336 | ||
38337 | if test "$wxUSE_CHECKLST" = "yes"; then | |
38338 | cat >>confdefs.h <<\_ACEOF | |
38339 | #define wxUSE_CHECKLISTBOX 1 | |
38340 | _ACEOF | |
38341 | ||
38342 | USES_CONTROLS=1 | |
38343 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
38344 | fi | |
38345 | ||
da98e9be VZ |
38346 | if test "$wxUSE_DATEPICKCTRL" = "yes"; then |
38347 | cat >>confdefs.h <<\_ACEOF | |
38348 | #define wxUSE_DATEPICKCTRL 1 | |
38349 | _ACEOF | |
38350 | ||
38351 | USES_CONTROLS=1 | |
38352 | fi | |
38353 | ||
a848cd7e SC |
38354 | if test "$wxUSE_DISPLAY" = "yes"; then |
38355 | cat >>confdefs.h <<\_ACEOF | |
38356 | #define wxUSE_DISPLAY 1 | |
38357 | _ACEOF | |
38358 | ||
38359 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
38360 | fi | |
38361 | ||
38362 | if test "$wxUSE_GAUGE" = "yes"; then | |
38363 | cat >>confdefs.h <<\_ACEOF | |
38364 | #define wxUSE_GAUGE 1 | |
38365 | _ACEOF | |
38366 | ||
38367 | USES_CONTROLS=1 | |
38368 | fi | |
38369 | ||
38370 | if test "$wxUSE_GRID" = "yes"; then | |
38371 | cat >>confdefs.h <<\_ACEOF | |
38372 | #define wxUSE_GRID 1 | |
38373 | _ACEOF | |
38374 | ||
38375 | USES_CONTROLS=1 | |
38376 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
38377 | fi | |
38378 | ||
38379 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
38380 | cat >>confdefs.h <<\_ACEOF | |
38381 | #define wxUSE_IMAGLIST 1 | |
38382 | _ACEOF | |
38383 | ||
38384 | fi | |
38385 | ||
38386 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
38387 | cat >>confdefs.h <<\_ACEOF | |
38388 | #define wxUSE_LISTBOOK 1 | |
38389 | _ACEOF | |
38390 | ||
38391 | USES_CONTROLS=1 | |
38392 | fi | |
38393 | ||
38394 | if test "$wxUSE_LISTBOX" = "yes"; then | |
38395 | cat >>confdefs.h <<\_ACEOF | |
38396 | #define wxUSE_LISTBOX 1 | |
38397 | _ACEOF | |
38398 | ||
38399 | USES_CONTROLS=1 | |
38400 | fi | |
38401 | ||
38402 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
38403 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
38404 | cat >>confdefs.h <<\_ACEOF | |
38405 | #define wxUSE_LISTCTRL 1 | |
38406 | _ACEOF | |
38407 | ||
38408 | USES_CONTROLS=1 | |
38409 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
38410 | else | |
38411 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
38412 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
38413 | fi | |
38414 | fi | |
38415 | ||
38416 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
38417 | cat >>confdefs.h <<\_ACEOF | |
38418 | #define wxUSE_NOTEBOOK 1 | |
38419 | _ACEOF | |
38420 | ||
38421 | USES_CONTROLS=1 | |
38422 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
38423 | fi | |
38424 | ||
38425 | ||
38426 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
38427 | cat >>confdefs.h <<\_ACEOF | |
38428 | #define wxUSE_RADIOBOX 1 | |
38429 | _ACEOF | |
38430 | ||
38431 | USES_CONTROLS=1 | |
38432 | fi | |
38433 | ||
38434 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
38435 | cat >>confdefs.h <<\_ACEOF | |
38436 | #define wxUSE_RADIOBTN 1 | |
38437 | _ACEOF | |
38438 | ||
38439 | USES_CONTROLS=1 | |
38440 | fi | |
38441 | ||
38442 | if test "$wxUSE_SASH" = "yes"; then | |
38443 | cat >>confdefs.h <<\_ACEOF | |
38444 | #define wxUSE_SASH 1 | |
38445 | _ACEOF | |
38446 | ||
38447 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
38448 | fi | |
38449 | ||
38450 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
38451 | cat >>confdefs.h <<\_ACEOF | |
38452 | #define wxUSE_SCROLLBAR 1 | |
38453 | _ACEOF | |
38454 | ||
38455 | USES_CONTROLS=1 | |
38456 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
38457 | fi | |
38458 | ||
38459 | if test "$wxUSE_SLIDER" = "yes"; then | |
38460 | cat >>confdefs.h <<\_ACEOF | |
38461 | #define wxUSE_SLIDER 1 | |
38462 | _ACEOF | |
38463 | ||
38464 | USES_CONTROLS=1 | |
38465 | fi | |
38466 | ||
38467 | if test "$wxUSE_SPINBTN" = "yes"; then | |
38468 | cat >>confdefs.h <<\_ACEOF | |
38469 | #define wxUSE_SPINBTN 1 | |
38470 | _ACEOF | |
38471 | ||
38472 | USES_CONTROLS=1 | |
38473 | fi | |
38474 | ||
38475 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
38476 | cat >>confdefs.h <<\_ACEOF | |
38477 | #define wxUSE_SPINCTRL 1 | |
38478 | _ACEOF | |
38479 | ||
38480 | USES_CONTROLS=1 | |
38481 | fi | |
38482 | ||
38483 | if test "$wxUSE_SPLITTER" = "yes"; then | |
38484 | cat >>confdefs.h <<\_ACEOF | |
38485 | #define wxUSE_SPLITTER 1 | |
38486 | _ACEOF | |
38487 | ||
38488 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
38489 | fi | |
38490 | ||
38491 | if test "$wxUSE_STATBMP" = "yes"; then | |
38492 | cat >>confdefs.h <<\_ACEOF | |
38493 | #define wxUSE_STATBMP 1 | |
38494 | _ACEOF | |
38495 | ||
38496 | USES_CONTROLS=1 | |
38497 | fi | |
38498 | ||
38499 | if test "$wxUSE_STATBOX" = "yes"; then | |
38500 | cat >>confdefs.h <<\_ACEOF | |
38501 | #define wxUSE_STATBOX 1 | |
38502 | _ACEOF | |
38503 | ||
38504 | USES_CONTROLS=1 | |
38505 | fi | |
38506 | ||
38507 | if test "$wxUSE_STATTEXT" = "yes"; then | |
38508 | cat >>confdefs.h <<\_ACEOF | |
38509 | #define wxUSE_STATTEXT 1 | |
38510 | _ACEOF | |
38511 | ||
38512 | USES_CONTROLS=1 | |
38513 | fi | |
38514 | ||
38515 | if test "$wxUSE_STATLINE" = "yes"; then | |
38516 | cat >>confdefs.h <<\_ACEOF | |
38517 | #define wxUSE_STATLINE 1 | |
38518 | _ACEOF | |
38519 | ||
38520 | USES_CONTROLS=1 | |
38521 | fi | |
38522 | ||
38523 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
da4486fb VZ |
38524 | cat >>confdefs.h <<\_ACEOF |
38525 | #define wxUSE_NATIVE_STATUSBAR 1 | |
38526 | _ACEOF | |
38527 | ||
a848cd7e SC |
38528 | cat >>confdefs.h <<\_ACEOF |
38529 | #define wxUSE_STATUSBAR 1 | |
38530 | _ACEOF | |
38531 | ||
38532 | USES_CONTROLS=1 | |
38533 | ||
38534 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
38535 | fi | |
38536 | ||
38537 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
38538 | cat >>confdefs.h <<\_ACEOF | |
38539 | #define wxUSE_TAB_DIALOG 1 | |
38540 | _ACEOF | |
38541 | ||
a848cd7e SC |
38542 | fi |
38543 | ||
38544 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
38545 | cat >>confdefs.h <<\_ACEOF | |
38546 | #define wxUSE_TEXTCTRL 1 | |
38547 | _ACEOF | |
38548 | ||
38549 | USES_CONTROLS=1 | |
38550 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
38551 | fi | |
38552 | ||
38553 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
38554 | if test "$wxUSE_COCOA" = 1 ; then | |
38555 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
38556 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
38557 | wxUSE_TOGGLEBTN=no | |
bdcade0a MB |
38558 | else |
38559 | if test "$wxUSE_PM" = 1; then | |
38560 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5 | |
38561 | echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;} | |
38562 | wxUSE_TOGGLEBTN=no | |
38563 | fi | |
a848cd7e SC |
38564 | fi |
38565 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
38566 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
38567 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
38568 | wxUSE_TOGGLEBTN=no | |
38569 | fi | |
38570 | ||
38571 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
38572 | cat >>confdefs.h <<\_ACEOF | |
38573 | #define wxUSE_TOGGLEBTN 1 | |
38574 | _ACEOF | |
38575 | ||
38576 | USES_CONTROLS=1 | |
38577 | fi | |
38578 | fi | |
38579 | ||
38580 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
38581 | cat >>confdefs.h <<\_ACEOF | |
38582 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
38583 | _ACEOF | |
38584 | ||
38585 | wxUSE_TOOLBAR="yes" | |
38586 | USES_CONTROLS=1 | |
38587 | fi | |
38588 | ||
38589 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
38590 | cat >>confdefs.h <<\_ACEOF | |
38591 | #define wxUSE_TOOLBAR 1 | |
38592 | _ACEOF | |
38593 | ||
38594 | USES_CONTROLS=1 | |
38595 | ||
38596 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
38597 | wxUSE_TOOLBAR_NATIVE="yes" | |
38598 | fi | |
38599 | ||
38600 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
38601 | cat >>confdefs.h <<\_ACEOF | |
38602 | #define wxUSE_TOOLBAR_NATIVE 1 | |
38603 | _ACEOF | |
38604 | ||
38605 | USES_CONTROLS=1 | |
38606 | fi | |
38607 | ||
38608 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
38609 | fi | |
38610 | ||
38611 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
38612 | if test "$wxUSE_MOTIF" = 1; then | |
38613 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
38614 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
38615 | else | |
38616 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
38617 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
38618 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
38619 | else | |
38620 | cat >>confdefs.h <<\_ACEOF | |
38621 | #define wxUSE_TOOLTIPS 1 | |
38622 | _ACEOF | |
38623 | ||
38624 | fi | |
38625 | fi | |
38626 | fi | |
38627 | ||
38628 | if test "$wxUSE_TREECTRL" = "yes"; then | |
38629 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
38630 | cat >>confdefs.h <<\_ACEOF | |
38631 | #define wxUSE_TREECTRL 1 | |
38632 | _ACEOF | |
38633 | ||
38634 | USES_CONTROLS=1 | |
38635 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
38636 | else | |
38637 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
38638 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
38639 | fi | |
38640 | fi | |
38641 | ||
38642 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
38643 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
38644 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
38645 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
38646 | else | |
38647 | if test "$wxUSE_PM" = 1; then | |
38648 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
38649 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
38650 | else | |
38651 | cat >>confdefs.h <<\_ACEOF | |
38652 | #define wxUSE_POPUPWIN 1 | |
38653 | _ACEOF | |
38654 | ||
38655 | ||
38656 | USES_CONTROLS=1 | |
38657 | fi | |
38658 | fi | |
38659 | fi | |
38660 | ||
0dcd06dd | 38661 | if test "$wxUSE_DIALUP_MANAGER" = "yes"; then |
b843b628 MB |
38662 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
38663 | { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5 | |
38664 | echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;} | |
38665 | else | |
38666 | cat >>confdefs.h <<\_ACEOF | |
38667 | #define wxUSE_DIALUP_MANAGER 1 | |
38668 | _ACEOF | |
38669 | ||
38670 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
38671 | fi | |
38672 | fi | |
38673 | ||
a848cd7e SC |
38674 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
38675 | if test "$wxUSE_PM" = 1; then | |
38676 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
38677 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
38678 | else | |
38679 | cat >>confdefs.h <<\_ACEOF | |
38680 | #define wxUSE_TIPWINDOW 1 | |
38681 | _ACEOF | |
38682 | ||
38683 | fi | |
38684 | fi | |
38685 | ||
38686 | if test "$USES_CONTROLS" = 1; then | |
38687 | cat >>confdefs.h <<\_ACEOF | |
38688 | #define wxUSE_CONTROLS 1 | |
38689 | _ACEOF | |
38690 | ||
38691 | fi | |
38692 | ||
38693 | ||
38694 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
38695 | cat >>confdefs.h <<\_ACEOF | |
38696 | #define wxUSE_ACCESSIBILITY 1 | |
38697 | _ACEOF | |
38698 | ||
38699 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
38700 | fi | |
38701 | ||
38702 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
38703 | cat >>confdefs.h <<\_ACEOF | |
38704 | #define wxUSE_DRAGIMAGE 1 | |
38705 | _ACEOF | |
38706 | ||
38707 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
38708 | fi | |
38709 | ||
38710 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
38711 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
38712 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
38713 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
38714 | else | |
38715 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
38716 | #define wxUSE_EXCEPTIONS 1 |
38717 | _ACEOF | |
38718 | ||
07bea8f0 VS |
38719 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
38720 | fi | |
a848cd7e SC |
38721 | fi |
38722 | ||
38723 | USE_HTML=0 | |
38724 | if test "$wxUSE_HTML" = "yes"; then | |
38725 | cat >>confdefs.h <<\_ACEOF | |
38726 | #define wxUSE_HTML 1 | |
38727 | _ACEOF | |
38728 | ||
38729 | USE_HTML=1 | |
38730 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
38731 | if test "$wxUSE_MAC" = 1; then |
38732 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
38733 | fi | |
a848cd7e | 38734 | fi |
646b6ec1 | 38735 | if test "$wxUSE_WEBKIT" = "yes"; then |
1e9e8aba | 38736 | if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
07bea8f0 VS |
38737 | old_CPPFLAGS="$CPPFLAGS" |
38738 | CPPFLAGS="$CPPFLAGS -x objective-c++" | |
38739 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 | |
38740 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
38741 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
38742 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38743 | else | |
38744 | cat >conftest.$ac_ext <<_ACEOF | |
38745 | /* confdefs.h. */ | |
38746 | _ACEOF | |
38747 | cat confdefs.h >>conftest.$ac_ext | |
38748 | cat >>conftest.$ac_ext <<_ACEOF | |
38749 | /* end confdefs.h. */ | |
38750 | #include <Carbon/Carbon.h> | |
38751 | ||
38752 | #include <WebKit/HIWebView.h> | |
38753 | _ACEOF | |
38754 | rm -f conftest.$ac_objext | |
38755 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38756 | (eval $ac_compile) 2>conftest.er1 | |
38757 | ac_status=$? | |
38758 | grep -v '^ *+' conftest.er1 >conftest.err | |
38759 | rm -f conftest.er1 | |
38760 | cat conftest.err >&5 | |
38761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38762 | (exit $ac_status); } && | |
89be85c2 VS |
38763 | { ac_try='test -z "$ac_c_werror_flag" |
38764 | || test ! -s conftest.err' | |
07bea8f0 VS |
38765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38766 | (eval $ac_try) 2>&5 | |
38767 | ac_status=$? | |
38768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38769 | (exit $ac_status); }; } && | |
38770 | { ac_try='test -s conftest.$ac_objext' | |
38771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38772 | (eval $ac_try) 2>&5 | |
38773 | ac_status=$? | |
38774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38775 | (exit $ac_status); }; }; then | |
38776 | ac_cv_header_WebKit_HIWebView_h=yes | |
38777 | else | |
38778 | echo "$as_me: failed program was:" >&5 | |
38779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38780 | ||
38781 | ac_cv_header_WebKit_HIWebView_h=no | |
38782 | fi | |
38783 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38784 | fi | |
38785 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
38786 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
38787 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
38788 | ||
38789 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
38790 | #define wxUSE_WEBKIT 1 |
38791 | _ACEOF | |
38792 | ||
07bea8f0 VS |
38793 | WEBKIT_LINK="-framework WebKit" |
38794 | ||
38795 | else | |
38796 | ||
38797 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
38798 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
38799 | wxUSE_WEBKIT=no | |
38800 | ||
646b6ec1 VS |
38801 | fi |
38802 | ||
07bea8f0 VS |
38803 | |
38804 | CPPFLAGS="$old_CPPFLAGS" | |
38805 | elif test "$wxUSE_COCOA" = 1; then | |
38806 | cat >>confdefs.h <<\_ACEOF | |
38807 | #define wxUSE_WEBKIT 1 | |
38808 | _ACEOF | |
38809 | ||
38810 | else | |
38811 | wxUSE_WEBKIT=no | |
38812 | fi | |
38813 | fi | |
38814 | ||
9a8f0513 VS |
38815 | USE_XRC=0 |
38816 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
38817 | if test "$wxUSE_XML" != "yes"; then |
38818 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
38819 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
38820 | wxUSE_XRC=no | |
38821 | else | |
38822 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
38823 | #define wxUSE_XRC 1 |
38824 | _ACEOF | |
38825 | ||
d2ebf0b7 VS |
38826 | USE_XRC=1 |
38827 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
38828 | fi | |
9a8f0513 | 38829 | fi |
07bea8f0 | 38830 | |
a848cd7e SC |
38831 | if test "$wxUSE_MENUS" = "yes"; then |
38832 | cat >>confdefs.h <<\_ACEOF | |
38833 | #define wxUSE_MENUS 1 | |
38834 | _ACEOF | |
38835 | ||
38836 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
38837 | fi | |
38838 | ||
38839 | if test "$wxUSE_METAFILE" = "yes"; then | |
38840 | cat >>confdefs.h <<\_ACEOF | |
38841 | #define wxUSE_METAFILE 1 | |
38842 | _ACEOF | |
38843 | ||
38844 | fi | |
38845 | ||
38846 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
38847 | cat >>confdefs.h <<\_ACEOF | |
38848 | #define wxUSE_MIMETYPE 1 | |
38849 | _ACEOF | |
38850 | ||
38851 | fi | |
38852 | ||
38853 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
38854 | cat >>confdefs.h <<\_ACEOF | |
38855 | #define wxUSE_MINIFRAME 1 | |
38856 | _ACEOF | |
38857 | ||
38858 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
38859 | fi | |
38860 | ||
38861 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
38862 | cat >>confdefs.h <<\_ACEOF | |
38863 | #define wxUSE_SYSTEM_OPTIONS 1 | |
38864 | _ACEOF | |
38865 | ||
38866 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 38867 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
38868 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
38869 | fi | |
38870 | fi | |
38871 | ||
38872 | ||
38873 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
38874 | cat >>confdefs.h <<\_ACEOF | |
38875 | #define wxUSE_VALIDATORS 1 | |
38876 | _ACEOF | |
38877 | ||
38878 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
38879 | fi | |
38880 | ||
38881 | if test "$wxUSE_PALETTE" = "yes" ; then | |
38882 | cat >>confdefs.h <<\_ACEOF | |
38883 | #define wxUSE_PALETTE 1 | |
38884 | _ACEOF | |
38885 | ||
38886 | fi | |
38887 | ||
38888 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
38889 | LIBS=" -lunicows $LIBS" | |
38890 | fi | |
38891 | ||
38892 | ||
38893 | if test "$wxUSE_IMAGE" = "yes" ; then | |
38894 | cat >>confdefs.h <<\_ACEOF | |
38895 | #define wxUSE_IMAGE 1 | |
38896 | _ACEOF | |
38897 | ||
38898 | ||
38899 | if test "$wxUSE_GIF" = "yes" ; then | |
38900 | cat >>confdefs.h <<\_ACEOF | |
38901 | #define wxUSE_GIF 1 | |
38902 | _ACEOF | |
38903 | ||
38904 | fi | |
38905 | ||
38906 | if test "$wxUSE_PCX" = "yes" ; then | |
38907 | cat >>confdefs.h <<\_ACEOF | |
38908 | #define wxUSE_PCX 1 | |
38909 | _ACEOF | |
38910 | ||
38911 | fi | |
38912 | ||
38913 | if test "$wxUSE_IFF" = "yes" ; then | |
38914 | cat >>confdefs.h <<\_ACEOF | |
38915 | #define wxUSE_IFF 1 | |
38916 | _ACEOF | |
38917 | ||
38918 | fi | |
38919 | ||
38920 | if test "$wxUSE_PNM" = "yes" ; then | |
38921 | cat >>confdefs.h <<\_ACEOF | |
38922 | #define wxUSE_PNM 1 | |
38923 | _ACEOF | |
38924 | ||
38925 | fi | |
38926 | ||
38927 | if test "$wxUSE_XPM" = "yes" ; then | |
38928 | cat >>confdefs.h <<\_ACEOF | |
38929 | #define wxUSE_XPM 1 | |
38930 | _ACEOF | |
38931 | ||
38932 | fi | |
38933 | ||
38934 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
38935 | cat >>confdefs.h <<\_ACEOF | |
38936 | #define wxUSE_ICO_CUR 1 | |
38937 | _ACEOF | |
38938 | ||
38939 | fi | |
38940 | fi | |
38941 | ||
38942 | ||
38943 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
38944 | cat >>confdefs.h <<\_ACEOF | |
38945 | #define wxUSE_CHOICEDLG 1 | |
38946 | _ACEOF | |
38947 | ||
38948 | fi | |
38949 | ||
38950 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
38951 | cat >>confdefs.h <<\_ACEOF | |
38952 | #define wxUSE_COLOURDLG 1 | |
38953 | _ACEOF | |
38954 | ||
38955 | fi | |
38956 | ||
38957 | if test "$wxUSE_FILEDLG" = "yes"; then | |
38958 | cat >>confdefs.h <<\_ACEOF | |
38959 | #define wxUSE_FILEDLG 1 | |
38960 | _ACEOF | |
38961 | ||
38962 | fi | |
38963 | ||
38964 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
38965 | cat >>confdefs.h <<\_ACEOF | |
38966 | #define wxUSE_FINDREPLDLG 1 | |
38967 | _ACEOF | |
38968 | ||
38969 | fi | |
38970 | ||
38971 | if test "$wxUSE_FONTDLG" = "yes"; then | |
38972 | cat >>confdefs.h <<\_ACEOF | |
38973 | #define wxUSE_FONTDLG 1 | |
38974 | _ACEOF | |
38975 | ||
38976 | fi | |
38977 | ||
38978 | if test "$wxUSE_DIRDLG" = "yes"; then | |
38979 | if test "$wxUSE_TREECTRL" != "yes"; then | |
38980 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
38981 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
38982 | else | |
38983 | cat >>confdefs.h <<\_ACEOF | |
38984 | #define wxUSE_DIRDLG 1 | |
38985 | _ACEOF | |
38986 | ||
38987 | fi | |
38988 | fi | |
38989 | ||
38990 | if test "$wxUSE_MSGDLG" = "yes"; then | |
38991 | cat >>confdefs.h <<\_ACEOF | |
38992 | #define wxUSE_MSGDLG 1 | |
38993 | _ACEOF | |
38994 | ||
38995 | fi | |
38996 | ||
38997 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
38998 | cat >>confdefs.h <<\_ACEOF | |
38999 | #define wxUSE_NUMBERDLG 1 | |
39000 | _ACEOF | |
39001 | ||
39002 | fi | |
39003 | ||
39004 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
39005 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
39006 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
39007 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
39008 | else | |
39009 | cat >>confdefs.h <<\_ACEOF | |
39010 | #define wxUSE_PROGRESSDLG 1 | |
39011 | _ACEOF | |
39012 | ||
39013 | fi | |
39014 | fi | |
39015 | ||
39016 | if test "$wxUSE_SPLASH" = "yes"; then | |
39017 | cat >>confdefs.h <<\_ACEOF | |
39018 | #define wxUSE_SPLASH 1 | |
39019 | _ACEOF | |
39020 | ||
2057db16 | 39021 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
39022 | fi |
39023 | ||
39024 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
39025 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
39026 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
39027 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
39028 | else | |
39029 | cat >>confdefs.h <<\_ACEOF | |
39030 | #define wxUSE_STARTUP_TIPS 1 | |
39031 | _ACEOF | |
39032 | ||
39033 | fi | |
39034 | fi | |
39035 | ||
39036 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
39037 | cat >>confdefs.h <<\_ACEOF | |
39038 | #define wxUSE_TEXTDLG 1 | |
39039 | _ACEOF | |
39040 | ||
39041 | fi | |
39042 | ||
39043 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
39044 | cat >>confdefs.h <<\_ACEOF | |
39045 | #define wxUSE_WIZARDDLG 1 | |
39046 | _ACEOF | |
39047 | ||
39048 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
39049 | fi | |
39050 | ||
39051 | ||
ce756cb0 RN |
39052 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
39053 | if test "$wxUSE_MSW" = 1; then | |
39054 | wxUSE_DIRECTSHOW="yes" | |
39055 | ||
39056 | for ac_header in dshow.h | |
39057 | do | |
39058 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
39059 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
39060 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
39061 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
39062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39063 | else | |
39064 | cat >conftest.$ac_ext <<_ACEOF | |
39065 | /* confdefs.h. */ | |
39066 | _ACEOF | |
39067 | cat confdefs.h >>conftest.$ac_ext | |
39068 | cat >>conftest.$ac_ext <<_ACEOF | |
39069 | /* end confdefs.h. */ | |
39070 | #include <windows.h> | |
39071 | ||
39072 | #include <$ac_header> | |
39073 | _ACEOF | |
39074 | rm -f conftest.$ac_objext | |
39075 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39076 | (eval $ac_compile) 2>conftest.er1 | |
39077 | ac_status=$? | |
39078 | grep -v '^ *+' conftest.er1 >conftest.err | |
39079 | rm -f conftest.er1 | |
39080 | cat conftest.err >&5 | |
39081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39082 | (exit $ac_status); } && | |
39083 | { ac_try='test -z "$ac_c_werror_flag" | |
39084 | || test ! -s conftest.err' | |
39085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39086 | (eval $ac_try) 2>&5 | |
39087 | ac_status=$? | |
39088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39089 | (exit $ac_status); }; } && | |
39090 | { ac_try='test -s conftest.$ac_objext' | |
39091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39092 | (eval $ac_try) 2>&5 | |
39093 | ac_status=$? | |
39094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39095 | (exit $ac_status); }; }; then | |
39096 | eval "$as_ac_Header=yes" | |
39097 | else | |
39098 | echo "$as_me: failed program was:" >&5 | |
39099 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39100 | ||
39101 | eval "$as_ac_Header=no" | |
39102 | fi | |
39103 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39104 | fi | |
39105 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
39106 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
39107 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
39108 | cat >>confdefs.h <<_ACEOF | |
39109 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
39110 | _ACEOF | |
39111 | ||
39112 | else | |
39113 | ||
39114 | wxUSE_DIRECTSHOW="no" | |
39115 | { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5 | |
39116 | echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;} | |
39117 | ||
39118 | fi | |
39119 | ||
39120 | done | |
39121 | ||
39122 | ||
39123 | if test "$wxUSE_DIRECTSHOW" = "yes"; then | |
39124 | cat >>confdefs.h <<\_ACEOF | |
39125 | #define wxUSE_DIRECTSHOW 1 | |
39126 | _ACEOF | |
39127 | ||
39128 | LIBS="$LIBS -lstrmiids" | |
39129 | fi | |
39130 | fi | |
39131 | ||
39132 | if test "$wxUSE_GTK" = 1; then | |
39133 | wxUSE_GSTREAMER="yes" | |
39134 | ||
ce756cb0 | 39135 | |
dae87f93 | 39136 | succeeded=no |
ce756cb0 | 39137 | |
dae87f93 RN |
39138 | if test -z "$PKG_CONFIG"; then |
39139 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
39140 | set dummy pkg-config; ac_word=$2 | |
39141 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39142 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39143 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
39144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39145 | else | |
39146 | case $PKG_CONFIG in | |
39147 | [\\/]* | ?:[\\/]*) | |
39148 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
39149 | ;; | |
39150 | *) | |
39151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39152 | for as_dir in $PATH | |
39153 | do | |
39154 | IFS=$as_save_IFS | |
39155 | test -z "$as_dir" && as_dir=. | |
39156 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39157 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39158 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
39159 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39160 | break 2 | |
39161 | fi | |
39162 | done | |
39163 | done | |
39164 | ||
39165 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
39166 | ;; | |
39167 | esac | |
39168 | fi | |
39169 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
39170 | ||
39171 | if test -n "$PKG_CONFIG"; then | |
39172 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
39173 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
39174 | else | |
39175 | echo "$as_me:$LINENO: result: no" >&5 | |
39176 | echo "${ECHO_T}no" >&6 | |
39177 | fi | |
39178 | ||
39179 | fi | |
39180 | ||
39181 | if test "$PKG_CONFIG" = "no" ; then | |
39182 | echo "*** The pkg-config script could not be found. Make sure it is" | |
39183 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
39184 | echo "*** to the full path to pkg-config." | |
39185 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
39186 | else | |
39187 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
39188 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
39189 | echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5 | |
39190 | echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6 | |
39191 | ||
39192 | if $PKG_CONFIG --exists "gstreamer-0.8" ; then | |
39193 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 39194 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 39195 | succeeded=yes |
ce756cb0 | 39196 | |
dae87f93 RN |
39197 | echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5 |
39198 | echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6 | |
39199 | GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"` | |
39200 | echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5 | |
39201 | echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6 | |
39202 | ||
39203 | echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5 | |
39204 | echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6 | |
39205 | GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"` | |
39206 | echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5 | |
39207 | echo "${ECHO_T}$GSTREAMER_LIBS" >&6 | |
39208 | else | |
39209 | GSTREAMER_CFLAGS="" | |
39210 | GSTREAMER_LIBS="" | |
39211 | ## If we have a custom action on failure, don't print errors, but | |
39212 | ## do set a variable so people can do so. | |
39213 | GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"` | |
ce756cb0 | 39214 | |
dae87f93 RN |
39215 | fi |
39216 | ||
39217 | ||
39218 | ||
39219 | else | |
39220 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
39221 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
39222 | fi | |
39223 | fi | |
39224 | ||
39225 | if test $succeeded = yes; then | |
39226 | ||
39227 | CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS" | |
39228 | LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8" | |
ce756cb0 | 39229 | |
ce756cb0 | 39230 | else |
dae87f93 RN |
39231 | |
39232 | { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5 | |
39233 | echo "$as_me: WARNING: GStreamer installation not found" >&2;} | |
39234 | wxUSE_GSTREAMER="no" | |
39235 | ||
39236 | fi | |
39237 | ||
39238 | ||
39239 | ||
39240 | ||
39241 | ||
39242 | if test "x$GST_INSPECT" == "x"; then | |
39243 | # Extract the first word of "gst-inspect", so it can be a program name with args. | |
39244 | set dummy gst-inspect; ac_word=$2 | |
39245 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39246 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39247 | if test "${ac_cv_prog_GST_INSPECT+set}" = set; then | |
39248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39249 | else | |
39250 | if test -n "$GST_INSPECT"; then | |
39251 | ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test. | |
39252 | else | |
39253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39254 | for as_dir in $PATH | |
39255 | do | |
39256 | IFS=$as_save_IFS | |
39257 | test -z "$as_dir" && as_dir=. | |
39258 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39259 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39260 | ac_cv_prog_GST_INSPECT="gst-inspect" | |
39261 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39262 | break 2 | |
ce756cb0 | 39263 | fi |
dae87f93 RN |
39264 | done |
39265 | done | |
39266 | ||
39267 | fi | |
39268 | fi | |
39269 | GST_INSPECT=$ac_cv_prog_GST_INSPECT | |
39270 | if test -n "$GST_INSPECT"; then | |
39271 | echo "$as_me:$LINENO: result: $GST_INSPECT" >&5 | |
39272 | echo "${ECHO_T}$GST_INSPECT" >&6 | |
39273 | else | |
39274 | echo "$as_me:$LINENO: result: no" >&5 | |
39275 | echo "${ECHO_T}no" >&6 | |
39276 | fi | |
39277 | ||
39278 | fi | |
39279 | ||
39280 | if test "x$GST_INSPECT" != "x"; then | |
39281 | echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5 | |
39282 | echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6 | |
39283 | if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then | |
39284 | echo "$as_me:$LINENO: result: found." >&5 | |
39285 | echo "${ECHO_T}found." >&6 | |
ce756cb0 | 39286 | |
ce756cb0 | 39287 | else |
dae87f93 RN |
39288 | echo "$as_me:$LINENO: result: not found." >&5 |
39289 | echo "${ECHO_T}not found." >&6 | |
39290 | ||
39291 | wxUSE_GSTREAMER="no" | |
39292 | { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5 | |
39293 | echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;} | |
39294 | ||
39295 | fi | |
39296 | fi | |
39297 | ||
39298 | ||
39299 | echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5 | |
39300 | echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6 | |
39301 | if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then | |
39302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39303 | else | |
39304 | cat >conftest.$ac_ext <<_ACEOF | |
ce756cb0 RN |
39305 | /* confdefs.h. */ |
39306 | _ACEOF | |
39307 | cat confdefs.h >>conftest.$ac_ext | |
39308 | cat >>conftest.$ac_ext <<_ACEOF | |
39309 | /* end confdefs.h. */ | |
dae87f93 | 39310 | #include <gst/gst.h> |
ce756cb0 | 39311 | |
dae87f93 | 39312 | #include <gst/xoverlay/xoverlay.h> |
ce756cb0 RN |
39313 | _ACEOF |
39314 | rm -f conftest.$ac_objext | |
39315 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39316 | (eval $ac_compile) 2>conftest.er1 | |
39317 | ac_status=$? | |
39318 | grep -v '^ *+' conftest.er1 >conftest.err | |
39319 | rm -f conftest.er1 | |
39320 | cat conftest.err >&5 | |
39321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39322 | (exit $ac_status); } && | |
39323 | { ac_try='test -z "$ac_c_werror_flag" | |
39324 | || test ! -s conftest.err' | |
39325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39326 | (eval $ac_try) 2>&5 | |
39327 | ac_status=$? | |
39328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39329 | (exit $ac_status); }; } && | |
39330 | { ac_try='test -s conftest.$ac_objext' | |
39331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39332 | (eval $ac_try) 2>&5 | |
39333 | ac_status=$? | |
39334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39335 | (exit $ac_status); }; }; then | |
dae87f93 | 39336 | ac_cv_header_gst_xoverlay_xoverlay_h=yes |
ce756cb0 RN |
39337 | else |
39338 | echo "$as_me: failed program was:" >&5 | |
39339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39340 | ||
dae87f93 | 39341 | ac_cv_header_gst_xoverlay_xoverlay_h=no |
ce756cb0 RN |
39342 | fi |
39343 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
dae87f93 RN |
39344 | fi |
39345 | echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5 | |
39346 | echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6 | |
39347 | if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then | |
39348 | : | |
39349 | else | |
ce756cb0 | 39350 | |
dae87f93 RN |
39351 | wxUSE_GSTREAMER="no" |
39352 | { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5 | |
39353 | echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;} | |
ce756cb0 | 39354 | |
dae87f93 | 39355 | fi |
ce756cb0 | 39356 | |
dae87f93 RN |
39357 | |
39358 | ||
39359 | echo "$as_me:$LINENO: checking for gstplay 0.8" >&5 | |
ce756cb0 RN |
39360 | echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6 |
39361 | ||
39362 | ac_find_libraries= | |
39363 | for ac_dir in $SEARCH_LIB /usr/lib; | |
39364 | do | |
39365 | for ac_extension in a so sl dylib; do | |
39366 | if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then | |
39367 | ac_find_libraries=$ac_dir | |
39368 | break 2 | |
39369 | fi | |
39370 | done | |
39371 | done | |
39372 | ||
ce756cb0 | 39373 | |
dae87f93 RN |
39374 | if test "$ac_find_libraries" = "" ; then |
39375 | echo "$as_me:$LINENO: result: no" >&5 | |
39376 | echo "${ECHO_T}no" >&6 | |
39377 | wxUSE_GSTREAMER="no" | |
39378 | else | |
39379 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 39380 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 39381 | fi |
ce756cb0 | 39382 | |
dae87f93 RN |
39383 | if test "$wxUSE_GSTREAMER" = "yes"; then |
39384 | cat >>confdefs.h <<\_ACEOF | |
ce756cb0 RN |
39385 | #define wxUSE_GSTREAMER 1 |
39386 | _ACEOF | |
39387 | ||
dae87f93 RN |
39388 | echo "$as_me:$LINENO: result: GStreamer detection successful" >&5 |
39389 | echo "${ECHO_T}GStreamer detection successful" >&6 | |
ce756cb0 RN |
39390 | fi |
39391 | fi | |
39392 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" | |
39393 | cat >>confdefs.h <<\_ACEOF | |
39394 | #define wxUSE_MEDIACTRL 1 | |
39395 | _ACEOF | |
39396 | ||
39397 | fi | |
39398 | ||
39399 | ||
a848cd7e SC |
39400 | if test "$cross_compiling" = "yes"; then |
39401 | OSINFO="\"$host\"" | |
39402 | else | |
39403 | OSINFO=`uname -s -r -m` | |
39404 | OSINFO="\"$OSINFO\"" | |
39405 | fi | |
39406 | ||
39407 | cat >>confdefs.h <<_ACEOF | |
39408 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
39409 | _ACEOF | |
39410 | ||
39411 | ||
39412 | ||
39413 | if test "x$prefix" != "xNONE"; then | |
39414 | wxPREFIX=$prefix | |
39415 | else | |
39416 | wxPREFIX=$ac_default_prefix | |
39417 | fi | |
39418 | ||
39419 | cat >>confdefs.h <<_ACEOF | |
39420 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
39421 | _ACEOF | |
39422 | ||
39423 | ||
a848cd7e SC |
39424 | |
39425 | ||
39426 | CORE_BASE_LIBS="net base" | |
39427 | CORE_GUI_LIBS="adv core" | |
39428 | ||
39429 | if test "$wxUSE_XML" = "yes" ; then | |
39430 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
39431 | fi | |
39432 | if test "$wxUSE_ODBC" != "no" ; then | |
39433 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
39434 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
39435 | fi | |
39436 | if test "$wxUSE_HTML" = "yes" ; then | |
39437 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
39438 | fi | |
9a8f0513 VS |
39439 | if test "$wxUSE_XRC" = "yes" ; then |
39440 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
39441 | fi | |
a848cd7e SC |
39442 | |
39443 | if test "$wxUSE_GUI" != "yes"; then | |
39444 | CORE_GUI_LIBS="" | |
39445 | fi | |
39446 | ||
39447 | ||
39448 | ||
39449 | ||
39450 | ||
39451 | ||
39452 | ||
39453 | ||
39454 | if test "$wxUSE_MAC" = 1 ; then | |
a98bf0c0 | 39455 | if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then |
1e9e8aba DE |
39456 | if test "$USE_DARWIN" = 1; then |
39457 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
39458 | else | |
39459 | LDFLAGS="$LDFLAGS -lQuickTimeLib" | |
39460 | fi | |
07bea8f0 | 39461 | fi |
5dcf30a0 | 39462 | if test "$USE_DARWIN" = 1; then |
1e9e8aba DE |
39463 | LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System" |
39464 | else | |
39465 | LDFLAGS="$LDFLAGS -lCarbonLib" | |
5dcf30a0 | 39466 | fi |
a848cd7e SC |
39467 | fi |
39468 | if test "$wxUSE_COCOA" = 1 ; then | |
4cb1d3da | 39469 | LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa" |
4fc81cbc RN |
39470 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
39471 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
39472 | fi | |
a848cd7e SC |
39473 | fi |
39474 | ||
39475 | ||
39476 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
39477 | ||
39478 | have_cos=0 | |
39479 | have_floor=0 | |
39480 | ||
39481 | for ac_func in cos | |
39482 | do | |
39483 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39484 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39485 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39486 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39488 | else | |
39489 | cat >conftest.$ac_ext <<_ACEOF | |
39490 | /* confdefs.h. */ | |
39491 | _ACEOF | |
39492 | cat confdefs.h >>conftest.$ac_ext | |
39493 | cat >>conftest.$ac_ext <<_ACEOF | |
39494 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39495 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39496 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39497 | #define $ac_func innocuous_$ac_func | |
39498 | ||
a848cd7e SC |
39499 | /* System header to define __stub macros and hopefully few prototypes, |
39500 | which can conflict with char $ac_func (); below. | |
39501 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39502 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39503 | |
a848cd7e SC |
39504 | #ifdef __STDC__ |
39505 | # include <limits.h> | |
39506 | #else | |
39507 | # include <assert.h> | |
39508 | #endif | |
ac1cb8d3 VS |
39509 | |
39510 | #undef $ac_func | |
39511 | ||
a848cd7e SC |
39512 | /* Override any gcc2 internal prototype to avoid an error. */ |
39513 | #ifdef __cplusplus | |
39514 | extern "C" | |
39515 | { | |
39516 | #endif | |
39517 | /* We use char because int might match the return type of a gcc2 | |
39518 | builtin and then its argument prototype would still apply. */ | |
39519 | char $ac_func (); | |
39520 | /* The GNU C library defines this for functions which it implements | |
39521 | to always fail with ENOSYS. Some functions are actually named | |
39522 | something starting with __ and the normal name is an alias. */ | |
39523 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39524 | choke me | |
39525 | #else | |
39526 | char (*f) () = $ac_func; | |
39527 | #endif | |
39528 | #ifdef __cplusplus | |
39529 | } | |
39530 | #endif | |
39531 | ||
39532 | int | |
39533 | main () | |
39534 | { | |
39535 | return f != $ac_func; | |
39536 | ; | |
39537 | return 0; | |
39538 | } | |
39539 | _ACEOF | |
39540 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39541 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39542 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39543 | ac_status=$? |
ac1cb8d3 VS |
39544 | grep -v '^ *+' conftest.er1 >conftest.err |
39545 | rm -f conftest.er1 | |
39546 | cat conftest.err >&5 | |
a848cd7e SC |
39547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39548 | (exit $ac_status); } && | |
89be85c2 VS |
39549 | { ac_try='test -z "$ac_c_werror_flag" |
39550 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39552 | (eval $ac_try) 2>&5 | |
39553 | ac_status=$? | |
39554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39555 | (exit $ac_status); }; } && | |
39556 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39558 | (eval $ac_try) 2>&5 | |
39559 | ac_status=$? | |
39560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39561 | (exit $ac_status); }; }; then | |
39562 | eval "$as_ac_var=yes" | |
39563 | else | |
39564 | echo "$as_me: failed program was:" >&5 | |
39565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39566 | ||
39567 | eval "$as_ac_var=no" | |
39568 | fi | |
ac1cb8d3 VS |
39569 | rm -f conftest.err conftest.$ac_objext \ |
39570 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39571 | fi |
39572 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39573 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39574 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39575 | cat >>confdefs.h <<_ACEOF | |
39576 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39577 | _ACEOF | |
39578 | have_cos=1 | |
39579 | fi | |
39580 | done | |
39581 | ||
39582 | ||
39583 | for ac_func in floor | |
39584 | do | |
39585 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39586 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39587 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39588 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39590 | else | |
39591 | cat >conftest.$ac_ext <<_ACEOF | |
39592 | /* confdefs.h. */ | |
39593 | _ACEOF | |
39594 | cat confdefs.h >>conftest.$ac_ext | |
39595 | cat >>conftest.$ac_ext <<_ACEOF | |
39596 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39597 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39598 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39599 | #define $ac_func innocuous_$ac_func | |
39600 | ||
a848cd7e SC |
39601 | /* System header to define __stub macros and hopefully few prototypes, |
39602 | which can conflict with char $ac_func (); below. | |
39603 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39604 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39605 | |
a848cd7e SC |
39606 | #ifdef __STDC__ |
39607 | # include <limits.h> | |
39608 | #else | |
39609 | # include <assert.h> | |
39610 | #endif | |
ac1cb8d3 VS |
39611 | |
39612 | #undef $ac_func | |
39613 | ||
a848cd7e SC |
39614 | /* Override any gcc2 internal prototype to avoid an error. */ |
39615 | #ifdef __cplusplus | |
39616 | extern "C" | |
39617 | { | |
39618 | #endif | |
39619 | /* We use char because int might match the return type of a gcc2 | |
39620 | builtin and then its argument prototype would still apply. */ | |
39621 | char $ac_func (); | |
39622 | /* The GNU C library defines this for functions which it implements | |
39623 | to always fail with ENOSYS. Some functions are actually named | |
39624 | something starting with __ and the normal name is an alias. */ | |
39625 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39626 | choke me | |
39627 | #else | |
39628 | char (*f) () = $ac_func; | |
39629 | #endif | |
39630 | #ifdef __cplusplus | |
39631 | } | |
39632 | #endif | |
39633 | ||
39634 | int | |
39635 | main () | |
39636 | { | |
39637 | return f != $ac_func; | |
39638 | ; | |
39639 | return 0; | |
39640 | } | |
39641 | _ACEOF | |
39642 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39643 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39644 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39645 | ac_status=$? |
ac1cb8d3 VS |
39646 | grep -v '^ *+' conftest.er1 >conftest.err |
39647 | rm -f conftest.er1 | |
39648 | cat conftest.err >&5 | |
a848cd7e SC |
39649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39650 | (exit $ac_status); } && | |
89be85c2 VS |
39651 | { ac_try='test -z "$ac_c_werror_flag" |
39652 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39654 | (eval $ac_try) 2>&5 | |
39655 | ac_status=$? | |
39656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39657 | (exit $ac_status); }; } && | |
39658 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39660 | (eval $ac_try) 2>&5 | |
39661 | ac_status=$? | |
39662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39663 | (exit $ac_status); }; }; then | |
39664 | eval "$as_ac_var=yes" | |
39665 | else | |
39666 | echo "$as_me: failed program was:" >&5 | |
39667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39668 | ||
39669 | eval "$as_ac_var=no" | |
39670 | fi | |
ac1cb8d3 VS |
39671 | rm -f conftest.err conftest.$ac_objext \ |
39672 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39673 | fi |
39674 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39675 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39676 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39677 | cat >>confdefs.h <<_ACEOF | |
39678 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39679 | _ACEOF | |
39680 | have_floor=1 | |
39681 | fi | |
39682 | done | |
39683 | ||
39684 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
39685 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
39686 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
39687 | echo "$as_me:$LINENO: result: yes" >&5 | |
39688 | echo "${ECHO_T}yes" >&6 | |
39689 | else | |
39690 | echo "$as_me:$LINENO: result: no" >&5 | |
39691 | echo "${ECHO_T}no" >&6 | |
39692 | LIBS="$LIBS -lm" | |
39693 | # use different functions to avoid configure caching | |
39694 | have_sin=0 | |
39695 | have_ceil=0 | |
39696 | ||
39697 | for ac_func in sin | |
39698 | do | |
39699 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39700 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39701 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39702 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39704 | else | |
39705 | cat >conftest.$ac_ext <<_ACEOF | |
39706 | /* confdefs.h. */ | |
39707 | _ACEOF | |
39708 | cat confdefs.h >>conftest.$ac_ext | |
39709 | cat >>conftest.$ac_ext <<_ACEOF | |
39710 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39711 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39712 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39713 | #define $ac_func innocuous_$ac_func | |
39714 | ||
a848cd7e SC |
39715 | /* System header to define __stub macros and hopefully few prototypes, |
39716 | which can conflict with char $ac_func (); below. | |
39717 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39718 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39719 | |
a848cd7e SC |
39720 | #ifdef __STDC__ |
39721 | # include <limits.h> | |
39722 | #else | |
39723 | # include <assert.h> | |
39724 | #endif | |
ac1cb8d3 VS |
39725 | |
39726 | #undef $ac_func | |
39727 | ||
a848cd7e SC |
39728 | /* Override any gcc2 internal prototype to avoid an error. */ |
39729 | #ifdef __cplusplus | |
39730 | extern "C" | |
39731 | { | |
39732 | #endif | |
39733 | /* We use char because int might match the return type of a gcc2 | |
39734 | builtin and then its argument prototype would still apply. */ | |
39735 | char $ac_func (); | |
39736 | /* The GNU C library defines this for functions which it implements | |
39737 | to always fail with ENOSYS. Some functions are actually named | |
39738 | something starting with __ and the normal name is an alias. */ | |
39739 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39740 | choke me | |
39741 | #else | |
39742 | char (*f) () = $ac_func; | |
39743 | #endif | |
39744 | #ifdef __cplusplus | |
39745 | } | |
39746 | #endif | |
39747 | ||
39748 | int | |
39749 | main () | |
39750 | { | |
39751 | return f != $ac_func; | |
39752 | ; | |
39753 | return 0; | |
39754 | } | |
39755 | _ACEOF | |
39756 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39757 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39758 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39759 | ac_status=$? |
ac1cb8d3 VS |
39760 | grep -v '^ *+' conftest.er1 >conftest.err |
39761 | rm -f conftest.er1 | |
39762 | cat conftest.err >&5 | |
a848cd7e SC |
39763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39764 | (exit $ac_status); } && | |
89be85c2 VS |
39765 | { ac_try='test -z "$ac_c_werror_flag" |
39766 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39768 | (eval $ac_try) 2>&5 | |
39769 | ac_status=$? | |
39770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39771 | (exit $ac_status); }; } && | |
39772 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39774 | (eval $ac_try) 2>&5 | |
39775 | ac_status=$? | |
39776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39777 | (exit $ac_status); }; }; then | |
39778 | eval "$as_ac_var=yes" | |
39779 | else | |
39780 | echo "$as_me: failed program was:" >&5 | |
39781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39782 | ||
39783 | eval "$as_ac_var=no" | |
39784 | fi | |
ac1cb8d3 VS |
39785 | rm -f conftest.err conftest.$ac_objext \ |
39786 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39787 | fi |
39788 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39789 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39790 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39791 | cat >>confdefs.h <<_ACEOF | |
39792 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39793 | _ACEOF | |
39794 | have_sin=1 | |
39795 | fi | |
39796 | done | |
39797 | ||
39798 | ||
39799 | for ac_func in ceil | |
39800 | do | |
39801 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39802 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39803 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39804 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39806 | else | |
39807 | cat >conftest.$ac_ext <<_ACEOF | |
39808 | /* confdefs.h. */ | |
39809 | _ACEOF | |
39810 | cat confdefs.h >>conftest.$ac_ext | |
39811 | cat >>conftest.$ac_ext <<_ACEOF | |
39812 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39813 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39814 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39815 | #define $ac_func innocuous_$ac_func | |
39816 | ||
a848cd7e SC |
39817 | /* System header to define __stub macros and hopefully few prototypes, |
39818 | which can conflict with char $ac_func (); below. | |
39819 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39820 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39821 | |
a848cd7e SC |
39822 | #ifdef __STDC__ |
39823 | # include <limits.h> | |
39824 | #else | |
39825 | # include <assert.h> | |
39826 | #endif | |
ac1cb8d3 VS |
39827 | |
39828 | #undef $ac_func | |
39829 | ||
a848cd7e SC |
39830 | /* Override any gcc2 internal prototype to avoid an error. */ |
39831 | #ifdef __cplusplus | |
39832 | extern "C" | |
39833 | { | |
39834 | #endif | |
39835 | /* We use char because int might match the return type of a gcc2 | |
39836 | builtin and then its argument prototype would still apply. */ | |
39837 | char $ac_func (); | |
39838 | /* The GNU C library defines this for functions which it implements | |
39839 | to always fail with ENOSYS. Some functions are actually named | |
39840 | something starting with __ and the normal name is an alias. */ | |
39841 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39842 | choke me | |
39843 | #else | |
39844 | char (*f) () = $ac_func; | |
39845 | #endif | |
39846 | #ifdef __cplusplus | |
39847 | } | |
39848 | #endif | |
39849 | ||
39850 | int | |
39851 | main () | |
39852 | { | |
39853 | return f != $ac_func; | |
39854 | ; | |
39855 | return 0; | |
39856 | } | |
39857 | _ACEOF | |
39858 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39859 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39860 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39861 | ac_status=$? |
ac1cb8d3 VS |
39862 | grep -v '^ *+' conftest.er1 >conftest.err |
39863 | rm -f conftest.er1 | |
39864 | cat conftest.err >&5 | |
a848cd7e SC |
39865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39866 | (exit $ac_status); } && | |
89be85c2 VS |
39867 | { ac_try='test -z "$ac_c_werror_flag" |
39868 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39870 | (eval $ac_try) 2>&5 | |
39871 | ac_status=$? | |
39872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39873 | (exit $ac_status); }; } && | |
39874 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39876 | (eval $ac_try) 2>&5 | |
39877 | ac_status=$? | |
39878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39879 | (exit $ac_status); }; }; then | |
39880 | eval "$as_ac_var=yes" | |
39881 | else | |
39882 | echo "$as_me: failed program was:" >&5 | |
39883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39884 | ||
39885 | eval "$as_ac_var=no" | |
39886 | fi | |
ac1cb8d3 VS |
39887 | rm -f conftest.err conftest.$ac_objext \ |
39888 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39889 | fi |
39890 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39891 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39892 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39893 | cat >>confdefs.h <<_ACEOF | |
39894 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39895 | _ACEOF | |
39896 | have_ceil=1 | |
39897 | fi | |
39898 | done | |
39899 | ||
39900 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
39901 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
39902 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
39903 | echo "$as_me:$LINENO: result: yes" >&5 | |
39904 | echo "${ECHO_T}yes" >&6 | |
39905 | else | |
39906 | echo "$as_me:$LINENO: result: no" >&5 | |
39907 | echo "${ECHO_T}no" >&6 | |
39908 | # not sure we should warn the user, crash, etc. | |
39909 | fi | |
39910 | fi | |
39911 | ||
39912 | if test "$wxUSE_GUI" = "yes"; then | |
39913 | ||
39914 | ||
39915 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ | |
39916 | drawing dynamic erase event exec font image \ | |
39917 | minimal propsize rotate shaped widgets render" | |
39918 | ||
39919 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
39920 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
39921 | fi | |
39922 | else | |
39923 | SAMPLES_SUBDIRS="console" | |
39924 | fi | |
39925 | ||
39926 | ||
ceec2216 | 39927 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
a848cd7e SC |
39928 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" |
39929 | ||
39930 | if test "$GXX" = yes ; then | |
5294a27e VZ |
39931 | CWARNINGS="-Wall" |
39932 | CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy" | |
a848cd7e SC |
39933 | fi |
39934 | ||
39935 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
39936 | ||
0c3c69fc | 39937 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS` |
5294a27e | 39938 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS` |
0c3c69fc | 39939 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS` |
a848cd7e | 39940 | |
95986553 DE |
39941 | if test "x$MWCC" = "xyes"; then |
39942 | ||
39943 | CC="$CC -cwd source -I-" | |
39944 | CXX="$CXX -cwd source -I-" | |
39945 | fi | |
39946 | ||
a848cd7e | 39947 | |
0c3c69fc | 39948 | LIBS=`echo $LIBS` |
a848cd7e SC |
39949 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
39950 | EXTRALIBS_XML="$EXPAT_LINK" | |
39951 | EXTRALIBS_HTML="$MSPACK_LINK" | |
39952 | EXTRALIBS_ODBC="$ODBC_LINK" | |
39953 | if test "$wxUSE_GUI" = "yes"; then | |
2e350179 | 39954 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT` |
a848cd7e SC |
39955 | fi |
39956 | if test "$wxUSE_OPENGL" = "yes"; then | |
39957 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
39958 | fi | |
39959 | ||
39960 | LDFLAGS="$LDFLAGS $PROFILE" | |
39961 | ||
39962 | if test "$wxUSE_GTK" = 1; then | |
39963 | WXCONFIG_INCLUDE= | |
39964 | else | |
39965 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
39966 | fi | |
39967 | ||
39968 | WXCONFIG_EXTRALIBS="$LIBS" | |
39969 | ||
39970 | if test "$wxUSE_REGEX" = "builtin" ; then | |
39971 | wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}" | |
39972 | fi | |
39973 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
39974 | wxconfig_3rdparty="$wxconfig_3rdparty expat" | |
39975 | fi | |
39976 | if test "$wxUSE_ODBC" = "builtin" ; then | |
39977 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
39978 | fi | |
39979 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
39980 | wxconfig_3rdparty="$wxconfig_3rdparty tiff" | |
39981 | fi | |
39982 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
39983 | wxconfig_3rdparty="$wxconfig_3rdparty jpeg" | |
39984 | fi | |
39985 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
39986 | wxconfig_3rdparty="$wxconfig_3rdparty png" | |
39987 | fi | |
39988 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
39989 | wxconfig_3rdparty="$wxconfig_3rdparty zlib" | |
39990 | fi | |
39991 | if test "$wxUSE_ODBC" = "builtin" ; then | |
39992 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
39993 | fi | |
39994 | ||
39995 | for i in $wxconfig_3rdparty ; do | |
ceec2216 | 39996 | WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}" |
a848cd7e SC |
39997 | done |
39998 | ||
39999 | ||
40000 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
40001 | WXUNIV=1 | |
40002 | else | |
40003 | WXUNIV=0 | |
40004 | fi | |
40005 | ||
40006 | ||
40007 | ||
40008 | ||
40009 | ||
40010 | ||
40011 | ||
40012 | ||
40013 | ||
40014 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
40015 | MONOLITHIC=1 | |
40016 | else | |
40017 | MONOLITHIC=0 | |
40018 | fi | |
40019 | ||
40020 | if test $wxUSE_PLUGINS = "yes" ; then | |
40021 | USE_PLUGINS=1 | |
40022 | else | |
40023 | USE_PLUGINS=0 | |
40024 | fi | |
40025 | ||
40026 | if test $wxUSE_ODBC != "no" ; then | |
40027 | USE_ODBC=1 | |
40028 | else | |
40029 | USE_ODBC=0 | |
40030 | fi | |
40031 | ||
40032 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then | |
40033 | OFFICIAL_BUILD=1 | |
40034 | else | |
40035 | OFFICIAL_BUILD=0 | |
40036 | fi | |
40037 | ||
40038 | ||
40039 | ||
40040 | ||
40041 | ||
40042 | ||
40043 | ||
40044 | ||
40045 | ||
40046 | ||
40047 | ||
40048 | ||
40049 | ||
40050 | ||
40051 | ||
40052 | ||
40053 | ||
40054 | ||
40055 | ||
ceec2216 | 40056 | |
d1c38808 | 40057 | |
a848cd7e SC |
40058 | |
40059 | ||
40060 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
40061 | ||
40062 | ||
40063 | ||
40064 | ||
40065 | ||
40066 | ||
40067 | ||
40068 | ||
4d4ff94c VZ |
40069 | case "$TOOLKIT" in |
40070 | GTK) | |
40071 | TOOLKIT_USER="GTK+" | |
40072 | if test "$WXGTK20" = 1; then | |
40073 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
40074 | fi | |
9a8f0513 | 40075 | ;; |
4d4ff94c VZ |
40076 | |
40077 | *) | |
40078 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 40079 | ;; |
4d4ff94c | 40080 | esac |
a848cd7e | 40081 | |
9a8f0513 | 40082 | |
1e9e8aba DE |
40083 | |
40084 | ||
a848cd7e SC |
40085 | if test "x$BAKEFILE_HOST" = "x"; then |
40086 | BAKEFILE_HOST="${host}" | |
40087 | fi | |
40088 | ||
40089 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
40090 | ||
40091 | if test -n "$ac_tool_prefix"; then | |
40092 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
40093 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
40094 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40095 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40096 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
40097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40098 | else | |
40099 | if test -n "$RANLIB"; then | |
40100 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
40101 | else | |
40102 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40103 | for as_dir in $PATH | |
40104 | do | |
40105 | IFS=$as_save_IFS | |
40106 | test -z "$as_dir" && as_dir=. | |
40107 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40108 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40109 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
40110 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40111 | break 2 | |
40112 | fi | |
40113 | done | |
40114 | done | |
40115 | ||
40116 | fi | |
40117 | fi | |
40118 | RANLIB=$ac_cv_prog_RANLIB | |
40119 | if test -n "$RANLIB"; then | |
40120 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
40121 | echo "${ECHO_T}$RANLIB" >&6 | |
40122 | else | |
40123 | echo "$as_me:$LINENO: result: no" >&5 | |
40124 | echo "${ECHO_T}no" >&6 | |
40125 | fi | |
40126 | ||
40127 | fi | |
40128 | if test -z "$ac_cv_prog_RANLIB"; then | |
40129 | ac_ct_RANLIB=$RANLIB | |
40130 | # Extract the first word of "ranlib", so it can be a program name with args. | |
40131 | set dummy ranlib; ac_word=$2 | |
40132 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40133 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40134 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
40135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40136 | else | |
40137 | if test -n "$ac_ct_RANLIB"; then | |
40138 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
40139 | else | |
40140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40141 | for as_dir in $PATH | |
40142 | do | |
40143 | IFS=$as_save_IFS | |
40144 | test -z "$as_dir" && as_dir=. | |
40145 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40146 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40147 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
40148 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40149 | break 2 | |
40150 | fi | |
40151 | done | |
40152 | done | |
40153 | ||
40154 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
40155 | fi | |
40156 | fi | |
40157 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
40158 | if test -n "$ac_ct_RANLIB"; then | |
40159 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
40160 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
40161 | else | |
40162 | echo "$as_me:$LINENO: result: no" >&5 | |
40163 | echo "${ECHO_T}no" >&6 | |
40164 | fi | |
40165 | ||
40166 | RANLIB=$ac_ct_RANLIB | |
40167 | else | |
40168 | RANLIB="$ac_cv_prog_RANLIB" | |
40169 | fi | |
40170 | ||
40171 | # Find a good install program. We prefer a C program (faster), | |
40172 | # so one script is as good as another. But avoid the broken or | |
40173 | # incompatible versions: | |
40174 | # SysV /etc/install, /usr/sbin/install | |
40175 | # SunOS /usr/etc/install | |
40176 | # IRIX /sbin/install | |
40177 | # AIX /bin/install | |
40178 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
40179 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
40180 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
40181 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 40182 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
40183 | # ./install, which can be erroneously created by make from ./install.sh. |
40184 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
40185 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
40186 | if test -z "$INSTALL"; then | |
40187 | if test "${ac_cv_path_install+set}" = set; then | |
40188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40189 | else | |
40190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40191 | for as_dir in $PATH | |
40192 | do | |
40193 | IFS=$as_save_IFS | |
40194 | test -z "$as_dir" && as_dir=. | |
40195 | # Account for people who put trailing slashes in PATH elements. | |
40196 | case $as_dir/ in | |
40197 | ./ | .// | /cC/* | \ | |
40198 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 40199 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
40200 | /usr/ucb/* ) ;; |
40201 | *) | |
40202 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
40203 | # Don't use installbsd from OSF since it installs stuff as root | |
40204 | # by default. | |
40205 | for ac_prog in ginstall scoinst install; do | |
40206 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
40207 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
40208 | if test $ac_prog = install && | |
40209 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
40210 | # AIX install. It has an incompatible calling convention. | |
40211 | : | |
40212 | elif test $ac_prog = install && | |
40213 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
40214 | # program-specific install script used by HP pwplus--don't use. | |
40215 | : | |
40216 | else | |
40217 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
40218 | break 3 | |
40219 | fi | |
40220 | fi | |
a848cd7e SC |
40221 | done |
40222 | done | |
40223 | ;; | |
40224 | esac | |
40225 | done | |
40226 | ||
40227 | ||
40228 | fi | |
40229 | if test "${ac_cv_path_install+set}" = set; then | |
40230 | INSTALL=$ac_cv_path_install | |
40231 | else | |
40232 | # As a last resort, use the slow shell script. We don't cache a | |
40233 | # path for INSTALL within a source directory, because that will | |
40234 | # break other packages using the cache if that directory is | |
40235 | # removed, or if the path is relative. | |
40236 | INSTALL=$ac_install_sh | |
40237 | fi | |
40238 | fi | |
40239 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
40240 | echo "${ECHO_T}$INSTALL" >&6 | |
40241 | ||
40242 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
40243 | # It thinks the first close brace ends the variable substitution. | |
40244 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
40245 | ||
40246 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
40247 | ||
40248 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
40249 | ||
40250 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
40251 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
40252 | LN_S=$as_ln_s | |
40253 | if test "$LN_S" = "ln -s"; then | |
40254 | echo "$as_me:$LINENO: result: yes" >&5 | |
40255 | echo "${ECHO_T}yes" >&6 | |
40256 | else | |
40257 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
40258 | echo "${ECHO_T}no, using $LN_S" >&6 | |
40259 | fi | |
40260 | ||
40261 | ||
40262 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
40263 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 40264 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
40265 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
40266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40267 | else | |
40268 | cat >conftest.make <<\_ACEOF | |
40269 | all: | |
40270 | @echo 'ac_maketemp="$(MAKE)"' | |
40271 | _ACEOF | |
40272 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
40273 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
40274 | if test -n "$ac_maketemp"; then | |
40275 | eval ac_cv_prog_make_${ac_make}_set=yes | |
40276 | else | |
40277 | eval ac_cv_prog_make_${ac_make}_set=no | |
40278 | fi | |
40279 | rm -f conftest.make | |
40280 | fi | |
40281 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
40282 | echo "$as_me:$LINENO: result: yes" >&5 | |
40283 | echo "${ECHO_T}yes" >&6 | |
40284 | SET_MAKE= | |
40285 | else | |
40286 | echo "$as_me:$LINENO: result: no" >&5 | |
40287 | echo "${ECHO_T}no" >&6 | |
40288 | SET_MAKE="MAKE=${MAKE-make}" | |
40289 | fi | |
40290 | ||
40291 | ||
40292 | ||
40293 | if test -n "$ac_tool_prefix"; then | |
40294 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
40295 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
40296 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40297 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40298 | if test "${ac_cv_prog_AR+set}" = set; then | |
40299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40300 | else | |
40301 | if test -n "$AR"; then | |
40302 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
40303 | else | |
40304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40305 | for as_dir in $PATH | |
40306 | do | |
40307 | IFS=$as_save_IFS | |
40308 | test -z "$as_dir" && as_dir=. | |
40309 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40310 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40311 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
40312 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40313 | break 2 | |
40314 | fi | |
40315 | done | |
40316 | done | |
40317 | ||
40318 | fi | |
40319 | fi | |
40320 | AR=$ac_cv_prog_AR | |
40321 | if test -n "$AR"; then | |
40322 | echo "$as_me:$LINENO: result: $AR" >&5 | |
40323 | echo "${ECHO_T}$AR" >&6 | |
40324 | else | |
40325 | echo "$as_me:$LINENO: result: no" >&5 | |
40326 | echo "${ECHO_T}no" >&6 | |
40327 | fi | |
40328 | ||
40329 | fi | |
40330 | if test -z "$ac_cv_prog_AR"; then | |
40331 | ac_ct_AR=$AR | |
40332 | # Extract the first word of "ar", so it can be a program name with args. | |
40333 | set dummy ar; ac_word=$2 | |
40334 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40335 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40336 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
40337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40338 | else | |
40339 | if test -n "$ac_ct_AR"; then | |
40340 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
40341 | else | |
40342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40343 | for as_dir in $PATH | |
40344 | do | |
40345 | IFS=$as_save_IFS | |
40346 | test -z "$as_dir" && as_dir=. | |
40347 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40348 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40349 | ac_cv_prog_ac_ct_AR="ar" | |
40350 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40351 | break 2 | |
40352 | fi | |
40353 | done | |
40354 | done | |
40355 | ||
40356 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
40357 | fi | |
40358 | fi | |
40359 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
40360 | if test -n "$ac_ct_AR"; then | |
40361 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
40362 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
40363 | else | |
40364 | echo "$as_me:$LINENO: result: no" >&5 | |
40365 | echo "${ECHO_T}no" >&6 | |
40366 | fi | |
40367 | ||
40368 | AR=$ac_ct_AR | |
40369 | else | |
40370 | AR="$ac_cv_prog_AR" | |
40371 | fi | |
40372 | ||
40373 | if test -n "$ac_tool_prefix"; then | |
40374 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
40375 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
40376 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40377 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40378 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
40379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40380 | else | |
40381 | if test -n "$STRIP"; then | |
40382 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
40383 | else | |
40384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40385 | for as_dir in $PATH | |
40386 | do | |
40387 | IFS=$as_save_IFS | |
40388 | test -z "$as_dir" && as_dir=. | |
40389 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40390 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40391 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
40392 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40393 | break 2 | |
40394 | fi | |
40395 | done | |
40396 | done | |
40397 | ||
40398 | fi | |
40399 | fi | |
40400 | STRIP=$ac_cv_prog_STRIP | |
40401 | if test -n "$STRIP"; then | |
40402 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
40403 | echo "${ECHO_T}$STRIP" >&6 | |
40404 | else | |
40405 | echo "$as_me:$LINENO: result: no" >&5 | |
40406 | echo "${ECHO_T}no" >&6 | |
40407 | fi | |
40408 | ||
40409 | fi | |
40410 | if test -z "$ac_cv_prog_STRIP"; then | |
40411 | ac_ct_STRIP=$STRIP | |
40412 | # Extract the first word of "strip", so it can be a program name with args. | |
40413 | set dummy strip; ac_word=$2 | |
40414 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40415 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40416 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
40417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40418 | else | |
40419 | if test -n "$ac_ct_STRIP"; then | |
40420 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
40421 | else | |
40422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40423 | for as_dir in $PATH | |
40424 | do | |
40425 | IFS=$as_save_IFS | |
40426 | test -z "$as_dir" && as_dir=. | |
40427 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40428 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40429 | ac_cv_prog_ac_ct_STRIP="strip" | |
40430 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40431 | break 2 | |
40432 | fi | |
40433 | done | |
40434 | done | |
40435 | ||
40436 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
40437 | fi | |
40438 | fi | |
40439 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
40440 | if test -n "$ac_ct_STRIP"; then | |
40441 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
40442 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
40443 | else | |
40444 | echo "$as_me:$LINENO: result: no" >&5 | |
40445 | echo "${ECHO_T}no" >&6 | |
40446 | fi | |
40447 | ||
40448 | STRIP=$ac_ct_STRIP | |
40449 | else | |
40450 | STRIP="$ac_cv_prog_STRIP" | |
40451 | fi | |
40452 | ||
40453 | if test -n "$ac_tool_prefix"; then | |
40454 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
40455 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
40456 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40457 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40458 | if test "${ac_cv_prog_NM+set}" = set; then | |
40459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40460 | else | |
40461 | if test -n "$NM"; then | |
40462 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
40463 | else | |
40464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40465 | for as_dir in $PATH | |
40466 | do | |
40467 | IFS=$as_save_IFS | |
40468 | test -z "$as_dir" && as_dir=. | |
40469 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40470 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40471 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
40472 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40473 | break 2 | |
40474 | fi | |
40475 | done | |
40476 | done | |
40477 | ||
40478 | fi | |
40479 | fi | |
40480 | NM=$ac_cv_prog_NM | |
40481 | if test -n "$NM"; then | |
40482 | echo "$as_me:$LINENO: result: $NM" >&5 | |
40483 | echo "${ECHO_T}$NM" >&6 | |
40484 | else | |
40485 | echo "$as_me:$LINENO: result: no" >&5 | |
40486 | echo "${ECHO_T}no" >&6 | |
40487 | fi | |
40488 | ||
40489 | fi | |
40490 | if test -z "$ac_cv_prog_NM"; then | |
40491 | ac_ct_NM=$NM | |
40492 | # Extract the first word of "nm", so it can be a program name with args. | |
40493 | set dummy nm; ac_word=$2 | |
40494 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40495 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40496 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
40497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40498 | else | |
40499 | if test -n "$ac_ct_NM"; then | |
40500 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
40501 | else | |
40502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40503 | for as_dir in $PATH | |
40504 | do | |
40505 | IFS=$as_save_IFS | |
40506 | test -z "$as_dir" && as_dir=. | |
40507 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40508 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40509 | ac_cv_prog_ac_ct_NM="nm" | |
40510 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40511 | break 2 | |
40512 | fi | |
40513 | done | |
40514 | done | |
40515 | ||
40516 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
40517 | fi | |
40518 | fi | |
40519 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
40520 | if test -n "$ac_ct_NM"; then | |
40521 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
40522 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
40523 | else | |
40524 | echo "$as_me:$LINENO: result: no" >&5 | |
40525 | echo "${ECHO_T}no" >&6 | |
40526 | fi | |
40527 | ||
40528 | NM=$ac_ct_NM | |
40529 | else | |
40530 | NM="$ac_cv_prog_NM" | |
40531 | fi | |
40532 | ||
40533 | ||
40534 | case ${BAKEFILE_HOST} in | |
40535 | *-hp-hpux* ) | |
1e9e8aba | 40536 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
40537 | ;; |
40538 | *) INSTALL_DIR="$INSTALL -d" | |
40539 | ;; | |
40540 | esac | |
40541 | ||
40542 | ||
40543 | LDFLAGS_GUI= | |
40544 | case ${BAKEFILE_HOST} in | |
40545 | *-*-cygwin* | *-*-mingw32* ) | |
40546 | LDFLAGS_GUI="-mwindows" | |
40547 | esac | |
40548 | ||
40549 | ||
40550 | fi | |
40551 | ||
40552 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
40553 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
40554 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
40555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40556 | else | |
40557 | ||
40558 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
40559 | egrep -s GNU > /dev/null); then | |
40560 | bakefile_cv_prog_makeisgnu="yes" | |
40561 | else | |
40562 | bakefile_cv_prog_makeisgnu="no" | |
40563 | fi | |
40564 | ||
40565 | fi | |
40566 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
40567 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
40568 | ||
40569 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
40570 | IF_GNU_MAKE="" | |
40571 | else | |
40572 | IF_GNU_MAKE="#" | |
40573 | fi | |
40574 | ||
40575 | ||
40576 | ||
40577 | PLATFORM_UNIX=0 | |
40578 | PLATFORM_WIN32=0 | |
40579 | PLATFORM_MSDOS=0 | |
40580 | PLATFORM_MAC=0 | |
1e9e8aba | 40581 | PLATFORM_MACOS=0 |
a848cd7e SC |
40582 | PLATFORM_MACOSX=0 |
40583 | PLATFORM_OS2=0 | |
1e9e8aba | 40584 | PLATFORM_BEOS=0 |
a848cd7e SC |
40585 | |
40586 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
40587 | case "${BAKEFILE_HOST}" in | |
40588 | *-*-cygwin* | *-*-mingw32* ) | |
40589 | PLATFORM_WIN32=1 | |
40590 | ;; | |
40591 | *-pc-msdosdjgpp ) | |
40592 | PLATFORM_MSDOS=1 | |
40593 | ;; | |
40594 | *-pc-os2_emx | *-pc-os2-emx ) | |
40595 | PLATFORM_OS2=1 | |
40596 | ;; | |
40597 | powerpc-*-darwin* ) | |
40598 | PLATFORM_MAC=1 | |
40599 | PLATFORM_MACOSX=1 | |
40600 | ;; | |
1e9e8aba DE |
40601 | *-*-beos* ) |
40602 | PLATFORM_BEOS=1 | |
40603 | ;; | |
40604 | powerpc-apple-macos* ) | |
40605 | PLATFORM_MAC=1 | |
40606 | PLATFORM_MACOS=1 | |
40607 | ;; | |
a848cd7e SC |
40608 | * ) |
40609 | PLATFORM_UNIX=1 | |
40610 | ;; | |
40611 | esac | |
40612 | else | |
40613 | case "$BAKEFILE_FORCE_PLATFORM" in | |
40614 | win32 ) | |
40615 | PLATFORM_WIN32=1 | |
40616 | ;; | |
40617 | msdos ) | |
40618 | PLATFORM_MSDOS=1 | |
40619 | ;; | |
40620 | os2 ) | |
40621 | PLATFORM_OS2=1 | |
40622 | ;; | |
40623 | darwin ) | |
40624 | PLATFORM_MAC=1 | |
40625 | PLATFORM_MACOSX=1 | |
40626 | ;; | |
40627 | unix ) | |
40628 | PLATFORM_UNIX=1 | |
40629 | ;; | |
1e9e8aba DE |
40630 | beos ) |
40631 | PLATFORM_BEOS=1 | |
40632 | ;; | |
a848cd7e SC |
40633 | * ) |
40634 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
40635 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
40636 | { (exit 1); exit 1; }; } | |
40637 | ;; | |
40638 | esac | |
40639 | fi | |
40640 | ||
40641 | ||
40642 | ||
40643 | ||
40644 | ||
40645 | ||
40646 | ||
40647 | ||
40648 | ||
1e9e8aba DE |
40649 | |
40650 | ||
a848cd7e SC |
40651 | # Check whether --enable-omf or --disable-omf was given. |
40652 | if test "${enable_omf+set}" = set; then | |
40653 | enableval="$enable_omf" | |
40654 | bk_os2_use_omf="$enableval" | |
40655 | fi; | |
40656 | ||
40657 | case "${BAKEFILE_HOST}" in | |
40658 | *-*-darwin* ) | |
40659 | CFLAGS="$CFLAGS -fno-common" | |
40660 | CXXFLAGS="$CXXFLAGS -fno-common" | |
40661 | ;; | |
40662 | ||
40663 | *-pc-os2_emx | *-pc-os2-emx ) | |
40664 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
40665 | AR=emxomfar | |
40666 | RANLIB=: | |
40667 | LDFLAGS="-Zomf $LDFLAGS" | |
40668 | CFLAGS="-Zomf $CFLAGS" | |
40669 | CXXFLAGS="-Zomf $CXXFLAGS" | |
40670 | OS2_LIBEXT="lib" | |
40671 | else | |
40672 | OS2_LIBEXT="a" | |
40673 | fi | |
40674 | ;; | |
1e9e8aba DE |
40675 | |
40676 | i*86-*-beos* ) | |
40677 | LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS" | |
40678 | ;; | |
a848cd7e SC |
40679 | esac |
40680 | ||
40681 | ||
40682 | SO_SUFFIX="so" | |
40683 | SO_SUFFIX_MODULE="so" | |
40684 | EXEEXT="" | |
40685 | LIBPREFIX="lib" | |
40686 | LIBEXT=".a" | |
40687 | DLLPREFIX="lib" | |
40688 | DLLPREFIX_MODULE="" | |
40689 | DLLIMP_SUFFIX="" | |
40690 | ||
40691 | case "${BAKEFILE_HOST}" in | |
40692 | *-hp-hpux* ) | |
40693 | SO_SUFFIX="sl" | |
40694 | SO_SUFFIX_MODULE="sl" | |
40695 | ;; | |
40696 | *-*-aix* ) | |
40697 | SO_SUFFIX="a" | |
40698 | SO_SUFFIX_MODULE="a" | |
40699 | ;; | |
40700 | *-*-cygwin* | *-*-mingw32* ) | |
40701 | SO_SUFFIX="dll" | |
40702 | SO_SUFFIX_MODULE="dll" | |
40703 | DLLIMP_SUFFIX="dll.a" | |
40704 | EXEEXT=".exe" | |
40705 | DLLPREFIX="" | |
40706 | ;; | |
40707 | *-pc-msdosdjgpp ) | |
40708 | EXEEXT=".exe" | |
40709 | DLLPREFIX="" | |
40710 | ;; | |
40711 | *-pc-os2_emx | *-pc-os2-emx ) | |
40712 | SO_SUFFIX="dll" | |
40713 | SO_SUFFIX_MODULE="dll" | |
40714 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
40715 | EXEEXT=".exe" | |
40716 | DLLPREFIX="" | |
40717 | LIBPREFIX="" | |
40718 | LIBEXT=".$OS2_LIBEXT" | |
40719 | ;; | |
40720 | powerpc-*-darwin* ) | |
40721 | SO_SUFFIX="dylib" | |
40722 | SO_SUFFIX_MODULE="bundle" | |
40723 | ;; | |
40724 | esac | |
40725 | ||
40726 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
40727 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
40728 | fi | |
40729 | ||
40730 | ||
40731 | ||
40732 | ||
40733 | ||
40734 | ||
40735 | ||
40736 | ||
40737 | ||
40738 | ||
40739 | ||
1e9e8aba DE |
40740 | PIC_FLAG="" |
40741 | if test "x$GCC" = "xyes"; then | |
a848cd7e SC |
40742 | PIC_FLAG="-fPIC" |
40743 | fi | |
40744 | ||
1e9e8aba DE |
40745 | SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o" |
40746 | SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o" | |
40747 | ||
a848cd7e SC |
40748 | case "${BAKEFILE_HOST}" in |
40749 | *-hp-hpux* ) | |
1e9e8aba | 40750 | if test "x$GCC" != "xyes"; then |
a848cd7e SC |
40751 | LDFLAGS="$LDFLAGS -L/usr/lib" |
40752 | ||
40753 | SHARED_LD_CC="${CC} -b -o" | |
40754 | SHARED_LD_CXX="${CXX} -b -o" | |
40755 | PIC_FLAG="+Z" | |
40756 | fi | |
40757 | ;; | |
40758 | ||
40759 | *-*-linux* ) | |
40760 | if test "x$GCC" != "xyes"; then | |
40761 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
40762 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
40763 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
40764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40765 | else | |
40766 | ||
40767 | cat >conftest.$ac_ext <<_ACEOF | |
40768 | /* confdefs.h. */ | |
40769 | _ACEOF | |
40770 | cat confdefs.h >>conftest.$ac_ext | |
40771 | cat >>conftest.$ac_ext <<_ACEOF | |
40772 | /* end confdefs.h. */ | |
40773 | ||
40774 | int | |
40775 | main () | |
40776 | { | |
40777 | ||
40778 | #ifndef __INTEL_COMPILER | |
40779 | #error Not icc | |
40780 | #endif | |
40781 | ||
40782 | ; | |
40783 | return 0; | |
40784 | } | |
40785 | _ACEOF | |
40786 | rm -f conftest.$ac_objext | |
40787 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40788 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40789 | ac_status=$? |
ac1cb8d3 VS |
40790 | grep -v '^ *+' conftest.er1 >conftest.err |
40791 | rm -f conftest.er1 | |
40792 | cat conftest.err >&5 | |
a848cd7e SC |
40793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40794 | (exit $ac_status); } && | |
89be85c2 VS |
40795 | { ac_try='test -z "$ac_c_werror_flag" |
40796 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40798 | (eval $ac_try) 2>&5 | |
40799 | ac_status=$? | |
40800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40801 | (exit $ac_status); }; } && | |
40802 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
40808 | bakefile_cv_prog_icc=yes | |
40809 | else | |
40810 | echo "$as_me: failed program was:" >&5 | |
40811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40812 | ||
40813 | bakefile_cv_prog_icc=no | |
40814 | ||
40815 | fi | |
ac1cb8d3 | 40816 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40817 | |
40818 | fi | |
40819 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
40820 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
40821 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
40822 | PIC_FLAG="-KPIC" | |
40823 | fi | |
40824 | fi | |
40825 | ;; | |
40826 | ||
40827 | *-*-solaris2* ) | |
40828 | if test "x$GCC" != xyes ; then | |
40829 | SHARED_LD_CC="${CC} -G -o" | |
40830 | SHARED_LD_CXX="${CXX} -G -o" | |
40831 | PIC_FLAG="-KPIC" | |
40832 | fi | |
40833 | ;; | |
40834 | ||
40835 | *-*-darwin* ) | |
40836 | ||
40837 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
40838 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
40839 | if test "${wx_cv_gcc31+set}" = set; then | |
40840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40841 | else | |
40842 | ||
40843 | cat >conftest.$ac_ext <<_ACEOF | |
40844 | /* confdefs.h. */ | |
40845 | _ACEOF | |
40846 | cat confdefs.h >>conftest.$ac_ext | |
40847 | cat >>conftest.$ac_ext <<_ACEOF | |
40848 | /* end confdefs.h. */ | |
40849 | ||
40850 | int | |
40851 | main () | |
40852 | { | |
40853 | ||
40854 | #if (__GNUC__ < 3) || \ | |
40855 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
40856 | #error old gcc | |
40857 | #endif | |
40858 | ||
40859 | ; | |
40860 | return 0; | |
40861 | } | |
40862 | _ACEOF | |
40863 | rm -f conftest.$ac_objext | |
40864 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40865 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40866 | ac_status=$? |
ac1cb8d3 VS |
40867 | grep -v '^ *+' conftest.er1 >conftest.err |
40868 | rm -f conftest.er1 | |
40869 | cat conftest.err >&5 | |
a848cd7e SC |
40870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40871 | (exit $ac_status); } && | |
89be85c2 VS |
40872 | { ac_try='test -z "$ac_c_werror_flag" |
40873 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40875 | (eval $ac_try) 2>&5 | |
40876 | ac_status=$? | |
40877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40878 | (exit $ac_status); }; } && | |
40879 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40881 | (eval $ac_try) 2>&5 | |
40882 | ac_status=$? | |
40883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40884 | (exit $ac_status); }; }; then | |
40885 | ||
40886 | wx_cv_gcc31=yes | |
40887 | ||
40888 | else | |
40889 | echo "$as_me: failed program was:" >&5 | |
40890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40891 | ||
40892 | ||
40893 | wx_cv_gcc31=no | |
40894 | ||
40895 | ||
40896 | fi | |
ac1cb8d3 | 40897 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40898 | |
40899 | fi | |
40900 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
40901 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
40902 | if test "$wx_cv_gcc31" = "no"; then | |
473276a9 VS |
40903 | |
40904 | D='$' | |
40905 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
40906 | #!/bin/sh |
40907 | #----------------------------------------------------------------------------- | |
40908 | #-- Name: distrib/mac/shared-ld-sh | |
40909 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
40910 | #-- Author: Gilles Depeyrot | |
40911 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
40912 | #-- Licence: any use permitted | |
40913 | #----------------------------------------------------------------------------- | |
40914 | ||
40915 | verbose=0 | |
40916 | args="" | |
40917 | objects="" | |
40918 | linking_flag="-dynamiclib" | |
40919 | ||
473276a9 VS |
40920 | while test ${D}# -gt 0; do |
40921 | case ${D}1 in | |
a848cd7e SC |
40922 | |
40923 | -v) | |
40924 | verbose=1 | |
40925 | ;; | |
40926 | ||
40927 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
40928 | # collect these options and values | |
473276a9 | 40929 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
40930 | shift |
40931 | ;; | |
40932 | ||
40933 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
40934 | # collect these options | |
473276a9 | 40935 | args="${D}{args} ${D}1" |
a848cd7e SC |
40936 | ;; |
40937 | ||
40938 | -dynamiclib|-bundle) | |
473276a9 | 40939 | linking_flag="${D}1" |
a848cd7e SC |
40940 | ;; |
40941 | ||
40942 | -*) | |
473276a9 | 40943 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
40944 | exit 1 |
40945 | ;; | |
40946 | ||
40947 | *.o | *.a | *.dylib) | |
40948 | # collect object files | |
473276a9 | 40949 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
40950 | ;; |
40951 | ||
40952 | *) | |
473276a9 | 40953 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
40954 | exit 1 |
40955 | ;; | |
40956 | ||
40957 | esac | |
40958 | shift | |
40959 | done | |
40960 | ||
40961 | # | |
40962 | # Link one module containing all the others | |
40963 | # | |
473276a9 VS |
40964 | if test ${D}{verbose} = 1; then |
40965 | echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o" | |
a848cd7e | 40966 | fi |
473276a9 VS |
40967 | c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o |
40968 | status=${D}? | |
40969 | if test ${D}{status} != 0; then | |
40970 | exit ${D}{status} | |
a848cd7e SC |
40971 | fi |
40972 | ||
40973 | # | |
40974 | # Link the shared library from the single module created | |
40975 | # | |
473276a9 VS |
40976 | if test ${D}{verbose} = 1; then |
40977 | echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
a848cd7e | 40978 | fi |
473276a9 VS |
40979 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} |
40980 | status=${D}? | |
40981 | if test ${D}{status} != 0; then | |
40982 | exit ${D}{status} | |
a848cd7e SC |
40983 | fi |
40984 | ||
40985 | # | |
40986 | # Remove intermediate module | |
40987 | # | |
473276a9 | 40988 | rm -f master.${D}${D}.o |
a848cd7e SC |
40989 | |
40990 | exit 0 | |
40991 | EOF | |
473276a9 | 40992 | |
a848cd7e SC |
40993 | chmod +x shared-ld-sh |
40994 | ||
40995 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" | |
40996 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
40997 | SHARED_LD_CXX="$SHARED_LD_CC" | |
40998 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
40999 | else | |
41000 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
41001 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
41002 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
41003 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
41004 | fi | |
41005 | ||
41006 | PIC_FLAG="-dynamic -fPIC" | |
41007 | ;; | |
41008 | ||
41009 | *-*-aix* ) | |
41010 | if test "x$GCC" != "xyes"; then | |
41011 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
41012 | set dummy makeC++SharedLib; ac_word=$2 | |
41013 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41014 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41015 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
41016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41017 | else | |
41018 | if test -n "$AIX_CXX_LD"; then | |
41019 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
41020 | else | |
41021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41022 | for as_dir in $PATH | |
41023 | do | |
41024 | IFS=$as_save_IFS | |
41025 | test -z "$as_dir" && as_dir=. | |
41026 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41027 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41028 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
41029 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41030 | break 2 | |
41031 | fi | |
41032 | done | |
41033 | done | |
41034 | ||
41035 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
41036 | fi | |
41037 | fi | |
41038 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
41039 | if test -n "$AIX_CXX_LD"; then | |
41040 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
41041 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
41042 | else | |
41043 | echo "$as_me:$LINENO: result: no" >&5 | |
41044 | echo "${ECHO_T}no" >&6 | |
41045 | fi | |
41046 | ||
41047 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
41048 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
41049 | fi | |
41050 | ;; | |
41051 | ||
41052 | *-*-beos* ) | |
1e9e8aba DE |
41053 | SHARED_LD_CC="${LD} -nostart -o" |
41054 | SHARED_LD_CXX="${LD} -nostart -o" | |
a848cd7e SC |
41055 | ;; |
41056 | ||
41057 | *-*-irix* ) | |
41058 | if test "x$GCC" != "xyes"; then | |
41059 | PIC_FLAG="-KPIC" | |
41060 | fi | |
41061 | ;; | |
41062 | ||
41063 | *-*-cygwin* | *-*-mingw32* ) | |
41064 | PIC_FLAG="" | |
1e9e8aba DE |
41065 | SHARED_LD_CC="\$(CC) -shared -o" |
41066 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
a848cd7e SC |
41067 | ;; |
41068 | ||
41069 | *-pc-os2_emx | *-pc-os2-emx ) | |
b1d22ded DE |
41070 | SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" |
41071 | SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
a848cd7e | 41072 | PIC_FLAG="" |
473276a9 VS |
41073 | |
41074 | D='$' | |
41075 | cat <<EOF >dllar.sh | |
41076 | #!/bin/sh | |
41077 | # | |
41078 | # dllar - a tool to build both a .dll and an .a file | |
41079 | # from a set of object (.o) files for EMX/OS2. | |
41080 | # | |
41081 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
41082 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
41083 | # | |
41084 | # This script will accept a set of files on the command line. | |
41085 | # All the public symbols from the .o files will be exported into | |
41086 | # a .DEF file, then linker will be run (through gcc) against them to | |
41087 | # build a shared library consisting of all given .o files. All libraries | |
41088 | # (.a) will be first decompressed into component .o files then act as | |
41089 | # described above. You can optionally give a description (-d "description") | |
41090 | # which will be put into .DLL. To see the list of accepted options (as well | |
41091 | # as command-line format) simply run this program without options. The .DLL | |
41092 | # is built to be imported by name (there is no guarantee that new versions | |
41093 | # of the library you build will have same ordinals for same symbols). | |
41094 | # | |
41095 | # dllar is free software; you can redistribute it and/or modify | |
41096 | # it under the terms of the GNU General Public License as published by | |
41097 | # the Free Software Foundation; either version 2, or (at your option) | |
41098 | # any later version. | |
41099 | # | |
41100 | # dllar is distributed in the hope that it will be useful, | |
41101 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
41102 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
41103 | # GNU General Public License for more details. | |
41104 | # | |
41105 | # You should have received a copy of the GNU General Public License | |
41106 | # along with dllar; see the file COPYING. If not, write to the Free | |
41107 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
41108 | # 02111-1307, USA. | |
41109 | ||
41110 | # To successfuly run this program you will need: | |
41111 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
41112 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
41113 | # - gcc | |
41114 | # (used to build the .dll) | |
41115 | # - emxexp | |
41116 | # (used to create .def file from .o files) | |
41117 | # - emximp | |
41118 | # (used to create .a file from .def file) | |
41119 | # - GNU text utilites (cat, sort, uniq) | |
41120 | # used to process emxexp output | |
41121 | # - GNU file utilities (mv, rm) | |
41122 | # - GNU sed | |
41123 | # - lxlite (optional, see flag below) | |
41124 | # (used for general .dll cleanup) | |
41125 | # | |
41126 | ||
41127 | flag_USE_LXLITE=1; | |
41128 | ||
41129 | # | |
41130 | # helper functions | |
41131 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
41132 | # second argument (suffix to remove) is given | |
41133 | basnam(){ | |
41134 | case ${D}# in | |
41135 | 1) | |
1e9e8aba | 41136 | echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//' |
473276a9 VS |
41137 | ;; |
41138 | 2) | |
41139 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
41140 | ;; | |
41141 | *) | |
41142 | echo "error in basnam ${D}*" | |
41143 | exit 8 | |
41144 | ;; | |
41145 | esac | |
41146 | } | |
41147 | ||
41148 | # Cleanup temporary files and output | |
41149 | CleanUp() { | |
41150 | cd ${D}curDir | |
41151 | for i in ${D}inputFiles ; do | |
41152 | case ${D}i in | |
41153 | *!) | |
41154 | rm -rf \`basnam ${D}i !\` | |
41155 | ;; | |
41156 | *) | |
41157 | ;; | |
41158 | esac | |
41159 | done | |
41160 | ||
41161 | # Kill result in case of failure as there is just to many stupid make/nmake | |
41162 | # things out there which doesn't do this. | |
1e9e8aba | 41163 | if [ ${D}# -eq 0 ]; then |
473276a9 VS |
41164 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
41165 | fi | |
41166 | } | |
41167 | ||
41168 | # Print usage and exit script with rc=1. | |
41169 | PrintHelp() { | |
b1d22ded DE |
41170 | echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]' |
41171 | echo ' [-name-mangler-script script.sh]' | |
41172 | echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]' | |
41173 | echo ' [-ord[inals]] -ex[clude] "symbol(s)"' | |
41174 | echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]' | |
1e9e8aba | 41175 | echo ' [*.o] [*.a]' |
473276a9 VS |
41176 | echo '*> "output_file" should have no extension.' |
41177 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
41178 | echo ' The import library name is derived from this and is set to "name".a,' | |
41179 | echo ' unless overridden by -import' | |
41180 | echo '*> "importlib_name" should have no extension.' | |
41181 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
41182 | echo ' This name is used as the import library name and may be longer and' | |
41183 | echo ' more descriptive than the DLL name which has to follow the old ' | |
41184 | echo ' 8.3 convention of FAT.' | |
b1d22ded DE |
41185 | echo '*> "script.sh may be given to override the output_file name by a' |
41186 | echo ' different name. It is mainly useful if the regular make process' | |
41187 | echo ' of some package does not take into account OS/2 restriction of' | |
41188 | echo ' DLL name lengths. It takes the importlib name as input and is' | |
41189 | echo ' supposed to procude a shorter name as output. The script should' | |
41190 | echo ' expect to get importlib_name without extension and should produce' | |
41191 | echo ' a (max.) 8 letter name without extension.' | |
473276a9 VS |
41192 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' |
41193 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
41194 | echo ' These flags will be put at the start of GCC command line.' | |
b1d22ded DE |
41195 | echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.' |
41196 | echo '*> -ex[clude] defines symbols which will not be exported. You can define' | |
473276a9 VS |
41197 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
41198 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
41199 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
b1d22ded | 41200 | echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 41201 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
b1d22ded | 41202 | echo '*> -nocrt[dll] switch will disable linking the library against emx''s' |
473276a9 | 41203 | echo ' C runtime DLLs.' |
b1d22ded | 41204 | echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
41205 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
41206 | echo ' unchanged to GCC at the end of command line.' | |
41207 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
41208 | echo ' the basename for DLL and import library will be set to library name,' | |
41209 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
41210 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
41211 | echo ' library will be renamed into gcc_s.a.' | |
41212 | echo '--------' | |
41213 | echo 'Example:' | |
41214 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
41215 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
41216 | CleanUp | |
41217 | exit 1 | |
41218 | } | |
41219 | ||
41220 | # Execute a command. | |
41221 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
41222 | # @Uses Whatever CleanUp() uses. | |
41223 | doCommand() { | |
41224 | echo "${D}*" | |
41225 | eval ${D}* | |
41226 | rcCmd=${D}? | |
41227 | ||
1e9e8aba | 41228 | if [ ${D}rcCmd -ne 0 ]; then |
473276a9 VS |
41229 | echo "command failed, exit code="${D}rcCmd |
41230 | CleanUp | |
41231 | exit ${D}rcCmd | |
41232 | fi | |
41233 | } | |
41234 | ||
41235 | # main routine | |
41236 | # setup globals | |
41237 | cmdLine=${D}* | |
41238 | outFile="" | |
41239 | outimpFile="" | |
41240 | inputFiles="" | |
b1d22ded | 41241 | renameScript="" |
473276a9 VS |
41242 | description="" |
41243 | CC=gcc.exe | |
41244 | CFLAGS="-s -Zcrtdll" | |
41245 | EXTRA_CFLAGS="" | |
41246 | EXPORT_BY_ORDINALS=0 | |
41247 | exclude_symbols="" | |
41248 | library_flags="" | |
41249 | curDir=\`pwd\` | |
41250 | curDirS=curDir | |
41251 | case ${D}curDirS in | |
41252 | */) | |
41253 | ;; | |
41254 | *) | |
41255 | curDirS=${D}{curDirS}"/" | |
41256 | ;; | |
41257 | esac | |
41258 | # Parse commandline | |
41259 | libsToLink=0 | |
b1d22ded | 41260 | omfLinking=0 |
1e9e8aba | 41261 | while [ ${D}1 ]; do |
473276a9 VS |
41262 | case ${D}1 in |
41263 | -ord*) | |
41264 | EXPORT_BY_ORDINALS=1; | |
41265 | ;; | |
41266 | -o*) | |
41267 | shift | |
41268 | outFile=${D}1 | |
41269 | ;; | |
41270 | -i*) | |
41271 | shift | |
41272 | outimpFile=${D}1 | |
41273 | ;; | |
b1d22ded DE |
41274 | -name-mangler-script) |
41275 | shift | |
41276 | renameScript=${D}1 | |
41277 | ;; | |
473276a9 VS |
41278 | -d*) |
41279 | shift | |
41280 | description=${D}1 | |
41281 | ;; | |
41282 | -f*) | |
41283 | shift | |
41284 | CFLAGS=${D}1 | |
41285 | ;; | |
41286 | -c*) | |
41287 | shift | |
41288 | CC=${D}1 | |
41289 | ;; | |
41290 | -h*) | |
41291 | PrintHelp | |
41292 | ;; | |
41293 | -ex*) | |
41294 | shift | |
41295 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
41296 | ;; | |
41297 | -libf*) | |
41298 | shift | |
41299 | library_flags=${D}{library_flags}${D}1" " | |
41300 | ;; | |
41301 | -nocrt*) | |
41302 | CFLAGS="-s" | |
41303 | ;; | |
41304 | -nolxl*) | |
41305 | flag_USE_LXLITE=0 | |
41306 | ;; | |
41307 | -* | /*) | |
41308 | case ${D}1 in | |
41309 | -L* | -l*) | |
41310 | libsToLink=1 | |
41311 | ;; | |
b1d22ded DE |
41312 | -Zomf) |
41313 | omfLinking=1 | |
41314 | ;; | |
473276a9 VS |
41315 | *) |
41316 | ;; | |
41317 | esac | |
41318 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
41319 | ;; | |
b1d22ded DE |
41320 | *.dll) |
41321 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`" | |
41322 | if [ ${D}omfLinking -eq 1 ]; then | |
41323 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib" | |
41324 | else | |
41325 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a" | |
41326 | fi | |
41327 | ;; | |
473276a9 VS |
41328 | *) |
41329 | found=0; | |
1e9e8aba | 41330 | if [ ${D}libsToLink -ne 0 ]; then |
473276a9 VS |
41331 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
41332 | else | |
41333 | for file in ${D}1 ; do | |
1e9e8aba | 41334 | if [ -f ${D}file ]; then |
473276a9 VS |
41335 | inputFiles="${D}{inputFiles} ${D}file" |
41336 | found=1 | |
41337 | fi | |
41338 | done | |
1e9e8aba | 41339 | if [ ${D}found -eq 0 ]; then |
473276a9 VS |
41340 | echo "ERROR: No file(s) found: "${D}1 |
41341 | exit 8 | |
41342 | fi | |
41343 | fi | |
41344 | ;; | |
41345 | esac | |
41346 | shift | |
41347 | done # iterate cmdline words | |
41348 | ||
41349 | # | |
1e9e8aba | 41350 | if [ -z "${D}inputFiles" ]; then |
473276a9 VS |
41351 | echo "dllar: no input files" |
41352 | PrintHelp | |
41353 | fi | |
41354 | ||
41355 | # Now extract all .o files from .a files | |
41356 | newInputFiles="" | |
41357 | for file in ${D}inputFiles ; do | |
41358 | case ${D}file in | |
41359 | *.a | *.lib) | |
41360 | case ${D}file in | |
41361 | *.a) | |
41362 | suffix=".a" | |
41363 | AR="ar" | |
41364 | ;; | |
41365 | *.lib) | |
41366 | suffix=".lib" | |
41367 | AR="emxomfar" | |
41368 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
41369 | ;; | |
41370 | *) | |
41371 | ;; | |
41372 | esac | |
41373 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
41374 | mkdir ${D}dirname | |
1e9e8aba | 41375 | if [ ${D}? -ne 0 ]; then |
473276a9 VS |
41376 | echo "Failed to create subdirectory ./${D}dirname" |
41377 | CleanUp | |
41378 | exit 8; | |
41379 | fi | |
41380 | # Append '!' to indicate archive | |
41381 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
41382 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
41383 | cd ${D}curDir | |
41384 | found=0; | |
41385 | for subfile in ${D}dirname/*.o* ; do | |
1e9e8aba | 41386 | if [ -f ${D}subfile ]; then |
473276a9 | 41387 | found=1 |
1e9e8aba | 41388 | if [ -s ${D}subfile ]; then |
473276a9 VS |
41389 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
41390 | newInputFiles="${D}newInputFiles ${D}subfile" | |
41391 | fi | |
41392 | fi | |
41393 | done | |
1e9e8aba DE |
41394 | if [ ${D}found -eq 0 ]; then |
41395 | echo "WARNING: there are no files in archive \\'${D}file\\'" | |
473276a9 VS |
41396 | fi |
41397 | ;; | |
41398 | *) | |
41399 | newInputFiles="${D}{newInputFiles} ${D}file" | |
41400 | ;; | |
41401 | esac | |
41402 | done | |
41403 | inputFiles="${D}newInputFiles" | |
41404 | ||
41405 | # Output filename(s). | |
41406 | do_backup=0; | |
1e9e8aba | 41407 | if [ -z ${D}outFile ]; then |
473276a9 VS |
41408 | do_backup=1; |
41409 | set outFile ${D}inputFiles; outFile=${D}2 | |
41410 | fi | |
41411 | ||
41412 | # If it is an archive, remove the '!' and the '_%' suffixes | |
41413 | case ${D}outFile in | |
41414 | *_%!) | |
41415 | outFile=\`basnam ${D}outFile _%!\` | |
41416 | ;; | |
41417 | *) | |
41418 | ;; | |
41419 | esac | |
41420 | case ${D}outFile in | |
41421 | *.dll) | |
41422 | outFile=\`basnam ${D}outFile .dll\` | |
41423 | ;; | |
41424 | *.DLL) | |
41425 | outFile=\`basnam ${D}outFile .DLL\` | |
41426 | ;; | |
41427 | *.o) | |
41428 | outFile=\`basnam ${D}outFile .o\` | |
41429 | ;; | |
41430 | *.obj) | |
41431 | outFile=\`basnam ${D}outFile .obj\` | |
41432 | ;; | |
41433 | *.a) | |
41434 | outFile=\`basnam ${D}outFile .a\` | |
41435 | ;; | |
41436 | *.lib) | |
41437 | outFile=\`basnam ${D}outFile .lib\` | |
41438 | ;; | |
41439 | *) | |
41440 | ;; | |
41441 | esac | |
41442 | case ${D}outimpFile in | |
41443 | *.a) | |
41444 | outimpFile=\`basnam ${D}outimpFile .a\` | |
41445 | ;; | |
41446 | *.lib) | |
41447 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
41448 | ;; | |
41449 | *) | |
41450 | ;; | |
41451 | esac | |
1e9e8aba | 41452 | if [ -z ${D}outimpFile ]; then |
473276a9 VS |
41453 | outimpFile=${D}outFile |
41454 | fi | |
41455 | defFile="${D}{outFile}.def" | |
41456 | arcFile="${D}{outimpFile}.a" | |
41457 | arcFile2="${D}{outimpFile}.lib" | |
b1d22ded DE |
41458 | |
41459 | #create ${D}dllFile as something matching 8.3 restrictions, | |
41460 | if [ -z ${D}renameScript ] ; then | |
41461 | dllFile="${D}outFile" | |
41462 | else | |
41463 | dllFile=\`${D}renameScript ${D}outimpFile\` | |
41464 | fi | |
473276a9 | 41465 | |
1e9e8aba DE |
41466 | if [ ${D}do_backup -ne 0 ] ; then |
41467 | if [ -f ${D}arcFile ] ; then | |
473276a9 VS |
41468 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
41469 | fi | |
1e9e8aba | 41470 | if [ -f ${D}arcFile2 ] ; then |
473276a9 VS |
41471 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
41472 | fi | |
41473 | fi | |
41474 | ||
41475 | # Extract public symbols from all the object files. | |
41476 | tmpdefFile=${D}{defFile}_% | |
41477 | rm -f ${D}tmpdefFile | |
41478 | for file in ${D}inputFiles ; do | |
41479 | case ${D}file in | |
41480 | *!) | |
41481 | ;; | |
41482 | *) | |
41483 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
41484 | ;; | |
41485 | esac | |
41486 | done | |
41487 | ||
41488 | # Create the def file. | |
41489 | rm -f ${D}defFile | |
41490 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
b1d22ded DE |
41491 | dllFile="${D}{dllFile}.dll" |
41492 | if [ ! -z ${D}description ]; then | |
1e9e8aba | 41493 | echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile |
473276a9 VS |
41494 | fi |
41495 | echo "EXPORTS" >> ${D}defFile | |
41496 | ||
41497 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
41498 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
41499 | ||
41500 | # Checks if the export is ok or not. | |
41501 | for word in ${D}exclude_symbols; do | |
41502 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
41503 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
41504 | done | |
41505 | ||
41506 | ||
1e9e8aba DE |
41507 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
41508 | sed "=" < ${D}tmpdefFile | \\ | |
473276a9 VS |
41509 | sed ' |
41510 | N | |
41511 | : loop | |
1e9e8aba | 41512 | s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/ |
473276a9 VS |
41513 | t loop |
41514 | ' > ${D}{tmpdefFile}% | |
41515 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
41516 | else | |
41517 | rm -f ${D}{tmpdefFile}% | |
41518 | fi | |
41519 | cat ${D}tmpdefFile >> ${D}defFile | |
41520 | rm -f ${D}tmpdefFile | |
41521 | ||
41522 | # Do linking, create implib, and apply lxlite. | |
41523 | gccCmdl=""; | |
41524 | for file in ${D}inputFiles ; do | |
41525 | case ${D}file in | |
41526 | *!) | |
41527 | ;; | |
41528 | *) | |
41529 | gccCmdl="${D}gccCmdl ${D}file" | |
41530 | ;; | |
41531 | esac | |
41532 | done | |
41533 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
41534 | touch "${D}{outFile}.dll" | |
41535 | ||
41536 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
1e9e8aba | 41537 | if [ ${D}flag_USE_LXLITE -ne 0 ]; then |
473276a9 | 41538 | add_flags=""; |
1e9e8aba | 41539 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
473276a9 VS |
41540 | add_flags="-ynd" |
41541 | fi | |
41542 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
41543 | fi | |
41544 | doCommand "emxomf -s -l ${D}arcFile" | |
41545 | ||
41546 | # Successful exit. | |
41547 | CleanUp 1 | |
41548 | exit 0 | |
41549 | EOF | |
41550 | ||
41551 | chmod +x dllar.sh | |
a848cd7e SC |
41552 | ;; |
41553 | ||
1e9e8aba | 41554 | powerpc-apple-macos* | \ |
a848cd7e SC |
41555 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
41556 | *-*-sunos4* | \ | |
41557 | *-*-osf* | \ | |
41558 | *-*-dgux5* | \ | |
41559 | *-*-sysv5* ) | |
41560 | ;; | |
41561 | ||
41562 | *) | |
41563 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
41564 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
41565 | { (exit 1); exit 1; }; } | |
41566 | esac | |
41567 | ||
2057db16 VS |
41568 | if test "x$PIC_FLAG" != "x" ; then |
41569 | PIC_FLAG="$PIC_FLAG -DPIC" | |
41570 | fi | |
41571 | ||
a848cd7e SC |
41572 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
41573 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
41574 | fi | |
41575 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
41576 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
41577 | fi | |
41578 | ||
41579 | ||
41580 | ||
41581 | ||
41582 | ||
41583 | ||
41584 | ||
41585 | ||
41586 | USE_SOVERSION=0 | |
41587 | USE_SOVERLINUX=0 | |
41588 | USE_SOVERSOLARIS=0 | |
41589 | USE_SOSYMLINKS=0 | |
41590 | USE_MACVERSION=0 | |
41591 | SONAME_FLAG= | |
41592 | ||
41593 | case "${BAKEFILE_HOST}" in | |
b1d22ded | 41594 | *-*-linux* | *-*-freebsd* ) |
5f652d0d VS |
41595 | SONAME_FLAG="-Wl,-soname," |
41596 | USE_SOVERSION=1 | |
41597 | USE_SOVERLINUX=1 | |
41598 | USE_SOSYMLINKS=1 | |
41599 | ;; | |
41600 | ||
a848cd7e SC |
41601 | *-*-solaris2* ) |
41602 | SONAME_FLAG="-h " | |
41603 | USE_SOVERSION=1 | |
41604 | USE_SOVERSOLARIS=1 | |
41605 | USE_SOSYMLINKS=1 | |
41606 | ;; | |
41607 | ||
41608 | *-*-darwin* ) | |
41609 | USE_MACVERSION=1 | |
41610 | USE_SOVERSION=1 | |
41611 | USE_SOSYMLINKS=1 | |
41612 | ;; | |
41613 | esac | |
41614 | ||
41615 | ||
41616 | ||
41617 | ||
41618 | ||
41619 | ||
41620 | ||
41621 | ||
41622 | ||
41623 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 | |
41624 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
41625 | DEPS_TRACKING=0 | |
41626 | ||
41627 | if test "x$GCC" = "xyes"; then | |
41628 | DEPSMODE=gcc | |
41629 | DEPS_TRACKING=1 | |
41630 | case "${BAKEFILE_HOST}" in | |
41631 | powerpc-*-darwin* ) | |
41632 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
41633 | ;; | |
41634 | * ) | |
41635 | DEPSFLAG_GCC="-MMD" | |
41636 | ;; | |
41637 | esac | |
41638 | echo "$as_me:$LINENO: result: gcc" >&5 | |
41639 | echo "${ECHO_T}gcc" >&6 | |
b1d22ded | 41640 | elif test "x$MWCC" = "xyes"; then |
81f90336 | 41641 | DEPSMODE=mwcc |
b1d22ded | 41642 | DEPS_TRACKING=1 |
81f90336 | 41643 | DEPSFLAG_MWCC="-MM" |
b1d22ded DE |
41644 | echo "$as_me:$LINENO: result: mwcc" >&5 |
41645 | echo "${ECHO_T}mwcc" >&6 | |
a848cd7e SC |
41646 | else |
41647 | echo "$as_me:$LINENO: result: none" >&5 | |
41648 | echo "${ECHO_T}none" >&6 | |
41649 | fi | |
41650 | ||
41651 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
41652 | |
41653 | D='$' | |
41654 | cat <<EOF >bk-deps | |
a848cd7e SC |
41655 | #!/bin/sh |
41656 | ||
41657 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
41658 | # script. It is used to track C/C++ files dependencies in portable way. | |
41659 | # | |
41660 | # Permission is given to use this file in any way. | |
41661 | ||
473276a9 | 41662 | DEPSMODE=${DEPSMODE} |
a848cd7e | 41663 | DEPSDIR=.deps |
473276a9 | 41664 | DEPSFLAG_GCC="${DEPSFLAG_GCC}" |
81f90336 | 41665 | DEPSFLAG_MWCC="${DEPSFLAG_MWCC}" |
a848cd7e | 41666 | |
473276a9 | 41667 | mkdir -p ${D}DEPSDIR |
a848cd7e | 41668 | |
473276a9 VS |
41669 | if test ${D}DEPSMODE = gcc ; then |
41670 | ${D}* ${D}{DEPSFLAG_GCC} | |
41671 | status=${D}? | |
41672 | if test ${D}{status} != 0 ; then | |
41673 | exit ${D}{status} | |
a848cd7e SC |
41674 | fi |
41675 | # move created file to the location we want it in: | |
473276a9 VS |
41676 | while test ${D}# -gt 0; do |
41677 | case "${D}1" in | |
a848cd7e SC |
41678 | -o ) |
41679 | shift | |
473276a9 | 41680 | objfile=${D}1 |
a848cd7e SC |
41681 | ;; |
41682 | -* ) | |
41683 | ;; | |
41684 | * ) | |
473276a9 | 41685 | srcfile=${D}1 |
a848cd7e SC |
41686 | ;; |
41687 | esac | |
41688 | shift | |
41689 | done | |
1e9e8aba DE |
41690 | depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\` |
41691 | depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\` | |
473276a9 VS |
41692 | if test -f ${D}depfile ; then |
41693 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
41694 | rm -f ${D}depfile | |
a848cd7e | 41695 | else |
1e9e8aba | 41696 | depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\` |
473276a9 VS |
41697 | if test -f ${D}depfile ; then |
41698 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
41699 | rm -f ${D}depfile | |
a848cd7e SC |
41700 | fi |
41701 | fi | |
41702 | exit 0 | |
81f90336 MW |
41703 | elif test ${D}DEPSMODE = mwcc ; then |
41704 | ${D}* | |
41705 | status=${D}? | |
41706 | if test ${D}{status} != 0 ; then | |
41707 | exit ${D}{status} | |
41708 | fi | |
41709 | # Run mwcc again with -MM and redirect into the dep file we want | |
41710 | # NOTE: We can't use shift here because we need ${D}* to be valid | |
41711 | prevarg= | |
41712 | for arg in ${D}* ; do | |
41713 | if test "${D}prevarg" = "-o"; then | |
41714 | objfile=${D}arg | |
41715 | else | |
41716 | case "${D}arg" in | |
41717 | -* ) | |
41718 | ;; | |
41719 | * ) | |
41720 | srcfile=${D}arg | |
41721 | ;; | |
41722 | esac | |
41723 | fi | |
41724 | prevarg="${D}arg" | |
41725 | done | |
41726 | ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d | |
41727 | exit 0 | |
a848cd7e | 41728 | else |
473276a9 VS |
41729 | ${D}* |
41730 | exit ${D}? | |
a848cd7e SC |
41731 | fi |
41732 | EOF | |
473276a9 | 41733 | |
a848cd7e SC |
41734 | chmod +x bk-deps |
41735 | fi | |
41736 | ||
41737 | ||
41738 | ||
41739 | ||
41740 | RESCOMP= | |
41741 | SETFILE= | |
41742 | ||
41743 | case ${BAKEFILE_HOST} in | |
41744 | *-*-cygwin* | *-*-mingw32* ) | |
41745 | if test "$build" != "$host" ; then | |
41746 | RESCOMP=$host_alias-windres | |
41747 | else | |
41748 | # Extract the first word of "windres", so it can be a program name with args. | |
41749 | set dummy windres; ac_word=$2 | |
41750 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41751 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41752 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
41753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41754 | else | |
41755 | if test -n "$RESCOMP"; then | |
41756 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
41757 | else | |
41758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41759 | for as_dir in $PATH | |
41760 | do | |
41761 | IFS=$as_save_IFS | |
41762 | test -z "$as_dir" && as_dir=. | |
41763 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41764 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41765 | ac_cv_prog_RESCOMP="windres" | |
41766 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41767 | break 2 | |
41768 | fi | |
41769 | done | |
41770 | done | |
41771 | ||
41772 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" | |
41773 | fi | |
41774 | fi | |
41775 | RESCOMP=$ac_cv_prog_RESCOMP | |
41776 | if test -n "$RESCOMP"; then | |
41777 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
41778 | echo "${ECHO_T}$RESCOMP" >&6 | |
41779 | else | |
41780 | echo "$as_me:$LINENO: result: no" >&5 | |
41781 | echo "${ECHO_T}no" >&6 | |
41782 | fi | |
41783 | ||
41784 | fi | |
41785 | ;; | |
41786 | ||
1e9e8aba | 41787 | *-*-darwin* | powerpc-apple-macos* ) |
a848cd7e SC |
41788 | # Extract the first word of "Rez", so it can be a program name with args. |
41789 | set dummy Rez; ac_word=$2 | |
41790 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41791 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41792 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
41793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41794 | else | |
41795 | if test -n "$RESCOMP"; then | |
41796 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
41797 | else | |
41798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41799 | for as_dir in $PATH | |
41800 | do | |
41801 | IFS=$as_save_IFS | |
41802 | test -z "$as_dir" && as_dir=. | |
41803 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41804 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41805 | ac_cv_prog_RESCOMP="Rez" | |
41806 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41807 | break 2 | |
41808 | fi | |
41809 | done | |
41810 | done | |
41811 | ||
41812 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
41813 | fi | |
41814 | fi | |
41815 | RESCOMP=$ac_cv_prog_RESCOMP | |
41816 | if test -n "$RESCOMP"; then | |
41817 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
41818 | echo "${ECHO_T}$RESCOMP" >&6 | |
41819 | else | |
41820 | echo "$as_me:$LINENO: result: no" >&5 | |
41821 | echo "${ECHO_T}no" >&6 | |
41822 | fi | |
41823 | ||
41824 | # Extract the first word of "SetFile", so it can be a program name with args. | |
41825 | set dummy SetFile; ac_word=$2 | |
41826 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41827 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41828 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
41829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41830 | else | |
41831 | if test -n "$SETFILE"; then | |
41832 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
41833 | else | |
41834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41835 | for as_dir in $PATH | |
41836 | do | |
41837 | IFS=$as_save_IFS | |
41838 | test -z "$as_dir" && as_dir=. | |
41839 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41840 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41841 | ac_cv_prog_SETFILE="SetFile" | |
41842 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41843 | break 2 | |
41844 | fi | |
41845 | done | |
41846 | done | |
41847 | ||
41848 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
41849 | fi | |
41850 | fi | |
41851 | SETFILE=$ac_cv_prog_SETFILE | |
41852 | if test -n "$SETFILE"; then | |
41853 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
41854 | echo "${ECHO_T}$SETFILE" >&6 | |
41855 | else | |
41856 | echo "$as_me:$LINENO: result: no" >&5 | |
41857 | echo "${ECHO_T}no" >&6 | |
41858 | fi | |
41859 | ||
41860 | ;; | |
41861 | esac | |
41862 | ||
41863 | ||
41864 | ||
41865 | ||
41866 | ||
94acd38e | 41867 | BAKEFILE_BAKEFILE_M4_VERSION="0.1.7" |
a848cd7e | 41868 | |
dcc1b6ad | 41869 | |
94acd38e | 41870 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.7" |
a848cd7e | 41871 | |
646b6ec1 | 41872 | |
74b84332 | 41873 | |
a848cd7e SC |
41874 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
41875 | if test "${enable_precomp_headers+set}" = set; then | |
41876 | enableval="$enable_precomp_headers" | |
41877 | bk_use_pch="$enableval" | |
41878 | fi; | |
41879 | ||
41880 | GCC_PCH=0 | |
41881 | ||
41882 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
41883 | if test "x$GCC" = "xyes"; then | |
41884 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
41885 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
41886 | cat >conftest.$ac_ext <<_ACEOF | |
41887 | /* confdefs.h. */ | |
41888 | _ACEOF | |
41889 | cat confdefs.h >>conftest.$ac_ext | |
41890 | cat >>conftest.$ac_ext <<_ACEOF | |
41891 | /* end confdefs.h. */ | |
41892 | ||
41893 | int | |
41894 | main () | |
41895 | { | |
41896 | ||
41897 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
41898 | #error "no pch support" | |
41899 | #endif | |
41900 | #if (__GNUC__ < 3) | |
41901 | #error "no pch support" | |
41902 | #endif | |
41903 | #if (__GNUC__ == 3) && \ | |
41904 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
41905 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
41906 | #error "no pch support" | |
41907 | #endif | |
41908 | ||
41909 | ; | |
41910 | return 0; | |
41911 | } | |
41912 | _ACEOF | |
41913 | rm -f conftest.$ac_objext | |
41914 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41915 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41916 | ac_status=$? |
ac1cb8d3 VS |
41917 | grep -v '^ *+' conftest.er1 >conftest.err |
41918 | rm -f conftest.er1 | |
41919 | cat conftest.err >&5 | |
a848cd7e SC |
41920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41921 | (exit $ac_status); } && | |
89be85c2 VS |
41922 | { ac_try='test -z "$ac_c_werror_flag" |
41923 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41925 | (eval $ac_try) 2>&5 | |
41926 | ac_status=$? | |
41927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41928 | (exit $ac_status); }; } && | |
41929 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41931 | (eval $ac_try) 2>&5 | |
41932 | ac_status=$? | |
41933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41934 | (exit $ac_status); }; }; then | |
41935 | ||
41936 | echo "$as_me:$LINENO: result: yes" >&5 | |
41937 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
41938 | GCC_PCH=1 |
41939 | ||
41940 | else | |
41941 | echo "$as_me: failed program was:" >&5 | |
41942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41943 | ||
41944 | ||
41945 | echo "$as_me:$LINENO: result: no" >&5 | |
41946 | echo "${ECHO_T}no" >&6 | |
41947 | ||
41948 | fi | |
ac1cb8d3 | 41949 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 41950 | if test $GCC_PCH = 1 ; then |
1e9e8aba DE |
41951 | |
41952 | D='$' | |
41953 | cat <<EOF >bk-make-pch | |
a848cd7e SC |
41954 | #!/bin/sh |
41955 | ||
41956 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
41957 | # script. It is used to generated precompiled headers. | |
41958 | # | |
41959 | # Permission is given to use this file in any way. | |
41960 | ||
1e9e8aba DE |
41961 | outfile="${D}{1}" |
41962 | header="${D}{2}" | |
a848cd7e SC |
41963 | shift |
41964 | shift | |
41965 | ||
41966 | compiler= | |
41967 | headerfile= | |
1e9e8aba DE |
41968 | while test ${D}{#} -gt 0; do |
41969 | case "${D}{1}" in | |
a848cd7e | 41970 | -I* ) |
1e9e8aba DE |
41971 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
41972 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
41973 | headerfile="${D}{incdir}/${D}{header}" | |
a848cd7e SC |
41974 | fi |
41975 | ;; | |
41976 | esac | |
1e9e8aba | 41977 | compiler="${D}{compiler} ${D}{1}" |
a848cd7e SC |
41978 | shift |
41979 | done | |
41980 | ||
1e9e8aba DE |
41981 | if test "x${D}{headerfile}" = "x" ; then |
41982 | echo "error: can't find header ${D}{header} in include paths" >2 | |
a848cd7e | 41983 | else |
1e9e8aba DE |
41984 | if test -f ${D}{outfile} ; then |
41985 | rm -f ${D}{outfile} | |
a848cd7e | 41986 | else |
1e9e8aba | 41987 | mkdir -p \`dirname ${D}{outfile}\` |
a848cd7e | 41988 | fi |
1e9e8aba | 41989 | depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
a848cd7e SC |
41990 | mkdir -p .deps |
41991 | # can do this because gcc is >= 3.4: | |
1e9e8aba DE |
41992 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" |
41993 | exit ${D}{?} | |
a848cd7e SC |
41994 | fi |
41995 | EOF | |
1e9e8aba | 41996 | |
a848cd7e SC |
41997 | chmod +x bk-make-pch |
41998 | fi | |
41999 | fi | |
42000 | fi | |
42001 | ||
42002 | ||
42003 | ||
a848cd7e SC |
42004 | COND_BUILD_DEBUG="#" |
42005 | if test "x$BUILD" = "xdebug" ; then | |
42006 | COND_BUILD_DEBUG="" | |
42007 | fi | |
42008 | ||
42009 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
42010 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
42011 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
42012 | fi | |
42013 | ||
42014 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
42015 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
42016 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
42017 | fi | |
42018 | ||
42019 | COND_BUILD_DEBUG_UNICODE_0="#" | |
42020 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
42021 | COND_BUILD_DEBUG_UNICODE_0="" | |
42022 | fi | |
42023 | ||
42024 | COND_BUILD_DEBUG_UNICODE_1="#" | |
42025 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
42026 | COND_BUILD_DEBUG_UNICODE_1="" | |
42027 | fi | |
42028 | ||
42029 | COND_BUILD_RELEASE="#" | |
42030 | if test "x$BUILD" = "xrelease" ; then | |
42031 | COND_BUILD_RELEASE="" | |
42032 | fi | |
42033 | ||
42034 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
42035 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
42036 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
42037 | fi | |
42038 | ||
42039 | COND_BUILD_RELEASE_UNICODE_0="#" | |
42040 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
42041 | COND_BUILD_RELEASE_UNICODE_0="" | |
42042 | fi | |
42043 | ||
42044 | COND_BUILD_RELEASE_UNICODE_1="#" | |
42045 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
42046 | COND_BUILD_RELEASE_UNICODE_1="" | |
42047 | fi | |
42048 | ||
42049 | COND_DEBUG_FLAG_1="#" | |
42050 | if test "x$DEBUG_FLAG" = "x1" ; then | |
42051 | COND_DEBUG_FLAG_1="" | |
42052 | fi | |
42053 | ||
42054 | COND_DEBUG_INFO_0="#" | |
42055 | if test "x$DEBUG_INFO" = "x0" ; then | |
42056 | COND_DEBUG_INFO_0="" | |
42057 | fi | |
42058 | ||
42059 | COND_DEBUG_INFO_1="#" | |
42060 | if test "x$DEBUG_INFO" = "x1" ; then | |
42061 | COND_DEBUG_INFO_1="" | |
42062 | fi | |
42063 | ||
42064 | COND_DEPS_TRACKING_0="#" | |
42065 | if test "x$DEPS_TRACKING" = "x0" ; then | |
42066 | COND_DEPS_TRACKING_0="" | |
42067 | fi | |
42068 | ||
42069 | COND_DEPS_TRACKING_1="#" | |
42070 | if test "x$DEPS_TRACKING" = "x1" ; then | |
42071 | COND_DEPS_TRACKING_1="" | |
42072 | fi | |
42073 | ||
42074 | COND_GCC_PCH_1="#" | |
42075 | if test "x$GCC_PCH" = "x1" ; then | |
42076 | COND_GCC_PCH_1="" | |
42077 | fi | |
42078 | ||
42079 | COND_MONOLITHIC_0="#" | |
42080 | if test "x$MONOLITHIC" = "x0" ; then | |
42081 | COND_MONOLITHIC_0="" | |
42082 | fi | |
42083 | ||
42084 | COND_MONOLITHIC_0_SHARED_0="#" | |
42085 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
42086 | COND_MONOLITHIC_0_SHARED_0="" | |
42087 | fi | |
42088 | ||
42089 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
42090 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
42091 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
42092 | fi | |
42093 | ||
90970d69 DE |
42094 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#" |
42095 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
42096 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="" | |
42097 | fi | |
42098 | ||
a848cd7e SC |
42099 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
42100 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
42101 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
42102 | fi | |
42103 | ||
a848cd7e SC |
42104 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
42105 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
42106 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
42107 | fi | |
42108 | ||
ceec2216 RL |
42109 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
42110 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
42111 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
42112 | fi | |
42113 | ||
a848cd7e SC |
42114 | COND_MONOLITHIC_0_SHARED_1="#" |
42115 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
42116 | COND_MONOLITHIC_0_SHARED_1="" | |
42117 | fi | |
42118 | ||
42119 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
42120 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
42121 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
42122 | fi | |
42123 | ||
90970d69 DE |
42124 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#" |
42125 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
42126 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="" | |
42127 | fi | |
42128 | ||
a848cd7e SC |
42129 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
42130 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
42131 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
42132 | fi | |
42133 | ||
a848cd7e SC |
42134 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
42135 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
42136 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
42137 | fi | |
42138 | ||
ceec2216 RL |
42139 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
42140 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
42141 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
42142 | fi | |
42143 | ||
a848cd7e SC |
42144 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
42145 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
42146 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
42147 | fi | |
42148 | ||
42149 | COND_MONOLITHIC_1="#" | |
42150 | if test "x$MONOLITHIC" = "x1" ; then | |
42151 | COND_MONOLITHIC_1="" | |
42152 | fi | |
42153 | ||
42154 | COND_MONOLITHIC_1_SHARED_0="#" | |
42155 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
42156 | COND_MONOLITHIC_1_SHARED_0="" | |
42157 | fi | |
42158 | ||
42159 | COND_MONOLITHIC_1_SHARED_1="#" | |
42160 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
42161 | COND_MONOLITHIC_1_SHARED_1="" | |
42162 | fi | |
42163 | ||
42164 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
42165 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
42166 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
42167 | fi | |
42168 | ||
42169 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
42170 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
42171 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
42172 | fi | |
42173 | ||
42174 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
42175 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
42176 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
42177 | fi | |
42178 | ||
42179 | COND_PLATFORM_MACOSX_1="#" | |
42180 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
42181 | COND_PLATFORM_MACOSX_1="" | |
42182 | fi | |
42183 | ||
a30f955f VS |
42184 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
42185 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
42186 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
42187 | fi | |
42188 | ||
a848cd7e SC |
42189 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
42190 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
42191 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
42192 | fi | |
42193 | ||
42194 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
42195 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
42196 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
42197 | fi | |
42198 | ||
42199 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
42200 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
42201 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
42202 | fi | |
42203 | ||
fc480dc1 DE |
42204 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#" |
42205 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
42206 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="" | |
42207 | fi | |
42208 | ||
1e9e8aba DE |
42209 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
42210 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
42211 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
42212 | fi | |
42213 | ||
ebee3cd0 VS |
42214 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
42215 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
42216 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
42217 | fi | |
42218 | ||
42219 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
42220 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
42221 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
42222 | fi | |
42223 | ||
a848cd7e SC |
42224 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
42225 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
42226 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
42227 | fi | |
42228 | ||
42229 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
42230 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
42231 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
42232 | fi | |
42233 | ||
b48a2016 DE |
42234 | COND_PLATFORM_MACOS_1="#" |
42235 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
42236 | COND_PLATFORM_MACOS_1="" | |
42237 | fi | |
42238 | ||
a848cd7e SC |
42239 | COND_PLATFORM_MAC_1="#" |
42240 | if test "x$PLATFORM_MAC" = "x1" ; then | |
42241 | COND_PLATFORM_MAC_1="" | |
42242 | fi | |
42243 | ||
42244 | COND_PLATFORM_OS2_1="#" | |
42245 | if test "x$PLATFORM_OS2" = "x1" ; then | |
42246 | COND_PLATFORM_OS2_1="" | |
42247 | fi | |
42248 | ||
42249 | COND_PLATFORM_UNIX_0="#" | |
42250 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
42251 | COND_PLATFORM_UNIX_0="" | |
42252 | fi | |
42253 | ||
42254 | COND_PLATFORM_UNIX_1="#" | |
42255 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
42256 | COND_PLATFORM_UNIX_1="" | |
42257 | fi | |
42258 | ||
42259 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
42260 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
42261 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
42262 | fi | |
42263 | ||
42264 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
42265 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
42266 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
42267 | fi | |
42268 | ||
42269 | COND_PLATFORM_WIN32_0="#" | |
42270 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
42271 | COND_PLATFORM_WIN32_0="" | |
42272 | fi | |
42273 | ||
42274 | COND_PLATFORM_WIN32_1="#" | |
42275 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
42276 | COND_PLATFORM_WIN32_1="" | |
42277 | fi | |
42278 | ||
42279 | COND_SHARED_0="#" | |
42280 | if test "x$SHARED" = "x0" ; then | |
42281 | COND_SHARED_0="" | |
42282 | fi | |
42283 | ||
ceec2216 RL |
42284 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
42285 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
42286 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
42287 | fi | |
42288 | ||
42289 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
42290 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
42291 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
42292 | fi | |
42293 | ||
42294 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
42295 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
42296 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
42297 | fi | |
42298 | ||
a848cd7e SC |
42299 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
42300 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
42301 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
42302 | fi | |
42303 | ||
42304 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
42305 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
42306 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
42307 | fi | |
42308 | ||
42309 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
42310 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
42311 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
42312 | fi | |
42313 | ||
42314 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
42315 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
42316 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
42317 | fi | |
42318 | ||
42319 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
42320 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
42321 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
42322 | fi | |
42323 | ||
42324 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
42325 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
42326 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
42327 | fi | |
42328 | ||
42329 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
42330 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
42331 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
42332 | fi | |
42333 | ||
42334 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
42335 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
42336 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
42337 | fi | |
42338 | ||
42339 | COND_SHARED_1="#" | |
42340 | if test "x$SHARED" = "x1" ; then | |
42341 | COND_SHARED_1="" | |
42342 | fi | |
42343 | ||
42344 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
42345 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
42346 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
42347 | fi | |
42348 | ||
a30f955f VS |
42349 | COND_TOOLKIT_="#" |
42350 | if test "x$TOOLKIT" = "x" ; then | |
42351 | COND_TOOLKIT_="" | |
42352 | fi | |
42353 | ||
a848cd7e SC |
42354 | COND_TOOLKIT_COCOA="#" |
42355 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
42356 | COND_TOOLKIT_COCOA="" | |
42357 | fi | |
42358 | ||
a49baeab DE |
42359 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
42360 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
42361 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
42362 | fi | |
42363 | ||
a848cd7e SC |
42364 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
42365 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
42366 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
42367 | fi | |
42368 | ||
42369 | COND_TOOLKIT_GTK="#" | |
42370 | if test "x$TOOLKIT" = "xGTK" ; then | |
42371 | COND_TOOLKIT_GTK="" | |
42372 | fi | |
42373 | ||
42374 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
42375 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
42376 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
42377 | fi | |
42378 | ||
42379 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
42380 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
42381 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
42382 | fi | |
42383 | ||
42384 | COND_TOOLKIT_MAC="#" | |
42385 | if test "x$TOOLKIT" = "xMAC" ; then | |
42386 | COND_TOOLKIT_MAC="" | |
42387 | fi | |
42388 | ||
42389 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
42390 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
42391 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
42392 | fi | |
42393 | ||
42394 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
42395 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
42396 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
42397 | fi | |
42398 | ||
42399 | COND_TOOLKIT_MGL="#" | |
42400 | if test "x$TOOLKIT" = "xMGL" ; then | |
42401 | COND_TOOLKIT_MGL="" | |
42402 | fi | |
42403 | ||
42404 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
42405 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
42406 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
42407 | fi | |
42408 | ||
42409 | COND_TOOLKIT_MOTIF="#" | |
42410 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
42411 | COND_TOOLKIT_MOTIF="" | |
42412 | fi | |
42413 | ||
42414 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
42415 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
42416 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
42417 | fi | |
42418 | ||
42419 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
42420 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
42421 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
42422 | fi | |
42423 | ||
42424 | COND_TOOLKIT_MSW="#" | |
42425 | if test "x$TOOLKIT" = "xMSW" ; then | |
42426 | COND_TOOLKIT_MSW="" | |
42427 | fi | |
42428 | ||
42429 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
42430 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
42431 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
42432 | fi | |
42433 | ||
42434 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
42435 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
42436 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
42437 | fi | |
42438 | ||
42439 | COND_TOOLKIT_PM="#" | |
42440 | if test "x$TOOLKIT" = "xPM" ; then | |
42441 | COND_TOOLKIT_PM="" | |
42442 | fi | |
42443 | ||
42444 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
42445 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
42446 | COND_TOOLKIT_PM_USE_GUI_1="" | |
42447 | fi | |
42448 | ||
42449 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
42450 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
42451 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
42452 | fi | |
42453 | ||
3fd9c298 DE |
42454 | COND_TOOLKIT_WINCE="#" |
42455 | if test "x$TOOLKIT" = "xWINCE" ; then | |
42456 | COND_TOOLKIT_WINCE="" | |
42457 | fi | |
42458 | ||
42459 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
42460 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
42461 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
42462 | fi | |
42463 | ||
42464 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
42465 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
42466 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
42467 | fi | |
42468 | ||
a848cd7e SC |
42469 | COND_TOOLKIT_X11="#" |
42470 | if test "x$TOOLKIT" = "xX11" ; then | |
42471 | COND_TOOLKIT_X11="" | |
42472 | fi | |
42473 | ||
42474 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
42475 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
42476 | COND_TOOLKIT_X11_USE_GUI_1="" | |
42477 | fi | |
42478 | ||
42479 | COND_UNICODE_1="#" | |
42480 | if test "x$UNICODE" = "x1" ; then | |
42481 | COND_UNICODE_1="" | |
42482 | fi | |
42483 | ||
42484 | COND_USE_EXCEPTIONS_0="#" | |
42485 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
42486 | COND_USE_EXCEPTIONS_0="" | |
42487 | fi | |
42488 | ||
42489 | COND_USE_EXCEPTIONS_1="#" | |
42490 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
42491 | COND_USE_EXCEPTIONS_1="" | |
42492 | fi | |
42493 | ||
42494 | COND_USE_GUI_0="#" | |
42495 | if test "x$USE_GUI" = "x0" ; then | |
42496 | COND_USE_GUI_0="" | |
42497 | fi | |
42498 | ||
42499 | COND_USE_GUI_1="#" | |
42500 | if test "x$USE_GUI" = "x1" ; then | |
42501 | COND_USE_GUI_1="" | |
42502 | fi | |
42503 | ||
42504 | COND_USE_GUI_1_WXUNIV_0="#" | |
42505 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
42506 | COND_USE_GUI_1_WXUNIV_0="" | |
42507 | fi | |
42508 | ||
42509 | COND_USE_GUI_1_WXUNIV_1="#" | |
42510 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
42511 | COND_USE_GUI_1_WXUNIV_1="" | |
42512 | fi | |
42513 | ||
42514 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
42515 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
42516 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
42517 | fi | |
42518 | ||
42519 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
42520 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
42521 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
42522 | fi | |
42523 | ||
42524 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
42525 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
42526 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
42527 | fi | |
42528 | ||
ceec2216 RL |
42529 | COND_USE_ODBC_1="#" |
42530 | if test "x$USE_ODBC" = "x1" ; then | |
42531 | COND_USE_ODBC_1="" | |
42532 | fi | |
42533 | ||
ffa0583f RL |
42534 | COND_USE_OPENGL_1="#" |
42535 | if test "x$USE_OPENGL" = "x1" ; then | |
42536 | COND_USE_OPENGL_1="" | |
42537 | fi | |
42538 | ||
a848cd7e SC |
42539 | COND_USE_PLUGINS_0="#" |
42540 | if test "x$USE_PLUGINS" = "x0" ; then | |
42541 | COND_USE_PLUGINS_0="" | |
42542 | fi | |
42543 | ||
42544 | COND_USE_SOSYMLINKS_1="#" | |
42545 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
42546 | COND_USE_SOSYMLINKS_1="" | |
42547 | fi | |
42548 | ||
42549 | COND_USE_SOVERLINUX_1="#" | |
42550 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
42551 | COND_USE_SOVERLINUX_1="" | |
42552 | fi | |
42553 | ||
42554 | COND_USE_SOVERSION_0="#" | |
42555 | if test "x$USE_SOVERSION" = "x0" ; then | |
42556 | COND_USE_SOVERSION_0="" | |
42557 | fi | |
42558 | ||
42559 | COND_USE_SOVERSOLARIS_1="#" | |
42560 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
42561 | COND_USE_SOVERSOLARIS_1="" | |
42562 | fi | |
42563 | ||
a13a7f89 RL |
42564 | COND_USE_XRC_1="#" |
42565 | if test "x$USE_XRC" = "x1" ; then | |
42566 | COND_USE_XRC_1="" | |
42567 | fi | |
42568 | ||
a848cd7e SC |
42569 | COND_WITH_PLUGIN_SDL_1="#" |
42570 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
42571 | COND_WITH_PLUGIN_SDL_1="" | |
42572 | fi | |
42573 | ||
1e6eb025 VZ |
42574 | COND_WXUNIV_0="#" |
42575 | if test "x$WXUNIV" = "x0" ; then | |
42576 | COND_WXUNIV_0="" | |
42577 | fi | |
42578 | ||
a848cd7e SC |
42579 | COND_WXUNIV_1="#" |
42580 | if test "x$WXUNIV" = "x1" ; then | |
42581 | COND_WXUNIV_1="" | |
42582 | fi | |
42583 | ||
42584 | COND_WXUSE_EXPAT_BUILTIN="#" | |
42585 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
42586 | COND_WXUSE_EXPAT_BUILTIN="" | |
42587 | fi | |
42588 | ||
42589 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
42590 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
42591 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
42592 | fi | |
42593 | ||
42594 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
42595 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
42596 | COND_WXUSE_LIBPNG_BUILTIN="" | |
42597 | fi | |
42598 | ||
42599 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
42600 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
42601 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
42602 | fi | |
42603 | ||
42604 | COND_WXUSE_ODBC_BUILTIN="#" | |
42605 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
42606 | COND_WXUSE_ODBC_BUILTIN="" | |
42607 | fi | |
42608 | ||
42609 | COND_WXUSE_REGEX_BUILTIN="#" | |
42610 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
42611 | COND_WXUSE_REGEX_BUILTIN="" | |
42612 | fi | |
42613 | ||
42614 | COND_WXUSE_ZLIB_BUILTIN="#" | |
42615 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
42616 | COND_WXUSE_ZLIB_BUILTIN="" | |
42617 | fi | |
42618 | ||
42619 | ||
42620 | ||
2057db16 VS |
42621 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
42622 | { { 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 | |
42623 | 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;} | |
42624 | { (exit 1); exit 1; }; } | |
42625 | fi | |
42626 | ||
a848cd7e | 42627 | |
ceec2216 RL |
42628 | if test "$wxUSE_SHARED" = "yes"; then |
42629 | ||
42630 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
42631 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
42632 | ||
5b674b9d DE |
42633 | case "${host}" in |
42634 | *-pc-os2_emx | *-pc-os2-emx ) | |
42635 | SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
42636 | SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
42637 | cp -p ${srcdir}/src/os2/dllnames.sh . | |
42638 | cp -p ${srcdir}/src/os2/dllar.sh . | |
42639 | ;; | |
42640 | esac | |
ceec2216 RL |
42641 | else |
42642 | ||
42643 | EXE_LINKER="$CXX -o" | |
42644 | ||
42645 | fi | |
a848cd7e | 42646 | |
74b84332 | 42647 | GCC_PRAGMA_FLAGS="" |
c08ebc62 DE |
42648 | PCH_FLAGS="" |
42649 | if test $GCC_PCH = 1 ; then | |
42650 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" | |
42651 | PCH_FLAGS="-DWX_PRECOMP" | |
42652 | else | |
a848cd7e SC |
42653 | case "${host}" in |
42654 | powerpc-*-darwin* ) | |
74b84332 | 42655 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
a848cd7e | 42656 | ;; |
bea8e651 | 42657 | *-*-mingw32* ) |
1f344abf VS |
42658 | if test "$wxUSE_STL" = "yes" -o \ |
42659 | "$wxUSE_NO_EXCEPTIONS" != "yes" -o \ | |
42660 | "$wxUSE_NO_RTTI" != "yes"; then | |
42661 | echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5 | |
42662 | echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
bea8e651 MB |
42663 | cat >conftest.$ac_ext <<_ACEOF |
42664 | /* confdefs.h. */ | |
42665 | _ACEOF | |
42666 | cat confdefs.h >>conftest.$ac_ext | |
42667 | cat >>conftest.$ac_ext <<_ACEOF | |
42668 | /* end confdefs.h. */ | |
42669 | ||
3314e67b RR |
42670 | int |
42671 | main () | |
42672 | { | |
42673 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) | |
42674 | #error "Not GCC 3.2 or greater" | |
42675 | #endif | |
42676 | ||
42677 | ; | |
42678 | return 0; | |
42679 | } | |
42680 | _ACEOF | |
42681 | rm -f conftest.$ac_objext | |
42682 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42683 | (eval $ac_compile) 2>conftest.er1 | |
42684 | ac_status=$? | |
42685 | grep -v '^ *+' conftest.er1 >conftest.err | |
42686 | rm -f conftest.er1 | |
42687 | cat conftest.err >&5 | |
42688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42689 | (exit $ac_status); } && | |
89be85c2 VS |
42690 | { ac_try='test -z "$ac_c_werror_flag" |
42691 | || test ! -s conftest.err' | |
3314e67b RR |
42692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42693 | (eval $ac_try) 2>&5 | |
42694 | ac_status=$? | |
42695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42696 | (exit $ac_status); }; } && | |
42697 | { ac_try='test -s conftest.$ac_objext' | |
42698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42699 | (eval $ac_try) 2>&5 | |
42700 | ac_status=$? | |
42701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42702 | (exit $ac_status); }; }; then | |
42703 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" | |
42704 | echo "$as_me:$LINENO: result: yes" >&5 | |
42705 | echo "${ECHO_T}yes" >&6 | |
42706 | else | |
42707 | echo "$as_me: failed program was:" >&5 | |
42708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42709 | ||
42710 | echo "$as_me:$LINENO: result: no" >&5 | |
42711 | echo "${ECHO_T}no" >&6 | |
42712 | fi | |
42713 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
42714 | fi | |
42715 | ;; | |
42716 | *-pc-os2_emx | *-pc-os2-emx ) | |
42717 | if test "$wxUSE_STL" = "yes"; then | |
42718 | echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5 | |
42719 | echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
42720 | cat >conftest.$ac_ext <<_ACEOF | |
42721 | /* confdefs.h. */ | |
42722 | _ACEOF | |
42723 | cat confdefs.h >>conftest.$ac_ext | |
42724 | cat >>conftest.$ac_ext <<_ACEOF | |
42725 | /* end confdefs.h. */ | |
42726 | ||
bea8e651 MB |
42727 | int |
42728 | main () | |
42729 | { | |
1f344abf | 42730 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) |
bea8e651 MB |
42731 | #error "Not GCC 3.2 or greater" |
42732 | #endif | |
42733 | ||
42734 | ; | |
42735 | return 0; | |
42736 | } | |
42737 | _ACEOF | |
42738 | rm -f conftest.$ac_objext | |
42739 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42740 | (eval $ac_compile) 2>conftest.er1 |
bea8e651 | 42741 | ac_status=$? |
ac1cb8d3 VS |
42742 | grep -v '^ *+' conftest.er1 >conftest.err |
42743 | rm -f conftest.er1 | |
42744 | cat conftest.err >&5 | |
bea8e651 MB |
42745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42746 | (exit $ac_status); } && | |
89be85c2 VS |
42747 | { ac_try='test -z "$ac_c_werror_flag" |
42748 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42750 | (eval $ac_try) 2>&5 | |
42751 | ac_status=$? | |
42752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42753 | (exit $ac_status); }; } && | |
42754 | { ac_try='test -s conftest.$ac_objext' | |
bea8e651 MB |
42755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42756 | (eval $ac_try) 2>&5 | |
42757 | ac_status=$? | |
42758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42759 | (exit $ac_status); }; }; then | |
74b84332 | 42760 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
bea8e651 MB |
42761 | echo "$as_me:$LINENO: result: yes" >&5 |
42762 | echo "${ECHO_T}yes" >&6 | |
42763 | else | |
42764 | echo "$as_me: failed program was:" >&5 | |
42765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42766 | ||
42767 | echo "$as_me:$LINENO: result: no" >&5 | |
42768 | echo "${ECHO_T}no" >&6 | |
42769 | fi | |
ac1cb8d3 | 42770 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bea8e651 MB |
42771 | fi |
42772 | ;; | |
a848cd7e SC |
42773 | esac |
42774 | fi | |
d2083416 | 42775 | CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS" |
a848cd7e SC |
42776 | |
42777 | ||
42778 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
42779 | ||
42780 | ||
42781 | ||
42782 | ||
42783 | ||
42784 | ||
42785 | ||
42786 | ||
42787 | ||
42788 | ||
42789 | ||
42790 | ||
42791 | ||
42792 | ||
42793 | ||
42794 | ||
42795 | ||
42796 | ||
42797 | ||
42798 | ||
42799 | ||
42800 | ||
42801 | ||
42802 | ||
42803 | ||
42804 | ||
42805 | ||
42806 | ||
42807 | ||
42808 | ||
42809 | ||
42810 | ||
42811 | ||
42812 | ||
42813 | ||
42814 | ||
42815 | ||
42816 | ||
42817 | ||
42818 | ||
42819 | ||
42820 | ||
a848cd7e SC |
42821 | |
42822 | ||
42823 | ||
42824 | ||
42825 | ||
42826 | ||
42827 | ||
42828 | ||
42829 | ||
42830 | ||
42831 | ||
42832 | ||
42833 | ||
42834 | ||
42835 | ||
42836 | ||
42837 | ||
42838 | ||
74b84332 | 42839 | |
a848cd7e SC |
42840 | |
42841 | ||
42842 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
42843 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 42844 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
42845 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
42846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42847 | else | |
42848 | cat >conftest.make <<\_ACEOF | |
42849 | all: | |
42850 | @echo 'ac_maketemp="$(MAKE)"' | |
42851 | _ACEOF | |
42852 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
42853 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
42854 | if test -n "$ac_maketemp"; then | |
42855 | eval ac_cv_prog_make_${ac_make}_set=yes | |
42856 | else | |
42857 | eval ac_cv_prog_make_${ac_make}_set=no | |
42858 | fi | |
42859 | rm -f conftest.make | |
42860 | fi | |
42861 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
42862 | echo "$as_me:$LINENO: result: yes" >&5 | |
42863 | echo "${ECHO_T}yes" >&6 | |
42864 | SET_MAKE= | |
42865 | else | |
42866 | echo "$as_me:$LINENO: result: no" >&5 | |
42867 | echo "${ECHO_T}no" >&6 | |
42868 | SET_MAKE="MAKE=${MAKE-make}" | |
42869 | fi | |
42870 | ||
42871 | ||
a848cd7e | 42872 | |
ceec2216 RL |
42873 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
42874 | ||
a848cd7e | 42875 | |
ceec2216 | 42876 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 42877 | |
a848cd7e | 42878 | |
ceec2216 | 42879 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 42880 | |
ceec2216 RL |
42881 | |
42882 | ac_config_files="$ac_config_files version-script Makefile" | |
42883 | ||
42884 | ||
42885 | ac_config_commands="$ac_config_commands wx-config | |
42886 | " | |
a848cd7e SC |
42887 | |
42888 | ||
9103d280 RL |
42889 | |
42890 | ||
a848cd7e SC |
42891 | if test "$wxUSE_GUI" = "yes"; then |
42892 | SUBDIRS="samples demos utils contrib" | |
42893 | else SUBDIRS="samples utils" | |
42894 | fi | |
42895 | ||
42896 | ||
42897 | ||
42898 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
42899 | if test "${with_cppunit_prefix+set}" = set; then | |
42900 | withval="$with_cppunit_prefix" | |
42901 | cppunit_config_prefix="$withval" | |
42902 | else | |
42903 | cppunit_config_prefix="" | |
42904 | fi; | |
42905 | ||
42906 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
42907 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
42908 | withval="$with_cppunit_exec_prefix" | |
42909 | cppunit_config_exec_prefix="$withval" | |
42910 | else | |
42911 | cppunit_config_exec_prefix="" | |
42912 | fi; | |
42913 | ||
42914 | if test x$cppunit_config_exec_prefix != x ; then | |
42915 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
42916 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
42917 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
42918 | fi | |
42919 | fi | |
42920 | if test x$cppunit_config_prefix != x ; then | |
42921 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
42922 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
42923 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
42924 | fi | |
42925 | fi | |
42926 | ||
42927 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
42928 | set dummy cppunit-config; ac_word=$2 | |
42929 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42930 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42931 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
42932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42933 | else | |
42934 | case $CPPUNIT_CONFIG in | |
42935 | [\\/]* | ?:[\\/]*) | |
42936 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
42937 | ;; | |
42938 | *) | |
42939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42940 | for as_dir in $PATH | |
42941 | do | |
42942 | IFS=$as_save_IFS | |
42943 | test -z "$as_dir" && as_dir=. | |
42944 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42945 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42946 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
42947 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42948 | break 2 | |
42949 | fi | |
42950 | done | |
42951 | done | |
42952 | ||
42953 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
42954 | ;; | |
42955 | esac | |
42956 | fi | |
42957 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
42958 | ||
42959 | if test -n "$CPPUNIT_CONFIG"; then | |
42960 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
42961 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
42962 | else | |
42963 | echo "$as_me:$LINENO: result: no" >&5 | |
42964 | echo "${ECHO_T}no" >&6 | |
42965 | fi | |
42966 | ||
42967 | cppunit_version_min=1.8.0 | |
42968 | ||
42969 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
42970 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
42971 | no_cppunit="" | |
42972 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
42973 | no_cppunit=yes | |
42974 | else | |
42975 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
42976 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
42977 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
42978 | ||
42979 | cppunit_major_version=`echo $cppunit_version | \ | |
42980 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
42981 | cppunit_minor_version=`echo $cppunit_version | \ | |
42982 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
42983 | cppunit_micro_version=`echo $cppunit_version | \ | |
42984 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
42985 | ||
42986 | cppunit_major_min=`echo $cppunit_version_min | \ | |
42987 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
42988 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
42989 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
42990 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
42991 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
42992 | ||
42993 | cppunit_version_proper=`expr \ | |
42994 | $cppunit_major_version \> $cppunit_major_min \| \ | |
42995 | $cppunit_major_version \= $cppunit_major_min \& \ | |
42996 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
42997 | $cppunit_major_version \= $cppunit_major_min \& \ | |
42998 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
42999 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
43000 | ||
43001 | if test "$cppunit_version_proper" = "1" ; then | |
43002 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
43003 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
43004 | else | |
43005 | echo "$as_me:$LINENO: result: no" >&5 | |
43006 | echo "${ECHO_T}no" >&6 | |
43007 | no_cppunit=yes | |
43008 | fi | |
43009 | fi | |
43010 | ||
43011 | if test "x$no_cppunit" = x ; then | |
c2218763 | 43012 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
43013 | else |
43014 | CPPUNIT_CFLAGS="" | |
43015 | CPPUNIT_LIBS="" | |
c2218763 | 43016 | : |
a848cd7e SC |
43017 | fi |
43018 | ||
43019 | ||
43020 | ||
43021 | ||
43022 | ||
43023 | for subdir in `echo $SUBDIRS`; do | |
43024 | if test -d ${srcdir}/${subdir} ; then | |
43025 | if test "$wxUSE_GUI" = "yes"; then | |
43026 | if test ${subdir} = "samples"; then | |
43027 | makefiles="samples/Makefile.in $makefiles" | |
43028 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
43029 | if test -d $srcdir/samples/$sample; then | |
43030 | makefiles="samples/$sample/Makefile.in $makefiles" | |
43031 | fi | |
43032 | done | |
43033 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
43034 | fi | |
43035 | else if test ${subdir} = "samples"; then | |
43036 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
43037 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
43038 | makefiles="" |
43039 | for util in HelpGen tex2rtf ; do | |
43040 | if test -d $srcdir/utils/$util ; then | |
43041 | makefiles="utils/$util/Makefile.in \ | |
43042 | utils/$util/src/Makefile.in \ | |
43043 | $makefiles" | |
43044 | fi | |
43045 | done | |
a848cd7e SC |
43046 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
43047 | fi | |
43048 | fi | |
43049 | ||
43050 | for mkin in $makefiles ; do | |
43051 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
43052 | ac_config_files="$ac_config_files $mk" | |
43053 | ||
43054 | done | |
43055 | fi | |
43056 | done | |
43057 | ||
43058 | ||
43059 | cat >confcache <<\_ACEOF | |
43060 | # This file is a shell script that caches the results of configure | |
43061 | # tests run on this system so they can be shared between configure | |
43062 | # scripts and configure runs, see configure's option --config-cache. | |
43063 | # It is not useful on other systems. If it contains results you don't | |
43064 | # want to keep, you may remove or edit it. | |
43065 | # | |
43066 | # config.status only pays attention to the cache file if you give it | |
43067 | # the --recheck option to rerun configure. | |
43068 | # | |
43069 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
43070 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
43071 | # following values. | |
43072 | ||
43073 | _ACEOF | |
43074 | ||
43075 | # The following way of writing the cache mishandles newlines in values, | |
43076 | # but we know of no workaround that is simple, portable, and efficient. | |
43077 | # So, don't put newlines in cache variables' values. | |
43078 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
43079 | # and sets the high bit in the cache file unless we assign to the vars. | |
43080 | { | |
43081 | (set) 2>&1 | | |
43082 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
43083 | *ac_space=\ *) | |
43084 | # `set' does not quote correctly, so add quotes (double-quote | |
43085 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
43086 | sed -n \ | |
ac1cb8d3 VS |
43087 | "s/'/'\\\\''/g; |
43088 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
43089 | ;; |
43090 | *) | |
43091 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
43092 | sed -n \ | |
ac1cb8d3 | 43093 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
43094 | ;; |
43095 | esac; | |
43096 | } | | |
43097 | sed ' | |
43098 | t clear | |
43099 | : clear | |
43100 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
43101 | t end | |
43102 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
43103 | : end' >>confcache | |
43104 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
43105 | if test -w $cache_file; then | |
43106 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
43107 | cat confcache >$cache_file | |
43108 | else | |
43109 | echo "not updating unwritable cache $cache_file" | |
43110 | fi | |
43111 | fi | |
43112 | rm -f confcache | |
43113 | ||
43114 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
43115 | # Let make expand exec_prefix. | |
43116 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
43117 | ||
43118 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
43119 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
43120 | # trailing colons and then remove the whole line if VPATH becomes empty | |
43121 | # (actually we leave an empty line to preserve line numbers). | |
43122 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 43123 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
43124 | s/:*\$(srcdir):*/:/; |
43125 | s/:*\${srcdir}:*/:/; | |
43126 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 43127 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 43128 | s/:*$//; |
ac1cb8d3 | 43129 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
43130 | }' |
43131 | fi | |
43132 | ||
43133 | DEFS=-DHAVE_CONFIG_H | |
43134 | ||
43135 | ac_libobjs= | |
43136 | ac_ltlibobjs= | |
43137 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
43138 | # 1. Remove the extension, and $U if already installed. | |
43139 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 43140 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
43141 | # 2. Add them. |
43142 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
43143 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
43144 | done | |
43145 | LIBOBJS=$ac_libobjs | |
43146 | ||
43147 | LTLIBOBJS=$ac_ltlibobjs | |
43148 | ||
43149 | ||
43150 | ||
43151 | : ${CONFIG_STATUS=./config.status} | |
43152 | ac_clean_files_save=$ac_clean_files | |
43153 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
43154 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
43155 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
43156 | cat >$CONFIG_STATUS <<_ACEOF | |
43157 | #! $SHELL | |
43158 | # Generated by $as_me. | |
43159 | # Run this file to recreate the current configuration. | |
43160 | # Compiler output produced by configure, useful for debugging | |
43161 | # configure, is in config.log if it exists. | |
43162 | ||
43163 | debug=false | |
43164 | ac_cs_recheck=false | |
43165 | ac_cs_silent=false | |
43166 | SHELL=\${CONFIG_SHELL-$SHELL} | |
43167 | _ACEOF | |
43168 | ||
43169 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43170 | ## --------------------- ## | |
43171 | ## M4sh Initialization. ## | |
43172 | ## --------------------- ## | |
43173 | ||
43174 | # Be Bourne compatible | |
43175 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
43176 | emulate sh | |
43177 | NULLCMD=: | |
43178 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
43179 | # is contrary to our usage. Disable this feature. | |
43180 | alias -g '${1+"$@"}'='"$@"' | |
43181 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
43182 | set -o posix | |
43183 | fi | |
ac1cb8d3 | 43184 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
43185 | |
43186 | # Support unset when possible. | |
ac1cb8d3 | 43187 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
43188 | as_unset=unset |
43189 | else | |
43190 | as_unset=false | |
43191 | fi | |
43192 | ||
43193 | ||
43194 | # Work around bugs in pre-3.0 UWIN ksh. | |
43195 | $as_unset ENV MAIL MAILPATH | |
43196 | PS1='$ ' | |
43197 | PS2='> ' | |
43198 | PS4='+ ' | |
43199 | ||
43200 | # NLS nuisances. | |
43201 | for as_var in \ | |
43202 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
43203 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
43204 | LC_TELEPHONE LC_TIME | |
43205 | do | |
ac1cb8d3 | 43206 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
43207 | eval $as_var=C; export $as_var |
43208 | else | |
43209 | $as_unset $as_var | |
43210 | fi | |
43211 | done | |
43212 | ||
43213 | # Required to use basename. | |
43214 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
43215 | as_expr=expr | |
43216 | else | |
43217 | as_expr=false | |
43218 | fi | |
43219 | ||
43220 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
43221 | as_basename=basename | |
43222 | else | |
43223 | as_basename=false | |
43224 | fi | |
43225 | ||
43226 | ||
43227 | # Name of the executable. | |
43228 | as_me=`$as_basename "$0" || | |
43229 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
43230 | X"$0" : 'X\(//\)$' \| \ | |
43231 | X"$0" : 'X\(/\)$' \| \ | |
43232 | . : '\(.\)' 2>/dev/null || | |
43233 | echo X/"$0" | | |
43234 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
43235 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
43236 | /^X\/\(\/\).*/{ s//\1/; q; } | |
43237 | s/.*/./; q'` | |
43238 | ||
43239 | ||
43240 | # PATH needs CR, and LINENO needs CR and PATH. | |
43241 | # Avoid depending upon Character Ranges. | |
43242 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
43243 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
43244 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
43245 | as_cr_digits='0123456789' | |
43246 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
43247 | ||
43248 | # The user is always right. | |
43249 | if test "${PATH_SEPARATOR+set}" != set; then | |
43250 | echo "#! /bin/sh" >conf$$.sh | |
43251 | echo "exit 0" >>conf$$.sh | |
43252 | chmod +x conf$$.sh | |
43253 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
43254 | PATH_SEPARATOR=';' | |
43255 | else | |
43256 | PATH_SEPARATOR=: | |
43257 | fi | |
43258 | rm -f conf$$.sh | |
43259 | fi | |
43260 | ||
43261 | ||
43262 | as_lineno_1=$LINENO | |
43263 | as_lineno_2=$LINENO | |
43264 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
43265 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
43266 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
43267 | # Find who we are. Look in the path if we contain no path at all | |
43268 | # relative or not. | |
43269 | case $0 in | |
43270 | *[\\/]* ) as_myself=$0 ;; | |
43271 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43272 | for as_dir in $PATH | |
43273 | do | |
43274 | IFS=$as_save_IFS | |
43275 | test -z "$as_dir" && as_dir=. | |
43276 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
43277 | done | |
43278 | ||
43279 | ;; | |
43280 | esac | |
43281 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
43282 | # in which case we are not to be found in the path. | |
43283 | if test "x$as_myself" = x; then | |
43284 | as_myself=$0 | |
43285 | fi | |
43286 | if test ! -f "$as_myself"; then | |
43287 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
43288 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
43289 | { (exit 1); exit 1; }; } | |
43290 | fi | |
43291 | case $CONFIG_SHELL in | |
43292 | '') | |
43293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43294 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
43295 | do | |
43296 | IFS=$as_save_IFS | |
43297 | test -z "$as_dir" && as_dir=. | |
43298 | for as_base in sh bash ksh sh5; do | |
43299 | case $as_dir in | |
43300 | /*) | |
43301 | if ("$as_dir/$as_base" -c ' | |
43302 | as_lineno_1=$LINENO | |
43303 | as_lineno_2=$LINENO | |
43304 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
43305 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
43306 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
43307 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
43308 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
43309 | CONFIG_SHELL=$as_dir/$as_base | |
43310 | export CONFIG_SHELL | |
43311 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
43312 | fi;; | |
43313 | esac | |
43314 | done | |
43315 | done | |
43316 | ;; | |
43317 | esac | |
43318 | ||
43319 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
43320 | # uniformly replaced by the line number. The first 'sed' inserts a | |
43321 | # line-number line before each line; the second 'sed' does the real | |
43322 | # work. The second script uses 'N' to pair each line-number line | |
43323 | # with the numbered line, and appends trailing '-' during | |
43324 | # substitution so that $LINENO is not a special case at line end. | |
43325 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
43326 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
43327 | sed '=' <$as_myself | | |
43328 | sed ' | |
43329 | N | |
43330 | s,$,-, | |
43331 | : loop | |
43332 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
43333 | t loop | |
43334 | s,-$,, | |
43335 | s,^['$as_cr_digits']*\n,, | |
43336 | ' >$as_me.lineno && | |
43337 | chmod +x $as_me.lineno || | |
43338 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
43339 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
43340 | { (exit 1); exit 1; }; } | |
43341 | ||
43342 | # Don't try to exec as it changes $[0], causing all sort of problems | |
43343 | # (the dirname of $[0] is not the place where we might find the | |
43344 | # original and so on. Autoconf is especially sensible to this). | |
43345 | . ./$as_me.lineno | |
43346 | # Exit status is that of the last command. | |
43347 | exit | |
43348 | } | |
43349 | ||
43350 | ||
43351 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
43352 | *c*,-n*) ECHO_N= ECHO_C=' | |
43353 | ' ECHO_T=' ' ;; | |
43354 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
43355 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
43356 | esac | |
43357 | ||
43358 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
43359 | as_expr=expr | |
43360 | else | |
43361 | as_expr=false | |
43362 | fi | |
43363 | ||
43364 | rm -f conf$$ conf$$.exe conf$$.file | |
43365 | echo >conf$$.file | |
43366 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
43367 | # We could just check for DJGPP; but this test a) works b) is more generic | |
43368 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
43369 | if test -f conf$$.exe; then | |
43370 | # Don't use ln at all; we don't have any links | |
43371 | as_ln_s='cp -p' | |
43372 | else | |
43373 | as_ln_s='ln -s' | |
43374 | fi | |
43375 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
43376 | as_ln_s=ln | |
43377 | else | |
43378 | as_ln_s='cp -p' | |
43379 | fi | |
43380 | rm -f conf$$ conf$$.exe conf$$.file | |
43381 | ||
43382 | if mkdir -p . 2>/dev/null; then | |
43383 | as_mkdir_p=: | |
43384 | else | |
ac1cb8d3 | 43385 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
43386 | as_mkdir_p=false |
43387 | fi | |
43388 | ||
43389 | as_executable_p="test -f" | |
43390 | ||
43391 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 43392 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
43393 | |
43394 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 43395 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
43396 | |
43397 | ||
43398 | # IFS | |
43399 | # We need space, tab and new line, in precisely that order. | |
43400 | as_nl=' | |
43401 | ' | |
43402 | IFS=" $as_nl" | |
43403 | ||
43404 | # CDPATH. | |
43405 | $as_unset CDPATH | |
43406 | ||
43407 | exec 6>&1 | |
43408 | ||
43409 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
43410 | # report actual input values of CONFIG_FILES etc. instead of their | |
43411 | # values after options handling. Logging --version etc. is OK. | |
43412 | exec 5>>config.log | |
43413 | { | |
43414 | echo | |
43415 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
43416 | ## Running $as_me. ## | |
43417 | _ASBOX | |
43418 | } >&5 | |
43419 | cat >&5 <<_CSEOF | |
43420 | ||
81f90336 | 43421 | This file was extended by wxWidgets $as_me 2.5.4, which was |
ac1cb8d3 | 43422 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
43423 | |
43424 | CONFIG_FILES = $CONFIG_FILES | |
43425 | CONFIG_HEADERS = $CONFIG_HEADERS | |
43426 | CONFIG_LINKS = $CONFIG_LINKS | |
43427 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
43428 | $ $0 $@ | |
43429 | ||
43430 | _CSEOF | |
43431 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
43432 | echo >&5 | |
43433 | _ACEOF | |
43434 | ||
43435 | # Files that config.status was made for. | |
43436 | if test -n "$ac_config_files"; then | |
43437 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
43438 | fi | |
43439 | ||
43440 | if test -n "$ac_config_headers"; then | |
43441 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
43442 | fi | |
43443 | ||
43444 | if test -n "$ac_config_links"; then | |
43445 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
43446 | fi | |
43447 | ||
43448 | if test -n "$ac_config_commands"; then | |
43449 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
43450 | fi | |
43451 | ||
43452 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43453 | ||
43454 | ac_cs_usage="\ | |
43455 | \`$as_me' instantiates files from templates according to the | |
43456 | current configuration. | |
43457 | ||
43458 | Usage: $0 [OPTIONS] [FILE]... | |
43459 | ||
43460 | -h, --help print this help, then exit | |
43461 | -V, --version print version number, then exit | |
43462 | -q, --quiet do not print progress messages | |
43463 | -d, --debug don't remove temporary files | |
43464 | --recheck update $as_me by reconfiguring in the same conditions | |
43465 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 43466 | instantiate the configuration file FILE |
a848cd7e | 43467 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 43468 | instantiate the configuration header FILE |
a848cd7e SC |
43469 | |
43470 | Configuration files: | |
43471 | $config_files | |
43472 | ||
43473 | Configuration headers: | |
43474 | $config_headers | |
43475 | ||
43476 | Configuration commands: | |
43477 | $config_commands | |
43478 | ||
43479 | Report bugs to <bug-autoconf@gnu.org>." | |
43480 | _ACEOF | |
43481 | ||
43482 | cat >>$CONFIG_STATUS <<_ACEOF | |
43483 | ac_cs_version="\\ | |
81f90336 | 43484 | wxWidgets config.status 2.5.4 |
ac1cb8d3 | 43485 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
43486 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
43487 | ||
ac1cb8d3 | 43488 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
43489 | This config.status script is free software; the Free Software Foundation |
43490 | gives unlimited permission to copy, distribute and modify it." | |
43491 | srcdir=$srcdir | |
43492 | INSTALL="$INSTALL" | |
43493 | _ACEOF | |
43494 | ||
43495 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43496 | # If no file are specified by the user, then we need to provide default | |
43497 | # value. By we need to know if files were specified by the user. | |
43498 | ac_need_defaults=: | |
43499 | while test $# != 0 | |
43500 | do | |
43501 | case $1 in | |
43502 | --*=*) | |
43503 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
43504 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
43505 | ac_shift=: | |
43506 | ;; | |
43507 | -*) | |
43508 | ac_option=$1 | |
43509 | ac_optarg=$2 | |
43510 | ac_shift=shift | |
43511 | ;; | |
43512 | *) # This is not an option, so the user has probably given explicit | |
43513 | # arguments. | |
43514 | ac_option=$1 | |
43515 | ac_need_defaults=false;; | |
43516 | esac | |
43517 | ||
43518 | case $ac_option in | |
43519 | # Handling of the options. | |
43520 | _ACEOF | |
43521 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43522 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
43523 | ac_cs_recheck=: ;; | |
43524 | --version | --vers* | -V ) | |
43525 | echo "$ac_cs_version"; exit 0 ;; | |
43526 | --he | --h) | |
43527 | # Conflict between --help and --header | |
43528 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
43529 | Try \`$0 --help' for more information." >&5 | |
43530 | echo "$as_me: error: ambiguous option: $1 | |
43531 | Try \`$0 --help' for more information." >&2;} | |
43532 | { (exit 1); exit 1; }; };; | |
43533 | --help | --hel | -h ) | |
43534 | echo "$ac_cs_usage"; exit 0 ;; | |
43535 | --debug | --d* | -d ) | |
43536 | debug=: ;; | |
43537 | --file | --fil | --fi | --f ) | |
43538 | $ac_shift | |
43539 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
43540 | ac_need_defaults=false;; | |
43541 | --header | --heade | --head | --hea ) | |
43542 | $ac_shift | |
43543 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
43544 | ac_need_defaults=false;; | |
43545 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
43546 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
43547 | ac_cs_silent=: ;; | |
43548 | ||
43549 | # This is an error. | |
43550 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
43551 | Try \`$0 --help' for more information." >&5 | |
43552 | echo "$as_me: error: unrecognized option: $1 | |
43553 | Try \`$0 --help' for more information." >&2;} | |
43554 | { (exit 1); exit 1; }; } ;; | |
43555 | ||
43556 | *) ac_config_targets="$ac_config_targets $1" ;; | |
43557 | ||
43558 | esac | |
43559 | shift | |
43560 | done | |
43561 | ||
43562 | ac_configure_extra_args= | |
43563 | ||
43564 | if $ac_cs_silent; then | |
43565 | exec 6>/dev/null | |
43566 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
43567 | fi | |
43568 | ||
43569 | _ACEOF | |
43570 | cat >>$CONFIG_STATUS <<_ACEOF | |
43571 | if \$ac_cs_recheck; then | |
43572 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
43573 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
43574 | fi | |
43575 | ||
43576 | _ACEOF | |
43577 | ||
43578 | cat >>$CONFIG_STATUS <<_ACEOF | |
43579 | # | |
43580 | # INIT-COMMANDS section. | |
43581 | # | |
43582 | ||
ceec2216 RL |
43583 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
43584 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
43585 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
43586 | LN_S="${LN_S}" | |
a848cd7e SC |
43587 | |
43588 | ||
43589 | _ACEOF | |
43590 | ||
43591 | ||
43592 | ||
43593 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43594 | for ac_config_target in $ac_config_targets | |
43595 | do | |
43596 | case "$ac_config_target" in | |
43597 | # Handling of arguments. | |
ceec2216 RL |
43598 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
43599 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
43600 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
43601 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
43602 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
ceec2216 RL |
43603 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
43604 | "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 |
43605 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
43606 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
43607 | { (exit 1); exit 1; }; };; | |
43608 | esac | |
43609 | done | |
43610 | ||
43611 | # If the user did not use the arguments to specify the items to instantiate, | |
43612 | # then the envvar interface is used. Set only those that are not. | |
43613 | # We use the long form for the default assignment because of an extremely | |
43614 | # bizarre bug on SunOS 4.1.3. | |
43615 | if $ac_need_defaults; then | |
43616 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
43617 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
43618 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
43619 | fi | |
43620 | ||
43621 | # Have a temporary directory for convenience. Make it in the build tree | |
43622 | # simply because there is no reason to put it here, and in addition, | |
43623 | # creating and moving files from /tmp can sometimes cause problems. | |
43624 | # Create a temporary directory, and hook for its removal unless debugging. | |
43625 | $debug || | |
43626 | { | |
43627 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
43628 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
43629 | } | |
43630 | ||
43631 | # Create a (secure) tmp directory for tmp files. | |
43632 | ||
43633 | { | |
43634 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
43635 | test -n "$tmp" && test -d "$tmp" | |
43636 | } || | |
43637 | { | |
43638 | tmp=./confstat$$-$RANDOM | |
43639 | (umask 077 && mkdir $tmp) | |
43640 | } || | |
43641 | { | |
43642 | echo "$me: cannot create a temporary directory in ." >&2 | |
43643 | { (exit 1); exit 1; } | |
43644 | } | |
43645 | ||
43646 | _ACEOF | |
43647 | ||
43648 | cat >>$CONFIG_STATUS <<_ACEOF | |
43649 | ||
43650 | # | |
43651 | # CONFIG_FILES section. | |
43652 | # | |
43653 | ||
43654 | # No need to generate the scripts if there are no CONFIG_FILES. | |
43655 | # This happens for instance when ./config.status config.h | |
43656 | if test -n "\$CONFIG_FILES"; then | |
43657 | # Protect against being on the right side of a sed subst in config.status. | |
43658 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
43659 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
43660 | s,@SHELL@,$SHELL,;t t | |
43661 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
43662 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
43663 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
43664 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
43665 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
43666 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
43667 | s,@exec_prefix@,$exec_prefix,;t t | |
43668 | s,@prefix@,$prefix,;t t | |
43669 | s,@program_transform_name@,$program_transform_name,;t t | |
43670 | s,@bindir@,$bindir,;t t | |
43671 | s,@sbindir@,$sbindir,;t t | |
43672 | s,@libexecdir@,$libexecdir,;t t | |
43673 | s,@datadir@,$datadir,;t t | |
43674 | s,@sysconfdir@,$sysconfdir,;t t | |
43675 | s,@sharedstatedir@,$sharedstatedir,;t t | |
43676 | s,@localstatedir@,$localstatedir,;t t | |
43677 | s,@libdir@,$libdir,;t t | |
43678 | s,@includedir@,$includedir,;t t | |
43679 | s,@oldincludedir@,$oldincludedir,;t t | |
43680 | s,@infodir@,$infodir,;t t | |
43681 | s,@mandir@,$mandir,;t t | |
43682 | s,@build_alias@,$build_alias,;t t | |
43683 | s,@host_alias@,$host_alias,;t t | |
43684 | s,@target_alias@,$target_alias,;t t | |
43685 | s,@DEFS@,$DEFS,;t t | |
43686 | s,@ECHO_C@,$ECHO_C,;t t | |
43687 | s,@ECHO_N@,$ECHO_N,;t t | |
43688 | s,@ECHO_T@,$ECHO_T,;t t | |
43689 | s,@LIBS@,$LIBS,;t t | |
43690 | s,@build@,$build,;t t | |
43691 | s,@build_cpu@,$build_cpu,;t t | |
43692 | s,@build_vendor@,$build_vendor,;t t | |
43693 | s,@build_os@,$build_os,;t t | |
43694 | s,@host@,$host,;t t | |
43695 | s,@host_cpu@,$host_cpu,;t t | |
43696 | s,@host_vendor@,$host_vendor,;t t | |
43697 | s,@host_os@,$host_os,;t t | |
43698 | s,@target@,$target,;t t | |
43699 | s,@target_cpu@,$target_cpu,;t t | |
43700 | s,@target_vendor@,$target_vendor,;t t | |
43701 | s,@target_os@,$target_os,;t t | |
43702 | s,@CC@,$CC,;t t | |
43703 | s,@CFLAGS@,$CFLAGS,;t t | |
43704 | s,@LDFLAGS@,$LDFLAGS,;t t | |
43705 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
43706 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
43707 | s,@EXEEXT@,$EXEEXT,;t t | |
43708 | s,@OBJEXT@,$OBJEXT,;t t | |
43709 | s,@CPP@,$CPP,;t t | |
43710 | s,@EGREP@,$EGREP,;t t | |
43711 | s,@CXX@,$CXX,;t t | |
43712 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
43713 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
43714 | s,@RANLIB@,$RANLIB,;t t | |
43715 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
43716 | s,@AR@,$AR,;t t | |
43717 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
43718 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
43719 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
43720 | s,@STRIP@,$STRIP,;t t | |
43721 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
43722 | s,@LN_S@,$LN_S,;t t | |
43723 | s,@CXXCPP@,$CXXCPP,;t t | |
43724 | s,@subdirs@,$subdirs,;t t | |
43725 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
43726 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
43727 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
43728 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
a848cd7e SC |
43729 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
43730 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
43731 | s,@X_LIBS@,$X_LIBS,;t t | |
43732 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
43733 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
43734 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
43735 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
43736 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
43737 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
43738 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
43739 | s,@RESCOMP@,$RESCOMP,;t t | |
43740 | s,@DEREZ@,$DEREZ,;t t | |
43741 | s,@SETFILE@,$SETFILE,;t t | |
43742 | s,@LIBICONV@,$LIBICONV,;t t | |
43743 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
43744 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
43745 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
43746 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
43747 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
43748 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
dae87f93 RN |
43749 | s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t |
43750 | s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t | |
43751 | s,@GST_INSPECT@,$GST_INSPECT,;t t | |
a848cd7e SC |
43752 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
43753 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
43754 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
43755 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
43756 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
43757 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
43758 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
43759 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
43760 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
43761 | s,@VENDOR@,$VENDOR,;t t | |
43762 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
43763 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
43764 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
43765 | s,@WXUNIV@,$WXUNIV,;t t |
43766 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
43767 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
43768 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
43769 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
43770 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
43771 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
43772 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
43773 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
43774 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
43775 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 43776 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
a848cd7e SC |
43777 | s,@UNICODE@,$UNICODE,;t t |
43778 | s,@BUILD@,$BUILD,;t t | |
43779 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
43780 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
43781 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
43782 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
43783 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
43784 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
43785 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
43786 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
43787 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
43788 | s,@SET_MAKE@,$SET_MAKE,;t t | |
43789 | s,@MAKE_SET@,$MAKE_SET,;t t | |
43790 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
43791 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
43792 | s,@NM@,$NM,;t t | |
43793 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
43794 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
43795 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
43796 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
43797 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
43798 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
43799 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
1e9e8aba | 43800 | s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t |
a848cd7e SC |
43801 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t |
43802 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
1e9e8aba | 43803 | s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t |
a848cd7e SC |
43804 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
43805 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
43806 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
43807 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
43808 | s,@LIBEXT@,$LIBEXT,;t t | |
43809 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
43810 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
43811 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t | |
43812 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
43813 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
43814 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
43815 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
43816 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
43817 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
43818 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
43819 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
43820 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
43821 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
43822 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
43823 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
43824 | s,@GCC_PCH@,$GCC_PCH,;t t | |
43825 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
43826 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
43827 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
43828 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
43829 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
43830 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
43831 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
43832 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
43833 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
43834 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
43835 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
43836 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
43837 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
43838 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
43839 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
43840 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
43841 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
43842 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
90970d69 | 43843 | 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 | 43844 | 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 |
a848cd7e | 43845 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
ceec2216 | 43846 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
43847 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
43848 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
90970d69 | 43849 | 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 | 43850 | 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 |
a848cd7e | 43851 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
ceec2216 | 43852 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
a848cd7e SC |
43853 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
43854 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
43855 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
43856 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
43857 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
43858 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
43859 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t | |
43860 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 43861 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
43862 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
43863 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
43864 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
fc480dc1 | 43865 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t |
1e9e8aba | 43866 | 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 |
43867 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
43868 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
43869 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
43870 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 43871 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
a848cd7e SC |
43872 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
43873 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t | |
43874 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
43875 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
43876 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
43877 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
43878 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
43879 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
43880 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
ceec2216 RL |
43881 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
43882 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
43883 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
43884 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
43885 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
43886 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
43887 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
43888 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t | |
43889 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
43890 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
43891 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
43892 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
43893 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
a30f955f | 43894 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 43895 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 43896 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e SC |
43897 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
43898 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
43899 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
43900 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t | |
43901 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t | |
43902 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
43903 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
43904 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
43905 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
43906 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
43907 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
43908 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
43909 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
43910 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
43911 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
43912 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t | |
43913 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
43914 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
43915 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
43916 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
43917 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e SC |
43918 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
43919 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
43920 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
43921 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
43922 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
43923 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
43924 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
43925 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
43926 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
43927 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
43928 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
43929 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
ceec2216 | 43930 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
ffa0583f | 43931 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t |
a848cd7e SC |
43932 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
43933 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t | |
43934 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
43935 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
43936 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
a13a7f89 | 43937 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
a848cd7e | 43938 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
1e6eb025 | 43939 | s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t |
a848cd7e SC |
43940 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
43941 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
43942 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
43943 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
43944 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
43945 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
43946 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
43947 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
ceec2216 | 43948 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
43949 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
43950 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
43951 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t |
43952 | s,@USE_GUI@,$USE_GUI,;t t | |
43953 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
43954 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
43955 | s,@TOOLKIT@,$TOOLKIT,;t t | |
43956 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 43957 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 43958 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e SC |
43959 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t |
43960 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
a848cd7e | 43961 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
43962 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
43963 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
43964 | s,@WX_VERSION@,$WX_VERSION,;t t | |
43965 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
43966 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
43967 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
a848cd7e | 43968 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
a848cd7e SC |
43969 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t |
43970 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
43971 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
43972 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
74b84332 | 43973 | s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t |
a848cd7e SC |
43974 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
43975 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
ceec2216 | 43976 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 43977 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
43978 | s,@DISTDIR@,$DISTDIR,;t t |
43979 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
43980 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
43981 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
43982 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
43983 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
43984 | s,@RESFLAGS@,$RESFLAGS,;t t | |
43985 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
43986 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
43987 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
43988 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
43989 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
43990 | s,@MACSETFILE@,$MACSETFILE,;t t | |
43991 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
43992 | s,@GCC@,$GCC,;t t | |
a848cd7e | 43993 | s,@DLLTOOL@,$DLLTOOL,;t t |
a848cd7e SC |
43994 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
43995 | s,@LIBOBJS@,$LIBOBJS,;t t | |
43996 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
43997 | CEOF | |
43998 | ||
43999 | _ACEOF | |
44000 | ||
44001 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44002 | # Split the substitutions into bite-sized pieces for seds with | |
44003 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
44004 | ac_max_sed_lines=48 | |
44005 | ac_sed_frag=1 # Number of current file. | |
44006 | ac_beg=1 # First line for current file. | |
44007 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
44008 | ac_more_lines=: | |
44009 | ac_sed_cmds= | |
44010 | while $ac_more_lines; do | |
44011 | if test $ac_beg -gt 1; then | |
44012 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
44013 | else | |
44014 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
44015 | fi | |
44016 | if test ! -s $tmp/subs.frag; then | |
44017 | ac_more_lines=false | |
44018 | else | |
44019 | # The purpose of the label and of the branching condition is to | |
44020 | # speed up the sed processing (if there are no `@' at all, there | |
44021 | # is no need to browse any of the substitutions). | |
44022 | # These are the two extra sed commands mentioned above. | |
44023 | (echo ':t | |
44024 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
44025 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 44026 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 44027 | else |
ac1cb8d3 | 44028 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
44029 | fi |
44030 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
44031 | ac_beg=$ac_end | |
44032 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
44033 | fi | |
44034 | done | |
44035 | if test -z "$ac_sed_cmds"; then | |
44036 | ac_sed_cmds=cat | |
44037 | fi | |
44038 | fi # test -n "$CONFIG_FILES" | |
44039 | ||
44040 | _ACEOF | |
44041 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44042 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
44043 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
44044 | case $ac_file in | |
44045 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
44046 | cat >$tmp/stdin |
44047 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
44048 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 44049 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 44050 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
44051 | * ) ac_file_in=$ac_file.in ;; |
44052 | esac | |
44053 | ||
44054 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
44055 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
44056 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
44057 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
44058 | X"$ac_file" : 'X\(//\)$' \| \ | |
44059 | X"$ac_file" : 'X\(/\)' \| \ | |
44060 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
44061 | echo X"$ac_file" | |
44062 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
44063 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
44064 | /^X\(\/\/\)$/{ s//\1/; q; } | |
44065 | /^X\(\/\).*/{ s//\1/; q; } | |
44066 | s/.*/./; q'` | |
44067 | { if $as_mkdir_p; then | |
44068 | mkdir -p "$ac_dir" | |
44069 | else | |
44070 | as_dir="$ac_dir" | |
44071 | as_dirs= | |
44072 | while test ! -d "$as_dir"; do | |
44073 | as_dirs="$as_dir $as_dirs" | |
44074 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
44075 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
44076 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
44077 | X"$as_dir" : 'X\(//\)$' \| \ | |
44078 | X"$as_dir" : 'X\(/\)' \| \ | |
44079 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
44080 | echo X"$as_dir" | |
44081 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
44082 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
44083 | /^X\(\/\/\)$/{ s//\1/; q; } | |
44084 | /^X\(\/\).*/{ s//\1/; q; } | |
44085 | s/.*/./; q'` | |
44086 | done | |
44087 | test ! -n "$as_dirs" || mkdir $as_dirs | |
44088 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
44089 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
44090 | { (exit 1); exit 1; }; }; } | |
44091 | ||
44092 | ac_builddir=. | |
44093 | ||
44094 | if test "$ac_dir" != .; then | |
44095 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
44096 | # A "../" for each directory in $ac_dir_suffix. | |
44097 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
44098 | else | |
44099 | ac_dir_suffix= ac_top_builddir= | |
44100 | fi | |
44101 | ||
44102 | case $srcdir in | |
44103 | .) # No --srcdir option. We are building in place. | |
44104 | ac_srcdir=. | |
44105 | if test -z "$ac_top_builddir"; then | |
44106 | ac_top_srcdir=. | |
44107 | else | |
44108 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
44109 | fi ;; | |
44110 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
44111 | ac_srcdir=$srcdir$ac_dir_suffix; | |
44112 | ac_top_srcdir=$srcdir ;; | |
44113 | *) # Relative path. | |
44114 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
44115 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
44116 | esac | |
ac1cb8d3 VS |
44117 | |
44118 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
44119 | # the directories may not exist. | |
44120 | case `pwd` in | |
44121 | .) ac_abs_builddir="$ac_dir";; | |
44122 | *) | |
44123 | case "$ac_dir" in | |
44124 | .) ac_abs_builddir=`pwd`;; | |
44125 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
44126 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
44127 | esac;; | |
44128 | esac | |
44129 | case $ac_abs_builddir in | |
44130 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
44131 | *) | |
44132 | case ${ac_top_builddir}. in | |
44133 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
44134 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
44135 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
44136 | esac;; | |
44137 | esac | |
44138 | case $ac_abs_builddir in | |
44139 | .) ac_abs_srcdir=$ac_srcdir;; | |
44140 | *) | |
44141 | case $ac_srcdir in | |
44142 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
44143 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
44144 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
44145 | esac;; | |
44146 | esac | |
44147 | case $ac_abs_builddir in | |
44148 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
44149 | *) | |
44150 | case $ac_top_srcdir in | |
44151 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
44152 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
44153 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
44154 | esac;; | |
44155 | esac | |
a848cd7e SC |
44156 | |
44157 | ||
44158 | case $INSTALL in | |
44159 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
44160 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
44161 | esac | |
44162 | ||
89be85c2 VS |
44163 | if test x"$ac_file" != x-; then |
44164 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
44165 | echo "$as_me: creating $ac_file" >&6;} | |
44166 | rm -f "$ac_file" | |
44167 | fi | |
a848cd7e SC |
44168 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
44169 | # use $as_me), people would be surprised to read: | |
44170 | # /* config.h. Generated by config.status. */ | |
44171 | if test x"$ac_file" = x-; then | |
44172 | configure_input= | |
44173 | else | |
44174 | configure_input="$ac_file. " | |
44175 | fi | |
44176 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 44177 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
44178 | |
44179 | # First look for the input files in the build tree, otherwise in the | |
44180 | # src tree. | |
44181 | ac_file_inputs=`IFS=: | |
44182 | for f in $ac_file_in; do | |
44183 | case $f in | |
44184 | -) echo $tmp/stdin ;; | |
44185 | [\\/$]*) | |
ac1cb8d3 VS |
44186 | # Absolute (can't be DOS-style, as IFS=:) |
44187 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
44188 | echo "$as_me: error: cannot find input file: $f" >&2;} |
44189 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 44190 | echo "$f";; |
a848cd7e | 44191 | *) # Relative |
ac1cb8d3 VS |
44192 | if test -f "$f"; then |
44193 | # Build tree | |
44194 | echo "$f" | |
44195 | elif test -f "$srcdir/$f"; then | |
44196 | # Source tree | |
44197 | echo "$srcdir/$f" | |
44198 | else | |
44199 | # /dev/null tree | |
44200 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
44201 | echo "$as_me: error: cannot find input file: $f" >&2;} |
44202 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 44203 | fi;; |
a848cd7e SC |
44204 | esac |
44205 | done` || { (exit 1); exit 1; } | |
44206 | _ACEOF | |
44207 | cat >>$CONFIG_STATUS <<_ACEOF | |
44208 | sed "$ac_vpsub | |
44209 | $extrasub | |
44210 | _ACEOF | |
44211 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44212 | :t | |
44213 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
44214 | s,@configure_input@,$configure_input,;t t | |
44215 | s,@srcdir@,$ac_srcdir,;t t | |
44216 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
44217 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
44218 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
44219 | s,@builddir@,$ac_builddir,;t t | |
44220 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
44221 | s,@top_builddir@,$ac_top_builddir,;t t | |
44222 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
44223 | s,@INSTALL@,$ac_INSTALL,;t t | |
44224 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
44225 | rm -f $tmp/stdin | |
44226 | if test x"$ac_file" != x-; then | |
44227 | mv $tmp/out $ac_file | |
44228 | else | |
44229 | cat $tmp/out | |
44230 | rm -f $tmp/out | |
44231 | fi | |
44232 | ||
ceec2216 RL |
44233 | # Run the commands associated with the file. |
44234 | case $ac_file in | |
44235 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
44236 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
44237 | esac | |
a848cd7e SC |
44238 | done |
44239 | _ACEOF | |
44240 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44241 | ||
44242 | # | |
44243 | # CONFIG_HEADER section. | |
44244 | # | |
44245 | ||
44246 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
44247 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
44248 | # | |
44249 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
44250 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
44251 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
44252 | ac_dC=' ' |
44253 | ac_dD=',;t' | |
44254 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 44255 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
44256 | ac_uB='$,\1#\2define\3' |
44257 | ac_uC=' ' | |
44258 | ac_uD=',;t' | |
44259 | ||
44260 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
44261 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
44262 | case $ac_file in | |
44263 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
44264 | cat >$tmp/stdin |
44265 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
44266 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 44267 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 44268 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
44269 | * ) ac_file_in=$ac_file.in ;; |
44270 | esac | |
44271 | ||
44272 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
44273 | echo "$as_me: creating $ac_file" >&6;} | |
44274 | ||
44275 | # First look for the input files in the build tree, otherwise in the | |
44276 | # src tree. | |
44277 | ac_file_inputs=`IFS=: | |
44278 | for f in $ac_file_in; do | |
44279 | case $f in | |
44280 | -) echo $tmp/stdin ;; | |
44281 | [\\/$]*) | |
ac1cb8d3 VS |
44282 | # Absolute (can't be DOS-style, as IFS=:) |
44283 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
44284 | echo "$as_me: error: cannot find input file: $f" >&2;} |
44285 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
44286 | # Do quote $f, to prevent DOS paths from being IFS'd. |
44287 | echo "$f";; | |
a848cd7e | 44288 | *) # Relative |
ac1cb8d3 VS |
44289 | if test -f "$f"; then |
44290 | # Build tree | |
44291 | echo "$f" | |
44292 | elif test -f "$srcdir/$f"; then | |
44293 | # Source tree | |
44294 | echo "$srcdir/$f" | |
44295 | else | |
44296 | # /dev/null tree | |
44297 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
44298 | echo "$as_me: error: cannot find input file: $f" >&2;} |
44299 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 44300 | fi;; |
a848cd7e SC |
44301 | esac |
44302 | done` || { (exit 1); exit 1; } | |
44303 | # Remove the trailing spaces. | |
ac1cb8d3 | 44304 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
44305 | |
44306 | _ACEOF | |
44307 | ||
44308 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
44309 | # `conftest.undefs', that substitutes the proper values into | |
44310 | # config.h.in to produce config.h. The first handles `#define' | |
44311 | # templates, and the second `#undef' templates. | |
44312 | # And first: Protect against being on the right side of a sed subst in | |
44313 | # config.status. Protect against being in an unquoted here document | |
44314 | # in config.status. | |
44315 | rm -f conftest.defines conftest.undefs | |
44316 | # Using a here document instead of a string reduces the quoting nightmare. | |
44317 | # Putting comments in sed scripts is not portable. | |
44318 | # | |
44319 | # `end' is used to avoid that the second main sed command (meant for | |
44320 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
44321 | # See the Autoconf documentation for `clear'. | |
44322 | cat >confdef2sed.sed <<\_ACEOF | |
44323 | s/[\\&,]/\\&/g | |
44324 | s,[\\$`],\\&,g | |
44325 | t clear | |
44326 | : clear | |
ac1cb8d3 | 44327 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 44328 | t end |
ac1cb8d3 | 44329 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
44330 | : end |
44331 | _ACEOF | |
44332 | # If some macros were called several times there might be several times | |
44333 | # the same #defines, which is useless. Nevertheless, we may not want to | |
44334 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
44335 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
44336 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
44337 | rm -f confdef2sed.sed | |
44338 | ||
44339 | # This sed command replaces #undef with comments. This is necessary, for | |
44340 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
44341 | # on some systems where configure will not decide to define it. | |
44342 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 44343 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
44344 | _ACEOF |
44345 | ||
44346 | # Break up conftest.defines because some shells have a limit on the size | |
44347 | # of here documents, and old seds have small limits too (100 cmds). | |
44348 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 44349 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
44350 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
44351 | echo ' :' >>$CONFIG_STATUS | |
44352 | rm -f conftest.tail | |
44353 | while grep . conftest.defines >/dev/null | |
44354 | do | |
44355 | # Write a limited-size here document to $tmp/defines.sed. | |
44356 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
44357 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 44358 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
44359 | # Work around the forget-to-reset-the-flag bug. |
44360 | echo 't clr' >>$CONFIG_STATUS | |
44361 | echo ': clr' >>$CONFIG_STATUS | |
44362 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
44363 | echo 'CEOF | |
44364 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
44365 | rm -f $tmp/in | |
44366 | mv $tmp/out $tmp/in | |
44367 | ' >>$CONFIG_STATUS | |
44368 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
44369 | rm -f conftest.defines | |
44370 | mv conftest.tail conftest.defines | |
44371 | done | |
44372 | rm -f conftest.defines | |
44373 | echo ' fi # grep' >>$CONFIG_STATUS | |
44374 | echo >>$CONFIG_STATUS | |
44375 | ||
44376 | # Break up conftest.undefs because some shells have a limit on the size | |
44377 | # of here documents, and old seds have small limits too (100 cmds). | |
44378 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
44379 | rm -f conftest.tail | |
44380 | while grep . conftest.undefs >/dev/null | |
44381 | do | |
44382 | # Write a limited-size here document to $tmp/undefs.sed. | |
44383 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
44384 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 44385 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
44386 | # Work around the forget-to-reset-the-flag bug. |
44387 | echo 't clr' >>$CONFIG_STATUS | |
44388 | echo ': clr' >>$CONFIG_STATUS | |
44389 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
44390 | echo 'CEOF | |
44391 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
44392 | rm -f $tmp/in | |
44393 | mv $tmp/out $tmp/in | |
44394 | ' >>$CONFIG_STATUS | |
44395 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
44396 | rm -f conftest.undefs | |
44397 | mv conftest.tail conftest.undefs | |
44398 | done | |
44399 | rm -f conftest.undefs | |
44400 | ||
44401 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44402 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
44403 | # use $as_me), people would be surprised to read: | |
44404 | # /* config.h. Generated by config.status. */ | |
44405 | if test x"$ac_file" = x-; then | |
44406 | echo "/* Generated by configure. */" >$tmp/config.h | |
44407 | else | |
44408 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
44409 | fi | |
44410 | cat $tmp/in >>$tmp/config.h | |
44411 | rm -f $tmp/in | |
44412 | if test x"$ac_file" != x-; then | |
44413 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
44414 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
44415 | echo "$as_me: $ac_file is unchanged" >&6;} | |
44416 | else | |
44417 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
44418 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
44419 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
44420 | X"$ac_file" : 'X\(//\)$' \| \ | |
44421 | X"$ac_file" : 'X\(/\)' \| \ | |
44422 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
44423 | echo X"$ac_file" | |
44424 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
44425 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
44426 | /^X\(\/\/\)$/{ s//\1/; q; } | |
44427 | /^X\(\/\).*/{ s//\1/; q; } | |
44428 | s/.*/./; q'` | |
44429 | { if $as_mkdir_p; then | |
44430 | mkdir -p "$ac_dir" | |
44431 | else | |
44432 | as_dir="$ac_dir" | |
44433 | as_dirs= | |
44434 | while test ! -d "$as_dir"; do | |
44435 | as_dirs="$as_dir $as_dirs" | |
44436 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
44437 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
44438 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
44439 | X"$as_dir" : 'X\(//\)$' \| \ | |
44440 | X"$as_dir" : 'X\(/\)' \| \ | |
44441 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
44442 | echo X"$as_dir" | |
44443 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
44444 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
44445 | /^X\(\/\/\)$/{ s//\1/; q; } | |
44446 | /^X\(\/\).*/{ s//\1/; q; } | |
44447 | s/.*/./; q'` | |
44448 | done | |
44449 | test ! -n "$as_dirs" || mkdir $as_dirs | |
44450 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
44451 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
44452 | { (exit 1); exit 1; }; }; } | |
44453 | ||
44454 | rm -f $ac_file | |
44455 | mv $tmp/config.h $ac_file | |
44456 | fi | |
44457 | else | |
44458 | cat $tmp/config.h | |
44459 | rm -f $tmp/config.h | |
44460 | fi | |
44461 | done | |
44462 | _ACEOF | |
44463 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44464 | ||
44465 | # | |
44466 | # CONFIG_COMMANDS section. | |
44467 | # | |
44468 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
44469 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
44470 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
44471 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
44472 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
44473 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
44474 | X"$ac_dest" : 'X\(//\)$' \| \ | |
44475 | X"$ac_dest" : 'X\(/\)' \| \ | |
44476 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
44477 | echo X"$ac_dest" | |
44478 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
44479 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
44480 | /^X\(\/\/\)$/{ s//\1/; q; } | |
44481 | /^X\(\/\).*/{ s//\1/; q; } | |
44482 | s/.*/./; q'` | |
ac1cb8d3 VS |
44483 | { if $as_mkdir_p; then |
44484 | mkdir -p "$ac_dir" | |
44485 | else | |
44486 | as_dir="$ac_dir" | |
44487 | as_dirs= | |
44488 | while test ! -d "$as_dir"; do | |
44489 | as_dirs="$as_dir $as_dirs" | |
44490 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
44491 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
44492 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
44493 | X"$as_dir" : 'X\(//\)$' \| \ | |
44494 | X"$as_dir" : 'X\(/\)' \| \ | |
44495 | . : '\(.\)' 2>/dev/null || | |
44496 | echo X"$as_dir" | | |
44497 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
44498 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
44499 | /^X\(\/\/\)$/{ s//\1/; q; } | |
44500 | /^X\(\/\).*/{ s//\1/; q; } | |
44501 | s/.*/./; q'` | |
44502 | done | |
44503 | test ! -n "$as_dirs" || mkdir $as_dirs | |
44504 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
44505 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
44506 | { (exit 1); exit 1; }; }; } | |
44507 | ||
a848cd7e SC |
44508 | ac_builddir=. |
44509 | ||
44510 | if test "$ac_dir" != .; then | |
44511 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
44512 | # A "../" for each directory in $ac_dir_suffix. | |
44513 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
44514 | else | |
44515 | ac_dir_suffix= ac_top_builddir= | |
44516 | fi | |
44517 | ||
44518 | case $srcdir in | |
44519 | .) # No --srcdir option. We are building in place. | |
44520 | ac_srcdir=. | |
44521 | if test -z "$ac_top_builddir"; then | |
44522 | ac_top_srcdir=. | |
44523 | else | |
44524 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
44525 | fi ;; | |
44526 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
44527 | ac_srcdir=$srcdir$ac_dir_suffix; | |
44528 | ac_top_srcdir=$srcdir ;; | |
44529 | *) # Relative path. | |
44530 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
44531 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
44532 | esac | |
ac1cb8d3 VS |
44533 | |
44534 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
44535 | # the directories may not exist. | |
44536 | case `pwd` in | |
44537 | .) ac_abs_builddir="$ac_dir";; | |
44538 | *) | |
44539 | case "$ac_dir" in | |
44540 | .) ac_abs_builddir=`pwd`;; | |
44541 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
44542 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
44543 | esac;; | |
44544 | esac | |
44545 | case $ac_abs_builddir in | |
44546 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
44547 | *) | |
44548 | case ${ac_top_builddir}. in | |
44549 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
44550 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
44551 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
44552 | esac;; | |
44553 | esac | |
44554 | case $ac_abs_builddir in | |
44555 | .) ac_abs_srcdir=$ac_srcdir;; | |
44556 | *) | |
44557 | case $ac_srcdir in | |
44558 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
44559 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
44560 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
44561 | esac;; | |
44562 | esac | |
44563 | case $ac_abs_builddir in | |
44564 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
44565 | *) | |
44566 | case $ac_top_srcdir in | |
44567 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
44568 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
44569 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
44570 | esac;; | |
44571 | esac | |
a848cd7e SC |
44572 | |
44573 | ||
44574 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
44575 | echo "$as_me: executing $ac_dest commands" >&6;} | |
44576 | case $ac_dest in | |
ceec2216 RL |
44577 | wx-config ) rm -f wx-config |
44578 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
44579 | ;; | |
a848cd7e SC |
44580 | esac |
44581 | done | |
44582 | _ACEOF | |
44583 | ||
44584 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44585 | ||
44586 | { (exit 0); exit 0; } | |
44587 | _ACEOF | |
44588 | chmod +x $CONFIG_STATUS | |
44589 | ac_clean_files=$ac_clean_files_save | |
44590 | ||
44591 | ||
44592 | # configure is writing to config.log, and then calls config.status. | |
44593 | # config.status does its own redirection, appending to config.log. | |
44594 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
44595 | # by configure, so config.status won't be able to write to it; its | |
44596 | # output is simply discarded. So we exec the FD to /dev/null, | |
44597 | # effectively closing config.log, so it can be properly (re)opened and | |
44598 | # appended to by config.status. When coming back to configure, we | |
44599 | # need to make the FD available again. | |
44600 | if test "$no_create" != yes; then | |
44601 | ac_cs_success=: | |
44602 | ac_config_status_args= | |
44603 | test "$silent" = yes && | |
44604 | ac_config_status_args="$ac_config_status_args --quiet" | |
44605 | exec 5>/dev/null | |
44606 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
44607 | exec 5>>config.log | |
44608 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
44609 | # would make configure fail if this is the last instruction. | |
44610 | $ac_cs_success || { (exit 1); exit 1; } | |
44611 | fi | |
44612 | ||
44613 | # | |
44614 | # CONFIG_SUBDIRS section. | |
44615 | # | |
44616 | if test "$no_recursion" != yes; then | |
44617 | ||
44618 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
44619 | ac_sub_configure_args= | |
44620 | ac_prev= | |
44621 | for ac_arg in $ac_configure_args; do | |
44622 | if test -n "$ac_prev"; then | |
44623 | ac_prev= | |
44624 | continue | |
44625 | fi | |
44626 | case $ac_arg in | |
44627 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
44628 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
44629 | ac_prev=cache_file ;; | |
44630 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
44631 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
44632 | | --c=*) | |
44633 | ;; | |
44634 | --config-cache | -C) | |
44635 | ;; | |
44636 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
44637 | ac_prev=srcdir ;; | |
44638 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
44639 | ;; | |
44640 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
44641 | ac_prev=prefix ;; | |
44642 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
44643 | ;; | |
44644 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
44645 | esac | |
44646 | done | |
44647 | ||
44648 | # Always prepend --prefix to ensure using the same prefix | |
44649 | # in subdir configurations. | |
44650 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
44651 | ||
44652 | ac_popdir=`pwd` | |
44653 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
44654 | ||
44655 | # Do not complain, so a configure script can configure whichever | |
44656 | # parts of a large source tree are present. | |
44657 | test -d $srcdir/$ac_dir || continue | |
44658 | ||
44659 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
44660 | echo "$as_me: configuring in $ac_dir" >&6;} | |
44661 | { if $as_mkdir_p; then | |
44662 | mkdir -p "$ac_dir" | |
44663 | else | |
44664 | as_dir="$ac_dir" | |
44665 | as_dirs= | |
44666 | while test ! -d "$as_dir"; do | |
44667 | as_dirs="$as_dir $as_dirs" | |
44668 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
44669 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
44670 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
44671 | X"$as_dir" : 'X\(//\)$' \| \ | |
44672 | X"$as_dir" : 'X\(/\)' \| \ | |
44673 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
44674 | echo X"$as_dir" | |
44675 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
44676 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
44677 | /^X\(\/\/\)$/{ s//\1/; q; } | |
44678 | /^X\(\/\).*/{ s//\1/; q; } | |
44679 | s/.*/./; q'` | |
44680 | done | |
44681 | test ! -n "$as_dirs" || mkdir $as_dirs | |
44682 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
44683 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
44684 | { (exit 1); exit 1; }; }; } | |
44685 | ||
44686 | ac_builddir=. | |
44687 | ||
44688 | if test "$ac_dir" != .; then | |
44689 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
44690 | # A "../" for each directory in $ac_dir_suffix. | |
44691 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
44692 | else | |
44693 | ac_dir_suffix= ac_top_builddir= | |
44694 | fi | |
44695 | ||
44696 | case $srcdir in | |
44697 | .) # No --srcdir option. We are building in place. | |
44698 | ac_srcdir=. | |
44699 | if test -z "$ac_top_builddir"; then | |
44700 | ac_top_srcdir=. | |
44701 | else | |
44702 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
44703 | fi ;; | |
44704 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
44705 | ac_srcdir=$srcdir$ac_dir_suffix; | |
44706 | ac_top_srcdir=$srcdir ;; | |
44707 | *) # Relative path. | |
44708 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
44709 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
44710 | esac | |
ac1cb8d3 VS |
44711 | |
44712 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
44713 | # the directories may not exist. | |
44714 | case `pwd` in | |
44715 | .) ac_abs_builddir="$ac_dir";; | |
44716 | *) | |
44717 | case "$ac_dir" in | |
44718 | .) ac_abs_builddir=`pwd`;; | |
44719 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
44720 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
44721 | esac;; | |
44722 | esac | |
44723 | case $ac_abs_builddir in | |
44724 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
44725 | *) | |
44726 | case ${ac_top_builddir}. in | |
44727 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
44728 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
44729 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
44730 | esac;; | |
44731 | esac | |
44732 | case $ac_abs_builddir in | |
44733 | .) ac_abs_srcdir=$ac_srcdir;; | |
44734 | *) | |
44735 | case $ac_srcdir in | |
44736 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
44737 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
44738 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
44739 | esac;; | |
44740 | esac | |
44741 | case $ac_abs_builddir in | |
44742 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
44743 | *) | |
44744 | case $ac_top_srcdir in | |
44745 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
44746 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
44747 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
44748 | esac;; | |
44749 | esac | |
a848cd7e SC |
44750 | |
44751 | ||
44752 | cd $ac_dir | |
44753 | ||
44754 | # Check for guested configure; otherwise get Cygnus style configure. | |
44755 | if test -f $ac_srcdir/configure.gnu; then | |
44756 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
44757 | elif test -f $ac_srcdir/configure; then | |
44758 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
44759 | elif test -f $ac_srcdir/configure.in; then | |
44760 | ac_sub_configure=$ac_configure | |
44761 | else | |
44762 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
44763 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
44764 | ac_sub_configure= | |
44765 | fi | |
44766 | ||
44767 | # The recursion is here. | |
44768 | if test -n "$ac_sub_configure"; then | |
44769 | # Make the cache file name correct relative to the subdirectory. | |
44770 | case $cache_file in | |
44771 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
44772 | *) # Relative path. | |
ac1cb8d3 | 44773 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
44774 | esac |
44775 | ||
44776 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
44777 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
44778 | # The eval makes quoting arguments work. | |
44779 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
44780 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
44781 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
44782 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
44783 | { (exit 1); exit 1; }; } | |
44784 | fi | |
44785 | ||
89be85c2 | 44786 | cd $ac_popdir |
a848cd7e SC |
44787 | done |
44788 | fi | |
44789 | ||
44790 | ||
44791 | echo | |
77ffb593 | 44792 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 44793 | echo "" |
4d4ff94c | 44794 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 44795 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 44796 | |
77ffb593 JS |
44797 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
44798 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
44799 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 44800 | |
77ffb593 JS |
44801 | echo " What level of wxWidgets compatibility should be enabled?" |
44802 | echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" | |
44803 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
a848cd7e | 44804 | |
77ffb593 | 44805 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
44806 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
44807 | echo " png ${wxUSE_LIBPNG-none}" | |
44808 | echo " regex ${wxUSE_REGEX}" | |
44809 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
44810 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
44811 | echo " xpm ${wxUSE_LIBXPM-none}" | |
44812 | fi | |
44813 | echo " zlib ${wxUSE_ZLIB}" | |
44814 | echo " odbc ${wxUSE_ODBC}" | |
44815 | echo " expat ${wxUSE_EXPAT}" | |
44816 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
44817 | echo " sdl ${wxUSE_LIBSDL}" | |
6d1ce868 | 44818 | echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}" |
a848cd7e SC |
44819 | |
44820 | echo "" | |
44821 |