]>
Commit | Line | Data |
---|---|---|
a848cd7e SC |
1 | #! /bin/sh |
2 | # From configure.in Id: configure.in. | |
3 | # Guess values for system-dependent variables and create Makefiles. | |
7714864e | 4 | # Generated by GNU Autoconf 2.59 for wxWidgets 2.5.3. |
a848cd7e | 5 | # |
77ffb593 | 6 | # Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e | 7 | # |
ac1cb8d3 | 8 | # Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## --------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## --------------------- ## | |
14 | ||
15 | # Be Bourne compatible | |
16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
17 | emulate sh | |
18 | NULLCMD=: | |
19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
20 | # is contrary to our usage. Disable this feature. | |
21 | alias -g '${1+"$@"}'='"$@"' | |
22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
23 | set -o posix | |
24 | fi | |
ac1cb8d3 | 25 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
26 | |
27 | # Support unset when possible. | |
ac1cb8d3 | 28 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
29 | as_unset=unset |
30 | else | |
31 | as_unset=false | |
32 | fi | |
33 | ||
34 | ||
35 | # Work around bugs in pre-3.0 UWIN ksh. | |
36 | $as_unset ENV MAIL MAILPATH | |
37 | PS1='$ ' | |
38 | PS2='> ' | |
39 | PS4='+ ' | |
40 | ||
41 | # NLS nuisances. | |
42 | for as_var in \ | |
43 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
44 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
45 | LC_TELEPHONE LC_TIME | |
46 | do | |
ac1cb8d3 | 47 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
48 | eval $as_var=C; export $as_var |
49 | else | |
50 | $as_unset $as_var | |
51 | fi | |
52 | done | |
53 | ||
54 | # Required to use basename. | |
55 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
56 | as_expr=expr | |
57 | else | |
58 | as_expr=false | |
59 | fi | |
60 | ||
61 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
62 | as_basename=basename | |
63 | else | |
64 | as_basename=false | |
65 | fi | |
66 | ||
67 | ||
68 | # Name of the executable. | |
69 | as_me=`$as_basename "$0" || | |
70 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
71 | X"$0" : 'X\(//\)$' \| \ | |
72 | X"$0" : 'X\(/\)$' \| \ | |
73 | . : '\(.\)' 2>/dev/null || | |
74 | echo X/"$0" | | |
75 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
76 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
77 | /^X\/\(\/\).*/{ s//\1/; q; } | |
78 | s/.*/./; q'` | |
79 | ||
80 | ||
81 | # PATH needs CR, and LINENO needs CR and PATH. | |
82 | # Avoid depending upon Character Ranges. | |
83 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
84 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
85 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
86 | as_cr_digits='0123456789' | |
87 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
88 | ||
89 | # The user is always right. | |
90 | if test "${PATH_SEPARATOR+set}" != set; then | |
91 | echo "#! /bin/sh" >conf$$.sh | |
92 | echo "exit 0" >>conf$$.sh | |
93 | chmod +x conf$$.sh | |
94 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
95 | PATH_SEPARATOR=';' | |
96 | else | |
97 | PATH_SEPARATOR=: | |
98 | fi | |
99 | rm -f conf$$.sh | |
100 | fi | |
101 | ||
102 | ||
103 | as_lineno_1=$LINENO | |
104 | as_lineno_2=$LINENO | |
105 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
106 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
107 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
108 | # Find who we are. Look in the path if we contain no path at all | |
109 | # relative or not. | |
110 | case $0 in | |
111 | *[\\/]* ) as_myself=$0 ;; | |
112 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
113 | for as_dir in $PATH | |
114 | do | |
115 | IFS=$as_save_IFS | |
116 | test -z "$as_dir" && as_dir=. | |
117 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
118 | done | |
119 | ||
120 | ;; | |
121 | esac | |
122 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
123 | # in which case we are not to be found in the path. | |
124 | if test "x$as_myself" = x; then | |
125 | as_myself=$0 | |
126 | fi | |
127 | if test ! -f "$as_myself"; then | |
128 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
129 | { (exit 1); exit 1; }; } | |
130 | fi | |
131 | case $CONFIG_SHELL in | |
132 | '') | |
133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
134 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
135 | do | |
136 | IFS=$as_save_IFS | |
137 | test -z "$as_dir" && as_dir=. | |
138 | for as_base in sh bash ksh sh5; do | |
139 | case $as_dir in | |
140 | /*) | |
141 | if ("$as_dir/$as_base" -c ' | |
142 | as_lineno_1=$LINENO | |
143 | as_lineno_2=$LINENO | |
144 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
145 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
146 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
147 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
148 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
149 | CONFIG_SHELL=$as_dir/$as_base | |
150 | export CONFIG_SHELL | |
151 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
152 | fi;; | |
153 | esac | |
154 | done | |
155 | done | |
156 | ;; | |
157 | esac | |
158 | ||
159 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
160 | # uniformly replaced by the line number. The first 'sed' inserts a | |
161 | # line-number line before each line; the second 'sed' does the real | |
162 | # work. The second script uses 'N' to pair each line-number line | |
163 | # with the numbered line, and appends trailing '-' during | |
164 | # substitution so that $LINENO is not a special case at line end. | |
165 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
166 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
167 | sed '=' <$as_myself | | |
168 | sed ' | |
169 | N | |
170 | s,$,-, | |
171 | : loop | |
172 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
173 | t loop | |
174 | s,-$,, | |
175 | s,^['$as_cr_digits']*\n,, | |
176 | ' >$as_me.lineno && | |
177 | chmod +x $as_me.lineno || | |
178 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
179 | { (exit 1); exit 1; }; } | |
180 | ||
181 | # Don't try to exec as it changes $[0], causing all sort of problems | |
182 | # (the dirname of $[0] is not the place where we might find the | |
183 | # original and so on. Autoconf is especially sensible to this). | |
184 | . ./$as_me.lineno | |
185 | # Exit status is that of the last command. | |
186 | exit | |
187 | } | |
188 | ||
189 | ||
190 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
191 | *c*,-n*) ECHO_N= ECHO_C=' | |
192 | ' ECHO_T=' ' ;; | |
193 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
194 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
195 | esac | |
196 | ||
197 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
198 | as_expr=expr | |
199 | else | |
200 | as_expr=false | |
201 | fi | |
202 | ||
203 | rm -f conf$$ conf$$.exe conf$$.file | |
204 | echo >conf$$.file | |
205 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
206 | # We could just check for DJGPP; but this test a) works b) is more generic | |
207 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
208 | if test -f conf$$.exe; then | |
209 | # Don't use ln at all; we don't have any links | |
210 | as_ln_s='cp -p' | |
211 | else | |
212 | as_ln_s='ln -s' | |
213 | fi | |
214 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
215 | as_ln_s=ln | |
216 | else | |
217 | as_ln_s='cp -p' | |
218 | fi | |
219 | rm -f conf$$ conf$$.exe conf$$.file | |
220 | ||
221 | if mkdir -p . 2>/dev/null; then | |
222 | as_mkdir_p=: | |
223 | else | |
ac1cb8d3 | 224 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
225 | as_mkdir_p=false |
226 | fi | |
227 | ||
228 | as_executable_p="test -f" | |
229 | ||
230 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 231 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
232 | |
233 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 234 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
235 | |
236 | ||
237 | # IFS | |
238 | # We need space, tab and new line, in precisely that order. | |
239 | as_nl=' | |
240 | ' | |
241 | IFS=" $as_nl" | |
242 | ||
243 | # CDPATH. | |
244 | $as_unset CDPATH | |
245 | ||
246 | ||
247 | # Name of the host. | |
248 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
249 | # so uname gets run too. | |
250 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
251 | ||
252 | exec 6>&1 | |
253 | ||
254 | # | |
255 | # Initializations. | |
256 | # | |
257 | ac_default_prefix=/usr/local | |
258 | ac_config_libobj_dir=. | |
259 | cross_compiling=no | |
260 | subdirs= | |
261 | MFLAGS= | |
262 | MAKEFLAGS= | |
263 | SHELL=${CONFIG_SHELL-/bin/sh} | |
264 | ||
265 | # Maximum number of lines to put in a shell here document. | |
266 | # This variable seems obsolete. It should probably be removed, and | |
267 | # only ac_max_sed_lines should be used. | |
268 | : ${ac_max_here_lines=38} | |
269 | ||
270 | # Identity of this package. | |
77ffb593 JS |
271 | PACKAGE_NAME='wxWidgets' |
272 | PACKAGE_TARNAME='wxwidgets' | |
7714864e RL |
273 | PACKAGE_VERSION='2.5.3' |
274 | PACKAGE_STRING='wxWidgets 2.5.3' | |
77ffb593 | 275 | PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org' |
a848cd7e SC |
276 | |
277 | ac_unique_file="wx-config.in" | |
278 | # Factoring default headers for most tests. | |
279 | ac_includes_default="\ | |
280 | #include <stdio.h> | |
281 | #if HAVE_SYS_TYPES_H | |
282 | # include <sys/types.h> | |
283 | #endif | |
284 | #if HAVE_SYS_STAT_H | |
285 | # include <sys/stat.h> | |
286 | #endif | |
287 | #if STDC_HEADERS | |
288 | # include <stdlib.h> | |
289 | # include <stddef.h> | |
290 | #else | |
291 | # if HAVE_STDLIB_H | |
292 | # include <stdlib.h> | |
293 | # endif | |
294 | #endif | |
295 | #if HAVE_STRING_H | |
296 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
297 | # include <memory.h> | |
298 | # endif | |
299 | # include <string.h> | |
300 | #endif | |
301 | #if HAVE_STRINGS_H | |
302 | # include <strings.h> | |
303 | #endif | |
304 | #if HAVE_INTTYPES_H | |
305 | # include <inttypes.h> | |
306 | #else | |
307 | # if HAVE_STDINT_H | |
308 | # include <stdint.h> | |
309 | # endif | |
310 | #endif | |
311 | #if HAVE_UNISTD_H | |
312 | # include <unistd.h> | |
313 | #endif" | |
314 | ||
315 | ac_subdirs_all="$ac_subdirs_all src/expat" | |
a13a7f89 | 316 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_XRC_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN COND_TOOLKIT_MAC_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM_WXUNIV_0 SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS' |
a848cd7e SC |
317 | ac_subst_files='' |
318 | ||
319 | # Initialize some variables set by options. | |
320 | ac_init_help= | |
321 | ac_init_version=false | |
322 | # The variables have the same names as the options, with | |
323 | # dashes changed to underlines. | |
324 | cache_file=/dev/null | |
325 | exec_prefix=NONE | |
326 | no_create= | |
327 | no_recursion= | |
328 | prefix=NONE | |
329 | program_prefix=NONE | |
330 | program_suffix=NONE | |
331 | program_transform_name=s,x,x, | |
332 | silent= | |
333 | site= | |
334 | srcdir= | |
335 | verbose= | |
336 | x_includes=NONE | |
337 | x_libraries=NONE | |
338 | ||
339 | # Installation directory options. | |
340 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
341 | # and all the variables that are supposed to be based on exec_prefix | |
342 | # by default will actually change. | |
343 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
344 | bindir='${exec_prefix}/bin' | |
345 | sbindir='${exec_prefix}/sbin' | |
346 | libexecdir='${exec_prefix}/libexec' | |
347 | datadir='${prefix}/share' | |
348 | sysconfdir='${prefix}/etc' | |
349 | sharedstatedir='${prefix}/com' | |
350 | localstatedir='${prefix}/var' | |
351 | libdir='${exec_prefix}/lib' | |
352 | includedir='${prefix}/include' | |
353 | oldincludedir='/usr/include' | |
354 | infodir='${prefix}/info' | |
355 | mandir='${prefix}/man' | |
356 | ||
357 | ac_prev= | |
358 | for ac_option | |
359 | do | |
360 | # If the previous option needs an argument, assign it. | |
361 | if test -n "$ac_prev"; then | |
362 | eval "$ac_prev=\$ac_option" | |
363 | ac_prev= | |
364 | continue | |
365 | fi | |
366 | ||
367 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
368 | ||
369 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
370 | ||
371 | case $ac_option in | |
372 | ||
373 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
374 | ac_prev=bindir ;; | |
375 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
376 | bindir=$ac_optarg ;; | |
377 | ||
378 | -build | --build | --buil | --bui | --bu) | |
379 | ac_prev=build_alias ;; | |
380 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
381 | build_alias=$ac_optarg ;; | |
382 | ||
383 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
384 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
385 | ac_prev=cache_file ;; | |
386 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
387 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
388 | cache_file=$ac_optarg ;; | |
389 | ||
390 | --config-cache | -C) | |
391 | cache_file=config.cache ;; | |
392 | ||
393 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
394 | ac_prev=datadir ;; | |
395 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
396 | | --da=*) | |
397 | datadir=$ac_optarg ;; | |
398 | ||
399 | -disable-* | --disable-*) | |
400 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
401 | # Reject names that are not valid shell variable names. | |
402 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
403 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
404 | { (exit 1); exit 1; }; } | |
405 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
406 | eval "enable_$ac_feature=no" ;; | |
407 | ||
408 | -enable-* | --enable-*) | |
409 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
410 | # Reject names that are not valid shell variable names. | |
411 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
412 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
413 | { (exit 1); exit 1; }; } | |
414 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
415 | case $ac_option in | |
416 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
417 | *) ac_optarg=yes ;; | |
418 | esac | |
419 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
420 | ||
421 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
422 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
423 | | --exec | --exe | --ex) | |
424 | ac_prev=exec_prefix ;; | |
425 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
426 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
427 | | --exec=* | --exe=* | --ex=*) | |
428 | exec_prefix=$ac_optarg ;; | |
429 | ||
430 | -gas | --gas | --ga | --g) | |
431 | # Obsolete; use --with-gas. | |
432 | with_gas=yes ;; | |
433 | ||
434 | -help | --help | --hel | --he | -h) | |
435 | ac_init_help=long ;; | |
436 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
437 | ac_init_help=recursive ;; | |
438 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
439 | ac_init_help=short ;; | |
440 | ||
441 | -host | --host | --hos | --ho) | |
442 | ac_prev=host_alias ;; | |
443 | -host=* | --host=* | --hos=* | --ho=*) | |
444 | host_alias=$ac_optarg ;; | |
445 | ||
446 | -includedir | --includedir | --includedi | --included | --include \ | |
447 | | --includ | --inclu | --incl | --inc) | |
448 | ac_prev=includedir ;; | |
449 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
450 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
451 | includedir=$ac_optarg ;; | |
452 | ||
453 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
454 | ac_prev=infodir ;; | |
455 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
456 | infodir=$ac_optarg ;; | |
457 | ||
458 | -libdir | --libdir | --libdi | --libd) | |
459 | ac_prev=libdir ;; | |
460 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
461 | libdir=$ac_optarg ;; | |
462 | ||
463 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
464 | | --libexe | --libex | --libe) | |
465 | ac_prev=libexecdir ;; | |
466 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
467 | | --libexe=* | --libex=* | --libe=*) | |
468 | libexecdir=$ac_optarg ;; | |
469 | ||
470 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
471 | | --localstate | --localstat | --localsta | --localst \ | |
472 | | --locals | --local | --loca | --loc | --lo) | |
473 | ac_prev=localstatedir ;; | |
474 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
475 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
476 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
477 | localstatedir=$ac_optarg ;; | |
478 | ||
479 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
480 | ac_prev=mandir ;; | |
481 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
482 | mandir=$ac_optarg ;; | |
483 | ||
484 | -nfp | --nfp | --nf) | |
485 | # Obsolete; use --without-fp. | |
486 | with_fp=no ;; | |
487 | ||
488 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
489 | | --no-cr | --no-c | -n) | |
490 | no_create=yes ;; | |
491 | ||
492 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
493 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
494 | no_recursion=yes ;; | |
495 | ||
496 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
497 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
498 | | --oldin | --oldi | --old | --ol | --o) | |
499 | ac_prev=oldincludedir ;; | |
500 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
501 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
502 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
503 | oldincludedir=$ac_optarg ;; | |
504 | ||
505 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
506 | ac_prev=prefix ;; | |
507 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
508 | prefix=$ac_optarg ;; | |
509 | ||
510 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
511 | | --program-pre | --program-pr | --program-p) | |
512 | ac_prev=program_prefix ;; | |
513 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
514 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
515 | program_prefix=$ac_optarg ;; | |
516 | ||
517 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
518 | | --program-suf | --program-su | --program-s) | |
519 | ac_prev=program_suffix ;; | |
520 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
521 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
522 | program_suffix=$ac_optarg ;; | |
523 | ||
524 | -program-transform-name | --program-transform-name \ | |
525 | | --program-transform-nam | --program-transform-na \ | |
526 | | --program-transform-n | --program-transform- \ | |
527 | | --program-transform | --program-transfor \ | |
528 | | --program-transfo | --program-transf \ | |
529 | | --program-trans | --program-tran \ | |
530 | | --progr-tra | --program-tr | --program-t) | |
531 | ac_prev=program_transform_name ;; | |
532 | -program-transform-name=* | --program-transform-name=* \ | |
533 | | --program-transform-nam=* | --program-transform-na=* \ | |
534 | | --program-transform-n=* | --program-transform-=* \ | |
535 | | --program-transform=* | --program-transfor=* \ | |
536 | | --program-transfo=* | --program-transf=* \ | |
537 | | --program-trans=* | --program-tran=* \ | |
538 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
539 | program_transform_name=$ac_optarg ;; | |
540 | ||
541 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
542 | | -silent | --silent | --silen | --sile | --sil) | |
543 | silent=yes ;; | |
544 | ||
545 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
546 | ac_prev=sbindir ;; | |
547 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
548 | | --sbi=* | --sb=*) | |
549 | sbindir=$ac_optarg ;; | |
550 | ||
551 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
552 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
553 | | --sharedst | --shareds | --shared | --share | --shar \ | |
554 | | --sha | --sh) | |
555 | ac_prev=sharedstatedir ;; | |
556 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
557 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
558 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
559 | | --sha=* | --sh=*) | |
560 | sharedstatedir=$ac_optarg ;; | |
561 | ||
562 | -site | --site | --sit) | |
563 | ac_prev=site ;; | |
564 | -site=* | --site=* | --sit=*) | |
565 | site=$ac_optarg ;; | |
566 | ||
567 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
568 | ac_prev=srcdir ;; | |
569 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
570 | srcdir=$ac_optarg ;; | |
571 | ||
572 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
573 | | --syscon | --sysco | --sysc | --sys | --sy) | |
574 | ac_prev=sysconfdir ;; | |
575 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
576 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
577 | sysconfdir=$ac_optarg ;; | |
578 | ||
579 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
580 | ac_prev=target_alias ;; | |
581 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
582 | target_alias=$ac_optarg ;; | |
583 | ||
584 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
585 | verbose=yes ;; | |
586 | ||
587 | -version | --version | --versio | --versi | --vers | -V) | |
588 | ac_init_version=: ;; | |
589 | ||
590 | -with-* | --with-*) | |
591 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
592 | # Reject names that are not valid shell variable names. | |
593 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
594 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
595 | { (exit 1); exit 1; }; } | |
596 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
597 | case $ac_option in | |
598 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
599 | *) ac_optarg=yes ;; | |
600 | esac | |
601 | eval "with_$ac_package='$ac_optarg'" ;; | |
602 | ||
603 | -without-* | --without-*) | |
604 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
605 | # Reject names that are not valid shell variable names. | |
606 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
607 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
608 | { (exit 1); exit 1; }; } | |
609 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
610 | eval "with_$ac_package=no" ;; | |
611 | ||
612 | --x) | |
613 | # Obsolete; use --with-x. | |
614 | with_x=yes ;; | |
615 | ||
616 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
617 | | --x-incl | --x-inc | --x-in | --x-i) | |
618 | ac_prev=x_includes ;; | |
619 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
620 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
621 | x_includes=$ac_optarg ;; | |
622 | ||
623 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
624 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
625 | ac_prev=x_libraries ;; | |
626 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
627 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
628 | x_libraries=$ac_optarg ;; | |
629 | ||
630 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
631 | Try \`$0 --help' for more information." >&2 | |
632 | { (exit 1); exit 1; }; } | |
633 | ;; | |
634 | ||
635 | *=*) | |
636 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
637 | # Reject names that are not valid shell variable names. | |
638 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
639 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
640 | { (exit 1); exit 1; }; } | |
641 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
642 | eval "$ac_envvar='$ac_optarg'" | |
643 | export $ac_envvar ;; | |
644 | ||
645 | *) | |
646 | # FIXME: should be removed in autoconf 3.0. | |
647 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
648 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
649 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
650 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
651 | ;; | |
652 | ||
653 | esac | |
654 | done | |
655 | ||
656 | if test -n "$ac_prev"; then | |
657 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
658 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
659 | { (exit 1); exit 1; }; } | |
660 | fi | |
661 | ||
662 | # Be sure to have absolute paths. | |
663 | for ac_var in exec_prefix prefix | |
664 | do | |
665 | eval ac_val=$`echo $ac_var` | |
666 | case $ac_val in | |
667 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
668 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
669 | { (exit 1); exit 1; }; };; | |
670 | esac | |
671 | done | |
672 | ||
673 | # Be sure to have absolute paths. | |
674 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
ac1cb8d3 | 675 | localstatedir libdir includedir oldincludedir infodir mandir |
a848cd7e SC |
676 | do |
677 | eval ac_val=$`echo $ac_var` | |
678 | case $ac_val in | |
679 | [\\/$]* | ?:[\\/]* ) ;; | |
680 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
681 | { (exit 1); exit 1; }; };; | |
682 | esac | |
683 | done | |
684 | ||
685 | # There might be people who depend on the old broken behavior: `$host' | |
686 | # used to hold the argument of --host etc. | |
687 | # FIXME: To remove some day. | |
688 | build=$build_alias | |
689 | host=$host_alias | |
690 | target=$target_alias | |
691 | ||
692 | # FIXME: To remove some day. | |
693 | if test "x$host_alias" != x; then | |
694 | if test "x$build_alias" = x; then | |
695 | cross_compiling=maybe | |
696 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
697 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
698 | elif test "x$build_alias" != "x$host_alias"; then | |
699 | cross_compiling=yes | |
700 | fi | |
701 | fi | |
702 | ||
703 | ac_tool_prefix= | |
704 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
705 | ||
706 | test "$silent" = yes && exec 6>/dev/null | |
707 | ||
708 | ||
709 | # Find the source files, if location was not specified. | |
710 | if test -z "$srcdir"; then | |
711 | ac_srcdir_defaulted=yes | |
712 | # Try the directory containing this script, then its parent. | |
713 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
714 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
715 | X"$0" : 'X\(//\)[^/]' \| \ |
716 | X"$0" : 'X\(//\)$' \| \ | |
717 | X"$0" : 'X\(/\)' \| \ | |
718 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
719 | echo X"$0" | |
720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
721 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
722 | /^X\(\/\/\)$/{ s//\1/; q; } | |
723 | /^X\(\/\).*/{ s//\1/; q; } | |
724 | s/.*/./; q'` | |
725 | srcdir=$ac_confdir | |
726 | if test ! -r $srcdir/$ac_unique_file; then | |
727 | srcdir=.. | |
728 | fi | |
729 | else | |
730 | ac_srcdir_defaulted=no | |
731 | fi | |
732 | if test ! -r $srcdir/$ac_unique_file; then | |
733 | if test "$ac_srcdir_defaulted" = yes; then | |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
735 | { (exit 1); exit 1; }; } | |
736 | else | |
737 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
738 | { (exit 1); exit 1; }; } | |
739 | fi | |
740 | fi | |
741 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
742 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
743 | { (exit 1); exit 1; }; } | |
744 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
745 | ac_env_build_alias_set=${build_alias+set} | |
746 | ac_env_build_alias_value=$build_alias | |
747 | ac_cv_env_build_alias_set=${build_alias+set} | |
748 | ac_cv_env_build_alias_value=$build_alias | |
749 | ac_env_host_alias_set=${host_alias+set} | |
750 | ac_env_host_alias_value=$host_alias | |
751 | ac_cv_env_host_alias_set=${host_alias+set} | |
752 | ac_cv_env_host_alias_value=$host_alias | |
753 | ac_env_target_alias_set=${target_alias+set} | |
754 | ac_env_target_alias_value=$target_alias | |
755 | ac_cv_env_target_alias_set=${target_alias+set} | |
756 | ac_cv_env_target_alias_value=$target_alias | |
757 | ac_env_CC_set=${CC+set} | |
758 | ac_env_CC_value=$CC | |
759 | ac_cv_env_CC_set=${CC+set} | |
760 | ac_cv_env_CC_value=$CC | |
761 | ac_env_CFLAGS_set=${CFLAGS+set} | |
762 | ac_env_CFLAGS_value=$CFLAGS | |
763 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
764 | ac_cv_env_CFLAGS_value=$CFLAGS | |
765 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
766 | ac_env_LDFLAGS_value=$LDFLAGS | |
767 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
768 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
769 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
770 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
771 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
772 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
773 | ac_env_CPP_set=${CPP+set} | |
774 | ac_env_CPP_value=$CPP | |
775 | ac_cv_env_CPP_set=${CPP+set} | |
776 | ac_cv_env_CPP_value=$CPP | |
777 | ac_env_CXX_set=${CXX+set} | |
778 | ac_env_CXX_value=$CXX | |
779 | ac_cv_env_CXX_set=${CXX+set} | |
780 | ac_cv_env_CXX_value=$CXX | |
781 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
782 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
783 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
784 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
785 | ac_env_CXXCPP_set=${CXXCPP+set} | |
786 | ac_env_CXXCPP_value=$CXXCPP | |
787 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
788 | ac_cv_env_CXXCPP_value=$CXXCPP | |
789 | ||
790 | # | |
791 | # Report the --help message. | |
792 | # | |
793 | if test "$ac_init_help" = "long"; then | |
794 | # Omit some internal or obsolete options to make the list less imposing. | |
795 | # This message is too long to be a string in the A/UX 3.1 sh. | |
796 | cat <<_ACEOF | |
7714864e | 797 | \`configure' configures wxWidgets 2.5.3 to adapt to many kinds of systems. |
a848cd7e SC |
798 | |
799 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
800 | ||
801 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
802 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
803 | ||
804 | Defaults for the options are specified in brackets. | |
805 | ||
806 | Configuration: | |
807 | -h, --help display this help and exit | |
808 | --help=short display options specific to this package | |
809 | --help=recursive display the short help of all the included packages | |
810 | -V, --version display version information and exit | |
811 | -q, --quiet, --silent do not print \`checking...' messages | |
812 | --cache-file=FILE cache test results in FILE [disabled] | |
813 | -C, --config-cache alias for \`--cache-file=config.cache' | |
814 | -n, --no-create do not create output files | |
815 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
816 | ||
817 | _ACEOF | |
818 | ||
819 | cat <<_ACEOF | |
820 | Installation directories: | |
821 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ac1cb8d3 | 822 | [$ac_default_prefix] |
a848cd7e | 823 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ac1cb8d3 | 824 | [PREFIX] |
a848cd7e SC |
825 | |
826 | By default, \`make install' will install all the files in | |
827 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
828 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
829 | for instance \`--prefix=\$HOME'. | |
830 | ||
831 | For better control, use the options below. | |
832 | ||
833 | Fine tuning of the installation directories: | |
834 | --bindir=DIR user executables [EPREFIX/bin] | |
835 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
836 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
837 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
838 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
839 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
840 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
841 | --libdir=DIR object code libraries [EPREFIX/lib] | |
842 | --includedir=DIR C header files [PREFIX/include] | |
843 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
844 | --infodir=DIR info documentation [PREFIX/info] | |
845 | --mandir=DIR man documentation [PREFIX/man] | |
846 | _ACEOF | |
847 | ||
848 | cat <<\_ACEOF | |
849 | ||
850 | X features: | |
851 | --x-includes=DIR X include files are in DIR | |
852 | --x-libraries=DIR X library files are in DIR | |
853 | ||
854 | System types: | |
855 | --build=BUILD configure for building on BUILD [guessed] | |
856 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
857 | --target=TARGET configure for building compilers for TARGET [HOST] | |
858 | _ACEOF | |
859 | fi | |
860 | ||
861 | if test -n "$ac_init_help"; then | |
862 | case $ac_init_help in | |
7714864e | 863 | short | recursive ) echo "Configuration of wxWidgets 2.5.3:";; |
a848cd7e SC |
864 | esac |
865 | cat <<\_ACEOF | |
866 | ||
867 | Optional Features: | |
868 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
869 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
870 | --enable-gui use GUI classes | |
77ffb593 JS |
871 | --enable-monolithic build wxWidgets as single library |
872 | --enable-plugins build parts of wxWidgets as loadable components | |
873 | --enable-universal use wxWidgets GUI controls instead of native ones | |
a848cd7e | 874 | --enable-nanox use NanoX |
9f45f08e | 875 | --disable-gtk2 use GTK+ 1.2 instead of 2.0 |
a848cd7e SC |
876 | --enable-gpe use GNOME PDA Environment features if possible |
877 | --enable-shared create shared library code | |
878 | --enable-optimise create optimised code | |
879 | --enable-debug same as debug_flag and debug_info | |
880 | --enable-stl use STL for containers | |
881 | --enable-omf use OMF object format | |
882 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) | |
883 | --enable-debug_info create code with debugging information | |
884 | --enable-debug_gdb create code with extra GDB debugging information | |
885 | --enable-debug_cntxt use wxDebugContext | |
886 | --enable-mem_tracing create code with memory tracing | |
887 | --enable-profile create code with profiling information | |
888 | --enable-no_rtti create code without RTTI information | |
889 | --enable-no_exceptions create code without C++ exceptions handling | |
890 | --enable-permissive compile code disregarding strict ANSI | |
891 | --enable-no_deps create code without dependency information | |
77ffb593 JS |
892 | --enable-compat22 enable wxWidgets 2.2 compatibility |
893 | --disable-compat24 disable wxWidgets 2.4 compatibility | |
a848cd7e SC |
894 | --enable-rpath=DIR output the rpath flag from wx-config |
895 | --enable-intl use internationalization system | |
896 | --enable-config use wxConfig (and derived) classes | |
897 | --enable-protocols use wxProtocol and derived classes | |
898 | --enable-ftp use wxFTP (requires wxProtocol | |
899 | --enable-http use wxHTTP (requires wxProtocol | |
900 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
901 | --enable-sockets use socket/network classes | |
902 | --enable-ole use OLE classes (Win32 only) | |
903 | --enable-dataobj use data object classes | |
904 | --enable-ipc use interprocess communication (wxSocket etc.) | |
905 | --enable-apple_ieee use the Apple IEEE codec | |
906 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) | |
907 | --enable-cmdline use wxCmdLineParser class | |
908 | --enable-datetime use wxDateTime class | |
909 | --enable-dialupman use dialup network classes | |
910 | --enable-dynlib use wxLibrary class for DLL loading | |
911 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
912 | --enable-exceptions build exception-safe library | |
913 | --enable-ffile use wxFFile class | |
914 | --enable-file use wxFile class | |
915 | --enable-filesystem use virtual file systems classes | |
916 | --enable-fontmap use font encodings conversion classes | |
917 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
918 | --enable-fs_zip use virtual ZIP filesystems | |
919 | --enable-geometry use geometry class | |
920 | --enable-log use logging system | |
921 | --enable-longlong use wxLongLong class | |
922 | --enable-mimetype use wxMimeTypesManager | |
923 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
924 | --enable-snglinst use wxSingleInstanceChecker class | |
925 | --enable-streams use wxStream etc classes | |
926 | --enable-std_iostreams use standard C++ stream classes | |
927 | --enable-stopwatch use wxStopWatch class | |
928 | --enable-sysoptions use wxSystemOptions | |
929 | --enable-textbuf use wxTextBuffer class | |
930 | --enable-textfile use wxTextFile class | |
931 | --enable-timer use wxTimer class | |
932 | --enable-unicode compile wxString with Unicode support | |
933 | --enable-sound use wxSound class | |
77ffb593 | 934 | --enable-wxprintfv use wxWidgets implementation of vprintf() |
a848cd7e | 935 | --enable-zipstream use wxZipInputStream |
a848cd7e SC |
936 | --enable-url use wxURL class |
937 | --enable-protocol use wxProtocol class | |
938 | --enable-protocol-http HTTP support in wxProtocol | |
939 | --enable-protocol-ftp FTP support in wxProtocol | |
940 | --enable-protocol-file FILE support in wxProtocol | |
941 | --enable-threads use threads | |
942 | --enable-docview use document view architecture | |
943 | --enable-help use help subsystem | |
944 | --enable-mshtmlhelp use MS HTML Help (win32) | |
945 | --enable-html use wxHTML sub-library | |
946 | --enable-htmlhelp use wxHTML-based help | |
9a8f0513 | 947 | --enable-xrc use XRC resources sub-library |
a848cd7e SC |
948 | --enable-constraints use layout-constraints system |
949 | --enable-printarch use printing architecture | |
950 | --enable-mdi use multiple document interface architecture | |
8a7b1113 | 951 | --enable-mdidoc use docview architecture with MDI |
a848cd7e SC |
952 | --enable-loggui use standard GUI logger |
953 | --enable-logwin use wxLogWindow | |
954 | --enable-logdialog use wxLogDialog | |
646b6ec1 | 955 | --enable-webkit use wxWebKitCtrl (Mac) |
a848cd7e SC |
956 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
957 | --enable-prologio not available; see contrib | |
958 | --enable-resources not available; see contrib | |
959 | --enable-clipboard use wxClipboard class | |
960 | --enable-dnd use Drag'n'Drop classes | |
961 | --enable-metafile use win32 metafiles | |
962 | --enable-controls use all usual controls | |
963 | --enable-accel use accelerators | |
964 | --enable-button use wxButton class | |
965 | --enable-bmpbutton use wxBitmapButton class | |
966 | --enable-calendar use wxCalendarCtrl class | |
967 | --enable-caret use wxCaret class | |
968 | --enable-checkbox use wxCheckBox class | |
969 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
970 | --enable-choice use wxChoice class | |
92bbdbcd | 971 | --enable-choicebook use wxChoicebook class |
a848cd7e SC |
972 | --enable-combobox use wxComboBox class |
973 | --enable-display use wxDisplay class | |
974 | --enable-gauge use wxGauge class | |
975 | --enable-grid use wxGrid class | |
976 | --enable-imaglist use wxImageList class | |
977 | --enable-listbook use wxListbook class | |
978 | --enable-listbox use wxListBox class | |
979 | --enable-listctrl use wxListCtrl class | |
980 | --enable-notebook use wxNotebook class | |
981 | --enable-radiobox use wxRadioBox class | |
982 | --enable-radiobtn use wxRadioButton class | |
983 | --enable-sash use wxSashWindow class | |
984 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
985 | --enable-slider use wxSlider class | |
986 | --enable-spinbtn use wxSpinButton class | |
987 | --enable-spinctrl use wxSpinCtrl class | |
988 | --enable-splitter use wxSplitterWindow class | |
989 | --enable-statbmp use wxStaticBitmap class | |
990 | --enable-statbox use wxStaticBox class | |
991 | --enable-statline use wxStaticLine class | |
992 | --enable-stattext use wxStaticText class | |
993 | --enable-statusbar use wxStatusBar class | |
994 | --enable-tabdialog use wxTabControl class | |
995 | --enable-textctrl use wxTextCtrl class | |
996 | --enable-togglebtn use wxToggleButton class | |
997 | --enable-toolbar use wxToolBar class | |
998 | --enable-tbarnative use native wxToolBar class | |
999 | --enable-tbarsmpl use wxToolBarSimple class | |
1000 | --enable-treectrl use wxTreeCtrl class | |
1001 | --enable-tipwindow use wxTipWindow class | |
1002 | --enable-popupwin use wxPopUpWindow class | |
1003 | --enable-commondlg use all common dialogs | |
1004 | --enable-choicedlg use wxChoiceDialog | |
1005 | --enable-coldlg use wxColourDialog | |
1006 | --enable-filedlg use wxFileDialog | |
1007 | --enable-finddlg use wxFindReplaceDialog | |
1008 | --enable-fontdlg use wxFontDialog | |
1009 | --enable-dirdlg use wxDirDialog | |
1010 | --enable-msgdlg use wxMessageDialog | |
1011 | --enable-numberdlg use wxNumberEntryDialog | |
1012 | --enable-splash use wxSplashScreen | |
1013 | --enable-textdlg use wxTextDialog | |
1014 | --enable-tipdlg use startup tips | |
1015 | --enable-progressdlg use wxProgressDialog | |
1016 | --enable-wizarddlg use wxWizard | |
1017 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1018 | --enable-miniframe use wxMiniFrame class | |
1019 | --enable-tooltips use wxToolTip class | |
1020 | --enable-splines use spline drawing code | |
1021 | --enable-validators use wxValidator and derived classes | |
1022 | --enable-busyinfo use wxBusyInfo | |
1023 | --enable-joystick use wxJoystick (Linux only) | |
1024 | --enable-metafiles use wxMetaFile (Windows only) | |
1025 | --enable-dragimage use wxDragImage | |
1026 | --enable-accessibility enable accessibility support | |
1027 | --enable-palette use wxPalette class | |
1028 | --enable-image use wxImage class | |
1029 | --enable-gif use gif images (GIF file format) | |
1030 | --enable-pcx use pcx images (PCX file format) | |
1031 | --enable-iff use iff images (IFF file format) | |
1032 | --enable-pnm use pnm images (PNM file format) | |
1033 | --enable-xpm use xpm images (XPM file format) | |
1034 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1035 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1036 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1037 | --disable-largefile omit support for large files | |
1038 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1039 | --disable-gtktest Do not try to compile and run a test GTK program | |
1040 | --disable-sdltest Do not try to compile and run a test SDL program | |
1041 | --enable-omf use OMF object format (OS/2) | |
ebee3cd0 VS |
1042 | --disable-precomp-headers |
1043 | don't use precompiled headers even if compiler can | |
a848cd7e SC |
1044 | |
1045 | Optional Packages: | |
1046 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1047 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1048 | --with-gtk use GTK+ | |
1049 | --with-motif use Motif/Lesstif | |
1050 | --with-mac use Mac OS X | |
1051 | --with-cocoa use Cocoa | |
1052 | --with-wine use Wine | |
1053 | --with-msw use MS-Windows | |
1054 | --with-pm use OS/2 Presentation Manager | |
1055 | --with-mgl use SciTech MGL | |
1056 | --with-microwin use MicroWindows | |
1057 | --with-x11 use X11 | |
1058 | --with-libpng use libpng (PNG image format) | |
1059 | --with-libjpeg use libjpeg (JPEG file format) | |
1060 | --with-libtiff use libtiff (TIFF file format) | |
1061 | --with-libxpm use libxpm (XPM file format) | |
1062 | --with-libmspack use libmspack (CHM help files loading) | |
1063 | --with-sdl use SDL for audio on Unix | |
1064 | --with-opengl use OpenGL (or Mesa) | |
1065 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1066 | --with-regex enable support for wxRegEx class | |
1067 | --with-zlib use zlib for LZW compression | |
1068 | --with-odbc use the IODBC and wxODBC classes | |
1069 | --with-expat enable XML support using expat parser | |
ceec2216 | 1070 | --with-flavour=NAME specify a name to identify this build |
a848cd7e SC |
1071 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1072 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1073 | --with-x use the X Window System | |
1074 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1075 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1076 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1077 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1078 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1079 | ||
1080 | Some influential environment variables: | |
dcc1b6ad VS |
1081 | CC C compiler command |
1082 | CFLAGS C compiler flags | |
1083 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1084 | nonstandard directory <lib dir> | |
1085 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1086 | headers in a nonstandard directory <include dir> | |
1087 | CPP C preprocessor | |
1088 | CXX C++ compiler command | |
1089 | CXXFLAGS C++ compiler flags | |
1090 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1091 | |
1092 | Use these variables to override the choices made by `configure' or to help | |
1093 | it to find libraries and programs with nonstandard names/locations. | |
1094 | ||
77ffb593 | 1095 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1096 | _ACEOF |
1097 | fi | |
1098 | ||
1099 | if test "$ac_init_help" = "recursive"; then | |
1100 | # If there are subdirs, report their specific --help. | |
1101 | ac_popdir=`pwd` | |
1102 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1103 | test -d $ac_dir || continue | |
1104 | ac_builddir=. | |
1105 | ||
1106 | if test "$ac_dir" != .; then | |
1107 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1108 | # A "../" for each directory in $ac_dir_suffix. | |
1109 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1110 | else | |
1111 | ac_dir_suffix= ac_top_builddir= | |
1112 | fi | |
1113 | ||
1114 | case $srcdir in | |
1115 | .) # No --srcdir option. We are building in place. | |
1116 | ac_srcdir=. | |
1117 | if test -z "$ac_top_builddir"; then | |
1118 | ac_top_srcdir=. | |
1119 | else | |
1120 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1121 | fi ;; | |
1122 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1123 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1124 | ac_top_srcdir=$srcdir ;; | |
1125 | *) # Relative path. | |
1126 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1127 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1128 | esac | |
ac1cb8d3 VS |
1129 | |
1130 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1131 | # the directories may not exist. | |
1132 | case `pwd` in | |
1133 | .) ac_abs_builddir="$ac_dir";; | |
1134 | *) | |
1135 | case "$ac_dir" in | |
1136 | .) ac_abs_builddir=`pwd`;; | |
1137 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1138 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1139 | esac;; | |
1140 | esac | |
1141 | case $ac_abs_builddir in | |
1142 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1143 | *) | |
1144 | case ${ac_top_builddir}. in | |
1145 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1146 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1147 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1148 | esac;; | |
1149 | esac | |
1150 | case $ac_abs_builddir in | |
1151 | .) ac_abs_srcdir=$ac_srcdir;; | |
1152 | *) | |
1153 | case $ac_srcdir in | |
1154 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1155 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1156 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1157 | esac;; | |
1158 | esac | |
1159 | case $ac_abs_builddir in | |
1160 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1161 | *) | |
1162 | case $ac_top_srcdir in | |
1163 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1164 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1165 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1166 | esac;; | |
1167 | esac | |
a848cd7e SC |
1168 | |
1169 | cd $ac_dir | |
1170 | # Check for guested configure; otherwise get Cygnus style configure. | |
1171 | if test -f $ac_srcdir/configure.gnu; then | |
1172 | echo | |
1173 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1174 | elif test -f $ac_srcdir/configure; then | |
1175 | echo | |
1176 | $SHELL $ac_srcdir/configure --help=recursive | |
1177 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1178 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1179 | echo |
1180 | $ac_configure --help | |
1181 | else | |
1182 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1183 | fi | |
c228d3a4 | 1184 | cd $ac_popdir |
a848cd7e SC |
1185 | done |
1186 | fi | |
1187 | ||
1188 | test -n "$ac_init_help" && exit 0 | |
1189 | if $ac_init_version; then | |
1190 | cat <<\_ACEOF | |
7714864e | 1191 | wxWidgets configure 2.5.3 |
ac1cb8d3 | 1192 | generated by GNU Autoconf 2.59 |
a848cd7e | 1193 | |
ac1cb8d3 | 1194 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1195 | This configure script is free software; the Free Software Foundation |
1196 | gives unlimited permission to copy, distribute and modify it. | |
1197 | _ACEOF | |
1198 | exit 0 | |
1199 | fi | |
1200 | exec 5>config.log | |
1201 | cat >&5 <<_ACEOF | |
1202 | This file contains any messages produced by compilers while | |
1203 | running configure, to aid debugging if configure makes a mistake. | |
1204 | ||
7714864e | 1205 | It was created by wxWidgets $as_me 2.5.3, which was |
ac1cb8d3 | 1206 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1207 | |
1208 | $ $0 $@ | |
1209 | ||
1210 | _ACEOF | |
1211 | { | |
1212 | cat <<_ASUNAME | |
1213 | ## --------- ## | |
1214 | ## Platform. ## | |
1215 | ## --------- ## | |
1216 | ||
1217 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1218 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1219 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1220 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1221 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1222 | ||
1223 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1224 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1225 | ||
1226 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1227 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1228 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1229 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1230 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1231 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1232 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1233 | ||
1234 | _ASUNAME | |
1235 | ||
1236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1237 | for as_dir in $PATH | |
1238 | do | |
1239 | IFS=$as_save_IFS | |
1240 | test -z "$as_dir" && as_dir=. | |
1241 | echo "PATH: $as_dir" | |
1242 | done | |
1243 | ||
1244 | } >&5 | |
1245 | ||
1246 | cat >&5 <<_ACEOF | |
1247 | ||
1248 | ||
1249 | ## ----------- ## | |
1250 | ## Core tests. ## | |
1251 | ## ----------- ## | |
1252 | ||
1253 | _ACEOF | |
1254 | ||
1255 | ||
1256 | # Keep a trace of the command line. | |
1257 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1258 | # Strip out --silent because we don't want to record it for future runs. | |
1259 | # Also quote any args containing shell meta-characters. | |
1260 | # Make two passes to allow for proper duplicate-argument suppression. | |
1261 | ac_configure_args= | |
1262 | ac_configure_args0= | |
1263 | ac_configure_args1= | |
1264 | ac_sep= | |
1265 | ac_must_keep_next=false | |
1266 | for ac_pass in 1 2 | |
1267 | do | |
1268 | for ac_arg | |
1269 | do | |
1270 | case $ac_arg in | |
1271 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1272 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1273 | | -silent | --silent | --silen | --sile | --sil) | |
1274 | continue ;; | |
1275 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1276 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1277 | esac | |
1278 | case $ac_pass in | |
1279 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1280 | 2) | |
1281 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1282 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1283 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1284 | else |
ac1cb8d3 VS |
1285 | case $ac_arg in |
1286 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1287 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1288 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1289 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1290 | case "$ac_configure_args0 " in | |
1291 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1292 | esac | |
1293 | ;; | |
1294 | -* ) ac_must_keep_next=true ;; | |
1295 | esac | |
a848cd7e SC |
1296 | fi |
1297 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1298 | # Get rid of the leading space. | |
1299 | ac_sep=" " | |
1300 | ;; | |
1301 | esac | |
1302 | done | |
1303 | done | |
1304 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1305 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1306 | ||
1307 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1308 | # config.log. We remove comments because anyway the quotes in there | |
1309 | # would cause problems or look ugly. | |
1310 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1311 | # such as our DU 5.0 friend, will then `close' the trap. | |
1312 | trap 'exit_status=$? | |
1313 | # Save into config.log some information that might help in debugging. | |
1314 | { | |
1315 | echo | |
1316 | ||
1317 | cat <<\_ASBOX | |
1318 | ## ---------------- ## | |
1319 | ## Cache variables. ## | |
1320 | ## ---------------- ## | |
1321 | _ASBOX | |
1322 | echo | |
1323 | # The following way of writing the cache mishandles newlines in values, | |
1324 | { | |
1325 | (set) 2>&1 | | |
1326 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1327 | *ac_space=\ *) | |
1328 | sed -n \ | |
ac1cb8d3 VS |
1329 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1330 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1331 | ;; |
1332 | *) | |
1333 | sed -n \ | |
ac1cb8d3 | 1334 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1335 | ;; |
1336 | esac; | |
1337 | } | |
1338 | echo | |
1339 | ||
1340 | cat <<\_ASBOX | |
1341 | ## ----------------- ## | |
1342 | ## Output variables. ## | |
1343 | ## ----------------- ## | |
1344 | _ASBOX | |
1345 | echo | |
1346 | for ac_var in $ac_subst_vars | |
1347 | do | |
1348 | eval ac_val=$`echo $ac_var` | |
1349 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1350 | done | sort | |
1351 | echo | |
1352 | ||
1353 | if test -n "$ac_subst_files"; then | |
1354 | cat <<\_ASBOX | |
1355 | ## ------------- ## | |
1356 | ## Output files. ## | |
1357 | ## ------------- ## | |
1358 | _ASBOX | |
1359 | echo | |
1360 | for ac_var in $ac_subst_files | |
1361 | do | |
1362 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1363 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1364 | done | sort |
1365 | echo | |
1366 | fi | |
1367 | ||
1368 | if test -s confdefs.h; then | |
1369 | cat <<\_ASBOX | |
1370 | ## ----------- ## | |
1371 | ## confdefs.h. ## | |
1372 | ## ----------- ## | |
1373 | _ASBOX | |
1374 | echo | |
1375 | sed "/^$/d" confdefs.h | sort | |
1376 | echo | |
1377 | fi | |
1378 | test "$ac_signal" != 0 && | |
1379 | echo "$as_me: caught signal $ac_signal" | |
1380 | echo "$as_me: exit $exit_status" | |
1381 | } >&5 | |
ac1cb8d3 | 1382 | rm -f core *.core && |
a848cd7e SC |
1383 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1384 | exit $exit_status | |
1385 | ' 0 | |
1386 | for ac_signal in 1 2 13 15; do | |
1387 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1388 | done | |
1389 | ac_signal=0 | |
1390 | ||
1391 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1392 | rm -rf conftest* confdefs.h | |
1393 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1394 | echo >confdefs.h | |
1395 | ||
1396 | # Predefined preprocessor variables. | |
1397 | ||
1398 | cat >>confdefs.h <<_ACEOF | |
1399 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1400 | _ACEOF | |
1401 | ||
1402 | ||
1403 | cat >>confdefs.h <<_ACEOF | |
1404 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1405 | _ACEOF | |
1406 | ||
1407 | ||
1408 | cat >>confdefs.h <<_ACEOF | |
1409 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1410 | _ACEOF | |
1411 | ||
1412 | ||
1413 | cat >>confdefs.h <<_ACEOF | |
1414 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1415 | _ACEOF | |
1416 | ||
1417 | ||
1418 | cat >>confdefs.h <<_ACEOF | |
1419 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1420 | _ACEOF | |
1421 | ||
1422 | ||
1423 | # Let the site file select an alternate cache file if it wants to. | |
1424 | # Prefer explicitly selected file to automatically selected ones. | |
1425 | if test -z "$CONFIG_SITE"; then | |
1426 | if test "x$prefix" != xNONE; then | |
1427 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1428 | else | |
1429 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1430 | fi | |
1431 | fi | |
1432 | for ac_site_file in $CONFIG_SITE; do | |
1433 | if test -r "$ac_site_file"; then | |
1434 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1435 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1436 | sed 's/^/| /' "$ac_site_file" >&5 | |
1437 | . "$ac_site_file" | |
1438 | fi | |
1439 | done | |
1440 | ||
1441 | if test -r "$cache_file"; then | |
1442 | # Some versions of bash will fail to source /dev/null (special | |
1443 | # files actually), so we avoid doing that. | |
1444 | if test -f "$cache_file"; then | |
1445 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1446 | echo "$as_me: loading cache $cache_file" >&6;} | |
1447 | case $cache_file in | |
1448 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1449 | *) . ./$cache_file;; | |
1450 | esac | |
1451 | fi | |
1452 | else | |
1453 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1454 | echo "$as_me: creating cache $cache_file" >&6;} | |
1455 | >$cache_file | |
1456 | fi | |
1457 | ||
1458 | # Check that the precious variables saved in the cache have kept the same | |
1459 | # value. | |
1460 | ac_cache_corrupted=false | |
1461 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1462 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1463 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1464 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1465 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1466 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1467 | case $ac_old_set,$ac_new_set in | |
1468 | set,) | |
1469 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1470 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1471 | ac_cache_corrupted=: ;; | |
1472 | ,set) | |
1473 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1474 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1475 | ac_cache_corrupted=: ;; | |
1476 | ,);; | |
1477 | *) | |
1478 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1479 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1480 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1481 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1482 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1483 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1484 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1485 | ac_cache_corrupted=: |
a848cd7e SC |
1486 | fi;; |
1487 | esac | |
1488 | # Pass precious variables to config.status. | |
1489 | if test "$ac_new_set" = set; then | |
1490 | case $ac_new_val in | |
1491 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1492 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1493 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1494 | esac | |
1495 | case " $ac_configure_args " in | |
1496 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1497 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1498 | esac | |
1499 | fi | |
1500 | done | |
1501 | if $ac_cache_corrupted; then | |
1502 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1503 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1504 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1505 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1506 | { (exit 1); exit 1; }; } | |
1507 | fi | |
1508 | ||
1509 | ac_ext=c | |
1510 | ac_cpp='$CPP $CPPFLAGS' | |
1511 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1512 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1513 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1514 | ||
1515 | ||
1516 | ||
1517 | ||
1518 | ||
1519 | ||
1520 | ||
1521 | ||
1522 | ||
1523 | ||
1524 | ||
1525 | ||
1526 | ||
1527 | ||
1528 | ||
1529 | ||
1530 | ||
1531 | ||
1532 | ||
1533 | ||
1534 | ||
1535 | ||
1536 | ||
1537 | ||
1538 | ||
1539 | ||
1540 | ||
1541 | ||
1542 | ||
1543 | ||
1544 | ac_aux_dir= | |
1545 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1546 | if test -f $ac_dir/install-sh; then | |
1547 | ac_aux_dir=$ac_dir | |
1548 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1549 | break | |
1550 | elif test -f $ac_dir/install.sh; then | |
1551 | ac_aux_dir=$ac_dir | |
1552 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1553 | break | |
1554 | elif test -f $ac_dir/shtool; then | |
1555 | ac_aux_dir=$ac_dir | |
1556 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1557 | break | |
1558 | fi | |
1559 | done | |
1560 | if test -z "$ac_aux_dir"; then | |
1561 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1562 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1563 | { (exit 1); exit 1; }; } | |
1564 | fi | |
1565 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1566 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1567 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1568 | ||
1569 | # Make sure we can run config.sub. | |
1570 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1571 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1572 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1573 | { (exit 1); exit 1; }; } | |
1574 | ||
1575 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1576 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1577 | if test "${ac_cv_build+set}" = set; then | |
1578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1579 | else | |
1580 | ac_cv_build_alias=$build_alias | |
1581 | test -z "$ac_cv_build_alias" && | |
1582 | ac_cv_build_alias=`$ac_config_guess` | |
1583 | test -z "$ac_cv_build_alias" && | |
1584 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1585 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1586 | { (exit 1); exit 1; }; } | |
1587 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1588 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1589 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1590 | { (exit 1); exit 1; }; } | |
1591 | ||
1592 | fi | |
1593 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1594 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1595 | build=$ac_cv_build | |
1596 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1597 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1598 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1599 | ||
1600 | ||
1601 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1602 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1603 | if test "${ac_cv_host+set}" = set; then | |
1604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1605 | else | |
1606 | ac_cv_host_alias=$host_alias | |
1607 | test -z "$ac_cv_host_alias" && | |
1608 | ac_cv_host_alias=$ac_cv_build_alias | |
1609 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1610 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1611 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1612 | { (exit 1); exit 1; }; } | |
1613 | ||
1614 | fi | |
1615 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1616 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1617 | host=$ac_cv_host | |
1618 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1619 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1620 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1621 | ||
1622 | ||
1623 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1624 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1625 | if test "${ac_cv_target+set}" = set; then | |
1626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1627 | else | |
1628 | ac_cv_target_alias=$target_alias | |
1629 | test "x$ac_cv_target_alias" = "x" && | |
1630 | ac_cv_target_alias=$ac_cv_host_alias | |
1631 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1632 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1633 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1634 | { (exit 1); exit 1; }; } | |
1635 | ||
1636 | fi | |
1637 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1638 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1639 | target=$ac_cv_target | |
1640 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1641 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1642 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1643 | ||
1644 | ||
1645 | # The aliases save the names the user supplied, while $host etc. | |
1646 | # will get canonicalized. | |
1647 | test -n "$target_alias" && | |
1648 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1649 | NONENONEs,x,x, && | |
1650 | program_prefix=${target_alias}- | |
1651 | ||
1652 | ||
1653 | ||
ceec2216 RL |
1654 | wx_major_version_number=2 |
1655 | wx_minor_version_number=5 | |
7714864e RL |
1656 | wx_release_number=3 |
1657 | wx_subrelease_number=0 | |
a848cd7e | 1658 | |
ceec2216 RL |
1659 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
1660 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
1661 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 1662 | |
ceec2216 | 1663 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 1664 | |
7714864e | 1665 | WX_CURRENT=3 |
a848cd7e SC |
1666 | WX_REVISION=0 |
1667 | WX_AGE=0 | |
1668 | ||
1669 | ||
1670 | ||
1671 | USE_UNIX=1 | |
1672 | USE_OS2=0 | |
1673 | USE_WIN32=0 | |
1674 | USE_DOS=0 | |
1675 | USE_BEOS=0 | |
1676 | USE_MAC=0 | |
1677 | ||
1678 | USE_AIX= | |
1679 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1680 | USE_GNU= USE_HPUX= | |
1681 | USE_LINUX= | |
1682 | USE_NETBSD= | |
1683 | USE_OPENBSD= | |
1684 | USE_OSF= USE_SGI= | |
1685 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1686 | USE_ULTRIX= | |
1687 | USE_UNIXWARE= | |
1688 | ||
1689 | USE_ALPHA= | |
1690 | ||
1691 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1692 | ||
1693 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1694 | ||
1695 | DEFAULT_wxUSE_COCOA=0 | |
1696 | DEFAULT_wxUSE_GTK=0 | |
1697 | DEFAULT_wxUSE_MAC=0 | |
1698 | DEFAULT_wxUSE_MGL=0 | |
1699 | DEFAULT_wxUSE_MICROWIN=0 | |
1700 | DEFAULT_wxUSE_MOTIF=0 | |
1701 | DEFAULT_wxUSE_MSW=0 | |
1702 | DEFAULT_wxUSE_PM=0 | |
1703 | DEFAULT_wxUSE_X11=0 | |
1704 | ||
1705 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1706 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1707 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1708 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1709 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1710 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1711 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1712 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1713 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1714 | ||
1715 | PROGRAM_EXT= | |
1716 | SO_SUFFIX=so | |
1717 | SAMPLES_RPATH_FLAG= | |
1718 | SAMPLES_RPATH_POSTLINK= | |
1719 | ||
1720 | case "${host}" in | |
1721 | *-hp-hpux* ) | |
1722 | USE_HPUX=1 | |
1723 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1724 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1725 | SO_SUFFIX=sl | |
1726 | cat >>confdefs.h <<\_ACEOF | |
1727 | #define __HPUX__ 1 | |
1728 | _ACEOF | |
1729 | ||
1730 | ;; | |
1731 | *-*-linux* ) | |
1732 | USE_LINUX=1 | |
1733 | cat >>confdefs.h <<\_ACEOF | |
1734 | #define __LINUX__ 1 | |
1735 | _ACEOF | |
1736 | ||
1737 | TMP=`uname -m` | |
1738 | if test "x$TMP" = "xalpha"; then | |
1739 | USE_ALPHA=1 | |
1740 | cat >>confdefs.h <<\_ACEOF | |
1741 | #define __ALPHA__ 1 | |
1742 | _ACEOF | |
1743 | ||
1744 | fi | |
1745 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1746 | ;; | |
1747 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1748 | USE_GNU=1 | |
1749 | TMP=`uname -m` | |
1750 | if test "x$TMP" = "xalpha"; then | |
1751 | USE_ALPHA=1 | |
1752 | cat >>confdefs.h <<\_ACEOF | |
1753 | #define __ALPHA__ 1 | |
1754 | _ACEOF | |
1755 | ||
1756 | fi | |
1757 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1758 | ;; | |
1759 | *-*-irix5* | *-*-irix6* ) | |
1760 | USE_SGI=1 | |
1761 | USE_SVR4=1 | |
1762 | cat >>confdefs.h <<\_ACEOF | |
1763 | #define __SGI__ 1 | |
1764 | _ACEOF | |
1765 | ||
1766 | cat >>confdefs.h <<\_ACEOF | |
1767 | #define __SVR4__ 1 | |
1768 | _ACEOF | |
1769 | ||
1770 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1771 | ;; | |
1772 | *-*-solaris2* ) | |
1773 | USE_SUN=1 | |
1774 | USE_SOLARIS=1 | |
1775 | USE_SVR4=1 | |
1776 | cat >>confdefs.h <<\_ACEOF | |
1777 | #define __SUN__ 1 | |
1778 | _ACEOF | |
1779 | ||
1780 | cat >>confdefs.h <<\_ACEOF | |
1781 | #define __SOLARIS__ 1 | |
1782 | _ACEOF | |
1783 | ||
1784 | cat >>confdefs.h <<\_ACEOF | |
1785 | #define __SVR4__ 1 | |
1786 | _ACEOF | |
1787 | ||
1788 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1789 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1790 | ;; | |
1791 | *-*-sunos4* ) | |
1792 | USE_SUN=1 | |
1793 | USE_SUNOS=1 | |
1794 | USE_BSD=1 | |
1795 | cat >>confdefs.h <<\_ACEOF | |
1796 | #define __SUN__ 1 | |
1797 | _ACEOF | |
1798 | ||
1799 | cat >>confdefs.h <<\_ACEOF | |
1800 | #define __SUNOS__ 1 | |
1801 | _ACEOF | |
1802 | ||
1803 | cat >>confdefs.h <<\_ACEOF | |
1804 | #define __BSD__ 1 | |
1805 | _ACEOF | |
1806 | ||
1807 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1808 | ;; | |
1809 | *-*-freebsd*) | |
1810 | USE_BSD=1 | |
1811 | USE_FREEBSD=1 | |
1812 | cat >>confdefs.h <<\_ACEOF | |
1813 | #define __FREEBSD__ 1 | |
1814 | _ACEOF | |
1815 | ||
1816 | cat >>confdefs.h <<\_ACEOF | |
1817 | #define __BSD__ 1 | |
1818 | _ACEOF | |
1819 | ||
1820 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1821 | ;; | |
1822 | *-*-openbsd*) | |
1823 | USE_BSD=1 | |
1824 | USE_OPENBSD=1 | |
1825 | cat >>confdefs.h <<\_ACEOF | |
1826 | #define __OPENBSD__ 1 | |
1827 | _ACEOF | |
1828 | ||
1829 | cat >>confdefs.h <<\_ACEOF | |
1830 | #define __BSD__ 1 | |
1831 | _ACEOF | |
1832 | ||
1833 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1834 | ;; | |
1835 | *-*-netbsd*) | |
1836 | USE_BSD=1 | |
1837 | USE_NETBSD=1 | |
1838 | cat >>confdefs.h <<\_ACEOF | |
1839 | #define __NETBSD__ 1 | |
1840 | _ACEOF | |
1841 | ||
1842 | cat >>confdefs.h <<\_ACEOF | |
1843 | #define __BSD__ 1 | |
1844 | _ACEOF | |
1845 | ||
1846 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1847 | ;; | |
1848 | *-*-osf* ) | |
1849 | USE_ALPHA=1 | |
1850 | USE_OSF=1 | |
1851 | cat >>confdefs.h <<\_ACEOF | |
1852 | #define __ALPHA__ 1 | |
1853 | _ACEOF | |
1854 | ||
1855 | cat >>confdefs.h <<\_ACEOF | |
1856 | #define __OSF__ 1 | |
1857 | _ACEOF | |
1858 | ||
1859 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1860 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1861 | ;; | |
1862 | *-*-dgux5* ) | |
1863 | USE_ALPHA=1 | |
1864 | USE_SVR4=1 | |
1865 | cat >>confdefs.h <<\_ACEOF | |
1866 | #define __ALPHA__ 1 | |
1867 | _ACEOF | |
1868 | ||
1869 | cat >>confdefs.h <<\_ACEOF | |
1870 | #define __SVR4__ 1 | |
1871 | _ACEOF | |
1872 | ||
1873 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1874 | ;; | |
1875 | *-*-sysv5* ) | |
1876 | USE_SYSV=1 | |
1877 | USE_SVR4=1 | |
1878 | cat >>confdefs.h <<\_ACEOF | |
1879 | #define __SYSV__ 1 | |
1880 | _ACEOF | |
1881 | ||
1882 | cat >>confdefs.h <<\_ACEOF | |
1883 | #define __SVR4__ 1 | |
1884 | _ACEOF | |
1885 | ||
1886 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1887 | ;; | |
1888 | *-*-aix* ) | |
1889 | USE_AIX=1 | |
1890 | USE_SYSV=1 | |
1891 | USE_SVR4=1 | |
1892 | SO_SUFFIX=a | |
1893 | cat >>confdefs.h <<\_ACEOF | |
1894 | #define __AIX__ 1 | |
1895 | _ACEOF | |
1896 | ||
1897 | cat >>confdefs.h <<\_ACEOF | |
1898 | #define __SYSV__ 1 | |
1899 | _ACEOF | |
1900 | ||
1901 | cat >>confdefs.h <<\_ACEOF | |
1902 | #define __SVR4__ 1 | |
1903 | _ACEOF | |
1904 | ||
1905 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1906 | ;; | |
1907 | ||
1908 | *-*-*UnixWare*) | |
1909 | USE_SYSV=1 | |
1910 | USE_SVR4=1 | |
1911 | USE_UNIXWARE=1 | |
1912 | cat >>confdefs.h <<\_ACEOF | |
1913 | #define __UNIXWARE__ 1 | |
1914 | _ACEOF | |
1915 | ||
1916 | ;; | |
1917 | ||
1918 | *-*-cygwin* | *-*-mingw32* ) | |
1919 | SO_SUFFIX=dll | |
1920 | PROGRAM_EXT=".exe" | |
1921 | RESCOMP=windres | |
1922 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1923 | ;; | |
1924 | ||
1925 | *-pc-msdosdjgpp ) | |
1926 | USE_UNIX=0 | |
1927 | USE_DOS=1 | |
1928 | cat >>confdefs.h <<\_ACEOF | |
1929 | #define __DOS__ 1 | |
1930 | _ACEOF | |
1931 | ||
1932 | PROGRAM_EXT=".exe" | |
1933 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
1934 | LIBS="$LIBS -lstdc++" | |
1935 | ;; | |
1936 | ||
1937 | *-pc-os2_emx | *-pc-os2-emx ) | |
1938 | cat >>confdefs.h <<\_ACEOF | |
1939 | #define __EMX__ 1 | |
1940 | _ACEOF | |
1941 | ||
1942 | USE_OS2=1 | |
1943 | cat >>confdefs.h <<\_ACEOF | |
1944 | #define __OS2__ 1 | |
1945 | _ACEOF | |
1946 | ||
1947 | PROGRAM_EXT=".exe" | |
1948 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1949 | CXX=gcc | |
1950 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1951 | ac_executable_extensions=".exe" | |
1952 | export ac_executable_extensions | |
1953 | ac_save_IFS="$IFS" | |
1954 | IFS='\\' | |
1955 | ac_TEMP_PATH= | |
1956 | for ac_dir in $PATH; do | |
1957 | IFS=$ac_save_IFS | |
1958 | if test -z "$ac_TEMP_PATH"; then | |
1959 | ac_TEMP_PATH="$ac_dir" | |
1960 | else | |
1961 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1962 | fi | |
1963 | done | |
1964 | export PATH="$ac_TEMP_PATH" | |
1965 | unset ac_TEMP_PATH | |
1966 | ;; | |
1967 | ||
1968 | powerpc-*-darwin* ) | |
1969 | USE_BSD=1 | |
1970 | USE_DARWIN=1 | |
1971 | SO_SUFFIX=dylib | |
1972 | cat >>confdefs.h <<\_ACEOF | |
1973 | #define __BSD__ 1 | |
1974 | _ACEOF | |
1975 | ||
1976 | cat >>confdefs.h <<\_ACEOF | |
1977 | #define __DARWIN__ 1 | |
1978 | _ACEOF | |
1979 | ||
1980 | cat >>confdefs.h <<\_ACEOF | |
1981 | #define __POWERPC__ 1 | |
1982 | _ACEOF | |
1983 | ||
1984 | cat >>confdefs.h <<\_ACEOF | |
1985 | #define TARGET_CARBON 1 | |
1986 | _ACEOF | |
1987 | ||
1988 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1989 | ;; | |
1990 | ||
1991 | *-*-beos* ) | |
1992 | USE_BEOS=1 | |
1993 | cat >>confdefs.h <<\_ACEOF | |
1994 | #define __BEOS__ 1 | |
1995 | _ACEOF | |
1996 | ||
1997 | ;; | |
1998 | ||
1999 | *) | |
2000 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
2001 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
2002 | { (exit 1); exit 1; }; } | |
2003 | esac | |
2004 | ||
2005 | ||
2006 | ||
2007 | ||
2008 | wx_arg_cache_file="configarg.cache" | |
2009 | echo "loading argument cache $wx_arg_cache_file" | |
2010 | rm -f ${wx_arg_cache_file}.tmp | |
2011 | touch ${wx_arg_cache_file}.tmp | |
2012 | touch ${wx_arg_cache_file} | |
2013 | ||
2014 | ||
2015 | DEBUG_CONFIGURE=0 | |
2016 | if test $DEBUG_CONFIGURE = 1; then | |
2017 | DEFAULT_wxUSE_UNIVERSAL=no | |
2018 | DEFAULT_wxUSE_STL=no | |
2019 | ||
2020 | DEFAULT_wxUSE_NANOX=no | |
2021 | ||
2022 | DEFAULT_wxUSE_THREADS=yes | |
2023 | ||
2024 | DEFAULT_wxUSE_SHARED=yes | |
2025 | DEFAULT_wxUSE_OPTIMISE=no | |
2026 | DEFAULT_wxUSE_PROFILE=no | |
2027 | DEFAULT_wxUSE_NO_DEPS=no | |
2028 | DEFAULT_wxUSE_NO_RTTI=no | |
2029 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
2030 | DEFAULT_wxUSE_PERMISSIVE=no | |
2031 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2032 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2033 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2034 | DEFAULT_wxUSE_MEM_TRACING=no | |
2035 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2036 | DEFAULT_wxUSE_DMALLOC=no | |
2037 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2038 | ||
2039 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2040 | DEFAULT_wxUSE_LOG=yes | |
2041 | DEFAULT_wxUSE_LOGWINDOW=no | |
2042 | DEFAULT_wxUSE_LOGGUI=no | |
2043 | DEFAULT_wxUSE_LOGDIALOG=no | |
2044 | ||
2045 | DEFAULT_wxUSE_GUI=yes | |
2046 | DEFAULT_wxUSE_CONTROLS=no | |
2047 | ||
2048 | DEFAULT_wxUSE_REGEX=no | |
2049 | DEFAULT_wxUSE_XML=no | |
2050 | DEFAULT_wxUSE_EXPAT=no | |
2051 | DEFAULT_wxUSE_ZLIB=no | |
2052 | DEFAULT_wxUSE_LIBPNG=no | |
2053 | DEFAULT_wxUSE_LIBJPEG=no | |
2054 | DEFAULT_wxUSE_LIBTIFF=no | |
2055 | DEFAULT_wxUSE_LIBXPM=no | |
2056 | DEFAULT_wxUSE_LIBMSPACK=no | |
2057 | DEFAULT_wxUSE_LIBSDL=no | |
2058 | DEFAULT_wxUSE_ODBC=no | |
2059 | DEFAULT_wxUSE_OPENGL=no | |
2060 | ||
2061 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
2062 | DEFAULT_wxUSE_SNGLINST_CHECKER=no | |
2063 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2064 | DEFAULT_wxUSE_CMDLINE_PARSER=no | |
2065 | DEFAULT_wxUSE_DATETIME=no | |
2066 | DEFAULT_wxUSE_TIMER=no | |
2067 | DEFAULT_wxUSE_STOPWATCH=no | |
2068 | DEFAULT_wxUSE_FILE=no | |
2069 | DEFAULT_wxUSE_FFILE=no | |
2070 | DEFAULT_wxUSE_TEXTBUFFER=no | |
2071 | DEFAULT_wxUSE_TEXTFILE=no | |
2072 | DEFAULT_wxUSE_SOUND=no | |
2073 | DEFAULT_wxUSE_INTL=no | |
2074 | DEFAULT_wxUSE_CONFIG=no | |
2075 | DEFAULT_wxUSE_FONTMAP=no | |
2076 | DEFAULT_wxUSE_STREAMS=no | |
2077 | DEFAULT_wxUSE_SOCKETS=no | |
2078 | DEFAULT_wxUSE_OLE=no | |
2079 | DEFAULT_wxUSE_DATAOBJ=no | |
2080 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2081 | DEFAULT_wxUSE_JOYSTICK=no | |
2082 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2083 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2084 | DEFAULT_wxUSE_LONGLONG=no | |
2085 | DEFAULT_wxUSE_GEOMETRY=no | |
2086 | ||
2087 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2088 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2089 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2090 | ||
2091 | DEFAULT_wxUSE_CLIPBOARD=no | |
2092 | DEFAULT_wxUSE_TOOLTIPS=no | |
2093 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2094 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2095 | DEFAULT_wxUSE_SPLINES=no | |
2096 | ||
8a7b1113 | 2097 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2098 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2099 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2100 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2101 | ||
2102 | DEFAULT_wxUSE_RESOURCES=no | |
2103 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2104 | DEFAULT_wxUSE_IPC=no | |
2105 | DEFAULT_wxUSE_HELP=no | |
2106 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2107 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2108 | DEFAULT_wxUSE_TREELAYOUT=no | |
2109 | DEFAULT_wxUSE_METAFILE=no | |
2110 | DEFAULT_wxUSE_MIMETYPE=no | |
2111 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2112 | DEFAULT_wxUSE_PROTOCOL=no | |
2113 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2114 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2115 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2116 | DEFAULT_wxUSE_URL=no | |
2117 | ||
2118 | DEFAULT_wxUSE_COMMONDLGS=no | |
2119 | DEFAULT_wxUSE_CHOICEDLG=no | |
2120 | DEFAULT_wxUSE_COLOURDLG=no | |
2121 | DEFAULT_wxUSE_DIRDLG=no | |
2122 | DEFAULT_wxUSE_FILEDLG=no | |
2123 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2124 | DEFAULT_wxUSE_FONTDLG=no | |
2125 | DEFAULT_wxUSE_MSGDLG=no | |
2126 | DEFAULT_wxUSE_NUMBERDLG=no | |
2127 | DEFAULT_wxUSE_TEXTDLG=no | |
2128 | DEFAULT_wxUSE_SPLASH=no | |
2129 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2130 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2131 | DEFAULT_wxUSE_WIZARDDLG=no | |
2132 | ||
2133 | DEFAULT_wxUSE_MENUS=no | |
2134 | DEFAULT_wxUSE_MINIFRAME=no | |
2135 | DEFAULT_wxUSE_HTML=no | |
9a8f0513 | 2136 | DEFAULT_wxUSE_XRC=no |
646b6ec1 | 2137 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2138 | DEFAULT_wxUSE_FILESYSTEM=no |
2139 | DEFAULT_wxUSE_FS_INET=no | |
2140 | DEFAULT_wxUSE_FS_ZIP=no | |
2141 | DEFAULT_wxUSE_BUSYINFO=no | |
2142 | DEFAULT_wxUSE_ZIPSTREAM=no | |
a848cd7e SC |
2143 | DEFAULT_wxUSE_VALIDATORS=no |
2144 | ||
2145 | DEFAULT_wxUSE_ACCEL=no | |
2146 | DEFAULT_wxUSE_BUTTON=no | |
2147 | DEFAULT_wxUSE_BMPBUTTON=no | |
2148 | DEFAULT_wxUSE_CALCTRL=no | |
2149 | DEFAULT_wxUSE_CARET=no | |
2150 | DEFAULT_wxUSE_CHECKBOX=no | |
2151 | DEFAULT_wxUSE_CHECKLST=no | |
2152 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2153 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e SC |
2154 | DEFAULT_wxUSE_COMBOBOX=no |
2155 | DEFAULT_wxUSE_DISPLAY=no | |
2156 | DEFAULT_wxUSE_GAUGE=no | |
2157 | DEFAULT_wxUSE_GRID=no | |
2158 | DEFAULT_wxUSE_IMAGLIST=no | |
2159 | DEFAULT_wxUSE_LISTBOOK=no | |
2160 | DEFAULT_wxUSE_LISTBOX=no | |
2161 | DEFAULT_wxUSE_LISTCTRL=no | |
2162 | DEFAULT_wxUSE_NOTEBOOK=no | |
2163 | DEFAULT_wxUSE_RADIOBOX=no | |
2164 | DEFAULT_wxUSE_RADIOBTN=no | |
2165 | DEFAULT_wxUSE_SASH=no | |
2166 | DEFAULT_wxUSE_SCROLLBAR=no | |
2167 | DEFAULT_wxUSE_SLIDER=no | |
2168 | DEFAULT_wxUSE_SPINBTN=no | |
2169 | DEFAULT_wxUSE_SPINCTRL=no | |
2170 | DEFAULT_wxUSE_SPLITTER=no | |
2171 | DEFAULT_wxUSE_STATBMP=no | |
2172 | DEFAULT_wxUSE_STATBOX=no | |
2173 | DEFAULT_wxUSE_STATLINE=no | |
2174 | DEFAULT_wxUSE_STATTEXT=no | |
2175 | DEFAULT_wxUSE_STATUSBAR=yes | |
2176 | DEFAULT_wxUSE_TABDIALOG=no | |
2177 | DEFAULT_wxUSE_TEXTCTRL=no | |
2178 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2179 | DEFAULT_wxUSE_TOOLBAR=no | |
2180 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2181 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
2182 | DEFAULT_wxUSE_TREECTRL=no | |
2183 | DEFAULT_wxUSE_POPUPWIN=no | |
2184 | DEFAULT_wxUSE_TIPWINDOW=no | |
2185 | ||
2186 | DEFAULT_wxUSE_UNICODE=no | |
2187 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2188 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2189 | ||
2190 | DEFAULT_wxUSE_PALETTE=no | |
2191 | DEFAULT_wxUSE_IMAGE=no | |
2192 | DEFAULT_wxUSE_GIF=no | |
2193 | DEFAULT_wxUSE_PCX=no | |
2194 | DEFAULT_wxUSE_PNM=no | |
2195 | DEFAULT_wxUSE_IFF=no | |
2196 | DEFAULT_wxUSE_XPM=no | |
2197 | DEFAULT_wxUSE_ICO_CUR=no | |
2198 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2199 | ||
2200 | DEFAULT_wxUSE_MONOLITHIC=no | |
2201 | DEFAULT_wxUSE_PLUGINS=no | |
2202 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2203 | else | |
2204 | DEFAULT_wxUSE_UNIVERSAL=no | |
2205 | DEFAULT_wxUSE_STL=no | |
2206 | ||
2207 | DEFAULT_wxUSE_NANOX=no | |
2208 | ||
2209 | DEFAULT_wxUSE_THREADS=yes | |
2210 | ||
2211 | DEFAULT_wxUSE_SHARED=yes | |
2212 | DEFAULT_wxUSE_OPTIMISE=yes | |
2213 | DEFAULT_wxUSE_PROFILE=no | |
2214 | DEFAULT_wxUSE_NO_DEPS=no | |
2215 | DEFAULT_wxUSE_NO_RTTI=no | |
2216 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
2217 | DEFAULT_wxUSE_PERMISSIVE=no | |
2218 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2219 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2220 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2221 | DEFAULT_wxUSE_MEM_TRACING=no | |
2222 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2223 | DEFAULT_wxUSE_DMALLOC=no | |
2224 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2225 | ||
2226 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2227 | DEFAULT_wxUSE_LOG=yes | |
2228 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2229 | DEFAULT_wxUSE_LOGGUI=yes | |
2230 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2231 | ||
2232 | DEFAULT_wxUSE_GUI=yes | |
2233 | ||
2234 | DEFAULT_wxUSE_REGEX=yes | |
2235 | DEFAULT_wxUSE_XML=yes | |
2236 | DEFAULT_wxUSE_EXPAT=yes | |
2237 | DEFAULT_wxUSE_ZLIB=yes | |
2238 | DEFAULT_wxUSE_LIBPNG=yes | |
2239 | DEFAULT_wxUSE_LIBJPEG=yes | |
2240 | DEFAULT_wxUSE_LIBTIFF=yes | |
2241 | DEFAULT_wxUSE_LIBXPM=yes | |
2242 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2243 | DEFAULT_wxUSE_LIBSDL=no | |
2244 | DEFAULT_wxUSE_ODBC=no | |
2245 | DEFAULT_wxUSE_OPENGL=no | |
2246 | ||
2247 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
2248 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes | |
2249 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2250 | DEFAULT_wxUSE_CMDLINE_PARSER=yes | |
2251 | DEFAULT_wxUSE_DATETIME=yes | |
2252 | DEFAULT_wxUSE_TIMER=yes | |
2253 | DEFAULT_wxUSE_STOPWATCH=yes | |
2254 | DEFAULT_wxUSE_FILE=yes | |
2255 | DEFAULT_wxUSE_FFILE=yes | |
2256 | DEFAULT_wxUSE_TEXTBUFFER=yes | |
2257 | DEFAULT_wxUSE_TEXTFILE=yes | |
2258 | DEFAULT_wxUSE_SOUND=yes | |
2259 | DEFAULT_wxUSE_INTL=yes | |
2260 | DEFAULT_wxUSE_CONFIG=yes | |
2261 | DEFAULT_wxUSE_FONTMAP=yes | |
2262 | DEFAULT_wxUSE_STREAMS=yes | |
2263 | DEFAULT_wxUSE_SOCKETS=yes | |
2264 | DEFAULT_wxUSE_OLE=yes | |
2265 | DEFAULT_wxUSE_DATAOBJ=yes | |
2266 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2267 | DEFAULT_wxUSE_JOYSTICK=yes | |
2268 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2269 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2270 | DEFAULT_wxUSE_LONGLONG=yes | |
2271 | DEFAULT_wxUSE_GEOMETRY=yes | |
2272 | ||
2273 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2274 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2275 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2276 | ||
2277 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2278 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2279 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2280 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2281 | DEFAULT_wxUSE_SPLINES=yes | |
2282 | ||
8a7b1113 | 2283 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2284 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2285 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2286 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2287 | ||
2288 | DEFAULT_wxUSE_RESOURCES=no | |
2289 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2290 | DEFAULT_wxUSE_IPC=yes | |
2291 | DEFAULT_wxUSE_HELP=yes | |
2292 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2293 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2294 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2295 | DEFAULT_wxUSE_METAFILE=yes | |
2296 | DEFAULT_wxUSE_MIMETYPE=yes | |
2297 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2298 | DEFAULT_wxUSE_PROTOCOL=yes | |
2299 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2300 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2301 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2302 | DEFAULT_wxUSE_URL=yes | |
2303 | ||
2304 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2305 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2306 | DEFAULT_wxUSE_COLOURDLG=yes | |
2307 | DEFAULT_wxUSE_DIRDLG=yes | |
2308 | DEFAULT_wxUSE_FILEDLG=yes | |
2309 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2310 | DEFAULT_wxUSE_FONTDLG=yes | |
2311 | DEFAULT_wxUSE_MSGDLG=yes | |
2312 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2313 | DEFAULT_wxUSE_TEXTDLG=yes | |
2314 | DEFAULT_wxUSE_SPLASH=yes | |
2315 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2316 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2317 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2318 | ||
2319 | DEFAULT_wxUSE_MENUS=yes | |
2320 | DEFAULT_wxUSE_MINIFRAME=yes | |
2321 | DEFAULT_wxUSE_HTML=yes | |
9a8f0513 | 2322 | DEFAULT_wxUSE_XRC=yes |
646b6ec1 | 2323 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2324 | DEFAULT_wxUSE_FILESYSTEM=yes |
2325 | DEFAULT_wxUSE_FS_INET=yes | |
2326 | DEFAULT_wxUSE_FS_ZIP=yes | |
2327 | DEFAULT_wxUSE_BUSYINFO=yes | |
2328 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
a848cd7e SC |
2329 | DEFAULT_wxUSE_VALIDATORS=yes |
2330 | ||
2331 | DEFAULT_wxUSE_ACCEL=yes | |
2332 | DEFAULT_wxUSE_BUTTON=yes | |
2333 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2334 | DEFAULT_wxUSE_CALCTRL=yes | |
2335 | DEFAULT_wxUSE_CARET=yes | |
2336 | DEFAULT_wxUSE_CHECKBOX=yes | |
2337 | DEFAULT_wxUSE_CHECKLST=yes | |
2338 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2339 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e SC |
2340 | DEFAULT_wxUSE_COMBOBOX=yes |
2341 | DEFAULT_wxUSE_DISPLAY=yes | |
2342 | DEFAULT_wxUSE_GAUGE=yes | |
2343 | DEFAULT_wxUSE_GRID=yes | |
2344 | DEFAULT_wxUSE_IMAGLIST=yes | |
2345 | DEFAULT_wxUSE_LISTBOOK=yes | |
2346 | DEFAULT_wxUSE_LISTBOX=yes | |
2347 | DEFAULT_wxUSE_LISTCTRL=yes | |
2348 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2349 | DEFAULT_wxUSE_RADIOBOX=yes | |
2350 | DEFAULT_wxUSE_RADIOBTN=yes | |
2351 | DEFAULT_wxUSE_SASH=yes | |
2352 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2353 | DEFAULT_wxUSE_SLIDER=yes | |
2354 | DEFAULT_wxUSE_SPINBTN=yes | |
2355 | DEFAULT_wxUSE_SPINCTRL=yes | |
2356 | DEFAULT_wxUSE_SPLITTER=yes | |
2357 | DEFAULT_wxUSE_STATBMP=yes | |
2358 | DEFAULT_wxUSE_STATBOX=yes | |
2359 | DEFAULT_wxUSE_STATLINE=yes | |
2360 | DEFAULT_wxUSE_STATTEXT=yes | |
2361 | DEFAULT_wxUSE_STATUSBAR=yes | |
2362 | DEFAULT_wxUSE_TABDIALOG=no | |
2363 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2364 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2365 | DEFAULT_wxUSE_TOOLBAR=yes | |
2366 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2367 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
2368 | DEFAULT_wxUSE_TREECTRL=yes | |
2369 | DEFAULT_wxUSE_POPUPWIN=yes | |
2370 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2371 | ||
2372 | DEFAULT_wxUSE_UNICODE=no | |
2373 | DEFAULT_wxUSE_UNICODE_MSLU=yes | |
2374 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2375 | ||
2376 | DEFAULT_wxUSE_PALETTE=yes | |
2377 | DEFAULT_wxUSE_IMAGE=yes | |
2378 | DEFAULT_wxUSE_GIF=yes | |
2379 | DEFAULT_wxUSE_PCX=yes | |
2380 | DEFAULT_wxUSE_IFF=no | |
2381 | DEFAULT_wxUSE_PNM=yes | |
2382 | DEFAULT_wxUSE_XPM=yes | |
2383 | DEFAULT_wxUSE_ICO_CUR=yes | |
2384 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2385 | ||
2386 | DEFAULT_wxUSE_MONOLITHIC=no | |
2387 | DEFAULT_wxUSE_PLUGINS=no | |
2388 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e VS |
2389 | |
2390 | DEFAULT_wxUSE_GTK2=yes | |
a848cd7e SC |
2391 | fi |
2392 | ||
2393 | ||
2394 | ||
2395 | for toolkit in `echo $ALL_TOOLKITS`; do | |
2396 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2397 | if test "x$LINE" != "x" ; then | |
2398 | has_toolkit_in_cache=1 | |
2399 | eval "DEFAULT_$LINE" | |
2400 | eval "CACHE_$toolkit=1" | |
2401 | fi | |
2402 | done | |
2403 | ||
2404 | ||
2405 | ||
2406 | enablestring= | |
2407 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2408 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2409 | no_cache=0 | |
2410 | # Check whether --enable-gui or --disable-gui was given. | |
2411 | if test "${enable_gui+set}" = set; then | |
2412 | enableval="$enable_gui" | |
2413 | ||
2414 | if test "$enableval" = yes; then | |
2415 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2416 | else | |
2417 | ac_cv_use_gui='wxUSE_GUI=no' | |
2418 | fi | |
2419 | ||
2420 | else | |
2421 | ||
2422 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2423 | if test "x$LINE" != x ; then | |
2424 | eval "DEFAULT_$LINE" | |
2425 | else | |
2426 | no_cache=1 | |
2427 | fi | |
2428 | ||
2429 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2430 | ||
2431 | fi; | |
2432 | ||
2433 | eval "$ac_cv_use_gui" | |
2434 | if test "$no_cache" != 1; then | |
2435 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2436 | fi | |
2437 | ||
2438 | if test "$wxUSE_GUI" = yes; then | |
2439 | echo "$as_me:$LINENO: result: yes" >&5 | |
2440 | echo "${ECHO_T}yes" >&6 | |
2441 | else | |
2442 | echo "$as_me:$LINENO: result: no" >&5 | |
2443 | echo "${ECHO_T}no" >&6 | |
2444 | fi | |
2445 | ||
2446 | ||
2447 | enablestring= | |
2448 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2449 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2450 | no_cache=0 | |
2451 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2452 | if test "${enable_monolithic+set}" = set; then | |
2453 | enableval="$enable_monolithic" | |
2454 | ||
2455 | if test "$enableval" = yes; then | |
2456 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2457 | else | |
2458 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2459 | fi | |
2460 | ||
2461 | else | |
2462 | ||
2463 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2464 | if test "x$LINE" != x ; then | |
2465 | eval "DEFAULT_$LINE" | |
2466 | else | |
2467 | no_cache=1 | |
2468 | fi | |
2469 | ||
2470 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2471 | ||
2472 | fi; | |
2473 | ||
2474 | eval "$ac_cv_use_monolithic" | |
2475 | if test "$no_cache" != 1; then | |
2476 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2477 | fi | |
2478 | ||
2479 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2480 | echo "$as_me:$LINENO: result: yes" >&5 | |
2481 | echo "${ECHO_T}yes" >&6 | |
2482 | else | |
2483 | echo "$as_me:$LINENO: result: no" >&5 | |
2484 | echo "${ECHO_T}no" >&6 | |
2485 | fi | |
2486 | ||
2487 | ||
2488 | enablestring= | |
2489 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2490 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2491 | no_cache=0 | |
2492 | # Check whether --enable-plugins or --disable-plugins was given. | |
2493 | if test "${enable_plugins+set}" = set; then | |
2494 | enableval="$enable_plugins" | |
2495 | ||
2496 | if test "$enableval" = yes; then | |
2497 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2498 | else | |
2499 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2500 | fi | |
2501 | ||
2502 | else | |
2503 | ||
2504 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2505 | if test "x$LINE" != x ; then | |
2506 | eval "DEFAULT_$LINE" | |
2507 | else | |
2508 | no_cache=1 | |
2509 | fi | |
2510 | ||
2511 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2512 | ||
2513 | fi; | |
2514 | ||
2515 | eval "$ac_cv_use_plugins" | |
2516 | if test "$no_cache" != 1; then | |
2517 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2518 | fi | |
2519 | ||
2520 | if test "$wxUSE_PLUGINS" = yes; then | |
2521 | echo "$as_me:$LINENO: result: yes" >&5 | |
2522 | echo "${ECHO_T}yes" >&6 | |
2523 | else | |
2524 | echo "$as_me:$LINENO: result: no" >&5 | |
2525 | echo "${ECHO_T}no" >&6 | |
2526 | fi | |
2527 | ||
2528 | ||
2529 | if test "$wxUSE_GUI" = "yes"; then | |
2530 | ||
2531 | ||
2532 | enablestring= | |
2533 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2534 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2535 | no_cache=0 | |
2536 | # Check whether --enable-universal or --disable-universal was given. | |
2537 | if test "${enable_universal+set}" = set; then | |
2538 | enableval="$enable_universal" | |
2539 | ||
2540 | if test "$enableval" = yes; then | |
2541 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2542 | else | |
2543 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2544 | fi | |
2545 | ||
2546 | else | |
2547 | ||
2548 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2549 | if test "x$LINE" != x ; then | |
2550 | eval "DEFAULT_$LINE" | |
2551 | else | |
2552 | no_cache=1 | |
2553 | fi | |
2554 | ||
2555 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2556 | ||
2557 | fi; | |
2558 | ||
2559 | eval "$ac_cv_use_universal" | |
2560 | if test "$no_cache" != 1; then | |
2561 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2562 | fi | |
2563 | ||
2564 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2565 | echo "$as_me:$LINENO: result: yes" >&5 | |
2566 | echo "${ECHO_T}yes" >&6 | |
2567 | else | |
2568 | echo "$as_me:$LINENO: result: no" >&5 | |
2569 | echo "${ECHO_T}no" >&6 | |
2570 | fi | |
2571 | ||
2572 | ||
2573 | # Check whether --with-gtk or --without-gtk was given. | |
2574 | if test "${with_gtk+set}" = set; then | |
2575 | withval="$with_gtk" | |
2576 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2577 | fi; | |
2578 | ||
2579 | # Check whether --with-motif or --without-motif was given. | |
2580 | if test "${with_motif+set}" = set; then | |
2581 | withval="$with_motif" | |
2582 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2583 | fi; | |
2584 | ||
2585 | # Check whether --with-mac or --without-mac was given. | |
2586 | if test "${with_mac+set}" = set; then | |
2587 | withval="$with_mac" | |
c228d3a4 | 2588 | wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2589 | fi; |
2590 | ||
2591 | # Check whether --with-cocoa or --without-cocoa was given. | |
2592 | if test "${with_cocoa+set}" = set; then | |
2593 | withval="$with_cocoa" | |
c228d3a4 | 2594 | wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2595 | fi; |
2596 | ||
2597 | # Check whether --with-wine or --without-wine was given. | |
2598 | if test "${with_wine+set}" = set; then | |
2599 | withval="$with_wine" | |
2600 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2601 | fi; | |
2602 | ||
2603 | # Check whether --with-msw or --without-msw was given. | |
2604 | if test "${with_msw+set}" = set; then | |
2605 | withval="$with_msw" | |
2606 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2607 | fi; | |
2608 | ||
2609 | # Check whether --with-pm or --without-pm was given. | |
2610 | if test "${with_pm+set}" = set; then | |
2611 | withval="$with_pm" | |
2612 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2613 | fi; | |
2614 | ||
2615 | # Check whether --with-mgl or --without-mgl was given. | |
2616 | if test "${with_mgl+set}" = set; then | |
2617 | withval="$with_mgl" | |
2618 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2619 | fi; | |
2620 | ||
2621 | # Check whether --with-microwin or --without-microwin was given. | |
2622 | if test "${with_microwin+set}" = set; then | |
2623 | withval="$with_microwin" | |
2624 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2625 | fi; | |
2626 | ||
2627 | # Check whether --with-x11 or --without-x11 was given. | |
2628 | if test "${with_x11+set}" = set; then | |
2629 | withval="$with_x11" | |
2630 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2631 | fi; | |
2632 | ||
2633 | enablestring= | |
2634 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2635 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2636 | no_cache=0 | |
2637 | # Check whether --enable-nanox or --disable-nanox was given. | |
2638 | if test "${enable_nanox+set}" = set; then | |
2639 | enableval="$enable_nanox" | |
2640 | ||
2641 | if test "$enableval" = yes; then | |
2642 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2643 | else | |
2644 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2645 | fi | |
2646 | ||
2647 | else | |
2648 | ||
2649 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2650 | if test "x$LINE" != x ; then | |
2651 | eval "DEFAULT_$LINE" | |
2652 | else | |
2653 | no_cache=1 | |
2654 | fi | |
2655 | ||
2656 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2657 | ||
2658 | fi; | |
2659 | ||
2660 | eval "$ac_cv_use_nanox" | |
2661 | if test "$no_cache" != 1; then | |
2662 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2663 | fi | |
2664 | ||
2665 | if test "$wxUSE_NANOX" = yes; then | |
2666 | echo "$as_me:$LINENO: result: yes" >&5 | |
2667 | echo "${ECHO_T}yes" >&6 | |
2668 | else | |
2669 | echo "$as_me:$LINENO: result: no" >&5 | |
2670 | echo "${ECHO_T}no" >&6 | |
2671 | fi | |
2672 | ||
2673 | ||
2674 | ||
2675 | enablestring= | |
2676 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 | |
2677 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
2678 | no_cache=0 | |
2679 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
2680 | if test "${enable_gtk2+set}" = set; then | |
2681 | enableval="$enable_gtk2" | |
2682 | ||
2683 | if test "$enableval" = yes; then | |
2684 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2685 | else | |
2686 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2687 | fi | |
2688 | ||
2689 | else | |
2690 | ||
2691 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` | |
2692 | if test "x$LINE" != x ; then | |
2693 | eval "DEFAULT_$LINE" | |
2694 | else | |
2695 | no_cache=1 | |
2696 | fi | |
2697 | ||
2698 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
2699 | ||
2700 | fi; | |
2701 | ||
2702 | eval "$ac_cv_use_gtk2" | |
2703 | if test "$no_cache" != 1; then | |
2704 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2705 | fi | |
2706 | ||
2707 | if test "$wxUSE_GTK2" = yes; then | |
2708 | echo "$as_me:$LINENO: result: yes" >&5 | |
2709 | echo "${ECHO_T}yes" >&6 | |
2710 | else | |
2711 | echo "$as_me:$LINENO: result: no" >&5 | |
2712 | echo "${ECHO_T}no" >&6 | |
2713 | fi | |
2714 | ||
2715 | ||
2716 | enablestring= | |
2717 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2718 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2719 | no_cache=0 | |
2720 | # Check whether --enable-gpe or --disable-gpe was given. | |
2721 | if test "${enable_gpe+set}" = set; then | |
2722 | enableval="$enable_gpe" | |
2723 | ||
2724 | if test "$enableval" = yes; then | |
2725 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2726 | else | |
2727 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2728 | fi | |
2729 | ||
2730 | else | |
2731 | ||
2732 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2733 | if test "x$LINE" != x ; then | |
2734 | eval "DEFAULT_$LINE" | |
2735 | else | |
2736 | no_cache=1 | |
2737 | fi | |
2738 | ||
2739 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2740 | ||
2741 | fi; | |
2742 | ||
2743 | eval "$ac_cv_use_gpe" | |
2744 | if test "$no_cache" != 1; then | |
2745 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2746 | fi | |
2747 | ||
2748 | if test "$wxUSE_GPE" = yes; then | |
2749 | echo "$as_me:$LINENO: result: yes" >&5 | |
2750 | echo "${ECHO_T}yes" >&6 | |
2751 | else | |
2752 | echo "$as_me:$LINENO: result: no" >&5 | |
2753 | echo "${ECHO_T}no" >&6 | |
2754 | fi | |
2755 | ||
2756 | ||
2757 | ||
2758 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2759 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2760 | no_cache=0 | |
2761 | ||
2762 | # Check whether --with-libpng or --without-libpng was given. | |
2763 | if test "${with_libpng+set}" = set; then | |
2764 | withval="$with_libpng" | |
2765 | ||
2766 | if test "$withval" = yes; then | |
2767 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2768 | elif test "$withval" = no; then | |
2769 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2770 | elif test "$withval" = sys; then | |
2771 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2772 | elif test "$withval" = builtin; then | |
2773 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2774 | else | |
2775 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2776 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2777 | { (exit 1); exit 1; }; } | |
2778 | fi | |
2779 | ||
2780 | else | |
2781 | ||
2782 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2783 | if test "x$LINE" != x ; then | |
2784 | eval "DEFAULT_$LINE" | |
2785 | else | |
2786 | no_cache=1 | |
2787 | fi | |
2788 | ||
2789 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2790 | ||
2791 | fi; | |
2792 | ||
2793 | eval "$ac_cv_use_libpng" | |
2794 | if test "$no_cache" != 1; then | |
2795 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2796 | fi | |
2797 | ||
2798 | if test "$wxUSE_LIBPNG" = yes; then | |
2799 | echo "$as_me:$LINENO: result: yes" >&5 | |
2800 | echo "${ECHO_T}yes" >&6 | |
2801 | elif test "$wxUSE_LIBPNG" = no; then | |
2802 | echo "$as_me:$LINENO: result: no" >&5 | |
2803 | echo "${ECHO_T}no" >&6 | |
2804 | elif test "$wxUSE_LIBPNG" = sys; then | |
2805 | echo "$as_me:$LINENO: result: system version" >&5 | |
2806 | echo "${ECHO_T}system version" >&6 | |
2807 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2808 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2809 | echo "${ECHO_T}builtin version" >&6 | |
2810 | else | |
2811 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2812 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2813 | { (exit 1); exit 1; }; } | |
2814 | fi | |
2815 | ||
2816 | ||
2817 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2818 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2819 | no_cache=0 | |
2820 | ||
2821 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2822 | if test "${with_libjpeg+set}" = set; then | |
2823 | withval="$with_libjpeg" | |
2824 | ||
2825 | if test "$withval" = yes; then | |
2826 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2827 | elif test "$withval" = no; then | |
2828 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2829 | elif test "$withval" = sys; then | |
2830 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2831 | elif test "$withval" = builtin; then | |
2832 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2833 | else | |
2834 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2835 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2836 | { (exit 1); exit 1; }; } | |
2837 | fi | |
2838 | ||
2839 | else | |
2840 | ||
2841 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2842 | if test "x$LINE" != x ; then | |
2843 | eval "DEFAULT_$LINE" | |
2844 | else | |
2845 | no_cache=1 | |
2846 | fi | |
2847 | ||
2848 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2849 | ||
2850 | fi; | |
2851 | ||
2852 | eval "$ac_cv_use_libjpeg" | |
2853 | if test "$no_cache" != 1; then | |
2854 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2855 | fi | |
2856 | ||
2857 | if test "$wxUSE_LIBJPEG" = yes; then | |
2858 | echo "$as_me:$LINENO: result: yes" >&5 | |
2859 | echo "${ECHO_T}yes" >&6 | |
2860 | elif test "$wxUSE_LIBJPEG" = no; then | |
2861 | echo "$as_me:$LINENO: result: no" >&5 | |
2862 | echo "${ECHO_T}no" >&6 | |
2863 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2864 | echo "$as_me:$LINENO: result: system version" >&5 | |
2865 | echo "${ECHO_T}system version" >&6 | |
2866 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2867 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2868 | echo "${ECHO_T}builtin version" >&6 | |
2869 | else | |
2870 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2871 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2872 | { (exit 1); exit 1; }; } | |
2873 | fi | |
2874 | ||
2875 | ||
2876 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2877 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2878 | no_cache=0 | |
2879 | ||
2880 | # Check whether --with-libtiff or --without-libtiff was given. | |
2881 | if test "${with_libtiff+set}" = set; then | |
2882 | withval="$with_libtiff" | |
2883 | ||
2884 | if test "$withval" = yes; then | |
2885 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2886 | elif test "$withval" = no; then | |
2887 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2888 | elif test "$withval" = sys; then | |
2889 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2890 | elif test "$withval" = builtin; then | |
2891 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2892 | else | |
2893 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2894 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2895 | { (exit 1); exit 1; }; } | |
2896 | fi | |
2897 | ||
2898 | else | |
2899 | ||
2900 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2901 | if test "x$LINE" != x ; then | |
2902 | eval "DEFAULT_$LINE" | |
2903 | else | |
2904 | no_cache=1 | |
2905 | fi | |
2906 | ||
2907 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2908 | ||
2909 | fi; | |
2910 | ||
2911 | eval "$ac_cv_use_libtiff" | |
2912 | if test "$no_cache" != 1; then | |
2913 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2914 | fi | |
2915 | ||
2916 | if test "$wxUSE_LIBTIFF" = yes; then | |
2917 | echo "$as_me:$LINENO: result: yes" >&5 | |
2918 | echo "${ECHO_T}yes" >&6 | |
2919 | elif test "$wxUSE_LIBTIFF" = no; then | |
2920 | echo "$as_me:$LINENO: result: no" >&5 | |
2921 | echo "${ECHO_T}no" >&6 | |
2922 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2923 | echo "$as_me:$LINENO: result: system version" >&5 | |
2924 | echo "${ECHO_T}system version" >&6 | |
2925 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2926 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2927 | echo "${ECHO_T}builtin version" >&6 | |
2928 | else | |
2929 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2930 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2931 | { (exit 1); exit 1; }; } | |
2932 | fi | |
2933 | ||
2934 | ||
2935 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
2936 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2937 | no_cache=0 | |
2938 | ||
2939 | # Check whether --with-libxpm or --without-libxpm was given. | |
2940 | if test "${with_libxpm+set}" = set; then | |
2941 | withval="$with_libxpm" | |
2942 | ||
2943 | if test "$withval" = yes; then | |
2944 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2945 | elif test "$withval" = no; then | |
2946 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2947 | elif test "$withval" = sys; then | |
2948 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2949 | elif test "$withval" = builtin; then | |
2950 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2951 | else | |
2952 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2953 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2954 | { (exit 1); exit 1; }; } | |
2955 | fi | |
2956 | ||
2957 | else | |
2958 | ||
2959 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2960 | if test "x$LINE" != x ; then | |
2961 | eval "DEFAULT_$LINE" | |
2962 | else | |
2963 | no_cache=1 | |
2964 | fi | |
2965 | ||
2966 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2967 | ||
2968 | fi; | |
2969 | ||
2970 | eval "$ac_cv_use_libxpm" | |
2971 | if test "$no_cache" != 1; then | |
2972 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2973 | fi | |
2974 | ||
2975 | if test "$wxUSE_LIBXPM" = yes; then | |
2976 | echo "$as_me:$LINENO: result: yes" >&5 | |
2977 | echo "${ECHO_T}yes" >&6 | |
2978 | elif test "$wxUSE_LIBXPM" = no; then | |
2979 | echo "$as_me:$LINENO: result: no" >&5 | |
2980 | echo "${ECHO_T}no" >&6 | |
2981 | elif test "$wxUSE_LIBXPM" = sys; then | |
2982 | echo "$as_me:$LINENO: result: system version" >&5 | |
2983 | echo "${ECHO_T}system version" >&6 | |
2984 | elif test "$wxUSE_LIBXPM" = builtin; then | |
2985 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2986 | echo "${ECHO_T}builtin version" >&6 | |
2987 | else | |
2988 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2989 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2990 | { (exit 1); exit 1; }; } | |
2991 | fi | |
2992 | ||
2993 | ||
2994 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 | |
2995 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
2996 | no_cache=0 | |
2997 | ||
2998 | # Check whether --with-libmspack or --without-libmspack was given. | |
2999 | if test "${with_libmspack+set}" = set; then | |
3000 | withval="$with_libmspack" | |
3001 | ||
3002 | if test "$withval" = yes; then | |
3003 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3004 | else | |
3005 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3006 | fi | |
3007 | ||
3008 | else | |
3009 | ||
3010 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3011 | if test "x$LINE" != x ; then | |
3012 | eval "DEFAULT_$LINE" | |
3013 | else | |
3014 | no_cache=1 | |
3015 | fi | |
3016 | ||
3017 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3018 | ||
3019 | fi; | |
3020 | ||
3021 | eval "$ac_cv_use_libmspack" | |
3022 | if test "$no_cache" != 1; then | |
3023 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3024 | fi | |
3025 | ||
3026 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3027 | echo "$as_me:$LINENO: result: yes" >&5 | |
3028 | echo "${ECHO_T}yes" >&6 | |
3029 | else | |
3030 | echo "$as_me:$LINENO: result: no" >&5 | |
3031 | echo "${ECHO_T}no" >&6 | |
3032 | fi | |
3033 | ||
3034 | ||
3035 | echo "$as_me:$LINENO: checking for --with-sdl" >&5 | |
3036 | echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6 | |
3037 | no_cache=0 | |
3038 | ||
3039 | # Check whether --with-sdl or --without-sdl was given. | |
3040 | if test "${with_sdl+set}" = set; then | |
3041 | withval="$with_sdl" | |
3042 | ||
3043 | if test "$withval" = yes; then | |
3044 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3045 | else | |
3046 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3047 | fi | |
3048 | ||
3049 | else | |
3050 | ||
3051 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3052 | if test "x$LINE" != x ; then | |
3053 | eval "DEFAULT_$LINE" | |
3054 | else | |
3055 | no_cache=1 | |
3056 | fi | |
3057 | ||
3058 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3059 | ||
3060 | fi; | |
3061 | ||
3062 | eval "$ac_cv_use_sdl" | |
3063 | if test "$no_cache" != 1; then | |
3064 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3065 | fi | |
3066 | ||
3067 | if test "$wxUSE_LIBSDL" = yes; then | |
3068 | echo "$as_me:$LINENO: result: yes" >&5 | |
3069 | echo "${ECHO_T}yes" >&6 | |
3070 | else | |
3071 | echo "$as_me:$LINENO: result: no" >&5 | |
3072 | echo "${ECHO_T}no" >&6 | |
3073 | fi | |
3074 | ||
3075 | ||
3076 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 | |
3077 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
3078 | no_cache=0 | |
3079 | ||
3080 | # Check whether --with-opengl or --without-opengl was given. | |
3081 | if test "${with_opengl+set}" = set; then | |
3082 | withval="$with_opengl" | |
3083 | ||
3084 | if test "$withval" = yes; then | |
3085 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3086 | else | |
3087 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3088 | fi | |
3089 | ||
3090 | else | |
3091 | ||
3092 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3093 | if test "x$LINE" != x ; then | |
3094 | eval "DEFAULT_$LINE" | |
3095 | else | |
3096 | no_cache=1 | |
3097 | fi | |
3098 | ||
3099 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3100 | ||
3101 | fi; | |
3102 | ||
3103 | eval "$ac_cv_use_opengl" | |
3104 | if test "$no_cache" != 1; then | |
3105 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3106 | fi | |
3107 | ||
3108 | if test "$wxUSE_OPENGL" = yes; then | |
3109 | echo "$as_me:$LINENO: result: yes" >&5 | |
3110 | echo "${ECHO_T}yes" >&6 | |
3111 | else | |
3112 | echo "$as_me:$LINENO: result: no" >&5 | |
3113 | echo "${ECHO_T}no" >&6 | |
3114 | fi | |
3115 | ||
3116 | ||
3117 | fi | |
3118 | ||
3119 | ||
3120 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 | |
3121 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
3122 | no_cache=0 | |
3123 | ||
3124 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3125 | if test "${with_dmalloc+set}" = set; then | |
3126 | withval="$with_dmalloc" | |
3127 | ||
3128 | if test "$withval" = yes; then | |
3129 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3130 | else | |
3131 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3132 | fi | |
3133 | ||
3134 | else | |
3135 | ||
3136 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3137 | if test "x$LINE" != x ; then | |
3138 | eval "DEFAULT_$LINE" | |
3139 | else | |
3140 | no_cache=1 | |
3141 | fi | |
3142 | ||
3143 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3144 | ||
3145 | fi; | |
3146 | ||
3147 | eval "$ac_cv_use_dmalloc" | |
3148 | if test "$no_cache" != 1; then | |
3149 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3150 | fi | |
3151 | ||
3152 | if test "$wxUSE_DMALLOC" = yes; then | |
3153 | echo "$as_me:$LINENO: result: yes" >&5 | |
3154 | echo "${ECHO_T}yes" >&6 | |
3155 | else | |
3156 | echo "$as_me:$LINENO: result: no" >&5 | |
3157 | echo "${ECHO_T}no" >&6 | |
3158 | fi | |
3159 | ||
3160 | ||
3161 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3162 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3163 | no_cache=0 | |
3164 | ||
3165 | # Check whether --with-regex or --without-regex was given. | |
3166 | if test "${with_regex+set}" = set; then | |
3167 | withval="$with_regex" | |
3168 | ||
3169 | if test "$withval" = yes; then | |
3170 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3171 | elif test "$withval" = no; then | |
3172 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3173 | elif test "$withval" = sys; then | |
3174 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3175 | elif test "$withval" = builtin; then | |
3176 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3177 | else | |
3178 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3179 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3180 | { (exit 1); exit 1; }; } | |
3181 | fi | |
3182 | ||
3183 | else | |
3184 | ||
3185 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3186 | if test "x$LINE" != x ; then | |
3187 | eval "DEFAULT_$LINE" | |
3188 | else | |
3189 | no_cache=1 | |
3190 | fi | |
3191 | ||
3192 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3193 | ||
3194 | fi; | |
3195 | ||
3196 | eval "$ac_cv_use_regex" | |
3197 | if test "$no_cache" != 1; then | |
3198 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3199 | fi | |
3200 | ||
3201 | if test "$wxUSE_REGEX" = yes; then | |
3202 | echo "$as_me:$LINENO: result: yes" >&5 | |
3203 | echo "${ECHO_T}yes" >&6 | |
3204 | elif test "$wxUSE_REGEX" = no; then | |
3205 | echo "$as_me:$LINENO: result: no" >&5 | |
3206 | echo "${ECHO_T}no" >&6 | |
3207 | elif test "$wxUSE_REGEX" = sys; then | |
3208 | echo "$as_me:$LINENO: result: system version" >&5 | |
3209 | echo "${ECHO_T}system version" >&6 | |
3210 | elif test "$wxUSE_REGEX" = builtin; then | |
3211 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3212 | echo "${ECHO_T}builtin version" >&6 | |
3213 | else | |
3214 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3215 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3216 | { (exit 1); exit 1; }; } | |
3217 | fi | |
3218 | ||
3219 | ||
3220 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3221 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3222 | no_cache=0 | |
3223 | ||
3224 | # Check whether --with-zlib or --without-zlib was given. | |
3225 | if test "${with_zlib+set}" = set; then | |
3226 | withval="$with_zlib" | |
3227 | ||
3228 | if test "$withval" = yes; then | |
3229 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3230 | elif test "$withval" = no; then | |
3231 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3232 | elif test "$withval" = sys; then | |
3233 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3234 | elif test "$withval" = builtin; then | |
3235 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3236 | else | |
3237 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3238 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3239 | { (exit 1); exit 1; }; } | |
3240 | fi | |
3241 | ||
3242 | else | |
3243 | ||
3244 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3245 | if test "x$LINE" != x ; then | |
3246 | eval "DEFAULT_$LINE" | |
3247 | else | |
3248 | no_cache=1 | |
3249 | fi | |
3250 | ||
3251 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3252 | ||
3253 | fi; | |
3254 | ||
3255 | eval "$ac_cv_use_zlib" | |
3256 | if test "$no_cache" != 1; then | |
3257 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3258 | fi | |
3259 | ||
3260 | if test "$wxUSE_ZLIB" = yes; then | |
3261 | echo "$as_me:$LINENO: result: yes" >&5 | |
3262 | echo "${ECHO_T}yes" >&6 | |
3263 | elif test "$wxUSE_ZLIB" = no; then | |
3264 | echo "$as_me:$LINENO: result: no" >&5 | |
3265 | echo "${ECHO_T}no" >&6 | |
3266 | elif test "$wxUSE_ZLIB" = sys; then | |
3267 | echo "$as_me:$LINENO: result: system version" >&5 | |
3268 | echo "${ECHO_T}system version" >&6 | |
3269 | elif test "$wxUSE_ZLIB" = builtin; then | |
3270 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3271 | echo "${ECHO_T}builtin version" >&6 | |
3272 | else | |
3273 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3274 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3275 | { (exit 1); exit 1; }; } | |
3276 | fi | |
3277 | ||
3278 | ||
3279 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3280 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3281 | no_cache=0 | |
3282 | ||
3283 | # Check whether --with-odbc or --without-odbc was given. | |
3284 | if test "${with_odbc+set}" = set; then | |
3285 | withval="$with_odbc" | |
3286 | ||
3287 | if test "$withval" = yes; then | |
3288 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3289 | elif test "$withval" = no; then | |
3290 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3291 | elif test "$withval" = sys; then | |
3292 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3293 | elif test "$withval" = builtin; then | |
3294 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3295 | else | |
3296 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3297 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3298 | { (exit 1); exit 1; }; } | |
3299 | fi | |
3300 | ||
3301 | else | |
3302 | ||
3303 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3304 | if test "x$LINE" != x ; then | |
3305 | eval "DEFAULT_$LINE" | |
3306 | else | |
3307 | no_cache=1 | |
3308 | fi | |
3309 | ||
3310 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3311 | ||
3312 | fi; | |
3313 | ||
3314 | eval "$ac_cv_use_odbc" | |
3315 | if test "$no_cache" != 1; then | |
3316 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3317 | fi | |
3318 | ||
3319 | if test "$wxUSE_ODBC" = yes; then | |
3320 | echo "$as_me:$LINENO: result: yes" >&5 | |
3321 | echo "${ECHO_T}yes" >&6 | |
3322 | elif test "$wxUSE_ODBC" = no; then | |
3323 | echo "$as_me:$LINENO: result: no" >&5 | |
3324 | echo "${ECHO_T}no" >&6 | |
3325 | elif test "$wxUSE_ODBC" = sys; then | |
3326 | echo "$as_me:$LINENO: result: system version" >&5 | |
3327 | echo "${ECHO_T}system version" >&6 | |
3328 | elif test "$wxUSE_ODBC" = builtin; then | |
3329 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3330 | echo "${ECHO_T}builtin version" >&6 | |
3331 | else | |
3332 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3333 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3334 | { (exit 1); exit 1; }; } | |
3335 | fi | |
3336 | ||
3337 | ||
3338 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3339 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3340 | no_cache=0 | |
3341 | ||
3342 | # Check whether --with-expat or --without-expat was given. | |
3343 | if test "${with_expat+set}" = set; then | |
3344 | withval="$with_expat" | |
3345 | ||
3346 | if test "$withval" = yes; then | |
3347 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3348 | elif test "$withval" = no; then | |
3349 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3350 | elif test "$withval" = sys; then | |
3351 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3352 | elif test "$withval" = builtin; then | |
3353 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3354 | else | |
3355 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3356 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3357 | { (exit 1); exit 1; }; } | |
3358 | fi | |
3359 | ||
3360 | else | |
3361 | ||
3362 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3363 | if test "x$LINE" != x ; then | |
3364 | eval "DEFAULT_$LINE" | |
3365 | else | |
3366 | no_cache=1 | |
3367 | fi | |
3368 | ||
3369 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3370 | ||
3371 | fi; | |
3372 | ||
3373 | eval "$ac_cv_use_expat" | |
3374 | if test "$no_cache" != 1; then | |
3375 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3376 | fi | |
3377 | ||
3378 | if test "$wxUSE_EXPAT" = yes; then | |
3379 | echo "$as_me:$LINENO: result: yes" >&5 | |
3380 | echo "${ECHO_T}yes" >&6 | |
3381 | elif test "$wxUSE_EXPAT" = no; then | |
3382 | echo "$as_me:$LINENO: result: no" >&5 | |
3383 | echo "${ECHO_T}no" >&6 | |
3384 | elif test "$wxUSE_EXPAT" = sys; then | |
3385 | echo "$as_me:$LINENO: result: system version" >&5 | |
3386 | echo "${ECHO_T}system version" >&6 | |
3387 | elif test "$wxUSE_EXPAT" = builtin; then | |
3388 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3389 | echo "${ECHO_T}builtin version" >&6 | |
3390 | else | |
3391 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3392 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3393 | { (exit 1); exit 1; }; } | |
3394 | fi | |
3395 | ||
3396 | ||
3397 | ||
3398 | ||
3399 | enablestring= | |
3400 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3401 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3402 | no_cache=0 | |
3403 | # Check whether --enable-shared or --disable-shared was given. | |
3404 | if test "${enable_shared+set}" = set; then | |
3405 | enableval="$enable_shared" | |
3406 | ||
3407 | if test "$enableval" = yes; then | |
3408 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3409 | else | |
3410 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3411 | fi | |
3412 | ||
3413 | else | |
3414 | ||
3415 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3416 | if test "x$LINE" != x ; then | |
3417 | eval "DEFAULT_$LINE" | |
3418 | else | |
3419 | no_cache=1 | |
3420 | fi | |
3421 | ||
3422 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3423 | ||
3424 | fi; | |
3425 | ||
3426 | eval "$ac_cv_use_shared" | |
3427 | if test "$no_cache" != 1; then | |
3428 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3429 | fi | |
3430 | ||
3431 | if test "$wxUSE_SHARED" = yes; then | |
3432 | echo "$as_me:$LINENO: result: yes" >&5 | |
3433 | echo "${ECHO_T}yes" >&6 | |
3434 | else | |
3435 | echo "$as_me:$LINENO: result: no" >&5 | |
3436 | echo "${ECHO_T}no" >&6 | |
3437 | fi | |
3438 | ||
3439 | ||
3440 | enablestring= | |
3441 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3442 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3443 | no_cache=0 | |
3444 | # Check whether --enable-optimise or --disable-optimise was given. | |
3445 | if test "${enable_optimise+set}" = set; then | |
3446 | enableval="$enable_optimise" | |
3447 | ||
3448 | if test "$enableval" = yes; then | |
3449 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3450 | else | |
3451 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3452 | fi | |
3453 | ||
3454 | else | |
3455 | ||
3456 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3457 | if test "x$LINE" != x ; then | |
3458 | eval "DEFAULT_$LINE" | |
3459 | else | |
3460 | no_cache=1 | |
3461 | fi | |
3462 | ||
3463 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3464 | ||
3465 | fi; | |
3466 | ||
3467 | eval "$ac_cv_use_optimise" | |
3468 | if test "$no_cache" != 1; then | |
3469 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3470 | fi | |
3471 | ||
3472 | if test "$wxUSE_OPTIMISE" = yes; then | |
3473 | echo "$as_me:$LINENO: result: yes" >&5 | |
3474 | echo "${ECHO_T}yes" >&6 | |
3475 | else | |
3476 | echo "$as_me:$LINENO: result: no" >&5 | |
3477 | echo "${ECHO_T}no" >&6 | |
3478 | fi | |
3479 | ||
3480 | ||
3481 | enablestring= | |
3482 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3483 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3484 | no_cache=0 | |
3485 | # Check whether --enable-debug or --disable-debug was given. | |
3486 | if test "${enable_debug+set}" = set; then | |
3487 | enableval="$enable_debug" | |
3488 | ||
3489 | if test "$enableval" = yes; then | |
3490 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3491 | else | |
3492 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3493 | fi | |
3494 | ||
3495 | else | |
3496 | ||
3497 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3498 | if test "x$LINE" != x ; then | |
3499 | eval "DEFAULT_$LINE" | |
3500 | else | |
3501 | no_cache=1 | |
3502 | fi | |
3503 | ||
3504 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3505 | ||
3506 | fi; | |
3507 | ||
3508 | eval "$ac_cv_use_debug" | |
3509 | if test "$no_cache" != 1; then | |
3510 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3511 | fi | |
3512 | ||
3513 | if test "$wxUSE_DEBUG" = yes; then | |
3514 | echo "$as_me:$LINENO: result: yes" >&5 | |
3515 | echo "${ECHO_T}yes" >&6 | |
3516 | else | |
3517 | echo "$as_me:$LINENO: result: no" >&5 | |
3518 | echo "${ECHO_T}no" >&6 | |
3519 | fi | |
3520 | ||
3521 | ||
3522 | enablestring= | |
3523 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3524 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3525 | no_cache=0 | |
3526 | # Check whether --enable-stl or --disable-stl was given. | |
3527 | if test "${enable_stl+set}" = set; then | |
3528 | enableval="$enable_stl" | |
3529 | ||
3530 | if test "$enableval" = yes; then | |
3531 | ac_cv_use_stl='wxUSE_STL=yes' | |
3532 | else | |
3533 | ac_cv_use_stl='wxUSE_STL=no' | |
3534 | fi | |
3535 | ||
3536 | else | |
3537 | ||
3538 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3539 | if test "x$LINE" != x ; then | |
3540 | eval "DEFAULT_$LINE" | |
3541 | else | |
3542 | no_cache=1 | |
3543 | fi | |
3544 | ||
3545 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3546 | ||
3547 | fi; | |
3548 | ||
3549 | eval "$ac_cv_use_stl" | |
3550 | if test "$no_cache" != 1; then | |
3551 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3552 | fi | |
3553 | ||
3554 | if test "$wxUSE_STL" = yes; then | |
3555 | echo "$as_me:$LINENO: result: yes" >&5 | |
3556 | echo "${ECHO_T}yes" >&6 | |
3557 | else | |
3558 | echo "$as_me:$LINENO: result: no" >&5 | |
3559 | echo "${ECHO_T}no" >&6 | |
3560 | fi | |
3561 | ||
3562 | if test "$USE_OS2" = "1"; then | |
3563 | ||
3564 | enablestring= | |
3565 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3566 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3567 | no_cache=0 | |
3568 | # Check whether --enable-omf or --disable-omf was given. | |
3569 | if test "${enable_omf+set}" = set; then | |
3570 | enableval="$enable_omf" | |
3571 | ||
3572 | if test "$enableval" = yes; then | |
3573 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3574 | else | |
3575 | ac_cv_use_omf='wxUSE_OMF=no' | |
3576 | fi | |
3577 | ||
3578 | else | |
3579 | ||
3580 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3581 | if test "x$LINE" != x ; then | |
3582 | eval "DEFAULT_$LINE" | |
3583 | else | |
3584 | no_cache=1 | |
3585 | fi | |
3586 | ||
3587 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3588 | ||
3589 | fi; | |
3590 | ||
3591 | eval "$ac_cv_use_omf" | |
3592 | if test "$no_cache" != 1; then | |
3593 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3594 | fi | |
3595 | ||
3596 | if test "$wxUSE_OMF" = yes; then | |
3597 | echo "$as_me:$LINENO: result: yes" >&5 | |
3598 | echo "${ECHO_T}yes" >&6 | |
3599 | else | |
3600 | echo "$as_me:$LINENO: result: no" >&5 | |
3601 | echo "${ECHO_T}no" >&6 | |
3602 | fi | |
3603 | ||
3604 | fi | |
3605 | ||
3606 | if test "$wxUSE_DEBUG" = "yes"; then | |
3607 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3608 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3609 | BUILD=debug | |
3610 | elif test "$wxUSE_DEBUG" = "no"; then | |
3611 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3612 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3613 | BUILD=release | |
3614 | fi | |
3615 | ||
3616 | ||
3617 | enablestring= | |
3618 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3619 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3620 | no_cache=0 | |
3621 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3622 | if test "${enable_debug_flag+set}" = set; then | |
3623 | enableval="$enable_debug_flag" | |
3624 | ||
3625 | if test "$enableval" = yes; then | |
3626 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3627 | else | |
3628 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3629 | fi | |
3630 | ||
3631 | else | |
3632 | ||
3633 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3634 | if test "x$LINE" != x ; then | |
3635 | eval "DEFAULT_$LINE" | |
3636 | else | |
3637 | no_cache=1 | |
3638 | fi | |
3639 | ||
3640 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3641 | ||
3642 | fi; | |
3643 | ||
3644 | eval "$ac_cv_use_debug_flag" | |
3645 | if test "$no_cache" != 1; then | |
3646 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3647 | fi | |
3648 | ||
3649 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3650 | echo "$as_me:$LINENO: result: yes" >&5 | |
3651 | echo "${ECHO_T}yes" >&6 | |
3652 | else | |
3653 | echo "$as_me:$LINENO: result: no" >&5 | |
3654 | echo "${ECHO_T}no" >&6 | |
3655 | fi | |
3656 | ||
3657 | ||
3658 | enablestring= | |
3659 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3660 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3661 | no_cache=0 | |
3662 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3663 | if test "${enable_debug_info+set}" = set; then | |
3664 | enableval="$enable_debug_info" | |
3665 | ||
3666 | if test "$enableval" = yes; then | |
3667 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3668 | else | |
3669 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3670 | fi | |
3671 | ||
3672 | else | |
3673 | ||
3674 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3675 | if test "x$LINE" != x ; then | |
3676 | eval "DEFAULT_$LINE" | |
3677 | else | |
3678 | no_cache=1 | |
3679 | fi | |
3680 | ||
3681 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3682 | ||
3683 | fi; | |
3684 | ||
3685 | eval "$ac_cv_use_debug_info" | |
3686 | if test "$no_cache" != 1; then | |
3687 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3688 | fi | |
3689 | ||
3690 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3691 | echo "$as_me:$LINENO: result: yes" >&5 | |
3692 | echo "${ECHO_T}yes" >&6 | |
3693 | else | |
3694 | echo "$as_me:$LINENO: result: no" >&5 | |
3695 | echo "${ECHO_T}no" >&6 | |
3696 | fi | |
3697 | ||
3698 | ||
3699 | enablestring= | |
3700 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3701 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3702 | no_cache=0 | |
3703 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3704 | if test "${enable_debug_gdb+set}" = set; then | |
3705 | enableval="$enable_debug_gdb" | |
3706 | ||
3707 | if test "$enableval" = yes; then | |
3708 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3709 | else | |
3710 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3711 | fi | |
3712 | ||
3713 | else | |
3714 | ||
3715 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3716 | if test "x$LINE" != x ; then | |
3717 | eval "DEFAULT_$LINE" | |
3718 | else | |
3719 | no_cache=1 | |
3720 | fi | |
3721 | ||
3722 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3723 | ||
3724 | fi; | |
3725 | ||
3726 | eval "$ac_cv_use_debug_gdb" | |
3727 | if test "$no_cache" != 1; then | |
3728 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3729 | fi | |
3730 | ||
3731 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3732 | echo "$as_me:$LINENO: result: yes" >&5 | |
3733 | echo "${ECHO_T}yes" >&6 | |
3734 | else | |
3735 | echo "$as_me:$LINENO: result: no" >&5 | |
3736 | echo "${ECHO_T}no" >&6 | |
3737 | fi | |
3738 | ||
3739 | ||
3740 | enablestring= | |
3741 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3742 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3743 | no_cache=0 | |
3744 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3745 | if test "${enable_debug_cntxt+set}" = set; then | |
3746 | enableval="$enable_debug_cntxt" | |
3747 | ||
3748 | if test "$enableval" = yes; then | |
3749 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3750 | else | |
3751 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3752 | fi | |
3753 | ||
3754 | else | |
3755 | ||
3756 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3757 | if test "x$LINE" != x ; then | |
3758 | eval "DEFAULT_$LINE" | |
3759 | else | |
3760 | no_cache=1 | |
3761 | fi | |
3762 | ||
3763 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3764 | ||
3765 | fi; | |
3766 | ||
3767 | eval "$ac_cv_use_debug_cntxt" | |
3768 | if test "$no_cache" != 1; then | |
3769 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3770 | fi | |
3771 | ||
3772 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3773 | echo "$as_me:$LINENO: result: yes" >&5 | |
3774 | echo "${ECHO_T}yes" >&6 | |
3775 | else | |
3776 | echo "$as_me:$LINENO: result: no" >&5 | |
3777 | echo "${ECHO_T}no" >&6 | |
3778 | fi | |
3779 | ||
3780 | ||
3781 | enablestring= | |
3782 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3783 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3784 | no_cache=0 | |
3785 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3786 | if test "${enable_mem_tracing+set}" = set; then | |
3787 | enableval="$enable_mem_tracing" | |
3788 | ||
3789 | if test "$enableval" = yes; then | |
3790 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3791 | else | |
3792 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3793 | fi | |
3794 | ||
3795 | else | |
3796 | ||
3797 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3798 | if test "x$LINE" != x ; then | |
3799 | eval "DEFAULT_$LINE" | |
3800 | else | |
3801 | no_cache=1 | |
3802 | fi | |
3803 | ||
3804 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3805 | ||
3806 | fi; | |
3807 | ||
3808 | eval "$ac_cv_use_mem_tracing" | |
3809 | if test "$no_cache" != 1; then | |
3810 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3811 | fi | |
3812 | ||
3813 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3814 | echo "$as_me:$LINENO: result: yes" >&5 | |
3815 | echo "${ECHO_T}yes" >&6 | |
3816 | else | |
3817 | echo "$as_me:$LINENO: result: no" >&5 | |
3818 | echo "${ECHO_T}no" >&6 | |
3819 | fi | |
3820 | ||
3821 | ||
3822 | enablestring= | |
3823 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3824 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3825 | no_cache=0 | |
3826 | # Check whether --enable-profile or --disable-profile was given. | |
3827 | if test "${enable_profile+set}" = set; then | |
3828 | enableval="$enable_profile" | |
3829 | ||
3830 | if test "$enableval" = yes; then | |
3831 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3832 | else | |
3833 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3834 | fi | |
3835 | ||
3836 | else | |
3837 | ||
3838 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
3839 | if test "x$LINE" != x ; then | |
3840 | eval "DEFAULT_$LINE" | |
3841 | else | |
3842 | no_cache=1 | |
3843 | fi | |
3844 | ||
3845 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3846 | ||
3847 | fi; | |
3848 | ||
3849 | eval "$ac_cv_use_profile" | |
3850 | if test "$no_cache" != 1; then | |
3851 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3852 | fi | |
3853 | ||
3854 | if test "$wxUSE_PROFILE" = yes; then | |
3855 | echo "$as_me:$LINENO: result: yes" >&5 | |
3856 | echo "${ECHO_T}yes" >&6 | |
3857 | else | |
3858 | echo "$as_me:$LINENO: result: no" >&5 | |
3859 | echo "${ECHO_T}no" >&6 | |
3860 | fi | |
3861 | ||
3862 | ||
3863 | enablestring= | |
3864 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
3865 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
3866 | no_cache=0 | |
3867 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3868 | if test "${enable_no_rtti+set}" = set; then | |
3869 | enableval="$enable_no_rtti" | |
3870 | ||
3871 | if test "$enableval" = yes; then | |
3872 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3873 | else | |
3874 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3875 | fi | |
3876 | ||
3877 | else | |
3878 | ||
3879 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
3880 | if test "x$LINE" != x ; then | |
3881 | eval "DEFAULT_$LINE" | |
3882 | else | |
3883 | no_cache=1 | |
3884 | fi | |
3885 | ||
3886 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
3887 | ||
3888 | fi; | |
3889 | ||
3890 | eval "$ac_cv_use_no_rtti" | |
3891 | if test "$no_cache" != 1; then | |
3892 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3893 | fi | |
3894 | ||
3895 | if test "$wxUSE_NO_RTTI" = yes; then | |
3896 | echo "$as_me:$LINENO: result: yes" >&5 | |
3897 | echo "${ECHO_T}yes" >&6 | |
3898 | else | |
3899 | echo "$as_me:$LINENO: result: no" >&5 | |
3900 | echo "${ECHO_T}no" >&6 | |
3901 | fi | |
3902 | ||
3903 | ||
3904 | enablestring= | |
3905 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
3906 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
3907 | no_cache=0 | |
3908 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3909 | if test "${enable_no_exceptions+set}" = set; then | |
3910 | enableval="$enable_no_exceptions" | |
3911 | ||
3912 | if test "$enableval" = yes; then | |
3913 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3914 | else | |
3915 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3916 | fi | |
3917 | ||
3918 | else | |
3919 | ||
3920 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
3921 | if test "x$LINE" != x ; then | |
3922 | eval "DEFAULT_$LINE" | |
3923 | else | |
3924 | no_cache=1 | |
3925 | fi | |
3926 | ||
3927 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
3928 | ||
3929 | fi; | |
3930 | ||
3931 | eval "$ac_cv_use_no_exceptions" | |
3932 | if test "$no_cache" != 1; then | |
3933 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3934 | fi | |
3935 | ||
3936 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
3937 | echo "$as_me:$LINENO: result: yes" >&5 | |
3938 | echo "${ECHO_T}yes" >&6 | |
3939 | else | |
3940 | echo "$as_me:$LINENO: result: no" >&5 | |
3941 | echo "${ECHO_T}no" >&6 | |
3942 | fi | |
3943 | ||
3944 | ||
3945 | enablestring= | |
3946 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
3947 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
3948 | no_cache=0 | |
3949 | # Check whether --enable-permissive or --disable-permissive was given. | |
3950 | if test "${enable_permissive+set}" = set; then | |
3951 | enableval="$enable_permissive" | |
3952 | ||
3953 | if test "$enableval" = yes; then | |
3954 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
3955 | else | |
3956 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
3957 | fi | |
3958 | ||
3959 | else | |
3960 | ||
3961 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
3962 | if test "x$LINE" != x ; then | |
3963 | eval "DEFAULT_$LINE" | |
3964 | else | |
3965 | no_cache=1 | |
3966 | fi | |
3967 | ||
3968 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
3969 | ||
3970 | fi; | |
3971 | ||
3972 | eval "$ac_cv_use_permissive" | |
3973 | if test "$no_cache" != 1; then | |
3974 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
3975 | fi | |
3976 | ||
3977 | if test "$wxUSE_PERMISSIVE" = yes; then | |
3978 | echo "$as_me:$LINENO: result: yes" >&5 | |
3979 | echo "${ECHO_T}yes" >&6 | |
3980 | else | |
3981 | echo "$as_me:$LINENO: result: no" >&5 | |
3982 | echo "${ECHO_T}no" >&6 | |
3983 | fi | |
3984 | ||
3985 | ||
3986 | enablestring= | |
3987 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
3988 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
3989 | no_cache=0 | |
3990 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
3991 | if test "${enable_no_deps+set}" = set; then | |
3992 | enableval="$enable_no_deps" | |
3993 | ||
3994 | if test "$enableval" = yes; then | |
3995 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
3996 | else | |
3997 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
3998 | fi | |
3999 | ||
4000 | else | |
4001 | ||
4002 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4003 | if test "x$LINE" != x ; then | |
4004 | eval "DEFAULT_$LINE" | |
4005 | else | |
4006 | no_cache=1 | |
4007 | fi | |
4008 | ||
4009 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4010 | ||
4011 | fi; | |
4012 | ||
4013 | eval "$ac_cv_use_no_deps" | |
4014 | if test "$no_cache" != 1; then | |
4015 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4016 | fi | |
4017 | ||
4018 | if test "$wxUSE_NO_DEPS" = yes; then | |
4019 | echo "$as_me:$LINENO: result: yes" >&5 | |
4020 | echo "${ECHO_T}yes" >&6 | |
4021 | else | |
4022 | echo "$as_me:$LINENO: result: no" >&5 | |
4023 | echo "${ECHO_T}no" >&6 | |
4024 | fi | |
4025 | ||
4026 | ||
4027 | ||
4028 | enablestring= | |
4029 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 | |
4030 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
4031 | no_cache=0 | |
4032 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
4033 | if test "${enable_compat22+set}" = set; then | |
4034 | enableval="$enable_compat22" | |
4035 | ||
4036 | if test "$enableval" = yes; then | |
4037 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
4038 | else | |
4039 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
4040 | fi | |
4041 | ||
4042 | else | |
4043 | ||
4044 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
4045 | if test "x$LINE" != x ; then | |
4046 | eval "DEFAULT_$LINE" | |
4047 | else | |
4048 | no_cache=1 | |
4049 | fi | |
4050 | ||
4051 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
4052 | ||
4053 | fi; | |
4054 | ||
4055 | eval "$ac_cv_use_compat22" | |
4056 | if test "$no_cache" != 1; then | |
4057 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
4058 | fi | |
4059 | ||
4060 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
4061 | echo "$as_me:$LINENO: result: yes" >&5 | |
4062 | echo "${ECHO_T}yes" >&6 | |
4063 | else | |
4064 | echo "$as_me:$LINENO: result: no" >&5 | |
4065 | echo "${ECHO_T}no" >&6 | |
4066 | fi | |
4067 | ||
4068 | ||
4069 | enablestring=disable | |
4070 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4071 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
4072 | no_cache=0 | |
4073 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
4074 | if test "${enable_compat24+set}" = set; then | |
4075 | enableval="$enable_compat24" | |
4076 | ||
4077 | if test "$enableval" = yes; then | |
4078 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
4079 | else | |
4080 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
4081 | fi | |
4082 | ||
4083 | else | |
4084 | ||
4085 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
4086 | if test "x$LINE" != x ; then | |
4087 | eval "DEFAULT_$LINE" | |
4088 | else | |
4089 | no_cache=1 | |
4090 | fi | |
4091 | ||
4092 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
4093 | ||
4094 | fi; | |
4095 | ||
4096 | eval "$ac_cv_use_compat24" | |
4097 | if test "$no_cache" != 1; then | |
4098 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
4099 | fi | |
4100 | ||
4101 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
4102 | echo "$as_me:$LINENO: result: yes" >&5 | |
4103 | echo "${ECHO_T}yes" >&6 | |
4104 | else | |
4105 | echo "$as_me:$LINENO: result: no" >&5 | |
4106 | echo "${ECHO_T}no" >&6 | |
4107 | fi | |
4108 | ||
4109 | ||
4110 | # Check whether --enable-rpath or --disable-rpath was given. | |
4111 | if test "${enable_rpath+set}" = set; then | |
4112 | enableval="$enable_rpath" | |
4113 | wxRPATH_DIR="$enableval" | |
4114 | fi; | |
4115 | ||
ac1cb8d3 | 4116 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable" -a "$wxRPATH_DIR" != "no"; then |
a848cd7e SC |
4117 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" |
4118 | fi | |
4119 | ||
4120 | ||
4121 | ||
4122 | ||
4123 | enablestring= | |
4124 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4125 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4126 | no_cache=0 | |
4127 | # Check whether --enable-intl or --disable-intl was given. | |
4128 | if test "${enable_intl+set}" = set; then | |
4129 | enableval="$enable_intl" | |
4130 | ||
4131 | if test "$enableval" = yes; then | |
4132 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4133 | else | |
4134 | ac_cv_use_intl='wxUSE_INTL=no' | |
4135 | fi | |
4136 | ||
4137 | else | |
4138 | ||
4139 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4140 | if test "x$LINE" != x ; then | |
4141 | eval "DEFAULT_$LINE" | |
4142 | else | |
4143 | no_cache=1 | |
4144 | fi | |
4145 | ||
4146 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4147 | ||
4148 | fi; | |
4149 | ||
4150 | eval "$ac_cv_use_intl" | |
4151 | if test "$no_cache" != 1; then | |
4152 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4153 | fi | |
4154 | ||
4155 | if test "$wxUSE_INTL" = yes; then | |
4156 | echo "$as_me:$LINENO: result: yes" >&5 | |
4157 | echo "${ECHO_T}yes" >&6 | |
4158 | else | |
4159 | echo "$as_me:$LINENO: result: no" >&5 | |
4160 | echo "${ECHO_T}no" >&6 | |
4161 | fi | |
4162 | ||
4163 | ||
4164 | enablestring= | |
4165 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4166 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4167 | no_cache=0 | |
4168 | # Check whether --enable-config or --disable-config was given. | |
4169 | if test "${enable_config+set}" = set; then | |
4170 | enableval="$enable_config" | |
4171 | ||
4172 | if test "$enableval" = yes; then | |
4173 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4174 | else | |
4175 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4176 | fi | |
4177 | ||
4178 | else | |
4179 | ||
4180 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4181 | if test "x$LINE" != x ; then | |
4182 | eval "DEFAULT_$LINE" | |
4183 | else | |
4184 | no_cache=1 | |
4185 | fi | |
4186 | ||
4187 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4188 | ||
4189 | fi; | |
4190 | ||
4191 | eval "$ac_cv_use_config" | |
4192 | if test "$no_cache" != 1; then | |
4193 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4194 | fi | |
4195 | ||
4196 | if test "$wxUSE_CONFIG" = yes; then | |
4197 | echo "$as_me:$LINENO: result: yes" >&5 | |
4198 | echo "${ECHO_T}yes" >&6 | |
4199 | else | |
4200 | echo "$as_me:$LINENO: result: no" >&5 | |
4201 | echo "${ECHO_T}no" >&6 | |
4202 | fi | |
4203 | ||
4204 | ||
4205 | ||
4206 | enablestring= | |
4207 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4208 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4209 | no_cache=0 | |
4210 | # Check whether --enable-protocols or --disable-protocols was given. | |
4211 | if test "${enable_protocols+set}" = set; then | |
4212 | enableval="$enable_protocols" | |
4213 | ||
4214 | if test "$enableval" = yes; then | |
4215 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4216 | else | |
4217 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4218 | fi | |
4219 | ||
4220 | else | |
4221 | ||
4222 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4223 | if test "x$LINE" != x ; then | |
4224 | eval "DEFAULT_$LINE" | |
4225 | else | |
4226 | no_cache=1 | |
4227 | fi | |
4228 | ||
4229 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4230 | ||
4231 | fi; | |
4232 | ||
4233 | eval "$ac_cv_use_protocols" | |
4234 | if test "$no_cache" != 1; then | |
4235 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4236 | fi | |
4237 | ||
4238 | if test "$wxUSE_PROTOCOL" = yes; then | |
4239 | echo "$as_me:$LINENO: result: yes" >&5 | |
4240 | echo "${ECHO_T}yes" >&6 | |
4241 | else | |
4242 | echo "$as_me:$LINENO: result: no" >&5 | |
4243 | echo "${ECHO_T}no" >&6 | |
4244 | fi | |
4245 | ||
4246 | ||
4247 | enablestring= | |
4248 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4249 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4250 | no_cache=0 | |
4251 | # Check whether --enable-ftp or --disable-ftp was given. | |
4252 | if test "${enable_ftp+set}" = set; then | |
4253 | enableval="$enable_ftp" | |
4254 | ||
4255 | if test "$enableval" = yes; then | |
4256 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4257 | else | |
4258 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4259 | fi | |
4260 | ||
4261 | else | |
4262 | ||
4263 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4264 | if test "x$LINE" != x ; then | |
4265 | eval "DEFAULT_$LINE" | |
4266 | else | |
4267 | no_cache=1 | |
4268 | fi | |
4269 | ||
4270 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4271 | ||
4272 | fi; | |
4273 | ||
4274 | eval "$ac_cv_use_ftp" | |
4275 | if test "$no_cache" != 1; then | |
4276 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4277 | fi | |
4278 | ||
4279 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4280 | echo "$as_me:$LINENO: result: yes" >&5 | |
4281 | echo "${ECHO_T}yes" >&6 | |
4282 | else | |
4283 | echo "$as_me:$LINENO: result: no" >&5 | |
4284 | echo "${ECHO_T}no" >&6 | |
4285 | fi | |
4286 | ||
4287 | ||
4288 | enablestring= | |
4289 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4290 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4291 | no_cache=0 | |
4292 | # Check whether --enable-http or --disable-http was given. | |
4293 | if test "${enable_http+set}" = set; then | |
4294 | enableval="$enable_http" | |
4295 | ||
4296 | if test "$enableval" = yes; then | |
4297 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4298 | else | |
4299 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4300 | fi | |
4301 | ||
4302 | else | |
4303 | ||
4304 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4305 | if test "x$LINE" != x ; then | |
4306 | eval "DEFAULT_$LINE" | |
4307 | else | |
4308 | no_cache=1 | |
4309 | fi | |
4310 | ||
4311 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4312 | ||
4313 | fi; | |
4314 | ||
4315 | eval "$ac_cv_use_http" | |
4316 | if test "$no_cache" != 1; then | |
4317 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4318 | fi | |
4319 | ||
4320 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4321 | echo "$as_me:$LINENO: result: yes" >&5 | |
4322 | echo "${ECHO_T}yes" >&6 | |
4323 | else | |
4324 | echo "$as_me:$LINENO: result: no" >&5 | |
4325 | echo "${ECHO_T}no" >&6 | |
4326 | fi | |
4327 | ||
4328 | ||
4329 | enablestring= | |
4330 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4331 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4332 | no_cache=0 | |
4333 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4334 | if test "${enable_fileproto+set}" = set; then | |
4335 | enableval="$enable_fileproto" | |
4336 | ||
4337 | if test "$enableval" = yes; then | |
4338 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4339 | else | |
4340 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4341 | fi | |
4342 | ||
4343 | else | |
4344 | ||
4345 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4346 | if test "x$LINE" != x ; then | |
4347 | eval "DEFAULT_$LINE" | |
4348 | else | |
4349 | no_cache=1 | |
4350 | fi | |
4351 | ||
4352 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4353 | ||
4354 | fi; | |
4355 | ||
4356 | eval "$ac_cv_use_fileproto" | |
4357 | if test "$no_cache" != 1; then | |
4358 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4359 | fi | |
4360 | ||
4361 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4362 | echo "$as_me:$LINENO: result: yes" >&5 | |
4363 | echo "${ECHO_T}yes" >&6 | |
4364 | else | |
4365 | echo "$as_me:$LINENO: result: no" >&5 | |
4366 | echo "${ECHO_T}no" >&6 | |
4367 | fi | |
4368 | ||
4369 | ||
4370 | enablestring= | |
4371 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4372 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4373 | no_cache=0 | |
4374 | # Check whether --enable-sockets or --disable-sockets was given. | |
4375 | if test "${enable_sockets+set}" = set; then | |
4376 | enableval="$enable_sockets" | |
4377 | ||
4378 | if test "$enableval" = yes; then | |
4379 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4380 | else | |
4381 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4382 | fi | |
4383 | ||
4384 | else | |
4385 | ||
4386 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4387 | if test "x$LINE" != x ; then | |
4388 | eval "DEFAULT_$LINE" | |
4389 | else | |
4390 | no_cache=1 | |
4391 | fi | |
4392 | ||
4393 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4394 | ||
4395 | fi; | |
4396 | ||
4397 | eval "$ac_cv_use_sockets" | |
4398 | if test "$no_cache" != 1; then | |
4399 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4400 | fi | |
4401 | ||
4402 | if test "$wxUSE_SOCKETS" = yes; then | |
4403 | echo "$as_me:$LINENO: result: yes" >&5 | |
4404 | echo "${ECHO_T}yes" >&6 | |
4405 | else | |
4406 | echo "$as_me:$LINENO: result: no" >&5 | |
4407 | echo "${ECHO_T}no" >&6 | |
4408 | fi | |
4409 | ||
4410 | ||
4411 | enablestring= | |
4412 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4413 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4414 | no_cache=0 | |
4415 | # Check whether --enable-ole or --disable-ole was given. | |
4416 | if test "${enable_ole+set}" = set; then | |
4417 | enableval="$enable_ole" | |
4418 | ||
4419 | if test "$enableval" = yes; then | |
4420 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4421 | else | |
4422 | ac_cv_use_ole='wxUSE_OLE=no' | |
4423 | fi | |
4424 | ||
4425 | else | |
4426 | ||
4427 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4428 | if test "x$LINE" != x ; then | |
4429 | eval "DEFAULT_$LINE" | |
4430 | else | |
4431 | no_cache=1 | |
4432 | fi | |
4433 | ||
4434 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4435 | ||
4436 | fi; | |
4437 | ||
4438 | eval "$ac_cv_use_ole" | |
4439 | if test "$no_cache" != 1; then | |
4440 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4441 | fi | |
4442 | ||
4443 | if test "$wxUSE_OLE" = yes; then | |
4444 | echo "$as_me:$LINENO: result: yes" >&5 | |
4445 | echo "${ECHO_T}yes" >&6 | |
4446 | else | |
4447 | echo "$as_me:$LINENO: result: no" >&5 | |
4448 | echo "${ECHO_T}no" >&6 | |
4449 | fi | |
4450 | ||
4451 | ||
4452 | enablestring= | |
4453 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4454 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4455 | no_cache=0 | |
4456 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4457 | if test "${enable_dataobj+set}" = set; then | |
4458 | enableval="$enable_dataobj" | |
4459 | ||
4460 | if test "$enableval" = yes; then | |
4461 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4462 | else | |
4463 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4464 | fi | |
4465 | ||
4466 | else | |
4467 | ||
4468 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4469 | if test "x$LINE" != x ; then | |
4470 | eval "DEFAULT_$LINE" | |
4471 | else | |
4472 | no_cache=1 | |
4473 | fi | |
4474 | ||
4475 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4476 | ||
4477 | fi; | |
4478 | ||
4479 | eval "$ac_cv_use_dataobj" | |
4480 | if test "$no_cache" != 1; then | |
4481 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4482 | fi | |
4483 | ||
4484 | if test "$wxUSE_DATAOBJ" = yes; then | |
4485 | echo "$as_me:$LINENO: result: yes" >&5 | |
4486 | echo "${ECHO_T}yes" >&6 | |
4487 | else | |
4488 | echo "$as_me:$LINENO: result: no" >&5 | |
4489 | echo "${ECHO_T}no" >&6 | |
4490 | fi | |
4491 | ||
4492 | ||
4493 | ||
4494 | enablestring= | |
4495 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4496 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4497 | no_cache=0 | |
4498 | # Check whether --enable-ipc or --disable-ipc was given. | |
4499 | if test "${enable_ipc+set}" = set; then | |
4500 | enableval="$enable_ipc" | |
4501 | ||
4502 | if test "$enableval" = yes; then | |
4503 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4504 | else | |
4505 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4506 | fi | |
4507 | ||
4508 | else | |
4509 | ||
4510 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4511 | if test "x$LINE" != x ; then | |
4512 | eval "DEFAULT_$LINE" | |
4513 | else | |
4514 | no_cache=1 | |
4515 | fi | |
4516 | ||
4517 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4518 | ||
4519 | fi; | |
4520 | ||
4521 | eval "$ac_cv_use_ipc" | |
4522 | if test "$no_cache" != 1; then | |
4523 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4524 | fi | |
4525 | ||
4526 | if test "$wxUSE_IPC" = yes; then | |
4527 | echo "$as_me:$LINENO: result: yes" >&5 | |
4528 | echo "${ECHO_T}yes" >&6 | |
4529 | else | |
4530 | echo "$as_me:$LINENO: result: no" >&5 | |
4531 | echo "${ECHO_T}no" >&6 | |
4532 | fi | |
4533 | ||
4534 | ||
4535 | ||
4536 | enablestring= | |
4537 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4538 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4539 | no_cache=0 | |
4540 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4541 | if test "${enable_apple_ieee+set}" = set; then | |
4542 | enableval="$enable_apple_ieee" | |
4543 | ||
4544 | if test "$enableval" = yes; then | |
4545 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4546 | else | |
4547 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4548 | fi | |
4549 | ||
4550 | else | |
4551 | ||
4552 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4553 | if test "x$LINE" != x ; then | |
4554 | eval "DEFAULT_$LINE" | |
4555 | else | |
4556 | no_cache=1 | |
4557 | fi | |
4558 | ||
4559 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4560 | ||
4561 | fi; | |
4562 | ||
4563 | eval "$ac_cv_use_apple_ieee" | |
4564 | if test "$no_cache" != 1; then | |
4565 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4566 | fi | |
4567 | ||
4568 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4569 | echo "$as_me:$LINENO: result: yes" >&5 | |
4570 | echo "${ECHO_T}yes" >&6 | |
4571 | else | |
4572 | echo "$as_me:$LINENO: result: no" >&5 | |
4573 | echo "${ECHO_T}no" >&6 | |
4574 | fi | |
4575 | ||
4576 | ||
4577 | enablestring= | |
4578 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 | |
4579 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
4580 | no_cache=0 | |
4581 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4582 | if test "${enable_catch_segvs+set}" = set; then | |
4583 | enableval="$enable_catch_segvs" | |
4584 | ||
4585 | if test "$enableval" = yes; then | |
4586 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4587 | else | |
4588 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4589 | fi | |
4590 | ||
4591 | else | |
4592 | ||
4593 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` | |
4594 | if test "x$LINE" != x ; then | |
4595 | eval "DEFAULT_$LINE" | |
4596 | else | |
4597 | no_cache=1 | |
4598 | fi | |
4599 | ||
4600 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
4601 | ||
4602 | fi; | |
4603 | ||
4604 | eval "$ac_cv_use_catch_segvs" | |
4605 | if test "$no_cache" != 1; then | |
4606 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4607 | fi | |
4608 | ||
4609 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
4610 | echo "$as_me:$LINENO: result: yes" >&5 | |
4611 | echo "${ECHO_T}yes" >&6 | |
4612 | else | |
4613 | echo "$as_me:$LINENO: result: no" >&5 | |
4614 | echo "${ECHO_T}no" >&6 | |
4615 | fi | |
4616 | ||
4617 | ||
4618 | enablestring= | |
4619 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4620 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4621 | no_cache=0 | |
4622 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4623 | if test "${enable_cmdline+set}" = set; then | |
4624 | enableval="$enable_cmdline" | |
4625 | ||
4626 | if test "$enableval" = yes; then | |
4627 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4628 | else | |
4629 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4630 | fi | |
4631 | ||
4632 | else | |
4633 | ||
4634 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4635 | if test "x$LINE" != x ; then | |
4636 | eval "DEFAULT_$LINE" | |
4637 | else | |
4638 | no_cache=1 | |
4639 | fi | |
4640 | ||
4641 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4642 | ||
4643 | fi; | |
4644 | ||
4645 | eval "$ac_cv_use_cmdline" | |
4646 | if test "$no_cache" != 1; then | |
4647 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4648 | fi | |
4649 | ||
4650 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4651 | echo "$as_me:$LINENO: result: yes" >&5 | |
4652 | echo "${ECHO_T}yes" >&6 | |
4653 | else | |
4654 | echo "$as_me:$LINENO: result: no" >&5 | |
4655 | echo "${ECHO_T}no" >&6 | |
4656 | fi | |
4657 | ||
4658 | ||
4659 | enablestring= | |
4660 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4661 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4662 | no_cache=0 | |
4663 | # Check whether --enable-datetime or --disable-datetime was given. | |
4664 | if test "${enable_datetime+set}" = set; then | |
4665 | enableval="$enable_datetime" | |
4666 | ||
4667 | if test "$enableval" = yes; then | |
4668 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4669 | else | |
4670 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4671 | fi | |
4672 | ||
4673 | else | |
4674 | ||
4675 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4676 | if test "x$LINE" != x ; then | |
4677 | eval "DEFAULT_$LINE" | |
4678 | else | |
4679 | no_cache=1 | |
4680 | fi | |
4681 | ||
4682 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4683 | ||
4684 | fi; | |
4685 | ||
4686 | eval "$ac_cv_use_datetime" | |
4687 | if test "$no_cache" != 1; then | |
4688 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4689 | fi | |
4690 | ||
4691 | if test "$wxUSE_DATETIME" = yes; then | |
4692 | echo "$as_me:$LINENO: result: yes" >&5 | |
4693 | echo "${ECHO_T}yes" >&6 | |
4694 | else | |
4695 | echo "$as_me:$LINENO: result: no" >&5 | |
4696 | echo "${ECHO_T}no" >&6 | |
4697 | fi | |
4698 | ||
4699 | ||
4700 | enablestring= | |
4701 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
4702 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
4703 | no_cache=0 | |
4704 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
4705 | if test "${enable_dialupman+set}" = set; then | |
4706 | enableval="$enable_dialupman" | |
4707 | ||
4708 | if test "$enableval" = yes; then | |
4709 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
4710 | else | |
4711 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
4712 | fi | |
4713 | ||
4714 | else | |
4715 | ||
4716 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
4717 | if test "x$LINE" != x ; then | |
4718 | eval "DEFAULT_$LINE" | |
4719 | else | |
4720 | no_cache=1 | |
4721 | fi | |
4722 | ||
4723 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
4724 | ||
4725 | fi; | |
4726 | ||
4727 | eval "$ac_cv_use_dialupman" | |
4728 | if test "$no_cache" != 1; then | |
4729 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
4730 | fi | |
4731 | ||
4732 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
4733 | echo "$as_me:$LINENO: result: yes" >&5 | |
4734 | echo "${ECHO_T}yes" >&6 | |
4735 | else | |
4736 | echo "$as_me:$LINENO: result: no" >&5 | |
4737 | echo "${ECHO_T}no" >&6 | |
4738 | fi | |
4739 | ||
4740 | ||
4741 | enablestring= | |
4742 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
4743 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
4744 | no_cache=0 | |
4745 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4746 | if test "${enable_dynlib+set}" = set; then | |
4747 | enableval="$enable_dynlib" | |
4748 | ||
4749 | if test "$enableval" = yes; then | |
4750 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4751 | else | |
4752 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4753 | fi | |
4754 | ||
4755 | else | |
4756 | ||
4757 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
4758 | if test "x$LINE" != x ; then | |
4759 | eval "DEFAULT_$LINE" | |
4760 | else | |
4761 | no_cache=1 | |
4762 | fi | |
4763 | ||
4764 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
4765 | ||
4766 | fi; | |
4767 | ||
4768 | eval "$ac_cv_use_dynlib" | |
4769 | if test "$no_cache" != 1; then | |
4770 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4771 | fi | |
4772 | ||
4773 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
4774 | echo "$as_me:$LINENO: result: yes" >&5 | |
4775 | echo "${ECHO_T}yes" >&6 | |
4776 | else | |
4777 | echo "$as_me:$LINENO: result: no" >&5 | |
4778 | echo "${ECHO_T}no" >&6 | |
4779 | fi | |
4780 | ||
4781 | ||
4782 | enablestring= | |
4783 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
4784 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
4785 | no_cache=0 | |
4786 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4787 | if test "${enable_dynamicloader+set}" = set; then | |
4788 | enableval="$enable_dynamicloader" | |
4789 | ||
4790 | if test "$enableval" = yes; then | |
4791 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4792 | else | |
4793 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4794 | fi | |
4795 | ||
4796 | else | |
4797 | ||
4798 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
4799 | if test "x$LINE" != x ; then | |
4800 | eval "DEFAULT_$LINE" | |
4801 | else | |
4802 | no_cache=1 | |
4803 | fi | |
4804 | ||
4805 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
4806 | ||
4807 | fi; | |
4808 | ||
4809 | eval "$ac_cv_use_dynamicloader" | |
4810 | if test "$no_cache" != 1; then | |
4811 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4812 | fi | |
4813 | ||
4814 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
4815 | echo "$as_me:$LINENO: result: yes" >&5 | |
4816 | echo "${ECHO_T}yes" >&6 | |
4817 | else | |
4818 | echo "$as_me:$LINENO: result: no" >&5 | |
4819 | echo "${ECHO_T}no" >&6 | |
4820 | fi | |
4821 | ||
4822 | ||
4823 | enablestring= | |
4824 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
4825 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
4826 | no_cache=0 | |
4827 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
4828 | if test "${enable_exceptions+set}" = set; then | |
4829 | enableval="$enable_exceptions" | |
4830 | ||
4831 | if test "$enableval" = yes; then | |
4832 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
4833 | else | |
4834 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
4835 | fi | |
4836 | ||
4837 | else | |
4838 | ||
4839 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
4840 | if test "x$LINE" != x ; then | |
4841 | eval "DEFAULT_$LINE" | |
4842 | else | |
4843 | no_cache=1 | |
4844 | fi | |
4845 | ||
4846 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
4847 | ||
4848 | fi; | |
4849 | ||
4850 | eval "$ac_cv_use_exceptions" | |
4851 | if test "$no_cache" != 1; then | |
4852 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
4853 | fi | |
4854 | ||
4855 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
4856 | echo "$as_me:$LINENO: result: yes" >&5 | |
4857 | echo "${ECHO_T}yes" >&6 | |
4858 | else | |
4859 | echo "$as_me:$LINENO: result: no" >&5 | |
4860 | echo "${ECHO_T}no" >&6 | |
4861 | fi | |
4862 | ||
4863 | ||
4864 | enablestring= | |
4865 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
4866 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
4867 | no_cache=0 | |
4868 | # Check whether --enable-ffile or --disable-ffile was given. | |
4869 | if test "${enable_ffile+set}" = set; then | |
4870 | enableval="$enable_ffile" | |
4871 | ||
4872 | if test "$enableval" = yes; then | |
4873 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
4874 | else | |
4875 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
4876 | fi | |
4877 | ||
4878 | else | |
4879 | ||
4880 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
4881 | if test "x$LINE" != x ; then | |
4882 | eval "DEFAULT_$LINE" | |
4883 | else | |
4884 | no_cache=1 | |
4885 | fi | |
4886 | ||
4887 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
4888 | ||
4889 | fi; | |
4890 | ||
4891 | eval "$ac_cv_use_ffile" | |
4892 | if test "$no_cache" != 1; then | |
4893 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
4894 | fi | |
4895 | ||
4896 | if test "$wxUSE_FFILE" = yes; then | |
4897 | echo "$as_me:$LINENO: result: yes" >&5 | |
4898 | echo "${ECHO_T}yes" >&6 | |
4899 | else | |
4900 | echo "$as_me:$LINENO: result: no" >&5 | |
4901 | echo "${ECHO_T}no" >&6 | |
4902 | fi | |
4903 | ||
4904 | ||
4905 | enablestring= | |
4906 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
4907 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
4908 | no_cache=0 | |
4909 | # Check whether --enable-file or --disable-file was given. | |
4910 | if test "${enable_file+set}" = set; then | |
4911 | enableval="$enable_file" | |
4912 | ||
4913 | if test "$enableval" = yes; then | |
4914 | ac_cv_use_file='wxUSE_FILE=yes' | |
4915 | else | |
4916 | ac_cv_use_file='wxUSE_FILE=no' | |
4917 | fi | |
4918 | ||
4919 | else | |
4920 | ||
4921 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
4922 | if test "x$LINE" != x ; then | |
4923 | eval "DEFAULT_$LINE" | |
4924 | else | |
4925 | no_cache=1 | |
4926 | fi | |
4927 | ||
4928 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
4929 | ||
4930 | fi; | |
4931 | ||
4932 | eval "$ac_cv_use_file" | |
4933 | if test "$no_cache" != 1; then | |
4934 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4935 | fi | |
4936 | ||
4937 | if test "$wxUSE_FILE" = yes; then | |
4938 | echo "$as_me:$LINENO: result: yes" >&5 | |
4939 | echo "${ECHO_T}yes" >&6 | |
4940 | else | |
4941 | echo "$as_me:$LINENO: result: no" >&5 | |
4942 | echo "${ECHO_T}no" >&6 | |
4943 | fi | |
4944 | ||
4945 | ||
4946 | enablestring= | |
4947 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
4948 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
4949 | no_cache=0 | |
4950 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4951 | if test "${enable_filesystem+set}" = set; then | |
4952 | enableval="$enable_filesystem" | |
4953 | ||
4954 | if test "$enableval" = yes; then | |
4955 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4956 | else | |
4957 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4958 | fi | |
4959 | ||
4960 | else | |
4961 | ||
4962 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
4963 | if test "x$LINE" != x ; then | |
4964 | eval "DEFAULT_$LINE" | |
4965 | else | |
4966 | no_cache=1 | |
4967 | fi | |
4968 | ||
4969 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
4970 | ||
4971 | fi; | |
4972 | ||
4973 | eval "$ac_cv_use_filesystem" | |
4974 | if test "$no_cache" != 1; then | |
4975 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4976 | fi | |
4977 | ||
4978 | if test "$wxUSE_FILESYSTEM" = yes; then | |
4979 | echo "$as_me:$LINENO: result: yes" >&5 | |
4980 | echo "${ECHO_T}yes" >&6 | |
4981 | else | |
4982 | echo "$as_me:$LINENO: result: no" >&5 | |
4983 | echo "${ECHO_T}no" >&6 | |
4984 | fi | |
4985 | ||
4986 | ||
4987 | enablestring= | |
4988 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
4989 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
4990 | no_cache=0 | |
4991 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
4992 | if test "${enable_fontmap+set}" = set; then | |
4993 | enableval="$enable_fontmap" | |
4994 | ||
4995 | if test "$enableval" = yes; then | |
4996 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
4997 | else | |
4998 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
4999 | fi | |
5000 | ||
5001 | else | |
5002 | ||
5003 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5004 | if test "x$LINE" != x ; then | |
5005 | eval "DEFAULT_$LINE" | |
5006 | else | |
5007 | no_cache=1 | |
5008 | fi | |
5009 | ||
5010 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5011 | ||
5012 | fi; | |
5013 | ||
5014 | eval "$ac_cv_use_fontmap" | |
5015 | if test "$no_cache" != 1; then | |
5016 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5017 | fi | |
5018 | ||
5019 | if test "$wxUSE_FONTMAP" = yes; then | |
5020 | echo "$as_me:$LINENO: result: yes" >&5 | |
5021 | echo "${ECHO_T}yes" >&6 | |
5022 | else | |
5023 | echo "$as_me:$LINENO: result: no" >&5 | |
5024 | echo "${ECHO_T}no" >&6 | |
5025 | fi | |
5026 | ||
5027 | ||
5028 | enablestring= | |
5029 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5030 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5031 | no_cache=0 | |
5032 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5033 | if test "${enable_fs_inet+set}" = set; then | |
5034 | enableval="$enable_fs_inet" | |
5035 | ||
5036 | if test "$enableval" = yes; then | |
5037 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5038 | else | |
5039 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5040 | fi | |
5041 | ||
5042 | else | |
5043 | ||
5044 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5045 | if test "x$LINE" != x ; then | |
5046 | eval "DEFAULT_$LINE" | |
5047 | else | |
5048 | no_cache=1 | |
5049 | fi | |
5050 | ||
5051 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5052 | ||
5053 | fi; | |
5054 | ||
5055 | eval "$ac_cv_use_fs_inet" | |
5056 | if test "$no_cache" != 1; then | |
5057 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5058 | fi | |
5059 | ||
5060 | if test "$wxUSE_FS_INET" = yes; then | |
5061 | echo "$as_me:$LINENO: result: yes" >&5 | |
5062 | echo "${ECHO_T}yes" >&6 | |
5063 | else | |
5064 | echo "$as_me:$LINENO: result: no" >&5 | |
5065 | echo "${ECHO_T}no" >&6 | |
5066 | fi | |
5067 | ||
5068 | ||
5069 | enablestring= | |
5070 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5071 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5072 | no_cache=0 | |
5073 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5074 | if test "${enable_fs_zip+set}" = set; then | |
5075 | enableval="$enable_fs_zip" | |
5076 | ||
5077 | if test "$enableval" = yes; then | |
5078 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5079 | else | |
5080 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5081 | fi | |
5082 | ||
5083 | else | |
5084 | ||
5085 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5086 | if test "x$LINE" != x ; then | |
5087 | eval "DEFAULT_$LINE" | |
5088 | else | |
5089 | no_cache=1 | |
5090 | fi | |
5091 | ||
5092 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5093 | ||
5094 | fi; | |
5095 | ||
5096 | eval "$ac_cv_use_fs_zip" | |
5097 | if test "$no_cache" != 1; then | |
5098 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5099 | fi | |
5100 | ||
5101 | if test "$wxUSE_FS_ZIP" = yes; then | |
5102 | echo "$as_me:$LINENO: result: yes" >&5 | |
5103 | echo "${ECHO_T}yes" >&6 | |
5104 | else | |
5105 | echo "$as_me:$LINENO: result: no" >&5 | |
5106 | echo "${ECHO_T}no" >&6 | |
5107 | fi | |
5108 | ||
5109 | ||
5110 | enablestring= | |
5111 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5112 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5113 | no_cache=0 | |
5114 | # Check whether --enable-geometry or --disable-geometry was given. | |
5115 | if test "${enable_geometry+set}" = set; then | |
5116 | enableval="$enable_geometry" | |
5117 | ||
5118 | if test "$enableval" = yes; then | |
5119 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5120 | else | |
5121 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5122 | fi | |
5123 | ||
5124 | else | |
5125 | ||
5126 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5127 | if test "x$LINE" != x ; then | |
5128 | eval "DEFAULT_$LINE" | |
5129 | else | |
5130 | no_cache=1 | |
5131 | fi | |
5132 | ||
5133 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5134 | ||
5135 | fi; | |
5136 | ||
5137 | eval "$ac_cv_use_geometry" | |
5138 | if test "$no_cache" != 1; then | |
5139 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5140 | fi | |
5141 | ||
5142 | if test "$wxUSE_GEOMETRY" = yes; then | |
5143 | echo "$as_me:$LINENO: result: yes" >&5 | |
5144 | echo "${ECHO_T}yes" >&6 | |
5145 | else | |
5146 | echo "$as_me:$LINENO: result: no" >&5 | |
5147 | echo "${ECHO_T}no" >&6 | |
5148 | fi | |
5149 | ||
5150 | ||
5151 | enablestring= | |
5152 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5153 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5154 | no_cache=0 | |
5155 | # Check whether --enable-log or --disable-log was given. | |
5156 | if test "${enable_log+set}" = set; then | |
5157 | enableval="$enable_log" | |
5158 | ||
5159 | if test "$enableval" = yes; then | |
5160 | ac_cv_use_log='wxUSE_LOG=yes' | |
5161 | else | |
5162 | ac_cv_use_log='wxUSE_LOG=no' | |
5163 | fi | |
5164 | ||
5165 | else | |
5166 | ||
5167 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5168 | if test "x$LINE" != x ; then | |
5169 | eval "DEFAULT_$LINE" | |
5170 | else | |
5171 | no_cache=1 | |
5172 | fi | |
5173 | ||
5174 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5175 | ||
5176 | fi; | |
5177 | ||
5178 | eval "$ac_cv_use_log" | |
5179 | if test "$no_cache" != 1; then | |
5180 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5181 | fi | |
5182 | ||
5183 | if test "$wxUSE_LOG" = yes; then | |
5184 | echo "$as_me:$LINENO: result: yes" >&5 | |
5185 | echo "${ECHO_T}yes" >&6 | |
5186 | else | |
5187 | echo "$as_me:$LINENO: result: no" >&5 | |
5188 | echo "${ECHO_T}no" >&6 | |
5189 | fi | |
5190 | ||
5191 | ||
5192 | enablestring= | |
5193 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5194 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5195 | no_cache=0 | |
5196 | # Check whether --enable-longlong or --disable-longlong was given. | |
5197 | if test "${enable_longlong+set}" = set; then | |
5198 | enableval="$enable_longlong" | |
5199 | ||
5200 | if test "$enableval" = yes; then | |
5201 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5202 | else | |
5203 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5204 | fi | |
5205 | ||
5206 | else | |
5207 | ||
5208 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5209 | if test "x$LINE" != x ; then | |
5210 | eval "DEFAULT_$LINE" | |
5211 | else | |
5212 | no_cache=1 | |
5213 | fi | |
5214 | ||
5215 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5216 | ||
5217 | fi; | |
5218 | ||
5219 | eval "$ac_cv_use_longlong" | |
5220 | if test "$no_cache" != 1; then | |
5221 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5222 | fi | |
5223 | ||
5224 | if test "$wxUSE_LONGLONG" = yes; then | |
5225 | echo "$as_me:$LINENO: result: yes" >&5 | |
5226 | echo "${ECHO_T}yes" >&6 | |
5227 | else | |
5228 | echo "$as_me:$LINENO: result: no" >&5 | |
5229 | echo "${ECHO_T}no" >&6 | |
5230 | fi | |
5231 | ||
5232 | ||
5233 | enablestring= | |
5234 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5235 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5236 | no_cache=0 | |
5237 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5238 | if test "${enable_mimetype+set}" = set; then | |
5239 | enableval="$enable_mimetype" | |
5240 | ||
5241 | if test "$enableval" = yes; then | |
5242 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5243 | else | |
5244 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5245 | fi | |
5246 | ||
5247 | else | |
5248 | ||
5249 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5250 | if test "x$LINE" != x ; then | |
5251 | eval "DEFAULT_$LINE" | |
5252 | else | |
5253 | no_cache=1 | |
5254 | fi | |
5255 | ||
5256 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5257 | ||
5258 | fi; | |
5259 | ||
5260 | eval "$ac_cv_use_mimetype" | |
5261 | if test "$no_cache" != 1; then | |
5262 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5263 | fi | |
5264 | ||
5265 | if test "$wxUSE_MIMETYPE" = yes; then | |
5266 | echo "$as_me:$LINENO: result: yes" >&5 | |
5267 | echo "${ECHO_T}yes" >&6 | |
5268 | else | |
5269 | echo "$as_me:$LINENO: result: no" >&5 | |
5270 | echo "${ECHO_T}no" >&6 | |
5271 | fi | |
5272 | ||
5273 | ||
5274 | enablestring= | |
5275 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5276 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5277 | no_cache=0 | |
5278 | # Check whether --enable-mslu or --disable-mslu was given. | |
5279 | if test "${enable_mslu+set}" = set; then | |
5280 | enableval="$enable_mslu" | |
5281 | ||
5282 | if test "$enableval" = yes; then | |
5283 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5284 | else | |
5285 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5286 | fi | |
5287 | ||
5288 | else | |
5289 | ||
5290 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5291 | if test "x$LINE" != x ; then | |
5292 | eval "DEFAULT_$LINE" | |
5293 | else | |
5294 | no_cache=1 | |
5295 | fi | |
5296 | ||
5297 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5298 | ||
5299 | fi; | |
5300 | ||
5301 | eval "$ac_cv_use_mslu" | |
5302 | if test "$no_cache" != 1; then | |
5303 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5304 | fi | |
5305 | ||
5306 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5307 | echo "$as_me:$LINENO: result: yes" >&5 | |
5308 | echo "${ECHO_T}yes" >&6 | |
5309 | else | |
5310 | echo "$as_me:$LINENO: result: no" >&5 | |
5311 | echo "${ECHO_T}no" >&6 | |
5312 | fi | |
5313 | ||
5314 | ||
5315 | enablestring= | |
5316 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5317 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5318 | no_cache=0 | |
5319 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5320 | if test "${enable_snglinst+set}" = set; then | |
5321 | enableval="$enable_snglinst" | |
5322 | ||
5323 | if test "$enableval" = yes; then | |
5324 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5325 | else | |
5326 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5327 | fi | |
5328 | ||
5329 | else | |
5330 | ||
5331 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5332 | if test "x$LINE" != x ; then | |
5333 | eval "DEFAULT_$LINE" | |
5334 | else | |
5335 | no_cache=1 | |
5336 | fi | |
5337 | ||
5338 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5339 | ||
5340 | fi; | |
5341 | ||
5342 | eval "$ac_cv_use_snglinst" | |
5343 | if test "$no_cache" != 1; then | |
5344 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5345 | fi | |
5346 | ||
5347 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5348 | echo "$as_me:$LINENO: result: yes" >&5 | |
5349 | echo "${ECHO_T}yes" >&6 | |
5350 | else | |
5351 | echo "$as_me:$LINENO: result: no" >&5 | |
5352 | echo "${ECHO_T}no" >&6 | |
5353 | fi | |
5354 | ||
5355 | ||
5356 | enablestring= | |
5357 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5358 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5359 | no_cache=0 | |
5360 | # Check whether --enable-streams or --disable-streams was given. | |
5361 | if test "${enable_streams+set}" = set; then | |
5362 | enableval="$enable_streams" | |
5363 | ||
5364 | if test "$enableval" = yes; then | |
5365 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5366 | else | |
5367 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5368 | fi | |
5369 | ||
5370 | else | |
5371 | ||
5372 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5373 | if test "x$LINE" != x ; then | |
5374 | eval "DEFAULT_$LINE" | |
5375 | else | |
5376 | no_cache=1 | |
5377 | fi | |
5378 | ||
5379 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5380 | ||
5381 | fi; | |
5382 | ||
5383 | eval "$ac_cv_use_streams" | |
5384 | if test "$no_cache" != 1; then | |
5385 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5386 | fi | |
5387 | ||
5388 | if test "$wxUSE_STREAMS" = yes; then | |
5389 | echo "$as_me:$LINENO: result: yes" >&5 | |
5390 | echo "${ECHO_T}yes" >&6 | |
5391 | else | |
5392 | echo "$as_me:$LINENO: result: no" >&5 | |
5393 | echo "${ECHO_T}no" >&6 | |
5394 | fi | |
5395 | ||
5396 | ||
5397 | enablestring= | |
5398 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 | |
5399 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
5400 | no_cache=0 | |
5401 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5402 | if test "${enable_std_iostreams+set}" = set; then | |
5403 | enableval="$enable_std_iostreams" | |
5404 | ||
5405 | if test "$enableval" = yes; then | |
5406 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5407 | else | |
5408 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5409 | fi | |
5410 | ||
5411 | else | |
5412 | ||
5413 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
5414 | if test "x$LINE" != x ; then | |
5415 | eval "DEFAULT_$LINE" | |
5416 | else | |
5417 | no_cache=1 | |
5418 | fi | |
5419 | ||
5420 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
5421 | ||
5422 | fi; | |
5423 | ||
5424 | eval "$ac_cv_use_std_iostreams" | |
5425 | if test "$no_cache" != 1; then | |
5426 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5427 | fi | |
5428 | ||
5429 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
5430 | echo "$as_me:$LINENO: result: yes" >&5 | |
5431 | echo "${ECHO_T}yes" >&6 | |
5432 | else | |
5433 | echo "$as_me:$LINENO: result: no" >&5 | |
5434 | echo "${ECHO_T}no" >&6 | |
5435 | fi | |
5436 | ||
5437 | ||
5438 | enablestring= | |
5439 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5440 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5441 | no_cache=0 | |
5442 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5443 | if test "${enable_stopwatch+set}" = set; then | |
5444 | enableval="$enable_stopwatch" | |
5445 | ||
5446 | if test "$enableval" = yes; then | |
5447 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5448 | else | |
5449 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5450 | fi | |
5451 | ||
5452 | else | |
5453 | ||
5454 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5455 | if test "x$LINE" != x ; then | |
5456 | eval "DEFAULT_$LINE" | |
5457 | else | |
5458 | no_cache=1 | |
5459 | fi | |
5460 | ||
5461 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5462 | ||
5463 | fi; | |
5464 | ||
5465 | eval "$ac_cv_use_stopwatch" | |
5466 | if test "$no_cache" != 1; then | |
5467 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5468 | fi | |
5469 | ||
5470 | if test "$wxUSE_STOPWATCH" = yes; then | |
5471 | echo "$as_me:$LINENO: result: yes" >&5 | |
5472 | echo "${ECHO_T}yes" >&6 | |
5473 | else | |
5474 | echo "$as_me:$LINENO: result: no" >&5 | |
5475 | echo "${ECHO_T}no" >&6 | |
5476 | fi | |
5477 | ||
5478 | ||
5479 | enablestring= | |
5480 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5481 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5482 | no_cache=0 | |
5483 | # Check whether --enable-system_options or --disable-system_options was given. | |
5484 | if test "${enable_system_options+set}" = set; then | |
5485 | enableval="$enable_system_options" | |
5486 | ||
5487 | if test "$enableval" = yes; then | |
5488 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5489 | else | |
5490 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5491 | fi | |
5492 | ||
5493 | else | |
5494 | ||
5495 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5496 | if test "x$LINE" != x ; then | |
5497 | eval "DEFAULT_$LINE" | |
5498 | else | |
5499 | no_cache=1 | |
5500 | fi | |
5501 | ||
5502 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5503 | ||
5504 | fi; | |
5505 | ||
5506 | eval "$ac_cv_use_system_options" | |
5507 | if test "$no_cache" != 1; then | |
5508 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5509 | fi | |
5510 | ||
5511 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5512 | echo "$as_me:$LINENO: result: yes" >&5 | |
5513 | echo "${ECHO_T}yes" >&6 | |
5514 | else | |
5515 | echo "$as_me:$LINENO: result: no" >&5 | |
5516 | echo "${ECHO_T}no" >&6 | |
5517 | fi | |
5518 | ||
5519 | ||
5520 | enablestring= | |
5521 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5522 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5523 | no_cache=0 | |
5524 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5525 | if test "${enable_textbuf+set}" = set; then | |
5526 | enableval="$enable_textbuf" | |
5527 | ||
5528 | if test "$enableval" = yes; then | |
5529 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5530 | else | |
5531 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5532 | fi | |
5533 | ||
5534 | else | |
5535 | ||
5536 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
5537 | if test "x$LINE" != x ; then | |
5538 | eval "DEFAULT_$LINE" | |
5539 | else | |
5540 | no_cache=1 | |
5541 | fi | |
5542 | ||
5543 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5544 | ||
5545 | fi; | |
5546 | ||
5547 | eval "$ac_cv_use_textbuf" | |
5548 | if test "$no_cache" != 1; then | |
5549 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5550 | fi | |
5551 | ||
5552 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
5553 | echo "$as_me:$LINENO: result: yes" >&5 | |
5554 | echo "${ECHO_T}yes" >&6 | |
5555 | else | |
5556 | echo "$as_me:$LINENO: result: no" >&5 | |
5557 | echo "${ECHO_T}no" >&6 | |
5558 | fi | |
5559 | ||
5560 | ||
5561 | enablestring= | |
5562 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
5563 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
5564 | no_cache=0 | |
5565 | # Check whether --enable-textfile or --disable-textfile was given. | |
5566 | if test "${enable_textfile+set}" = set; then | |
5567 | enableval="$enable_textfile" | |
5568 | ||
5569 | if test "$enableval" = yes; then | |
5570 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
5571 | else | |
5572 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
5573 | fi | |
5574 | ||
5575 | else | |
5576 | ||
5577 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
5578 | if test "x$LINE" != x ; then | |
5579 | eval "DEFAULT_$LINE" | |
5580 | else | |
5581 | no_cache=1 | |
5582 | fi | |
5583 | ||
5584 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
5585 | ||
5586 | fi; | |
5587 | ||
5588 | eval "$ac_cv_use_textfile" | |
5589 | if test "$no_cache" != 1; then | |
5590 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
5591 | fi | |
5592 | ||
5593 | if test "$wxUSE_TEXTFILE" = yes; then | |
5594 | echo "$as_me:$LINENO: result: yes" >&5 | |
5595 | echo "${ECHO_T}yes" >&6 | |
5596 | else | |
5597 | echo "$as_me:$LINENO: result: no" >&5 | |
5598 | echo "${ECHO_T}no" >&6 | |
5599 | fi | |
5600 | ||
5601 | ||
5602 | enablestring= | |
5603 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
5604 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
5605 | no_cache=0 | |
5606 | # Check whether --enable-timer or --disable-timer was given. | |
5607 | if test "${enable_timer+set}" = set; then | |
5608 | enableval="$enable_timer" | |
5609 | ||
5610 | if test "$enableval" = yes; then | |
5611 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
5612 | else | |
5613 | ac_cv_use_timer='wxUSE_TIMER=no' | |
5614 | fi | |
5615 | ||
5616 | else | |
5617 | ||
5618 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
5619 | if test "x$LINE" != x ; then | |
5620 | eval "DEFAULT_$LINE" | |
5621 | else | |
5622 | no_cache=1 | |
5623 | fi | |
5624 | ||
5625 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
5626 | ||
5627 | fi; | |
5628 | ||
5629 | eval "$ac_cv_use_timer" | |
5630 | if test "$no_cache" != 1; then | |
5631 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
5632 | fi | |
5633 | ||
5634 | if test "$wxUSE_TIMER" = yes; then | |
5635 | echo "$as_me:$LINENO: result: yes" >&5 | |
5636 | echo "${ECHO_T}yes" >&6 | |
5637 | else | |
5638 | echo "$as_me:$LINENO: result: no" >&5 | |
5639 | echo "${ECHO_T}no" >&6 | |
5640 | fi | |
5641 | ||
5642 | ||
5643 | enablestring= | |
5644 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
5645 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
5646 | no_cache=0 | |
5647 | # Check whether --enable-unicode or --disable-unicode was given. | |
5648 | if test "${enable_unicode+set}" = set; then | |
5649 | enableval="$enable_unicode" | |
5650 | ||
5651 | if test "$enableval" = yes; then | |
5652 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
5653 | else | |
5654 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
5655 | fi | |
5656 | ||
5657 | else | |
5658 | ||
5659 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
5660 | if test "x$LINE" != x ; then | |
5661 | eval "DEFAULT_$LINE" | |
5662 | else | |
5663 | no_cache=1 | |
5664 | fi | |
5665 | ||
5666 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
5667 | ||
5668 | fi; | |
5669 | ||
5670 | eval "$ac_cv_use_unicode" | |
5671 | if test "$no_cache" != 1; then | |
5672 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
5673 | fi | |
5674 | ||
5675 | if test "$wxUSE_UNICODE" = yes; then | |
5676 | echo "$as_me:$LINENO: result: yes" >&5 | |
5677 | echo "${ECHO_T}yes" >&6 | |
5678 | else | |
5679 | echo "$as_me:$LINENO: result: no" >&5 | |
5680 | echo "${ECHO_T}no" >&6 | |
5681 | fi | |
5682 | ||
5683 | ||
5684 | enablestring= | |
5685 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
5686 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
5687 | no_cache=0 | |
5688 | # Check whether --enable-sound or --disable-sound was given. | |
5689 | if test "${enable_sound+set}" = set; then | |
5690 | enableval="$enable_sound" | |
5691 | ||
5692 | if test "$enableval" = yes; then | |
5693 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
5694 | else | |
5695 | ac_cv_use_sound='wxUSE_SOUND=no' | |
5696 | fi | |
5697 | ||
5698 | else | |
5699 | ||
5700 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
5701 | if test "x$LINE" != x ; then | |
5702 | eval "DEFAULT_$LINE" | |
5703 | else | |
5704 | no_cache=1 | |
5705 | fi | |
5706 | ||
5707 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
5708 | ||
5709 | fi; | |
5710 | ||
5711 | eval "$ac_cv_use_sound" | |
5712 | if test "$no_cache" != 1; then | |
5713 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
5714 | fi | |
5715 | ||
5716 | if test "$wxUSE_SOUND" = yes; then | |
5717 | echo "$as_me:$LINENO: result: yes" >&5 | |
5718 | echo "${ECHO_T}yes" >&6 | |
5719 | else | |
5720 | echo "$as_me:$LINENO: result: no" >&5 | |
5721 | echo "${ECHO_T}no" >&6 | |
5722 | fi | |
5723 | ||
5724 | ||
5725 | enablestring= | |
5726 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
5727 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
5728 | no_cache=0 | |
5729 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
5730 | if test "${enable_wxprintfv+set}" = set; then | |
5731 | enableval="$enable_wxprintfv" | |
5732 | ||
5733 | if test "$enableval" = yes; then | |
5734 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
5735 | else | |
5736 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
5737 | fi | |
5738 | ||
5739 | else | |
5740 | ||
5741 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
5742 | if test "x$LINE" != x ; then | |
5743 | eval "DEFAULT_$LINE" | |
5744 | else | |
5745 | no_cache=1 | |
5746 | fi | |
5747 | ||
5748 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
5749 | ||
5750 | fi; | |
5751 | ||
5752 | eval "$ac_cv_use_wxprintfv" | |
5753 | if test "$no_cache" != 1; then | |
5754 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
5755 | fi | |
5756 | ||
5757 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
5758 | echo "$as_me:$LINENO: result: yes" >&5 | |
5759 | echo "${ECHO_T}yes" >&6 | |
5760 | else | |
5761 | echo "$as_me:$LINENO: result: no" >&5 | |
5762 | echo "${ECHO_T}no" >&6 | |
5763 | fi | |
5764 | ||
5765 | ||
5766 | enablestring= | |
5767 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
5768 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
5769 | no_cache=0 | |
5770 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
5771 | if test "${enable_zipstream+set}" = set; then | |
5772 | enableval="$enable_zipstream" | |
5773 | ||
5774 | if test "$enableval" = yes; then | |
5775 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
5776 | else | |
5777 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
5778 | fi | |
5779 | ||
5780 | else | |
5781 | ||
5782 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
5783 | if test "x$LINE" != x ; then | |
5784 | eval "DEFAULT_$LINE" | |
5785 | else | |
5786 | no_cache=1 | |
5787 | fi | |
5788 | ||
5789 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
5790 | ||
5791 | fi; | |
5792 | ||
5793 | eval "$ac_cv_use_zipstream" | |
5794 | if test "$no_cache" != 1; then | |
5795 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
5796 | fi | |
5797 | ||
5798 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
5799 | echo "$as_me:$LINENO: result: yes" >&5 | |
5800 | echo "${ECHO_T}yes" >&6 | |
5801 | else | |
5802 | echo "$as_me:$LINENO: result: no" >&5 | |
5803 | echo "${ECHO_T}no" >&6 | |
5804 | fi | |
5805 | ||
5806 | ||
a848cd7e SC |
5807 | |
5808 | enablestring= | |
5809 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
5810 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
5811 | no_cache=0 | |
5812 | # Check whether --enable-url or --disable-url was given. | |
5813 | if test "${enable_url+set}" = set; then | |
5814 | enableval="$enable_url" | |
5815 | ||
5816 | if test "$enableval" = yes; then | |
5817 | ac_cv_use_url='wxUSE_URL=yes' | |
5818 | else | |
5819 | ac_cv_use_url='wxUSE_URL=no' | |
5820 | fi | |
5821 | ||
5822 | else | |
5823 | ||
5824 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
5825 | if test "x$LINE" != x ; then | |
5826 | eval "DEFAULT_$LINE" | |
5827 | else | |
5828 | no_cache=1 | |
5829 | fi | |
5830 | ||
5831 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
5832 | ||
5833 | fi; | |
5834 | ||
5835 | eval "$ac_cv_use_url" | |
5836 | if test "$no_cache" != 1; then | |
5837 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
5838 | fi | |
5839 | ||
5840 | if test "$wxUSE_URL" = yes; then | |
5841 | echo "$as_me:$LINENO: result: yes" >&5 | |
5842 | echo "${ECHO_T}yes" >&6 | |
5843 | else | |
5844 | echo "$as_me:$LINENO: result: no" >&5 | |
5845 | echo "${ECHO_T}no" >&6 | |
5846 | fi | |
5847 | ||
5848 | ||
5849 | enablestring= | |
5850 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
5851 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
5852 | no_cache=0 | |
5853 | # Check whether --enable-protocol or --disable-protocol was given. | |
5854 | if test "${enable_protocol+set}" = set; then | |
5855 | enableval="$enable_protocol" | |
5856 | ||
5857 | if test "$enableval" = yes; then | |
5858 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
5859 | else | |
5860 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
5861 | fi | |
5862 | ||
5863 | else | |
5864 | ||
5865 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
5866 | if test "x$LINE" != x ; then | |
5867 | eval "DEFAULT_$LINE" | |
5868 | else | |
5869 | no_cache=1 | |
5870 | fi | |
5871 | ||
5872 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
5873 | ||
5874 | fi; | |
5875 | ||
5876 | eval "$ac_cv_use_protocol" | |
5877 | if test "$no_cache" != 1; then | |
5878 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
5879 | fi | |
5880 | ||
5881 | if test "$wxUSE_PROTOCOL" = yes; then | |
5882 | echo "$as_me:$LINENO: result: yes" >&5 | |
5883 | echo "${ECHO_T}yes" >&6 | |
5884 | else | |
5885 | echo "$as_me:$LINENO: result: no" >&5 | |
5886 | echo "${ECHO_T}no" >&6 | |
5887 | fi | |
5888 | ||
5889 | ||
5890 | enablestring= | |
5891 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
5892 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
5893 | no_cache=0 | |
5894 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
5895 | if test "${enable_protocol_http+set}" = set; then | |
5896 | enableval="$enable_protocol_http" | |
5897 | ||
5898 | if test "$enableval" = yes; then | |
5899 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
5900 | else | |
5901 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
5902 | fi | |
5903 | ||
5904 | else | |
5905 | ||
5906 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
5907 | if test "x$LINE" != x ; then | |
5908 | eval "DEFAULT_$LINE" | |
5909 | else | |
5910 | no_cache=1 | |
5911 | fi | |
5912 | ||
5913 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
5914 | ||
5915 | fi; | |
5916 | ||
5917 | eval "$ac_cv_use_protocol_http" | |
5918 | if test "$no_cache" != 1; then | |
5919 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
5920 | fi | |
5921 | ||
5922 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
5923 | echo "$as_me:$LINENO: result: yes" >&5 | |
5924 | echo "${ECHO_T}yes" >&6 | |
5925 | else | |
5926 | echo "$as_me:$LINENO: result: no" >&5 | |
5927 | echo "${ECHO_T}no" >&6 | |
5928 | fi | |
5929 | ||
5930 | ||
5931 | enablestring= | |
5932 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
5933 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
5934 | no_cache=0 | |
5935 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
5936 | if test "${enable_protocol_ftp+set}" = set; then | |
5937 | enableval="$enable_protocol_ftp" | |
5938 | ||
5939 | if test "$enableval" = yes; then | |
5940 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
5941 | else | |
5942 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
5943 | fi | |
5944 | ||
5945 | else | |
5946 | ||
5947 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
5948 | if test "x$LINE" != x ; then | |
5949 | eval "DEFAULT_$LINE" | |
5950 | else | |
5951 | no_cache=1 | |
5952 | fi | |
5953 | ||
5954 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
5955 | ||
5956 | fi; | |
5957 | ||
5958 | eval "$ac_cv_use_protocol_ftp" | |
5959 | if test "$no_cache" != 1; then | |
5960 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
5961 | fi | |
5962 | ||
5963 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
5964 | echo "$as_me:$LINENO: result: yes" >&5 | |
5965 | echo "${ECHO_T}yes" >&6 | |
5966 | else | |
5967 | echo "$as_me:$LINENO: result: no" >&5 | |
5968 | echo "${ECHO_T}no" >&6 | |
5969 | fi | |
5970 | ||
5971 | ||
5972 | enablestring= | |
5973 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
5974 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
5975 | no_cache=0 | |
5976 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
5977 | if test "${enable_protocol_file+set}" = set; then | |
5978 | enableval="$enable_protocol_file" | |
5979 | ||
5980 | if test "$enableval" = yes; then | |
5981 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
5982 | else | |
5983 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
5984 | fi | |
5985 | ||
5986 | else | |
5987 | ||
5988 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
5989 | if test "x$LINE" != x ; then | |
5990 | eval "DEFAULT_$LINE" | |
5991 | else | |
5992 | no_cache=1 | |
5993 | fi | |
5994 | ||
5995 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
5996 | ||
5997 | fi; | |
5998 | ||
5999 | eval "$ac_cv_use_protocol_file" | |
6000 | if test "$no_cache" != 1; then | |
6001 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6002 | fi | |
6003 | ||
6004 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6005 | echo "$as_me:$LINENO: result: yes" >&5 | |
6006 | echo "${ECHO_T}yes" >&6 | |
6007 | else | |
6008 | echo "$as_me:$LINENO: result: no" >&5 | |
6009 | echo "${ECHO_T}no" >&6 | |
6010 | fi | |
6011 | ||
6012 | ||
6013 | ||
6014 | ||
6015 | ||
6016 | enablestring= | |
6017 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6018 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6019 | no_cache=0 | |
6020 | # Check whether --enable-threads or --disable-threads was given. | |
6021 | if test "${enable_threads+set}" = set; then | |
6022 | enableval="$enable_threads" | |
6023 | ||
6024 | if test "$enableval" = yes; then | |
6025 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6026 | else | |
6027 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6028 | fi | |
6029 | ||
6030 | else | |
6031 | ||
6032 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6033 | if test "x$LINE" != x ; then | |
6034 | eval "DEFAULT_$LINE" | |
6035 | else | |
6036 | no_cache=1 | |
6037 | fi | |
6038 | ||
6039 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6040 | ||
6041 | fi; | |
6042 | ||
6043 | eval "$ac_cv_use_threads" | |
6044 | if test "$no_cache" != 1; then | |
6045 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6046 | fi | |
6047 | ||
6048 | if test "$wxUSE_THREADS" = yes; then | |
6049 | echo "$as_me:$LINENO: result: yes" >&5 | |
6050 | echo "${ECHO_T}yes" >&6 | |
6051 | else | |
6052 | echo "$as_me:$LINENO: result: no" >&5 | |
6053 | echo "${ECHO_T}no" >&6 | |
6054 | fi | |
6055 | ||
6056 | ||
6057 | if test "$wxUSE_GUI" = "yes"; then | |
6058 | ||
6059 | ||
6060 | ||
6061 | enablestring= | |
6062 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6063 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6064 | no_cache=0 | |
6065 | # Check whether --enable-docview or --disable-docview was given. | |
6066 | if test "${enable_docview+set}" = set; then | |
6067 | enableval="$enable_docview" | |
6068 | ||
6069 | if test "$enableval" = yes; then | |
6070 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6071 | else | |
6072 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6073 | fi | |
6074 | ||
6075 | else | |
6076 | ||
6077 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6078 | if test "x$LINE" != x ; then | |
6079 | eval "DEFAULT_$LINE" | |
6080 | else | |
6081 | no_cache=1 | |
6082 | fi | |
6083 | ||
6084 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6085 | ||
6086 | fi; | |
6087 | ||
6088 | eval "$ac_cv_use_docview" | |
6089 | if test "$no_cache" != 1; then | |
6090 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6091 | fi | |
6092 | ||
6093 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6094 | echo "$as_me:$LINENO: result: yes" >&5 | |
6095 | echo "${ECHO_T}yes" >&6 | |
6096 | else | |
6097 | echo "$as_me:$LINENO: result: no" >&5 | |
6098 | echo "${ECHO_T}no" >&6 | |
6099 | fi | |
6100 | ||
6101 | ||
6102 | enablestring= | |
6103 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6104 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6105 | no_cache=0 | |
6106 | # Check whether --enable-help or --disable-help was given. | |
6107 | if test "${enable_help+set}" = set; then | |
6108 | enableval="$enable_help" | |
6109 | ||
6110 | if test "$enableval" = yes; then | |
6111 | ac_cv_use_help='wxUSE_HELP=yes' | |
6112 | else | |
6113 | ac_cv_use_help='wxUSE_HELP=no' | |
6114 | fi | |
6115 | ||
6116 | else | |
6117 | ||
6118 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6119 | if test "x$LINE" != x ; then | |
6120 | eval "DEFAULT_$LINE" | |
6121 | else | |
6122 | no_cache=1 | |
6123 | fi | |
6124 | ||
6125 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6126 | ||
6127 | fi; | |
6128 | ||
6129 | eval "$ac_cv_use_help" | |
6130 | if test "$no_cache" != 1; then | |
6131 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6132 | fi | |
6133 | ||
6134 | if test "$wxUSE_HELP" = yes; then | |
6135 | echo "$as_me:$LINENO: result: yes" >&5 | |
6136 | echo "${ECHO_T}yes" >&6 | |
6137 | else | |
6138 | echo "$as_me:$LINENO: result: no" >&5 | |
6139 | echo "${ECHO_T}no" >&6 | |
6140 | fi | |
6141 | ||
6142 | ||
6143 | enablestring= | |
6144 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6145 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6146 | no_cache=0 | |
6147 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6148 | if test "${enable_mshtmlhelp+set}" = set; then | |
6149 | enableval="$enable_mshtmlhelp" | |
6150 | ||
6151 | if test "$enableval" = yes; then | |
6152 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6153 | else | |
6154 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6155 | fi | |
6156 | ||
6157 | else | |
6158 | ||
6159 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6160 | if test "x$LINE" != x ; then | |
6161 | eval "DEFAULT_$LINE" | |
6162 | else | |
6163 | no_cache=1 | |
6164 | fi | |
6165 | ||
6166 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6167 | ||
6168 | fi; | |
6169 | ||
6170 | eval "$ac_cv_use_mshtmlhelp" | |
6171 | if test "$no_cache" != 1; then | |
6172 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6173 | fi | |
6174 | ||
6175 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6176 | echo "$as_me:$LINENO: result: yes" >&5 | |
6177 | echo "${ECHO_T}yes" >&6 | |
6178 | else | |
6179 | echo "$as_me:$LINENO: result: no" >&5 | |
6180 | echo "${ECHO_T}no" >&6 | |
6181 | fi | |
6182 | ||
6183 | ||
6184 | enablestring= | |
6185 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6186 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6187 | no_cache=0 | |
6188 | # Check whether --enable-html or --disable-html was given. | |
6189 | if test "${enable_html+set}" = set; then | |
6190 | enableval="$enable_html" | |
6191 | ||
6192 | if test "$enableval" = yes; then | |
6193 | ac_cv_use_html='wxUSE_HTML=yes' | |
6194 | else | |
6195 | ac_cv_use_html='wxUSE_HTML=no' | |
6196 | fi | |
6197 | ||
6198 | else | |
6199 | ||
6200 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6201 | if test "x$LINE" != x ; then | |
6202 | eval "DEFAULT_$LINE" | |
6203 | else | |
6204 | no_cache=1 | |
6205 | fi | |
6206 | ||
6207 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6208 | ||
6209 | fi; | |
6210 | ||
6211 | eval "$ac_cv_use_html" | |
6212 | if test "$no_cache" != 1; then | |
6213 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6214 | fi | |
6215 | ||
6216 | if test "$wxUSE_HTML" = yes; then | |
6217 | echo "$as_me:$LINENO: result: yes" >&5 | |
6218 | echo "${ECHO_T}yes" >&6 | |
6219 | else | |
6220 | echo "$as_me:$LINENO: result: no" >&5 | |
6221 | echo "${ECHO_T}no" >&6 | |
6222 | fi | |
6223 | ||
6224 | ||
6225 | enablestring= | |
6226 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6227 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6228 | no_cache=0 | |
6229 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6230 | if test "${enable_htmlhelp+set}" = set; then | |
6231 | enableval="$enable_htmlhelp" | |
6232 | ||
6233 | if test "$enableval" = yes; then | |
6234 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6235 | else | |
6236 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6237 | fi | |
6238 | ||
6239 | else | |
6240 | ||
6241 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6242 | if test "x$LINE" != x ; then | |
6243 | eval "DEFAULT_$LINE" | |
6244 | else | |
6245 | no_cache=1 | |
6246 | fi | |
6247 | ||
6248 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6249 | ||
6250 | fi; | |
6251 | ||
6252 | eval "$ac_cv_use_htmlhelp" | |
6253 | if test "$no_cache" != 1; then | |
6254 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6255 | fi | |
6256 | ||
6257 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6258 | echo "$as_me:$LINENO: result: yes" >&5 | |
6259 | echo "${ECHO_T}yes" >&6 | |
6260 | else | |
6261 | echo "$as_me:$LINENO: result: no" >&5 | |
6262 | echo "${ECHO_T}no" >&6 | |
6263 | fi | |
6264 | ||
6265 | ||
9a8f0513 VS |
6266 | enablestring= |
6267 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
6268 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
6269 | no_cache=0 | |
6270 | # Check whether --enable-xrc or --disable-xrc was given. | |
6271 | if test "${enable_xrc+set}" = set; then | |
6272 | enableval="$enable_xrc" | |
6273 | ||
6274 | if test "$enableval" = yes; then | |
6275 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
6276 | else | |
6277 | ac_cv_use_xrc='wxUSE_XRC=no' | |
6278 | fi | |
6279 | ||
6280 | else | |
6281 | ||
6282 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
6283 | if test "x$LINE" != x ; then | |
6284 | eval "DEFAULT_$LINE" | |
6285 | else | |
6286 | no_cache=1 | |
6287 | fi | |
6288 | ||
6289 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
6290 | ||
6291 | fi; | |
6292 | ||
6293 | eval "$ac_cv_use_xrc" | |
6294 | if test "$no_cache" != 1; then | |
6295 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
6296 | fi | |
6297 | ||
6298 | if test "$wxUSE_XRC" = yes; then | |
6299 | echo "$as_me:$LINENO: result: yes" >&5 | |
6300 | echo "${ECHO_T}yes" >&6 | |
6301 | else | |
6302 | echo "$as_me:$LINENO: result: no" >&5 | |
6303 | echo "${ECHO_T}no" >&6 | |
6304 | fi | |
6305 | ||
6306 | ||
a848cd7e SC |
6307 | enablestring= |
6308 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6309 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6310 | no_cache=0 | |
6311 | # Check whether --enable-constraints or --disable-constraints was given. | |
6312 | if test "${enable_constraints+set}" = set; then | |
6313 | enableval="$enable_constraints" | |
6314 | ||
6315 | if test "$enableval" = yes; then | |
6316 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6317 | else | |
6318 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6319 | fi | |
6320 | ||
6321 | else | |
6322 | ||
6323 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6324 | if test "x$LINE" != x ; then | |
6325 | eval "DEFAULT_$LINE" | |
6326 | else | |
6327 | no_cache=1 | |
6328 | fi | |
6329 | ||
6330 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6331 | ||
6332 | fi; | |
6333 | ||
6334 | eval "$ac_cv_use_constraints" | |
6335 | if test "$no_cache" != 1; then | |
6336 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6337 | fi | |
6338 | ||
6339 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6340 | echo "$as_me:$LINENO: result: yes" >&5 | |
6341 | echo "${ECHO_T}yes" >&6 | |
6342 | else | |
6343 | echo "$as_me:$LINENO: result: no" >&5 | |
6344 | echo "${ECHO_T}no" >&6 | |
6345 | fi | |
6346 | ||
6347 | ||
6348 | enablestring= | |
6349 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6350 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6351 | no_cache=0 | |
6352 | # Check whether --enable-printarch or --disable-printarch was given. | |
6353 | if test "${enable_printarch+set}" = set; then | |
6354 | enableval="$enable_printarch" | |
6355 | ||
6356 | if test "$enableval" = yes; then | |
6357 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6358 | else | |
6359 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6360 | fi | |
6361 | ||
6362 | else | |
6363 | ||
6364 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6365 | if test "x$LINE" != x ; then | |
6366 | eval "DEFAULT_$LINE" | |
6367 | else | |
6368 | no_cache=1 | |
6369 | fi | |
6370 | ||
6371 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6372 | ||
6373 | fi; | |
6374 | ||
6375 | eval "$ac_cv_use_printarch" | |
6376 | if test "$no_cache" != 1; then | |
6377 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6378 | fi | |
6379 | ||
6380 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6381 | echo "$as_me:$LINENO: result: yes" >&5 | |
6382 | echo "${ECHO_T}yes" >&6 | |
6383 | else | |
6384 | echo "$as_me:$LINENO: result: no" >&5 | |
6385 | echo "${ECHO_T}no" >&6 | |
6386 | fi | |
6387 | ||
6388 | ||
6389 | enablestring= | |
6390 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6391 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6392 | no_cache=0 | |
6393 | # Check whether --enable-mdi or --disable-mdi was given. | |
6394 | if test "${enable_mdi+set}" = set; then | |
6395 | enableval="$enable_mdi" | |
6396 | ||
6397 | if test "$enableval" = yes; then | |
8a7b1113 | 6398 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6399 | else |
8a7b1113 | 6400 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6401 | fi |
6402 | ||
6403 | else | |
6404 | ||
8a7b1113 | 6405 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6406 | if test "x$LINE" != x ; then |
6407 | eval "DEFAULT_$LINE" | |
6408 | else | |
6409 | no_cache=1 | |
6410 | fi | |
6411 | ||
8a7b1113 | 6412 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6413 | |
6414 | fi; | |
6415 | ||
6416 | eval "$ac_cv_use_mdi" | |
6417 | if test "$no_cache" != 1; then | |
6418 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6419 | fi | |
6420 | ||
8a7b1113 VZ |
6421 | if test "$wxUSE_MDI" = yes; then |
6422 | echo "$as_me:$LINENO: result: yes" >&5 | |
6423 | echo "${ECHO_T}yes" >&6 | |
6424 | else | |
6425 | echo "$as_me:$LINENO: result: no" >&5 | |
6426 | echo "${ECHO_T}no" >&6 | |
6427 | fi | |
6428 | ||
6429 | ||
6430 | enablestring= | |
6431 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6432 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6433 | no_cache=0 | |
6434 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6435 | if test "${enable_mdidoc+set}" = set; then | |
6436 | enableval="$enable_mdidoc" | |
6437 | ||
6438 | if test "$enableval" = yes; then | |
6439 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6440 | else | |
6441 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6442 | fi | |
6443 | ||
6444 | else | |
6445 | ||
6446 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6447 | if test "x$LINE" != x ; then | |
6448 | eval "DEFAULT_$LINE" | |
6449 | else | |
6450 | no_cache=1 | |
6451 | fi | |
6452 | ||
6453 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6454 | ||
6455 | fi; | |
6456 | ||
6457 | eval "$ac_cv_use_mdidoc" | |
6458 | if test "$no_cache" != 1; then | |
6459 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6460 | fi | |
6461 | ||
a848cd7e SC |
6462 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6463 | echo "$as_me:$LINENO: result: yes" >&5 | |
6464 | echo "${ECHO_T}yes" >&6 | |
6465 | else | |
6466 | echo "$as_me:$LINENO: result: no" >&5 | |
6467 | echo "${ECHO_T}no" >&6 | |
6468 | fi | |
6469 | ||
6470 | ||
6471 | enablestring= | |
6472 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6473 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6474 | no_cache=0 | |
6475 | # Check whether --enable-loggui or --disable-loggui was given. | |
6476 | if test "${enable_loggui+set}" = set; then | |
6477 | enableval="$enable_loggui" | |
6478 | ||
6479 | if test "$enableval" = yes; then | |
6480 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6481 | else | |
6482 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6483 | fi | |
6484 | ||
6485 | else | |
6486 | ||
6487 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6488 | if test "x$LINE" != x ; then | |
6489 | eval "DEFAULT_$LINE" | |
6490 | else | |
6491 | no_cache=1 | |
6492 | fi | |
6493 | ||
6494 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6495 | ||
6496 | fi; | |
6497 | ||
6498 | eval "$ac_cv_use_loggui" | |
6499 | if test "$no_cache" != 1; then | |
6500 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6501 | fi | |
6502 | ||
6503 | if test "$wxUSE_LOGGUI" = yes; then | |
6504 | echo "$as_me:$LINENO: result: yes" >&5 | |
6505 | echo "${ECHO_T}yes" >&6 | |
6506 | else | |
6507 | echo "$as_me:$LINENO: result: no" >&5 | |
6508 | echo "${ECHO_T}no" >&6 | |
6509 | fi | |
6510 | ||
6511 | ||
6512 | enablestring= | |
6513 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6514 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6515 | no_cache=0 | |
6516 | # Check whether --enable-logwin or --disable-logwin was given. | |
6517 | if test "${enable_logwin+set}" = set; then | |
6518 | enableval="$enable_logwin" | |
6519 | ||
6520 | if test "$enableval" = yes; then | |
6521 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6522 | else | |
6523 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6524 | fi | |
6525 | ||
6526 | else | |
6527 | ||
6528 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6529 | if test "x$LINE" != x ; then | |
6530 | eval "DEFAULT_$LINE" | |
6531 | else | |
6532 | no_cache=1 | |
6533 | fi | |
6534 | ||
6535 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6536 | ||
6537 | fi; | |
6538 | ||
6539 | eval "$ac_cv_use_logwin" | |
6540 | if test "$no_cache" != 1; then | |
6541 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6542 | fi | |
6543 | ||
6544 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6545 | echo "$as_me:$LINENO: result: yes" >&5 | |
6546 | echo "${ECHO_T}yes" >&6 | |
6547 | else | |
6548 | echo "$as_me:$LINENO: result: no" >&5 | |
6549 | echo "${ECHO_T}no" >&6 | |
6550 | fi | |
6551 | ||
6552 | ||
6553 | enablestring= | |
6554 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6555 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6556 | no_cache=0 | |
6557 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6558 | if test "${enable_logdialog+set}" = set; then | |
6559 | enableval="$enable_logdialog" | |
6560 | ||
6561 | if test "$enableval" = yes; then | |
6562 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6563 | else | |
6564 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6565 | fi | |
6566 | ||
6567 | else | |
6568 | ||
6569 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
6570 | if test "x$LINE" != x ; then | |
6571 | eval "DEFAULT_$LINE" | |
6572 | else | |
6573 | no_cache=1 | |
6574 | fi | |
6575 | ||
6576 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
6577 | ||
6578 | fi; | |
6579 | ||
6580 | eval "$ac_cv_use_logdialog" | |
6581 | if test "$no_cache" != 1; then | |
6582 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6583 | fi | |
6584 | ||
6585 | if test "$wxUSE_LOGDIALOG" = yes; then | |
6586 | echo "$as_me:$LINENO: result: yes" >&5 | |
6587 | echo "${ECHO_T}yes" >&6 | |
6588 | else | |
6589 | echo "$as_me:$LINENO: result: no" >&5 | |
6590 | echo "${ECHO_T}no" >&6 | |
6591 | fi | |
6592 | ||
6593 | ||
646b6ec1 VS |
6594 | enablestring= |
6595 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
6596 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
6597 | no_cache=0 | |
6598 | # Check whether --enable-webkit or --disable-webkit was given. | |
6599 | if test "${enable_webkit+set}" = set; then | |
6600 | enableval="$enable_webkit" | |
6601 | ||
6602 | if test "$enableval" = yes; then | |
6603 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
6604 | else | |
6605 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
6606 | fi | |
6607 | ||
6608 | else | |
6609 | ||
6610 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
6611 | if test "x$LINE" != x ; then | |
6612 | eval "DEFAULT_$LINE" | |
6613 | else | |
6614 | no_cache=1 | |
6615 | fi | |
6616 | ||
6617 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
6618 | ||
6619 | fi; | |
6620 | ||
6621 | eval "$ac_cv_use_webkit" | |
6622 | if test "$no_cache" != 1; then | |
6623 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
6624 | fi | |
6625 | ||
6626 | if test "$wxUSE_WEBKIT" = yes; then | |
6627 | echo "$as_me:$LINENO: result: yes" >&5 | |
6628 | echo "${ECHO_T}yes" >&6 | |
6629 | else | |
6630 | echo "$as_me:$LINENO: result: no" >&5 | |
6631 | echo "${ECHO_T}no" >&6 | |
6632 | fi | |
6633 | ||
6634 | ||
a848cd7e SC |
6635 | |
6636 | enablestring= | |
6637 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
6638 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
6639 | no_cache=0 | |
6640 | # Check whether --enable-postscript or --disable-postscript was given. | |
6641 | if test "${enable_postscript+set}" = set; then | |
6642 | enableval="$enable_postscript" | |
6643 | ||
6644 | if test "$enableval" = yes; then | |
6645 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6646 | else | |
6647 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6648 | fi | |
6649 | ||
6650 | else | |
6651 | ||
6652 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
6653 | if test "x$LINE" != x ; then | |
6654 | eval "DEFAULT_$LINE" | |
6655 | else | |
6656 | no_cache=1 | |
6657 | fi | |
6658 | ||
6659 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
6660 | ||
6661 | fi; | |
6662 | ||
6663 | eval "$ac_cv_use_postscript" | |
6664 | if test "$no_cache" != 1; then | |
6665 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6666 | fi | |
6667 | ||
6668 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
6669 | echo "$as_me:$LINENO: result: yes" >&5 | |
6670 | echo "${ECHO_T}yes" >&6 | |
6671 | else | |
6672 | echo "$as_me:$LINENO: result: no" >&5 | |
6673 | echo "${ECHO_T}no" >&6 | |
6674 | fi | |
6675 | ||
6676 | ||
6677 | ||
6678 | ||
6679 | ||
6680 | enablestring= | |
6681 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
6682 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
6683 | no_cache=0 | |
6684 | # Check whether --enable-prologio or --disable-prologio was given. | |
6685 | if test "${enable_prologio+set}" = set; then | |
6686 | enableval="$enable_prologio" | |
6687 | ||
6688 | if test "$enableval" = yes; then | |
6689 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
6690 | else | |
6691 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
6692 | fi | |
6693 | ||
6694 | else | |
6695 | ||
6696 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
6697 | if test "x$LINE" != x ; then | |
6698 | eval "DEFAULT_$LINE" | |
6699 | else | |
6700 | no_cache=1 | |
6701 | fi | |
6702 | ||
6703 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
6704 | ||
6705 | fi; | |
6706 | ||
6707 | eval "$ac_cv_use_prologio" | |
6708 | if test "$no_cache" != 1; then | |
6709 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
6710 | fi | |
6711 | ||
6712 | if test "$wxUSE_PROLOGIO" = yes; then | |
6713 | echo "$as_me:$LINENO: result: yes" >&5 | |
6714 | echo "${ECHO_T}yes" >&6 | |
6715 | else | |
6716 | echo "$as_me:$LINENO: result: no" >&5 | |
6717 | echo "${ECHO_T}no" >&6 | |
6718 | fi | |
6719 | ||
6720 | ||
6721 | enablestring= | |
6722 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
6723 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
6724 | no_cache=0 | |
6725 | # Check whether --enable-resources or --disable-resources was given. | |
6726 | if test "${enable_resources+set}" = set; then | |
6727 | enableval="$enable_resources" | |
6728 | ||
6729 | if test "$enableval" = yes; then | |
6730 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
6731 | else | |
6732 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
6733 | fi | |
6734 | ||
6735 | else | |
6736 | ||
6737 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
6738 | if test "x$LINE" != x ; then | |
6739 | eval "DEFAULT_$LINE" | |
6740 | else | |
6741 | no_cache=1 | |
6742 | fi | |
6743 | ||
6744 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
6745 | ||
6746 | fi; | |
6747 | ||
6748 | eval "$ac_cv_use_resources" | |
6749 | if test "$no_cache" != 1; then | |
6750 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
6751 | fi | |
6752 | ||
6753 | if test "$wxUSE_RESOURCES" = yes; then | |
6754 | echo "$as_me:$LINENO: result: yes" >&5 | |
6755 | echo "${ECHO_T}yes" >&6 | |
6756 | else | |
6757 | echo "$as_me:$LINENO: result: no" >&5 | |
6758 | echo "${ECHO_T}no" >&6 | |
6759 | fi | |
6760 | ||
6761 | ||
6762 | ||
6763 | ||
6764 | enablestring= | |
6765 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
6766 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
6767 | no_cache=0 | |
6768 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6769 | if test "${enable_clipboard+set}" = set; then | |
6770 | enableval="$enable_clipboard" | |
6771 | ||
6772 | if test "$enableval" = yes; then | |
6773 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6774 | else | |
6775 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6776 | fi | |
6777 | ||
6778 | else | |
6779 | ||
6780 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
6781 | if test "x$LINE" != x ; then | |
6782 | eval "DEFAULT_$LINE" | |
6783 | else | |
6784 | no_cache=1 | |
6785 | fi | |
6786 | ||
6787 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
6788 | ||
6789 | fi; | |
6790 | ||
6791 | eval "$ac_cv_use_clipboard" | |
6792 | if test "$no_cache" != 1; then | |
6793 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
6794 | fi | |
6795 | ||
6796 | if test "$wxUSE_CLIPBOARD" = yes; then | |
6797 | echo "$as_me:$LINENO: result: yes" >&5 | |
6798 | echo "${ECHO_T}yes" >&6 | |
6799 | else | |
6800 | echo "$as_me:$LINENO: result: no" >&5 | |
6801 | echo "${ECHO_T}no" >&6 | |
6802 | fi | |
6803 | ||
6804 | ||
6805 | enablestring= | |
6806 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
6807 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
6808 | no_cache=0 | |
6809 | # Check whether --enable-dnd or --disable-dnd was given. | |
6810 | if test "${enable_dnd+set}" = set; then | |
6811 | enableval="$enable_dnd" | |
6812 | ||
6813 | if test "$enableval" = yes; then | |
6814 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
6815 | else | |
6816 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
6817 | fi | |
6818 | ||
6819 | else | |
6820 | ||
6821 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
6822 | if test "x$LINE" != x ; then | |
6823 | eval "DEFAULT_$LINE" | |
6824 | else | |
6825 | no_cache=1 | |
6826 | fi | |
6827 | ||
6828 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
6829 | ||
6830 | fi; | |
6831 | ||
6832 | eval "$ac_cv_use_dnd" | |
6833 | if test "$no_cache" != 1; then | |
6834 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
6835 | fi | |
6836 | ||
6837 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
6838 | echo "$as_me:$LINENO: result: yes" >&5 | |
6839 | echo "${ECHO_T}yes" >&6 | |
6840 | else | |
6841 | echo "$as_me:$LINENO: result: no" >&5 | |
6842 | echo "${ECHO_T}no" >&6 | |
6843 | fi | |
6844 | ||
6845 | ||
6846 | enablestring= | |
6847 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
6848 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
6849 | no_cache=0 | |
6850 | # Check whether --enable-metafile or --disable-metafile was given. | |
6851 | if test "${enable_metafile+set}" = set; then | |
6852 | enableval="$enable_metafile" | |
6853 | ||
6854 | if test "$enableval" = yes; then | |
6855 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
6856 | else | |
6857 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
6858 | fi | |
6859 | ||
6860 | else | |
6861 | ||
6862 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
6863 | if test "x$LINE" != x ; then | |
6864 | eval "DEFAULT_$LINE" | |
6865 | else | |
6866 | no_cache=1 | |
6867 | fi | |
6868 | ||
6869 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
6870 | ||
6871 | fi; | |
6872 | ||
6873 | eval "$ac_cv_use_metafile" | |
6874 | if test "$no_cache" != 1; then | |
6875 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
6876 | fi | |
6877 | ||
6878 | if test "$wxUSE_METAFILE" = yes; then | |
6879 | echo "$as_me:$LINENO: result: yes" >&5 | |
6880 | echo "${ECHO_T}yes" >&6 | |
6881 | else | |
6882 | echo "$as_me:$LINENO: result: no" >&5 | |
6883 | echo "${ECHO_T}no" >&6 | |
6884 | fi | |
6885 | ||
6886 | ||
6887 | ||
6888 | ||
6889 | ||
6890 | enablestring= | |
6891 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
6892 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
6893 | no_cache=0 | |
6894 | # Check whether --enable-controls or --disable-controls was given. | |
6895 | if test "${enable_controls+set}" = set; then | |
6896 | enableval="$enable_controls" | |
6897 | ||
6898 | if test "$enableval" = yes; then | |
6899 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
6900 | else | |
6901 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
6902 | fi | |
6903 | ||
6904 | else | |
6905 | ||
6906 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
6907 | if test "x$LINE" != x ; then | |
6908 | eval "DEFAULT_$LINE" | |
6909 | else | |
6910 | no_cache=1 | |
6911 | fi | |
6912 | ||
6913 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
6914 | ||
6915 | fi; | |
6916 | ||
6917 | eval "$ac_cv_use_controls" | |
6918 | if test "$no_cache" != 1; then | |
6919 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
6920 | fi | |
6921 | ||
6922 | if test "$wxUSE_CONTROLS" = yes; then | |
6923 | echo "$as_me:$LINENO: result: yes" >&5 | |
6924 | echo "${ECHO_T}yes" >&6 | |
6925 | else | |
6926 | echo "$as_me:$LINENO: result: no" >&5 | |
6927 | echo "${ECHO_T}no" >&6 | |
6928 | fi | |
6929 | ||
6930 | ||
6931 | if test "$wxUSE_CONTROLS" = "yes"; then | |
6932 | DEFAULT_wxUSE_ACCEL=yes | |
6933 | DEFAULT_wxUSE_BMPBUTTON=yes | |
6934 | DEFAULT_wxUSE_BUTTON=yes | |
6935 | DEFAULT_wxUSE_CALCTRL=no | |
6936 | DEFAULT_wxUSE_CARET=yes | |
6937 | DEFAULT_wxUSE_COMBOBOX=yes | |
6938 | DEFAULT_wxUSE_CHECKBOX=yes | |
6939 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
6940 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 6941 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e SC |
6942 | DEFAULT_wxUSE_GAUGE=yes |
6943 | DEFAULT_wxUSE_GRID=yes | |
6944 | DEFAULT_wxUSE_IMAGLIST=yes | |
6945 | DEFAULT_wxUSE_LISTBOOK=yes | |
6946 | DEFAULT_wxUSE_LISTBOX=yes | |
6947 | DEFAULT_wxUSE_LISTCTRL=yes | |
6948 | DEFAULT_wxUSE_NOTEBOOK=yes | |
6949 | DEFAULT_wxUSE_RADIOBOX=yes | |
6950 | DEFAULT_wxUSE_RADIOBTN=yes | |
6951 | DEFAULT_wxUSE_SASH=yes | |
6952 | DEFAULT_wxUSE_SCROLLBAR=yes | |
6953 | DEFAULT_wxUSE_SLIDER=yes | |
6954 | DEFAULT_wxUSE_SPINBTN=yes | |
6955 | DEFAULT_wxUSE_SPINCTRL=yes | |
6956 | DEFAULT_wxUSE_SPLITTER=yes | |
6957 | DEFAULT_wxUSE_STATBMP=yes | |
6958 | DEFAULT_wxUSE_STATBOX=yes | |
6959 | DEFAULT_wxUSE_STATLINE=yes | |
6960 | DEFAULT_wxUSE_STATUSBAR=yes | |
6961 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
6962 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
6963 | DEFAULT_wxUSE_TOOLBAR=yes | |
6964 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
6965 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
6966 | DEFAULT_wxUSE_TOOLTIPS=yes | |
6967 | DEFAULT_wxUSE_TREECTRL=yes | |
6968 | DEFAULT_wxUSE_POPUPWIN=yes | |
6969 | DEFAULT_wxUSE_TIPWINDOW=yes | |
6970 | elif test "$wxUSE_CONTROLS" = "no"; then | |
6971 | DEFAULT_wxUSE_ACCEL=no | |
6972 | DEFAULT_wxUSE_BMPBUTTON=no | |
6973 | DEFAULT_wxUSE_BUTTON=no | |
6974 | DEFAULT_wxUSE_CALCTRL=no | |
6975 | DEFAULT_wxUSE_CARET=no | |
6976 | DEFAULT_wxUSE_COMBOBOX=no | |
6977 | DEFAULT_wxUSE_CHECKBOX=no | |
6978 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
6979 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 6980 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e SC |
6981 | DEFAULT_wxUSE_GAUGE=no |
6982 | DEFAULT_wxUSE_GRID=no | |
6983 | DEFAULT_wxUSE_IMAGLIST=no | |
6984 | DEFAULT_wxUSE_LISTBOOK=no | |
6985 | DEFAULT_wxUSE_LISTBOX=no | |
6986 | DEFAULT_wxUSE_LISTCTRL=no | |
6987 | DEFAULT_wxUSE_NOTEBOOK=no | |
6988 | DEFAULT_wxUSE_RADIOBOX=no | |
6989 | DEFAULT_wxUSE_RADIOBTN=no | |
6990 | DEFAULT_wxUSE_SASH=no | |
6991 | DEFAULT_wxUSE_SCROLLBAR=no | |
6992 | DEFAULT_wxUSE_SLIDER=no | |
6993 | DEFAULT_wxUSE_SPINBTN=no | |
6994 | DEFAULT_wxUSE_SPINCTRL=no | |
6995 | DEFAULT_wxUSE_SPLITTER=no | |
6996 | DEFAULT_wxUSE_STATBMP=no | |
6997 | DEFAULT_wxUSE_STATBOX=no | |
6998 | DEFAULT_wxUSE_STATLINE=no | |
6999 | DEFAULT_wxUSE_STATUSBAR=no | |
7000 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7001 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7002 | DEFAULT_wxUSE_TOOLBAR=no | |
7003 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
7004 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
7005 | DEFAULT_wxUSE_TOOLTIPS=no | |
7006 | DEFAULT_wxUSE_TREECTRL=no | |
7007 | DEFAULT_wxUSE_POPUPWIN=no | |
7008 | DEFAULT_wxUSE_TIPWINDOW=no | |
7009 | fi | |
7010 | ||
a848cd7e SC |
7011 | |
7012 | enablestring= | |
7013 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7014 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7015 | no_cache=0 | |
7016 | # Check whether --enable-accel or --disable-accel was given. | |
7017 | if test "${enable_accel+set}" = set; then | |
7018 | enableval="$enable_accel" | |
7019 | ||
7020 | if test "$enableval" = yes; then | |
7021 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7022 | else | |
7023 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7024 | fi | |
7025 | ||
7026 | else | |
7027 | ||
7028 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7029 | if test "x$LINE" != x ; then | |
7030 | eval "DEFAULT_$LINE" | |
7031 | else | |
7032 | no_cache=1 | |
7033 | fi | |
7034 | ||
7035 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7036 | ||
7037 | fi; | |
7038 | ||
7039 | eval "$ac_cv_use_accel" | |
7040 | if test "$no_cache" != 1; then | |
7041 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7042 | fi | |
7043 | ||
7044 | if test "$wxUSE_ACCEL" = yes; then | |
7045 | echo "$as_me:$LINENO: result: yes" >&5 | |
7046 | echo "${ECHO_T}yes" >&6 | |
7047 | else | |
7048 | echo "$as_me:$LINENO: result: no" >&5 | |
7049 | echo "${ECHO_T}no" >&6 | |
7050 | fi | |
7051 | ||
7052 | ||
7053 | enablestring= | |
7054 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7055 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7056 | no_cache=0 | |
7057 | # Check whether --enable-button or --disable-button was given. | |
7058 | if test "${enable_button+set}" = set; then | |
7059 | enableval="$enable_button" | |
7060 | ||
7061 | if test "$enableval" = yes; then | |
7062 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7063 | else | |
7064 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7065 | fi | |
7066 | ||
7067 | else | |
7068 | ||
7069 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7070 | if test "x$LINE" != x ; then | |
7071 | eval "DEFAULT_$LINE" | |
7072 | else | |
7073 | no_cache=1 | |
7074 | fi | |
7075 | ||
7076 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7077 | ||
7078 | fi; | |
7079 | ||
7080 | eval "$ac_cv_use_button" | |
7081 | if test "$no_cache" != 1; then | |
7082 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7083 | fi | |
7084 | ||
7085 | if test "$wxUSE_BUTTON" = yes; then | |
7086 | echo "$as_me:$LINENO: result: yes" >&5 | |
7087 | echo "${ECHO_T}yes" >&6 | |
7088 | else | |
7089 | echo "$as_me:$LINENO: result: no" >&5 | |
7090 | echo "${ECHO_T}no" >&6 | |
7091 | fi | |
7092 | ||
7093 | ||
7094 | enablestring= | |
7095 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7096 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7097 | no_cache=0 | |
7098 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7099 | if test "${enable_bmpbutton+set}" = set; then | |
7100 | enableval="$enable_bmpbutton" | |
7101 | ||
7102 | if test "$enableval" = yes; then | |
7103 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7104 | else | |
7105 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7106 | fi | |
7107 | ||
7108 | else | |
7109 | ||
7110 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7111 | if test "x$LINE" != x ; then | |
7112 | eval "DEFAULT_$LINE" | |
7113 | else | |
7114 | no_cache=1 | |
7115 | fi | |
7116 | ||
7117 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7118 | ||
7119 | fi; | |
7120 | ||
7121 | eval "$ac_cv_use_bmpbutton" | |
7122 | if test "$no_cache" != 1; then | |
7123 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7124 | fi | |
7125 | ||
7126 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7127 | echo "$as_me:$LINENO: result: yes" >&5 | |
7128 | echo "${ECHO_T}yes" >&6 | |
7129 | else | |
7130 | echo "$as_me:$LINENO: result: no" >&5 | |
7131 | echo "${ECHO_T}no" >&6 | |
7132 | fi | |
7133 | ||
7134 | ||
7135 | enablestring= | |
7136 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7137 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7138 | no_cache=0 | |
7139 | # Check whether --enable-calendar or --disable-calendar was given. | |
7140 | if test "${enable_calendar+set}" = set; then | |
7141 | enableval="$enable_calendar" | |
7142 | ||
7143 | if test "$enableval" = yes; then | |
7144 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7145 | else | |
7146 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7147 | fi | |
7148 | ||
7149 | else | |
7150 | ||
7151 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7152 | if test "x$LINE" != x ; then | |
7153 | eval "DEFAULT_$LINE" | |
7154 | else | |
7155 | no_cache=1 | |
7156 | fi | |
7157 | ||
7158 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7159 | ||
7160 | fi; | |
7161 | ||
7162 | eval "$ac_cv_use_calendar" | |
7163 | if test "$no_cache" != 1; then | |
7164 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7165 | fi | |
7166 | ||
7167 | if test "$wxUSE_CALCTRL" = yes; then | |
7168 | echo "$as_me:$LINENO: result: yes" >&5 | |
7169 | echo "${ECHO_T}yes" >&6 | |
7170 | else | |
7171 | echo "$as_me:$LINENO: result: no" >&5 | |
7172 | echo "${ECHO_T}no" >&6 | |
7173 | fi | |
7174 | ||
7175 | ||
7176 | enablestring= | |
7177 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7178 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7179 | no_cache=0 | |
7180 | # Check whether --enable-caret or --disable-caret was given. | |
7181 | if test "${enable_caret+set}" = set; then | |
7182 | enableval="$enable_caret" | |
7183 | ||
7184 | if test "$enableval" = yes; then | |
7185 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7186 | else | |
7187 | ac_cv_use_caret='wxUSE_CARET=no' | |
7188 | fi | |
7189 | ||
7190 | else | |
7191 | ||
7192 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7193 | if test "x$LINE" != x ; then | |
7194 | eval "DEFAULT_$LINE" | |
7195 | else | |
7196 | no_cache=1 | |
7197 | fi | |
7198 | ||
7199 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7200 | ||
7201 | fi; | |
7202 | ||
7203 | eval "$ac_cv_use_caret" | |
7204 | if test "$no_cache" != 1; then | |
7205 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7206 | fi | |
7207 | ||
7208 | if test "$wxUSE_CARET" = yes; then | |
7209 | echo "$as_me:$LINENO: result: yes" >&5 | |
7210 | echo "${ECHO_T}yes" >&6 | |
7211 | else | |
7212 | echo "$as_me:$LINENO: result: no" >&5 | |
7213 | echo "${ECHO_T}no" >&6 | |
7214 | fi | |
7215 | ||
7216 | ||
7217 | enablestring= | |
7218 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7219 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7220 | no_cache=0 | |
7221 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7222 | if test "${enable_checkbox+set}" = set; then | |
7223 | enableval="$enable_checkbox" | |
7224 | ||
7225 | if test "$enableval" = yes; then | |
7226 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7227 | else | |
7228 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7229 | fi | |
7230 | ||
7231 | else | |
7232 | ||
7233 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7234 | if test "x$LINE" != x ; then | |
7235 | eval "DEFAULT_$LINE" | |
7236 | else | |
7237 | no_cache=1 | |
7238 | fi | |
7239 | ||
7240 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7241 | ||
7242 | fi; | |
7243 | ||
7244 | eval "$ac_cv_use_checkbox" | |
7245 | if test "$no_cache" != 1; then | |
7246 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7247 | fi | |
7248 | ||
7249 | if test "$wxUSE_CHECKBOX" = yes; then | |
7250 | echo "$as_me:$LINENO: result: yes" >&5 | |
7251 | echo "${ECHO_T}yes" >&6 | |
7252 | else | |
7253 | echo "$as_me:$LINENO: result: no" >&5 | |
7254 | echo "${ECHO_T}no" >&6 | |
7255 | fi | |
7256 | ||
7257 | ||
7258 | enablestring= | |
7259 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7260 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7261 | no_cache=0 | |
7262 | # Check whether --enable-checklst or --disable-checklst was given. | |
7263 | if test "${enable_checklst+set}" = set; then | |
7264 | enableval="$enable_checklst" | |
7265 | ||
7266 | if test "$enableval" = yes; then | |
7267 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7268 | else | |
7269 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7270 | fi | |
7271 | ||
7272 | else | |
7273 | ||
7274 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7275 | if test "x$LINE" != x ; then | |
7276 | eval "DEFAULT_$LINE" | |
7277 | else | |
7278 | no_cache=1 | |
7279 | fi | |
7280 | ||
7281 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7282 | ||
7283 | fi; | |
7284 | ||
7285 | eval "$ac_cv_use_checklst" | |
7286 | if test "$no_cache" != 1; then | |
7287 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7288 | fi | |
7289 | ||
7290 | if test "$wxUSE_CHECKLST" = yes; then | |
7291 | echo "$as_me:$LINENO: result: yes" >&5 | |
7292 | echo "${ECHO_T}yes" >&6 | |
7293 | else | |
7294 | echo "$as_me:$LINENO: result: no" >&5 | |
7295 | echo "${ECHO_T}no" >&6 | |
7296 | fi | |
7297 | ||
7298 | ||
7299 | enablestring= | |
7300 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7301 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7302 | no_cache=0 | |
7303 | # Check whether --enable-choice or --disable-choice was given. | |
7304 | if test "${enable_choice+set}" = set; then | |
7305 | enableval="$enable_choice" | |
7306 | ||
7307 | if test "$enableval" = yes; then | |
7308 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7309 | else | |
7310 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7311 | fi | |
7312 | ||
7313 | else | |
7314 | ||
7315 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7316 | if test "x$LINE" != x ; then | |
7317 | eval "DEFAULT_$LINE" | |
7318 | else | |
7319 | no_cache=1 | |
7320 | fi | |
7321 | ||
7322 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7323 | ||
7324 | fi; | |
7325 | ||
7326 | eval "$ac_cv_use_choice" | |
7327 | if test "$no_cache" != 1; then | |
7328 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7329 | fi | |
7330 | ||
7331 | if test "$wxUSE_CHOICE" = yes; then | |
7332 | echo "$as_me:$LINENO: result: yes" >&5 | |
7333 | echo "${ECHO_T}yes" >&6 | |
7334 | else | |
7335 | echo "$as_me:$LINENO: result: no" >&5 | |
7336 | echo "${ECHO_T}no" >&6 | |
7337 | fi | |
7338 | ||
7339 | ||
92bbdbcd WS |
7340 | enablestring= |
7341 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
7342 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
7343 | no_cache=0 | |
7344 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
7345 | if test "${enable_choicebook+set}" = set; then | |
7346 | enableval="$enable_choicebook" | |
7347 | ||
7348 | if test "$enableval" = yes; then | |
7349 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
7350 | else | |
7351 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
7352 | fi | |
7353 | ||
7354 | else | |
7355 | ||
7356 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
7357 | if test "x$LINE" != x ; then | |
7358 | eval "DEFAULT_$LINE" | |
7359 | else | |
7360 | no_cache=1 | |
7361 | fi | |
7362 | ||
7363 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
7364 | ||
7365 | fi; | |
7366 | ||
7367 | eval "$ac_cv_use_choicebook" | |
7368 | if test "$no_cache" != 1; then | |
7369 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
7370 | fi | |
7371 | ||
7372 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
7373 | echo "$as_me:$LINENO: result: yes" >&5 | |
7374 | echo "${ECHO_T}yes" >&6 | |
7375 | else | |
7376 | echo "$as_me:$LINENO: result: no" >&5 | |
7377 | echo "${ECHO_T}no" >&6 | |
7378 | fi | |
7379 | ||
7380 | ||
a848cd7e SC |
7381 | enablestring= |
7382 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
7383 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7384 | no_cache=0 | |
7385 | # Check whether --enable-combobox or --disable-combobox was given. | |
7386 | if test "${enable_combobox+set}" = set; then | |
7387 | enableval="$enable_combobox" | |
7388 | ||
7389 | if test "$enableval" = yes; then | |
7390 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7391 | else | |
7392 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7393 | fi | |
7394 | ||
7395 | else | |
7396 | ||
7397 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
7398 | if test "x$LINE" != x ; then | |
7399 | eval "DEFAULT_$LINE" | |
7400 | else | |
7401 | no_cache=1 | |
7402 | fi | |
7403 | ||
7404 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7405 | ||
7406 | fi; | |
7407 | ||
7408 | eval "$ac_cv_use_combobox" | |
7409 | if test "$no_cache" != 1; then | |
7410 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7411 | fi | |
7412 | ||
7413 | if test "$wxUSE_COMBOBOX" = yes; then | |
7414 | echo "$as_me:$LINENO: result: yes" >&5 | |
7415 | echo "${ECHO_T}yes" >&6 | |
7416 | else | |
7417 | echo "$as_me:$LINENO: result: no" >&5 | |
7418 | echo "${ECHO_T}no" >&6 | |
7419 | fi | |
7420 | ||
7421 | ||
7422 | enablestring= | |
7423 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
7424 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
7425 | no_cache=0 | |
7426 | # Check whether --enable-display or --disable-display was given. | |
7427 | if test "${enable_display+set}" = set; then | |
7428 | enableval="$enable_display" | |
7429 | ||
7430 | if test "$enableval" = yes; then | |
7431 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7432 | else | |
7433 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7434 | fi | |
7435 | ||
7436 | else | |
7437 | ||
7438 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
7439 | if test "x$LINE" != x ; then | |
7440 | eval "DEFAULT_$LINE" | |
7441 | else | |
7442 | no_cache=1 | |
7443 | fi | |
7444 | ||
7445 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
7446 | ||
7447 | fi; | |
7448 | ||
7449 | eval "$ac_cv_use_display" | |
7450 | if test "$no_cache" != 1; then | |
7451 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7452 | fi | |
7453 | ||
7454 | if test "$wxUSE_DISPLAY" = yes; then | |
7455 | echo "$as_me:$LINENO: result: yes" >&5 | |
7456 | echo "${ECHO_T}yes" >&6 | |
7457 | else | |
7458 | echo "$as_me:$LINENO: result: no" >&5 | |
7459 | echo "${ECHO_T}no" >&6 | |
7460 | fi | |
7461 | ||
7462 | ||
7463 | enablestring= | |
7464 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
7465 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
7466 | no_cache=0 | |
7467 | # Check whether --enable-gauge or --disable-gauge was given. | |
7468 | if test "${enable_gauge+set}" = set; then | |
7469 | enableval="$enable_gauge" | |
7470 | ||
7471 | if test "$enableval" = yes; then | |
7472 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7473 | else | |
7474 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7475 | fi | |
7476 | ||
7477 | else | |
7478 | ||
7479 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
7480 | if test "x$LINE" != x ; then | |
7481 | eval "DEFAULT_$LINE" | |
7482 | else | |
7483 | no_cache=1 | |
7484 | fi | |
7485 | ||
7486 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
7487 | ||
7488 | fi; | |
7489 | ||
7490 | eval "$ac_cv_use_gauge" | |
7491 | if test "$no_cache" != 1; then | |
7492 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7493 | fi | |
7494 | ||
7495 | if test "$wxUSE_GAUGE" = yes; then | |
7496 | echo "$as_me:$LINENO: result: yes" >&5 | |
7497 | echo "${ECHO_T}yes" >&6 | |
7498 | else | |
7499 | echo "$as_me:$LINENO: result: no" >&5 | |
7500 | echo "${ECHO_T}no" >&6 | |
7501 | fi | |
7502 | ||
7503 | ||
7504 | enablestring= | |
7505 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
7506 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
7507 | no_cache=0 | |
7508 | # Check whether --enable-grid or --disable-grid was given. | |
7509 | if test "${enable_grid+set}" = set; then | |
7510 | enableval="$enable_grid" | |
7511 | ||
7512 | if test "$enableval" = yes; then | |
7513 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7514 | else | |
7515 | ac_cv_use_grid='wxUSE_GRID=no' | |
7516 | fi | |
7517 | ||
7518 | else | |
7519 | ||
7520 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
7521 | if test "x$LINE" != x ; then | |
7522 | eval "DEFAULT_$LINE" | |
7523 | else | |
7524 | no_cache=1 | |
7525 | fi | |
7526 | ||
7527 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
7528 | ||
7529 | fi; | |
7530 | ||
7531 | eval "$ac_cv_use_grid" | |
7532 | if test "$no_cache" != 1; then | |
7533 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7534 | fi | |
7535 | ||
7536 | if test "$wxUSE_GRID" = yes; then | |
7537 | echo "$as_me:$LINENO: result: yes" >&5 | |
7538 | echo "${ECHO_T}yes" >&6 | |
7539 | else | |
7540 | echo "$as_me:$LINENO: result: no" >&5 | |
7541 | echo "${ECHO_T}no" >&6 | |
7542 | fi | |
7543 | ||
7544 | ||
7545 | enablestring= | |
7546 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
7547 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
7548 | no_cache=0 | |
7549 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7550 | if test "${enable_imaglist+set}" = set; then | |
7551 | enableval="$enable_imaglist" | |
7552 | ||
7553 | if test "$enableval" = yes; then | |
7554 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7555 | else | |
7556 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7557 | fi | |
7558 | ||
7559 | else | |
7560 | ||
7561 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
7562 | if test "x$LINE" != x ; then | |
7563 | eval "DEFAULT_$LINE" | |
7564 | else | |
7565 | no_cache=1 | |
7566 | fi | |
7567 | ||
7568 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
7569 | ||
7570 | fi; | |
7571 | ||
7572 | eval "$ac_cv_use_imaglist" | |
7573 | if test "$no_cache" != 1; then | |
7574 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7575 | fi | |
7576 | ||
7577 | if test "$wxUSE_IMAGLIST" = yes; then | |
7578 | echo "$as_me:$LINENO: result: yes" >&5 | |
7579 | echo "${ECHO_T}yes" >&6 | |
7580 | else | |
7581 | echo "$as_me:$LINENO: result: no" >&5 | |
7582 | echo "${ECHO_T}no" >&6 | |
7583 | fi | |
7584 | ||
7585 | ||
7586 | enablestring= | |
7587 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7588 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7589 | no_cache=0 | |
7590 | # Check whether --enable-listbook or --disable-listbook was given. | |
7591 | if test "${enable_listbook+set}" = set; then | |
7592 | enableval="$enable_listbook" | |
7593 | ||
7594 | if test "$enableval" = yes; then | |
7595 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7596 | else | |
7597 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7598 | fi | |
7599 | ||
7600 | else | |
7601 | ||
7602 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7603 | if test "x$LINE" != x ; then | |
7604 | eval "DEFAULT_$LINE" | |
7605 | else | |
7606 | no_cache=1 | |
7607 | fi | |
7608 | ||
7609 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7610 | ||
7611 | fi; | |
7612 | ||
7613 | eval "$ac_cv_use_listbook" | |
7614 | if test "$no_cache" != 1; then | |
7615 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7616 | fi | |
7617 | ||
7618 | if test "$wxUSE_LISTBOOK" = yes; then | |
7619 | echo "$as_me:$LINENO: result: yes" >&5 | |
7620 | echo "${ECHO_T}yes" >&6 | |
7621 | else | |
7622 | echo "$as_me:$LINENO: result: no" >&5 | |
7623 | echo "${ECHO_T}no" >&6 | |
7624 | fi | |
7625 | ||
7626 | ||
7627 | enablestring= | |
7628 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
7629 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
7630 | no_cache=0 | |
7631 | # Check whether --enable-listbox or --disable-listbox was given. | |
7632 | if test "${enable_listbox+set}" = set; then | |
7633 | enableval="$enable_listbox" | |
7634 | ||
7635 | if test "$enableval" = yes; then | |
7636 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7637 | else | |
7638 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7639 | fi | |
7640 | ||
7641 | else | |
7642 | ||
7643 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
7644 | if test "x$LINE" != x ; then | |
7645 | eval "DEFAULT_$LINE" | |
7646 | else | |
7647 | no_cache=1 | |
7648 | fi | |
7649 | ||
7650 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
7651 | ||
7652 | fi; | |
7653 | ||
7654 | eval "$ac_cv_use_listbox" | |
7655 | if test "$no_cache" != 1; then | |
7656 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7657 | fi | |
7658 | ||
7659 | if test "$wxUSE_LISTBOX" = yes; then | |
7660 | echo "$as_me:$LINENO: result: yes" >&5 | |
7661 | echo "${ECHO_T}yes" >&6 | |
7662 | else | |
7663 | echo "$as_me:$LINENO: result: no" >&5 | |
7664 | echo "${ECHO_T}no" >&6 | |
7665 | fi | |
7666 | ||
7667 | ||
7668 | enablestring= | |
7669 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
7670 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
7671 | no_cache=0 | |
7672 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7673 | if test "${enable_listctrl+set}" = set; then | |
7674 | enableval="$enable_listctrl" | |
7675 | ||
7676 | if test "$enableval" = yes; then | |
7677 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7678 | else | |
7679 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7680 | fi | |
7681 | ||
7682 | else | |
7683 | ||
7684 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
7685 | if test "x$LINE" != x ; then | |
7686 | eval "DEFAULT_$LINE" | |
7687 | else | |
7688 | no_cache=1 | |
7689 | fi | |
7690 | ||
7691 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
7692 | ||
7693 | fi; | |
7694 | ||
7695 | eval "$ac_cv_use_listctrl" | |
7696 | if test "$no_cache" != 1; then | |
7697 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7698 | fi | |
7699 | ||
7700 | if test "$wxUSE_LISTCTRL" = yes; then | |
7701 | echo "$as_me:$LINENO: result: yes" >&5 | |
7702 | echo "${ECHO_T}yes" >&6 | |
7703 | else | |
7704 | echo "$as_me:$LINENO: result: no" >&5 | |
7705 | echo "${ECHO_T}no" >&6 | |
7706 | fi | |
7707 | ||
7708 | ||
7709 | enablestring= | |
7710 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
7711 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
7712 | no_cache=0 | |
7713 | # Check whether --enable-notebook or --disable-notebook was given. | |
7714 | if test "${enable_notebook+set}" = set; then | |
7715 | enableval="$enable_notebook" | |
7716 | ||
7717 | if test "$enableval" = yes; then | |
7718 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7719 | else | |
7720 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7721 | fi | |
7722 | ||
7723 | else | |
7724 | ||
7725 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
7726 | if test "x$LINE" != x ; then | |
7727 | eval "DEFAULT_$LINE" | |
7728 | else | |
7729 | no_cache=1 | |
7730 | fi | |
7731 | ||
7732 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
7733 | ||
7734 | fi; | |
7735 | ||
7736 | eval "$ac_cv_use_notebook" | |
7737 | if test "$no_cache" != 1; then | |
7738 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7739 | fi | |
7740 | ||
7741 | if test "$wxUSE_NOTEBOOK" = yes; then | |
7742 | echo "$as_me:$LINENO: result: yes" >&5 | |
7743 | echo "${ECHO_T}yes" >&6 | |
7744 | else | |
7745 | echo "$as_me:$LINENO: result: no" >&5 | |
7746 | echo "${ECHO_T}no" >&6 | |
7747 | fi | |
7748 | ||
7749 | ||
7750 | enablestring= | |
7751 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
7752 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
7753 | no_cache=0 | |
7754 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
7755 | if test "${enable_radiobox+set}" = set; then | |
7756 | enableval="$enable_radiobox" | |
7757 | ||
7758 | if test "$enableval" = yes; then | |
7759 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
7760 | else | |
7761 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
7762 | fi | |
7763 | ||
7764 | else | |
7765 | ||
7766 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
7767 | if test "x$LINE" != x ; then | |
7768 | eval "DEFAULT_$LINE" | |
7769 | else | |
7770 | no_cache=1 | |
7771 | fi | |
7772 | ||
7773 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
7774 | ||
7775 | fi; | |
7776 | ||
7777 | eval "$ac_cv_use_radiobox" | |
7778 | if test "$no_cache" != 1; then | |
7779 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
7780 | fi | |
7781 | ||
7782 | if test "$wxUSE_RADIOBOX" = yes; then | |
7783 | echo "$as_me:$LINENO: result: yes" >&5 | |
7784 | echo "${ECHO_T}yes" >&6 | |
7785 | else | |
7786 | echo "$as_me:$LINENO: result: no" >&5 | |
7787 | echo "${ECHO_T}no" >&6 | |
7788 | fi | |
7789 | ||
7790 | ||
7791 | enablestring= | |
7792 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
7793 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
7794 | no_cache=0 | |
7795 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
7796 | if test "${enable_radiobtn+set}" = set; then | |
7797 | enableval="$enable_radiobtn" | |
7798 | ||
7799 | if test "$enableval" = yes; then | |
7800 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
7801 | else | |
7802 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
7803 | fi | |
7804 | ||
7805 | else | |
7806 | ||
7807 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
7808 | if test "x$LINE" != x ; then | |
7809 | eval "DEFAULT_$LINE" | |
7810 | else | |
7811 | no_cache=1 | |
7812 | fi | |
7813 | ||
7814 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
7815 | ||
7816 | fi; | |
7817 | ||
7818 | eval "$ac_cv_use_radiobtn" | |
7819 | if test "$no_cache" != 1; then | |
7820 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
7821 | fi | |
7822 | ||
7823 | if test "$wxUSE_RADIOBTN" = yes; then | |
7824 | echo "$as_me:$LINENO: result: yes" >&5 | |
7825 | echo "${ECHO_T}yes" >&6 | |
7826 | else | |
7827 | echo "$as_me:$LINENO: result: no" >&5 | |
7828 | echo "${ECHO_T}no" >&6 | |
7829 | fi | |
7830 | ||
7831 | ||
7832 | enablestring= | |
7833 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
7834 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
7835 | no_cache=0 | |
7836 | # Check whether --enable-sash or --disable-sash was given. | |
7837 | if test "${enable_sash+set}" = set; then | |
7838 | enableval="$enable_sash" | |
7839 | ||
7840 | if test "$enableval" = yes; then | |
7841 | ac_cv_use_sash='wxUSE_SASH=yes' | |
7842 | else | |
7843 | ac_cv_use_sash='wxUSE_SASH=no' | |
7844 | fi | |
7845 | ||
7846 | else | |
7847 | ||
7848 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
7849 | if test "x$LINE" != x ; then | |
7850 | eval "DEFAULT_$LINE" | |
7851 | else | |
7852 | no_cache=1 | |
7853 | fi | |
7854 | ||
7855 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
7856 | ||
7857 | fi; | |
7858 | ||
7859 | eval "$ac_cv_use_sash" | |
7860 | if test "$no_cache" != 1; then | |
7861 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
7862 | fi | |
7863 | ||
7864 | if test "$wxUSE_SASH" = yes; then | |
7865 | echo "$as_me:$LINENO: result: yes" >&5 | |
7866 | echo "${ECHO_T}yes" >&6 | |
7867 | else | |
7868 | echo "$as_me:$LINENO: result: no" >&5 | |
7869 | echo "${ECHO_T}no" >&6 | |
7870 | fi | |
7871 | ||
7872 | ||
7873 | enablestring= | |
7874 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
7875 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
7876 | no_cache=0 | |
7877 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
7878 | if test "${enable_scrollbar+set}" = set; then | |
7879 | enableval="$enable_scrollbar" | |
7880 | ||
7881 | if test "$enableval" = yes; then | |
7882 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
7883 | else | |
7884 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
7885 | fi | |
7886 | ||
7887 | else | |
7888 | ||
7889 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
7890 | if test "x$LINE" != x ; then | |
7891 | eval "DEFAULT_$LINE" | |
7892 | else | |
7893 | no_cache=1 | |
7894 | fi | |
7895 | ||
7896 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
7897 | ||
7898 | fi; | |
7899 | ||
7900 | eval "$ac_cv_use_scrollbar" | |
7901 | if test "$no_cache" != 1; then | |
7902 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
7903 | fi | |
7904 | ||
7905 | if test "$wxUSE_SCROLLBAR" = yes; then | |
7906 | echo "$as_me:$LINENO: result: yes" >&5 | |
7907 | echo "${ECHO_T}yes" >&6 | |
7908 | else | |
7909 | echo "$as_me:$LINENO: result: no" >&5 | |
7910 | echo "${ECHO_T}no" >&6 | |
7911 | fi | |
7912 | ||
7913 | ||
7914 | enablestring= | |
7915 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
7916 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
7917 | no_cache=0 | |
7918 | # Check whether --enable-slider or --disable-slider was given. | |
7919 | if test "${enable_slider+set}" = set; then | |
7920 | enableval="$enable_slider" | |
7921 | ||
7922 | if test "$enableval" = yes; then | |
7923 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
7924 | else | |
7925 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
7926 | fi | |
7927 | ||
7928 | else | |
7929 | ||
7930 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
7931 | if test "x$LINE" != x ; then | |
7932 | eval "DEFAULT_$LINE" | |
7933 | else | |
7934 | no_cache=1 | |
7935 | fi | |
7936 | ||
7937 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
7938 | ||
7939 | fi; | |
7940 | ||
7941 | eval "$ac_cv_use_slider" | |
7942 | if test "$no_cache" != 1; then | |
7943 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
7944 | fi | |
7945 | ||
7946 | if test "$wxUSE_SLIDER" = yes; then | |
7947 | echo "$as_me:$LINENO: result: yes" >&5 | |
7948 | echo "${ECHO_T}yes" >&6 | |
7949 | else | |
7950 | echo "$as_me:$LINENO: result: no" >&5 | |
7951 | echo "${ECHO_T}no" >&6 | |
7952 | fi | |
7953 | ||
7954 | ||
7955 | enablestring= | |
7956 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
7957 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
7958 | no_cache=0 | |
7959 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
7960 | if test "${enable_spinbtn+set}" = set; then | |
7961 | enableval="$enable_spinbtn" | |
7962 | ||
7963 | if test "$enableval" = yes; then | |
7964 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
7965 | else | |
7966 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
7967 | fi | |
7968 | ||
7969 | else | |
7970 | ||
7971 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
7972 | if test "x$LINE" != x ; then | |
7973 | eval "DEFAULT_$LINE" | |
7974 | else | |
7975 | no_cache=1 | |
7976 | fi | |
7977 | ||
7978 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
7979 | ||
7980 | fi; | |
7981 | ||
7982 | eval "$ac_cv_use_spinbtn" | |
7983 | if test "$no_cache" != 1; then | |
7984 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
7985 | fi | |
7986 | ||
7987 | if test "$wxUSE_SPINBTN" = yes; then | |
7988 | echo "$as_me:$LINENO: result: yes" >&5 | |
7989 | echo "${ECHO_T}yes" >&6 | |
7990 | else | |
7991 | echo "$as_me:$LINENO: result: no" >&5 | |
7992 | echo "${ECHO_T}no" >&6 | |
7993 | fi | |
7994 | ||
7995 | ||
7996 | enablestring= | |
7997 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
7998 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
7999 | no_cache=0 | |
8000 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
8001 | if test "${enable_spinctrl+set}" = set; then | |
8002 | enableval="$enable_spinctrl" | |
8003 | ||
8004 | if test "$enableval" = yes; then | |
8005 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
8006 | else | |
8007 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
8008 | fi | |
8009 | ||
8010 | else | |
8011 | ||
8012 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
8013 | if test "x$LINE" != x ; then | |
8014 | eval "DEFAULT_$LINE" | |
8015 | else | |
8016 | no_cache=1 | |
8017 | fi | |
8018 | ||
8019 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
8020 | ||
8021 | fi; | |
8022 | ||
8023 | eval "$ac_cv_use_spinctrl" | |
8024 | if test "$no_cache" != 1; then | |
8025 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
8026 | fi | |
8027 | ||
8028 | if test "$wxUSE_SPINCTRL" = yes; then | |
8029 | echo "$as_me:$LINENO: result: yes" >&5 | |
8030 | echo "${ECHO_T}yes" >&6 | |
8031 | else | |
8032 | echo "$as_me:$LINENO: result: no" >&5 | |
8033 | echo "${ECHO_T}no" >&6 | |
8034 | fi | |
8035 | ||
8036 | ||
8037 | enablestring= | |
8038 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
8039 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
8040 | no_cache=0 | |
8041 | # Check whether --enable-splitter or --disable-splitter was given. | |
8042 | if test "${enable_splitter+set}" = set; then | |
8043 | enableval="$enable_splitter" | |
8044 | ||
8045 | if test "$enableval" = yes; then | |
8046 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
8047 | else | |
8048 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
8049 | fi | |
8050 | ||
8051 | else | |
8052 | ||
8053 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
8054 | if test "x$LINE" != x ; then | |
8055 | eval "DEFAULT_$LINE" | |
8056 | else | |
8057 | no_cache=1 | |
8058 | fi | |
8059 | ||
8060 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
8061 | ||
8062 | fi; | |
8063 | ||
8064 | eval "$ac_cv_use_splitter" | |
8065 | if test "$no_cache" != 1; then | |
8066 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
8067 | fi | |
8068 | ||
8069 | if test "$wxUSE_SPLITTER" = yes; then | |
8070 | echo "$as_me:$LINENO: result: yes" >&5 | |
8071 | echo "${ECHO_T}yes" >&6 | |
8072 | else | |
8073 | echo "$as_me:$LINENO: result: no" >&5 | |
8074 | echo "${ECHO_T}no" >&6 | |
8075 | fi | |
8076 | ||
8077 | ||
8078 | enablestring= | |
8079 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
8080 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
8081 | no_cache=0 | |
8082 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
8083 | if test "${enable_statbmp+set}" = set; then | |
8084 | enableval="$enable_statbmp" | |
8085 | ||
8086 | if test "$enableval" = yes; then | |
8087 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8088 | else | |
8089 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8090 | fi | |
8091 | ||
8092 | else | |
8093 | ||
8094 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8095 | if test "x$LINE" != x ; then | |
8096 | eval "DEFAULT_$LINE" | |
8097 | else | |
8098 | no_cache=1 | |
8099 | fi | |
8100 | ||
8101 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8102 | ||
8103 | fi; | |
8104 | ||
8105 | eval "$ac_cv_use_statbmp" | |
8106 | if test "$no_cache" != 1; then | |
8107 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8108 | fi | |
8109 | ||
8110 | if test "$wxUSE_STATBMP" = yes; then | |
8111 | echo "$as_me:$LINENO: result: yes" >&5 | |
8112 | echo "${ECHO_T}yes" >&6 | |
8113 | else | |
8114 | echo "$as_me:$LINENO: result: no" >&5 | |
8115 | echo "${ECHO_T}no" >&6 | |
8116 | fi | |
8117 | ||
8118 | ||
8119 | enablestring= | |
8120 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8121 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8122 | no_cache=0 | |
8123 | # Check whether --enable-statbox or --disable-statbox was given. | |
8124 | if test "${enable_statbox+set}" = set; then | |
8125 | enableval="$enable_statbox" | |
8126 | ||
8127 | if test "$enableval" = yes; then | |
8128 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8129 | else | |
8130 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8131 | fi | |
8132 | ||
8133 | else | |
8134 | ||
8135 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8136 | if test "x$LINE" != x ; then | |
8137 | eval "DEFAULT_$LINE" | |
8138 | else | |
8139 | no_cache=1 | |
8140 | fi | |
8141 | ||
8142 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8143 | ||
8144 | fi; | |
8145 | ||
8146 | eval "$ac_cv_use_statbox" | |
8147 | if test "$no_cache" != 1; then | |
8148 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8149 | fi | |
8150 | ||
8151 | if test "$wxUSE_STATBOX" = yes; then | |
8152 | echo "$as_me:$LINENO: result: yes" >&5 | |
8153 | echo "${ECHO_T}yes" >&6 | |
8154 | else | |
8155 | echo "$as_me:$LINENO: result: no" >&5 | |
8156 | echo "${ECHO_T}no" >&6 | |
8157 | fi | |
8158 | ||
8159 | ||
8160 | enablestring= | |
8161 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8162 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8163 | no_cache=0 | |
8164 | # Check whether --enable-statline or --disable-statline was given. | |
8165 | if test "${enable_statline+set}" = set; then | |
8166 | enableval="$enable_statline" | |
8167 | ||
8168 | if test "$enableval" = yes; then | |
8169 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8170 | else | |
8171 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8172 | fi | |
8173 | ||
8174 | else | |
8175 | ||
8176 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8177 | if test "x$LINE" != x ; then | |
8178 | eval "DEFAULT_$LINE" | |
8179 | else | |
8180 | no_cache=1 | |
8181 | fi | |
8182 | ||
8183 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8184 | ||
8185 | fi; | |
8186 | ||
8187 | eval "$ac_cv_use_statline" | |
8188 | if test "$no_cache" != 1; then | |
8189 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8190 | fi | |
8191 | ||
8192 | if test "$wxUSE_STATLINE" = yes; then | |
8193 | echo "$as_me:$LINENO: result: yes" >&5 | |
8194 | echo "${ECHO_T}yes" >&6 | |
8195 | else | |
8196 | echo "$as_me:$LINENO: result: no" >&5 | |
8197 | echo "${ECHO_T}no" >&6 | |
8198 | fi | |
8199 | ||
8200 | ||
8201 | enablestring= | |
8202 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8203 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8204 | no_cache=0 | |
8205 | # Check whether --enable-stattext or --disable-stattext was given. | |
8206 | if test "${enable_stattext+set}" = set; then | |
8207 | enableval="$enable_stattext" | |
8208 | ||
8209 | if test "$enableval" = yes; then | |
8210 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8211 | else | |
8212 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8213 | fi | |
8214 | ||
8215 | else | |
8216 | ||
8217 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8218 | if test "x$LINE" != x ; then | |
8219 | eval "DEFAULT_$LINE" | |
8220 | else | |
8221 | no_cache=1 | |
8222 | fi | |
8223 | ||
8224 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8225 | ||
8226 | fi; | |
8227 | ||
8228 | eval "$ac_cv_use_stattext" | |
8229 | if test "$no_cache" != 1; then | |
8230 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8231 | fi | |
8232 | ||
8233 | if test "$wxUSE_STATTEXT" = yes; then | |
8234 | echo "$as_me:$LINENO: result: yes" >&5 | |
8235 | echo "${ECHO_T}yes" >&6 | |
8236 | else | |
8237 | echo "$as_me:$LINENO: result: no" >&5 | |
8238 | echo "${ECHO_T}no" >&6 | |
8239 | fi | |
8240 | ||
8241 | ||
8242 | enablestring= | |
8243 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8244 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8245 | no_cache=0 | |
8246 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8247 | if test "${enable_statusbar+set}" = set; then | |
8248 | enableval="$enable_statusbar" | |
8249 | ||
8250 | if test "$enableval" = yes; then | |
8251 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8252 | else | |
8253 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8254 | fi | |
8255 | ||
8256 | else | |
8257 | ||
8258 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8259 | if test "x$LINE" != x ; then | |
8260 | eval "DEFAULT_$LINE" | |
8261 | else | |
8262 | no_cache=1 | |
8263 | fi | |
8264 | ||
8265 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8266 | ||
8267 | fi; | |
8268 | ||
8269 | eval "$ac_cv_use_statusbar" | |
8270 | if test "$no_cache" != 1; then | |
8271 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8272 | fi | |
8273 | ||
8274 | if test "$wxUSE_STATUSBAR" = yes; then | |
8275 | echo "$as_me:$LINENO: result: yes" >&5 | |
8276 | echo "${ECHO_T}yes" >&6 | |
8277 | else | |
8278 | echo "$as_me:$LINENO: result: no" >&5 | |
8279 | echo "${ECHO_T}no" >&6 | |
8280 | fi | |
8281 | ||
8282 | ||
8283 | enablestring= | |
8284 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8285 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8286 | no_cache=0 | |
8287 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8288 | if test "${enable_tabdialog+set}" = set; then | |
8289 | enableval="$enable_tabdialog" | |
8290 | ||
8291 | if test "$enableval" = yes; then | |
8292 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8293 | else | |
8294 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8295 | fi | |
8296 | ||
8297 | else | |
8298 | ||
8299 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
8300 | if test "x$LINE" != x ; then | |
8301 | eval "DEFAULT_$LINE" | |
8302 | else | |
8303 | no_cache=1 | |
8304 | fi | |
8305 | ||
8306 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8307 | ||
8308 | fi; | |
8309 | ||
8310 | eval "$ac_cv_use_tabdialog" | |
8311 | if test "$no_cache" != 1; then | |
8312 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8313 | fi | |
8314 | ||
8315 | if test "$wxUSE_TABDIALOG" = yes; then | |
8316 | echo "$as_me:$LINENO: result: yes" >&5 | |
8317 | echo "${ECHO_T}yes" >&6 | |
8318 | else | |
8319 | echo "$as_me:$LINENO: result: no" >&5 | |
8320 | echo "${ECHO_T}no" >&6 | |
8321 | fi | |
8322 | ||
8323 | ||
8324 | enablestring= | |
8325 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
8326 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8327 | no_cache=0 | |
8328 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8329 | if test "${enable_textctrl+set}" = set; then | |
8330 | enableval="$enable_textctrl" | |
8331 | ||
8332 | if test "$enableval" = yes; then | |
8333 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8334 | else | |
8335 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8336 | fi | |
8337 | ||
8338 | else | |
8339 | ||
8340 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
8341 | if test "x$LINE" != x ; then | |
8342 | eval "DEFAULT_$LINE" | |
8343 | else | |
8344 | no_cache=1 | |
8345 | fi | |
8346 | ||
8347 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8348 | ||
8349 | fi; | |
8350 | ||
8351 | eval "$ac_cv_use_textctrl" | |
8352 | if test "$no_cache" != 1; then | |
8353 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8354 | fi | |
8355 | ||
8356 | if test "$wxUSE_TEXTCTRL" = yes; then | |
8357 | echo "$as_me:$LINENO: result: yes" >&5 | |
8358 | echo "${ECHO_T}yes" >&6 | |
8359 | else | |
8360 | echo "$as_me:$LINENO: result: no" >&5 | |
8361 | echo "${ECHO_T}no" >&6 | |
8362 | fi | |
8363 | ||
8364 | ||
8365 | enablestring= | |
8366 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
8367 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
8368 | no_cache=0 | |
8369 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8370 | if test "${enable_togglebtn+set}" = set; then | |
8371 | enableval="$enable_togglebtn" | |
8372 | ||
8373 | if test "$enableval" = yes; then | |
8374 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8375 | else | |
8376 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8377 | fi | |
8378 | ||
8379 | else | |
8380 | ||
8381 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
8382 | if test "x$LINE" != x ; then | |
8383 | eval "DEFAULT_$LINE" | |
8384 | else | |
8385 | no_cache=1 | |
8386 | fi | |
8387 | ||
8388 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8389 | ||
8390 | fi; | |
8391 | ||
8392 | eval "$ac_cv_use_togglebtn" | |
8393 | if test "$no_cache" != 1; then | |
8394 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8395 | fi | |
8396 | ||
8397 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
8398 | echo "$as_me:$LINENO: result: yes" >&5 | |
8399 | echo "${ECHO_T}yes" >&6 | |
8400 | else | |
8401 | echo "$as_me:$LINENO: result: no" >&5 | |
8402 | echo "${ECHO_T}no" >&6 | |
8403 | fi | |
8404 | ||
8405 | ||
8406 | enablestring= | |
8407 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
8408 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
8409 | no_cache=0 | |
8410 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8411 | if test "${enable_toolbar+set}" = set; then | |
8412 | enableval="$enable_toolbar" | |
8413 | ||
8414 | if test "$enableval" = yes; then | |
8415 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8416 | else | |
8417 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8418 | fi | |
8419 | ||
8420 | else | |
8421 | ||
8422 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
8423 | if test "x$LINE" != x ; then | |
8424 | eval "DEFAULT_$LINE" | |
8425 | else | |
8426 | no_cache=1 | |
8427 | fi | |
8428 | ||
8429 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8430 | ||
8431 | fi; | |
8432 | ||
8433 | eval "$ac_cv_use_toolbar" | |
8434 | if test "$no_cache" != 1; then | |
8435 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8436 | fi | |
8437 | ||
8438 | if test "$wxUSE_TOOLBAR" = yes; then | |
8439 | echo "$as_me:$LINENO: result: yes" >&5 | |
8440 | echo "${ECHO_T}yes" >&6 | |
8441 | else | |
8442 | echo "$as_me:$LINENO: result: no" >&5 | |
8443 | echo "${ECHO_T}no" >&6 | |
8444 | fi | |
8445 | ||
8446 | ||
8447 | enablestring= | |
8448 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
8449 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
8450 | no_cache=0 | |
8451 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8452 | if test "${enable_tbarnative+set}" = set; then | |
8453 | enableval="$enable_tbarnative" | |
8454 | ||
8455 | if test "$enableval" = yes; then | |
8456 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8457 | else | |
8458 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8459 | fi | |
8460 | ||
8461 | else | |
8462 | ||
8463 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
8464 | if test "x$LINE" != x ; then | |
8465 | eval "DEFAULT_$LINE" | |
8466 | else | |
8467 | no_cache=1 | |
8468 | fi | |
8469 | ||
8470 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
8471 | ||
8472 | fi; | |
8473 | ||
8474 | eval "$ac_cv_use_tbarnative" | |
8475 | if test "$no_cache" != 1; then | |
8476 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8477 | fi | |
8478 | ||
8479 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
8480 | echo "$as_me:$LINENO: result: yes" >&5 | |
8481 | echo "${ECHO_T}yes" >&6 | |
8482 | else | |
8483 | echo "$as_me:$LINENO: result: no" >&5 | |
8484 | echo "${ECHO_T}no" >&6 | |
8485 | fi | |
8486 | ||
8487 | ||
8488 | enablestring= | |
8489 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
8490 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
8491 | no_cache=0 | |
8492 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8493 | if test "${enable_tbarsmpl+set}" = set; then | |
8494 | enableval="$enable_tbarsmpl" | |
8495 | ||
8496 | if test "$enableval" = yes; then | |
8497 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8498 | else | |
8499 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8500 | fi | |
8501 | ||
8502 | else | |
8503 | ||
8504 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
8505 | if test "x$LINE" != x ; then | |
8506 | eval "DEFAULT_$LINE" | |
8507 | else | |
8508 | no_cache=1 | |
8509 | fi | |
8510 | ||
8511 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
8512 | ||
8513 | fi; | |
8514 | ||
8515 | eval "$ac_cv_use_tbarsmpl" | |
8516 | if test "$no_cache" != 1; then | |
8517 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8518 | fi | |
8519 | ||
8520 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
8521 | echo "$as_me:$LINENO: result: yes" >&5 | |
8522 | echo "${ECHO_T}yes" >&6 | |
8523 | else | |
8524 | echo "$as_me:$LINENO: result: no" >&5 | |
8525 | echo "${ECHO_T}no" >&6 | |
8526 | fi | |
8527 | ||
8528 | ||
8529 | enablestring= | |
8530 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
8531 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
8532 | no_cache=0 | |
8533 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8534 | if test "${enable_treectrl+set}" = set; then | |
8535 | enableval="$enable_treectrl" | |
8536 | ||
8537 | if test "$enableval" = yes; then | |
8538 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8539 | else | |
8540 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8541 | fi | |
8542 | ||
8543 | else | |
8544 | ||
8545 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
8546 | if test "x$LINE" != x ; then | |
8547 | eval "DEFAULT_$LINE" | |
8548 | else | |
8549 | no_cache=1 | |
8550 | fi | |
8551 | ||
8552 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
8553 | ||
8554 | fi; | |
8555 | ||
8556 | eval "$ac_cv_use_treectrl" | |
8557 | if test "$no_cache" != 1; then | |
8558 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8559 | fi | |
8560 | ||
8561 | if test "$wxUSE_TREECTRL" = yes; then | |
8562 | echo "$as_me:$LINENO: result: yes" >&5 | |
8563 | echo "${ECHO_T}yes" >&6 | |
8564 | else | |
8565 | echo "$as_me:$LINENO: result: no" >&5 | |
8566 | echo "${ECHO_T}no" >&6 | |
8567 | fi | |
8568 | ||
8569 | ||
8570 | enablestring= | |
8571 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
8572 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
8573 | no_cache=0 | |
8574 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8575 | if test "${enable_tipwindow+set}" = set; then | |
8576 | enableval="$enable_tipwindow" | |
8577 | ||
8578 | if test "$enableval" = yes; then | |
8579 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8580 | else | |
8581 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8582 | fi | |
8583 | ||
8584 | else | |
8585 | ||
8586 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
8587 | if test "x$LINE" != x ; then | |
8588 | eval "DEFAULT_$LINE" | |
8589 | else | |
8590 | no_cache=1 | |
8591 | fi | |
8592 | ||
8593 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
8594 | ||
8595 | fi; | |
8596 | ||
8597 | eval "$ac_cv_use_tipwindow" | |
8598 | if test "$no_cache" != 1; then | |
8599 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8600 | fi | |
8601 | ||
8602 | if test "$wxUSE_TIPWINDOW" = yes; then | |
8603 | echo "$as_me:$LINENO: result: yes" >&5 | |
8604 | echo "${ECHO_T}yes" >&6 | |
8605 | else | |
8606 | echo "$as_me:$LINENO: result: no" >&5 | |
8607 | echo "${ECHO_T}no" >&6 | |
8608 | fi | |
8609 | ||
8610 | ||
8611 | enablestring= | |
8612 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
8613 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
8614 | no_cache=0 | |
8615 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8616 | if test "${enable_popupwin+set}" = set; then | |
8617 | enableval="$enable_popupwin" | |
8618 | ||
8619 | if test "$enableval" = yes; then | |
8620 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8621 | else | |
8622 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8623 | fi | |
8624 | ||
8625 | else | |
8626 | ||
8627 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
8628 | if test "x$LINE" != x ; then | |
8629 | eval "DEFAULT_$LINE" | |
8630 | else | |
8631 | no_cache=1 | |
8632 | fi | |
8633 | ||
8634 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
8635 | ||
8636 | fi; | |
8637 | ||
8638 | eval "$ac_cv_use_popupwin" | |
8639 | if test "$no_cache" != 1; then | |
8640 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8641 | fi | |
8642 | ||
8643 | if test "$wxUSE_POPUPWIN" = yes; then | |
8644 | echo "$as_me:$LINENO: result: yes" >&5 | |
8645 | echo "${ECHO_T}yes" >&6 | |
8646 | else | |
8647 | echo "$as_me:$LINENO: result: no" >&5 | |
8648 | echo "${ECHO_T}no" >&6 | |
8649 | fi | |
8650 | ||
8651 | ||
8652 | ||
8653 | ||
8654 | enablestring= | |
8655 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
8656 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
8657 | no_cache=0 | |
8658 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8659 | if test "${enable_commondlg+set}" = set; then | |
8660 | enableval="$enable_commondlg" | |
8661 | ||
8662 | if test "$enableval" = yes; then | |
8663 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8664 | else | |
8665 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8666 | fi | |
8667 | ||
8668 | else | |
8669 | ||
8670 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
8671 | if test "x$LINE" != x ; then | |
8672 | eval "DEFAULT_$LINE" | |
8673 | else | |
8674 | no_cache=1 | |
8675 | fi | |
8676 | ||
8677 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
8678 | ||
8679 | fi; | |
8680 | ||
8681 | eval "$ac_cv_use_commondlg" | |
8682 | if test "$no_cache" != 1; then | |
8683 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8684 | fi | |
8685 | ||
8686 | if test "$wxUSE_COMMONDLGS" = yes; then | |
8687 | echo "$as_me:$LINENO: result: yes" >&5 | |
8688 | echo "${ECHO_T}yes" >&6 | |
8689 | else | |
8690 | echo "$as_me:$LINENO: result: no" >&5 | |
8691 | echo "${ECHO_T}no" >&6 | |
8692 | fi | |
8693 | ||
8694 | ||
8695 | enablestring= | |
8696 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
8697 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
8698 | no_cache=0 | |
8699 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8700 | if test "${enable_choicedlg+set}" = set; then | |
8701 | enableval="$enable_choicedlg" | |
8702 | ||
8703 | if test "$enableval" = yes; then | |
8704 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8705 | else | |
8706 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8707 | fi | |
8708 | ||
8709 | else | |
8710 | ||
8711 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
8712 | if test "x$LINE" != x ; then | |
8713 | eval "DEFAULT_$LINE" | |
8714 | else | |
8715 | no_cache=1 | |
8716 | fi | |
8717 | ||
8718 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
8719 | ||
8720 | fi; | |
8721 | ||
8722 | eval "$ac_cv_use_choicedlg" | |
8723 | if test "$no_cache" != 1; then | |
8724 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8725 | fi | |
8726 | ||
8727 | if test "$wxUSE_CHOICEDLG" = yes; then | |
8728 | echo "$as_me:$LINENO: result: yes" >&5 | |
8729 | echo "${ECHO_T}yes" >&6 | |
8730 | else | |
8731 | echo "$as_me:$LINENO: result: no" >&5 | |
8732 | echo "${ECHO_T}no" >&6 | |
8733 | fi | |
8734 | ||
8735 | ||
8736 | enablestring= | |
8737 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
8738 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
8739 | no_cache=0 | |
8740 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
8741 | if test "${enable_coldlg+set}" = set; then | |
8742 | enableval="$enable_coldlg" | |
8743 | ||
8744 | if test "$enableval" = yes; then | |
8745 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
8746 | else | |
8747 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
8748 | fi | |
8749 | ||
8750 | else | |
8751 | ||
8752 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
8753 | if test "x$LINE" != x ; then | |
8754 | eval "DEFAULT_$LINE" | |
8755 | else | |
8756 | no_cache=1 | |
8757 | fi | |
8758 | ||
8759 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
8760 | ||
8761 | fi; | |
8762 | ||
8763 | eval "$ac_cv_use_coldlg" | |
8764 | if test "$no_cache" != 1; then | |
8765 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
8766 | fi | |
8767 | ||
8768 | if test "$wxUSE_COLOURDLG" = yes; then | |
8769 | echo "$as_me:$LINENO: result: yes" >&5 | |
8770 | echo "${ECHO_T}yes" >&6 | |
8771 | else | |
8772 | echo "$as_me:$LINENO: result: no" >&5 | |
8773 | echo "${ECHO_T}no" >&6 | |
8774 | fi | |
8775 | ||
8776 | ||
8777 | enablestring= | |
8778 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
8779 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
8780 | no_cache=0 | |
8781 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
8782 | if test "${enable_filedlg+set}" = set; then | |
8783 | enableval="$enable_filedlg" | |
8784 | ||
8785 | if test "$enableval" = yes; then | |
8786 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
8787 | else | |
8788 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
8789 | fi | |
8790 | ||
8791 | else | |
8792 | ||
8793 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
8794 | if test "x$LINE" != x ; then | |
8795 | eval "DEFAULT_$LINE" | |
8796 | else | |
8797 | no_cache=1 | |
8798 | fi | |
8799 | ||
8800 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
8801 | ||
8802 | fi; | |
8803 | ||
8804 | eval "$ac_cv_use_filedlg" | |
8805 | if test "$no_cache" != 1; then | |
8806 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
8807 | fi | |
8808 | ||
8809 | if test "$wxUSE_FILEDLG" = yes; then | |
8810 | echo "$as_me:$LINENO: result: yes" >&5 | |
8811 | echo "${ECHO_T}yes" >&6 | |
8812 | else | |
8813 | echo "$as_me:$LINENO: result: no" >&5 | |
8814 | echo "${ECHO_T}no" >&6 | |
8815 | fi | |
8816 | ||
8817 | ||
8818 | enablestring= | |
8819 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
8820 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
8821 | no_cache=0 | |
8822 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
8823 | if test "${enable_finddlg+set}" = set; then | |
8824 | enableval="$enable_finddlg" | |
8825 | ||
8826 | if test "$enableval" = yes; then | |
8827 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
8828 | else | |
8829 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
8830 | fi | |
8831 | ||
8832 | else | |
8833 | ||
8834 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
8835 | if test "x$LINE" != x ; then | |
8836 | eval "DEFAULT_$LINE" | |
8837 | else | |
8838 | no_cache=1 | |
8839 | fi | |
8840 | ||
8841 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
8842 | ||
8843 | fi; | |
8844 | ||
8845 | eval "$ac_cv_use_finddlg" | |
8846 | if test "$no_cache" != 1; then | |
8847 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
8848 | fi | |
8849 | ||
8850 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
8851 | echo "$as_me:$LINENO: result: yes" >&5 | |
8852 | echo "${ECHO_T}yes" >&6 | |
8853 | else | |
8854 | echo "$as_me:$LINENO: result: no" >&5 | |
8855 | echo "${ECHO_T}no" >&6 | |
8856 | fi | |
8857 | ||
8858 | ||
8859 | enablestring= | |
8860 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
8861 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
8862 | no_cache=0 | |
8863 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
8864 | if test "${enable_fontdlg+set}" = set; then | |
8865 | enableval="$enable_fontdlg" | |
8866 | ||
8867 | if test "$enableval" = yes; then | |
8868 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
8869 | else | |
8870 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
8871 | fi | |
8872 | ||
8873 | else | |
8874 | ||
8875 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
8876 | if test "x$LINE" != x ; then | |
8877 | eval "DEFAULT_$LINE" | |
8878 | else | |
8879 | no_cache=1 | |
8880 | fi | |
8881 | ||
8882 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
8883 | ||
8884 | fi; | |
8885 | ||
8886 | eval "$ac_cv_use_fontdlg" | |
8887 | if test "$no_cache" != 1; then | |
8888 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
8889 | fi | |
8890 | ||
8891 | if test "$wxUSE_FONTDLG" = yes; then | |
8892 | echo "$as_me:$LINENO: result: yes" >&5 | |
8893 | echo "${ECHO_T}yes" >&6 | |
8894 | else | |
8895 | echo "$as_me:$LINENO: result: no" >&5 | |
8896 | echo "${ECHO_T}no" >&6 | |
8897 | fi | |
8898 | ||
8899 | ||
8900 | enablestring= | |
8901 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
8902 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
8903 | no_cache=0 | |
8904 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
8905 | if test "${enable_dirdlg+set}" = set; then | |
8906 | enableval="$enable_dirdlg" | |
8907 | ||
8908 | if test "$enableval" = yes; then | |
8909 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
8910 | else | |
8911 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
8912 | fi | |
8913 | ||
8914 | else | |
8915 | ||
8916 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
8917 | if test "x$LINE" != x ; then | |
8918 | eval "DEFAULT_$LINE" | |
8919 | else | |
8920 | no_cache=1 | |
8921 | fi | |
8922 | ||
8923 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
8924 | ||
8925 | fi; | |
8926 | ||
8927 | eval "$ac_cv_use_dirdlg" | |
8928 | if test "$no_cache" != 1; then | |
8929 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
8930 | fi | |
8931 | ||
8932 | if test "$wxUSE_DIRDLG" = yes; then | |
8933 | echo "$as_me:$LINENO: result: yes" >&5 | |
8934 | echo "${ECHO_T}yes" >&6 | |
8935 | else | |
8936 | echo "$as_me:$LINENO: result: no" >&5 | |
8937 | echo "${ECHO_T}no" >&6 | |
8938 | fi | |
8939 | ||
8940 | ||
8941 | enablestring= | |
8942 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
8943 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
8944 | no_cache=0 | |
8945 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
8946 | if test "${enable_msgdlg+set}" = set; then | |
8947 | enableval="$enable_msgdlg" | |
8948 | ||
8949 | if test "$enableval" = yes; then | |
8950 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
8951 | else | |
8952 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
8953 | fi | |
8954 | ||
8955 | else | |
8956 | ||
8957 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
8958 | if test "x$LINE" != x ; then | |
8959 | eval "DEFAULT_$LINE" | |
8960 | else | |
8961 | no_cache=1 | |
8962 | fi | |
8963 | ||
8964 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
8965 | ||
8966 | fi; | |
8967 | ||
8968 | eval "$ac_cv_use_msgdlg" | |
8969 | if test "$no_cache" != 1; then | |
8970 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
8971 | fi | |
8972 | ||
8973 | if test "$wxUSE_MSGDLG" = yes; then | |
8974 | echo "$as_me:$LINENO: result: yes" >&5 | |
8975 | echo "${ECHO_T}yes" >&6 | |
8976 | else | |
8977 | echo "$as_me:$LINENO: result: no" >&5 | |
8978 | echo "${ECHO_T}no" >&6 | |
8979 | fi | |
8980 | ||
8981 | ||
8982 | enablestring= | |
8983 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
8984 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
8985 | no_cache=0 | |
8986 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
8987 | if test "${enable_numberdlg+set}" = set; then | |
8988 | enableval="$enable_numberdlg" | |
8989 | ||
8990 | if test "$enableval" = yes; then | |
8991 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
8992 | else | |
8993 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
8994 | fi | |
8995 | ||
8996 | else | |
8997 | ||
8998 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
8999 | if test "x$LINE" != x ; then | |
9000 | eval "DEFAULT_$LINE" | |
9001 | else | |
9002 | no_cache=1 | |
9003 | fi | |
9004 | ||
9005 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
9006 | ||
9007 | fi; | |
9008 | ||
9009 | eval "$ac_cv_use_numberdlg" | |
9010 | if test "$no_cache" != 1; then | |
9011 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
9012 | fi | |
9013 | ||
9014 | if test "$wxUSE_NUMBERDLG" = yes; then | |
9015 | echo "$as_me:$LINENO: result: yes" >&5 | |
9016 | echo "${ECHO_T}yes" >&6 | |
9017 | else | |
9018 | echo "$as_me:$LINENO: result: no" >&5 | |
9019 | echo "${ECHO_T}no" >&6 | |
9020 | fi | |
9021 | ||
9022 | ||
9023 | enablestring= | |
9024 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
9025 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
9026 | no_cache=0 | |
9027 | # Check whether --enable-splash or --disable-splash was given. | |
9028 | if test "${enable_splash+set}" = set; then | |
9029 | enableval="$enable_splash" | |
9030 | ||
9031 | if test "$enableval" = yes; then | |
9032 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
9033 | else | |
9034 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
9035 | fi | |
9036 | ||
9037 | else | |
9038 | ||
9039 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
9040 | if test "x$LINE" != x ; then | |
9041 | eval "DEFAULT_$LINE" | |
9042 | else | |
9043 | no_cache=1 | |
9044 | fi | |
9045 | ||
9046 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
9047 | ||
9048 | fi; | |
9049 | ||
9050 | eval "$ac_cv_use_splash" | |
9051 | if test "$no_cache" != 1; then | |
9052 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
9053 | fi | |
9054 | ||
9055 | if test "$wxUSE_SPLASH" = yes; then | |
9056 | echo "$as_me:$LINENO: result: yes" >&5 | |
9057 | echo "${ECHO_T}yes" >&6 | |
9058 | else | |
9059 | echo "$as_me:$LINENO: result: no" >&5 | |
9060 | echo "${ECHO_T}no" >&6 | |
9061 | fi | |
9062 | ||
9063 | ||
9064 | enablestring= | |
9065 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
9066 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
9067 | no_cache=0 | |
9068 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
9069 | if test "${enable_textdlg+set}" = set; then | |
9070 | enableval="$enable_textdlg" | |
9071 | ||
9072 | if test "$enableval" = yes; then | |
9073 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
9074 | else | |
9075 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
9076 | fi | |
9077 | ||
9078 | else | |
9079 | ||
9080 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
9081 | if test "x$LINE" != x ; then | |
9082 | eval "DEFAULT_$LINE" | |
9083 | else | |
9084 | no_cache=1 | |
9085 | fi | |
9086 | ||
9087 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9088 | ||
9089 | fi; | |
9090 | ||
9091 | eval "$ac_cv_use_textdlg" | |
9092 | if test "$no_cache" != 1; then | |
9093 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9094 | fi | |
9095 | ||
9096 | if test "$wxUSE_TEXTDLG" = yes; then | |
9097 | echo "$as_me:$LINENO: result: yes" >&5 | |
9098 | echo "${ECHO_T}yes" >&6 | |
9099 | else | |
9100 | echo "$as_me:$LINENO: result: no" >&5 | |
9101 | echo "${ECHO_T}no" >&6 | |
9102 | fi | |
9103 | ||
9104 | ||
9105 | enablestring= | |
9106 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9107 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9108 | no_cache=0 | |
9109 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9110 | if test "${enable_tipdlg+set}" = set; then | |
9111 | enableval="$enable_tipdlg" | |
9112 | ||
9113 | if test "$enableval" = yes; then | |
9114 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9115 | else | |
9116 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9117 | fi | |
9118 | ||
9119 | else | |
9120 | ||
9121 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9122 | if test "x$LINE" != x ; then | |
9123 | eval "DEFAULT_$LINE" | |
9124 | else | |
9125 | no_cache=1 | |
9126 | fi | |
9127 | ||
9128 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9129 | ||
9130 | fi; | |
9131 | ||
9132 | eval "$ac_cv_use_tipdlg" | |
9133 | if test "$no_cache" != 1; then | |
9134 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9135 | fi | |
9136 | ||
9137 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
9138 | echo "$as_me:$LINENO: result: yes" >&5 | |
9139 | echo "${ECHO_T}yes" >&6 | |
9140 | else | |
9141 | echo "$as_me:$LINENO: result: no" >&5 | |
9142 | echo "${ECHO_T}no" >&6 | |
9143 | fi | |
9144 | ||
9145 | ||
9146 | enablestring= | |
9147 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
9148 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9149 | no_cache=0 | |
9150 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9151 | if test "${enable_progressdlg+set}" = set; then | |
9152 | enableval="$enable_progressdlg" | |
9153 | ||
9154 | if test "$enableval" = yes; then | |
9155 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9156 | else | |
9157 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9158 | fi | |
9159 | ||
9160 | else | |
9161 | ||
9162 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9163 | if test "x$LINE" != x ; then | |
9164 | eval "DEFAULT_$LINE" | |
9165 | else | |
9166 | no_cache=1 | |
9167 | fi | |
9168 | ||
9169 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9170 | ||
9171 | fi; | |
9172 | ||
9173 | eval "$ac_cv_use_progressdlg" | |
9174 | if test "$no_cache" != 1; then | |
9175 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9176 | fi | |
9177 | ||
9178 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9179 | echo "$as_me:$LINENO: result: yes" >&5 | |
9180 | echo "${ECHO_T}yes" >&6 | |
9181 | else | |
9182 | echo "$as_me:$LINENO: result: no" >&5 | |
9183 | echo "${ECHO_T}no" >&6 | |
9184 | fi | |
9185 | ||
9186 | ||
9187 | enablestring= | |
9188 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9189 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9190 | no_cache=0 | |
9191 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9192 | if test "${enable_wizarddlg+set}" = set; then | |
9193 | enableval="$enable_wizarddlg" | |
9194 | ||
9195 | if test "$enableval" = yes; then | |
9196 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9197 | else | |
9198 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9199 | fi | |
9200 | ||
9201 | else | |
9202 | ||
9203 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9204 | if test "x$LINE" != x ; then | |
9205 | eval "DEFAULT_$LINE" | |
9206 | else | |
9207 | no_cache=1 | |
9208 | fi | |
9209 | ||
9210 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9211 | ||
9212 | fi; | |
9213 | ||
9214 | eval "$ac_cv_use_wizarddlg" | |
9215 | if test "$no_cache" != 1; then | |
9216 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9217 | fi | |
9218 | ||
9219 | if test "$wxUSE_WIZARDDLG" = yes; then | |
9220 | echo "$as_me:$LINENO: result: yes" >&5 | |
9221 | echo "${ECHO_T}yes" >&6 | |
9222 | else | |
9223 | echo "$as_me:$LINENO: result: no" >&5 | |
9224 | echo "${ECHO_T}no" >&6 | |
9225 | fi | |
9226 | ||
9227 | ||
9228 | ||
9229 | ||
9230 | enablestring= | |
9231 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9232 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9233 | no_cache=0 | |
9234 | # Check whether --enable-menus or --disable-menus was given. | |
9235 | if test "${enable_menus+set}" = set; then | |
9236 | enableval="$enable_menus" | |
9237 | ||
9238 | if test "$enableval" = yes; then | |
9239 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9240 | else | |
9241 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9242 | fi | |
9243 | ||
9244 | else | |
9245 | ||
9246 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9247 | if test "x$LINE" != x ; then | |
9248 | eval "DEFAULT_$LINE" | |
9249 | else | |
9250 | no_cache=1 | |
9251 | fi | |
9252 | ||
9253 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9254 | ||
9255 | fi; | |
9256 | ||
9257 | eval "$ac_cv_use_menus" | |
9258 | if test "$no_cache" != 1; then | |
9259 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9260 | fi | |
9261 | ||
9262 | if test "$wxUSE_MENUS" = yes; then | |
9263 | echo "$as_me:$LINENO: result: yes" >&5 | |
9264 | echo "${ECHO_T}yes" >&6 | |
9265 | else | |
9266 | echo "$as_me:$LINENO: result: no" >&5 | |
9267 | echo "${ECHO_T}no" >&6 | |
9268 | fi | |
9269 | ||
9270 | ||
9271 | enablestring= | |
9272 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
9273 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
9274 | no_cache=0 | |
9275 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9276 | if test "${enable_miniframe+set}" = set; then | |
9277 | enableval="$enable_miniframe" | |
9278 | ||
9279 | if test "$enableval" = yes; then | |
9280 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9281 | else | |
9282 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9283 | fi | |
9284 | ||
9285 | else | |
9286 | ||
9287 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
9288 | if test "x$LINE" != x ; then | |
9289 | eval "DEFAULT_$LINE" | |
9290 | else | |
9291 | no_cache=1 | |
9292 | fi | |
9293 | ||
9294 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
9295 | ||
9296 | fi; | |
9297 | ||
9298 | eval "$ac_cv_use_miniframe" | |
9299 | if test "$no_cache" != 1; then | |
9300 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9301 | fi | |
9302 | ||
9303 | if test "$wxUSE_MINIFRAME" = yes; then | |
9304 | echo "$as_me:$LINENO: result: yes" >&5 | |
9305 | echo "${ECHO_T}yes" >&6 | |
9306 | else | |
9307 | echo "$as_me:$LINENO: result: no" >&5 | |
9308 | echo "${ECHO_T}no" >&6 | |
9309 | fi | |
9310 | ||
9311 | ||
9312 | enablestring= | |
9313 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
9314 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
9315 | no_cache=0 | |
9316 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9317 | if test "${enable_tooltips+set}" = set; then | |
9318 | enableval="$enable_tooltips" | |
9319 | ||
9320 | if test "$enableval" = yes; then | |
9321 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9322 | else | |
9323 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9324 | fi | |
9325 | ||
9326 | else | |
9327 | ||
9328 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
9329 | if test "x$LINE" != x ; then | |
9330 | eval "DEFAULT_$LINE" | |
9331 | else | |
9332 | no_cache=1 | |
9333 | fi | |
9334 | ||
9335 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
9336 | ||
9337 | fi; | |
9338 | ||
9339 | eval "$ac_cv_use_tooltips" | |
9340 | if test "$no_cache" != 1; then | |
9341 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9342 | fi | |
9343 | ||
9344 | if test "$wxUSE_TOOLTIPS" = yes; then | |
9345 | echo "$as_me:$LINENO: result: yes" >&5 | |
9346 | echo "${ECHO_T}yes" >&6 | |
9347 | else | |
9348 | echo "$as_me:$LINENO: result: no" >&5 | |
9349 | echo "${ECHO_T}no" >&6 | |
9350 | fi | |
9351 | ||
9352 | ||
9353 | enablestring= | |
9354 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
9355 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
9356 | no_cache=0 | |
9357 | # Check whether --enable-splines or --disable-splines was given. | |
9358 | if test "${enable_splines+set}" = set; then | |
9359 | enableval="$enable_splines" | |
9360 | ||
9361 | if test "$enableval" = yes; then | |
9362 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9363 | else | |
9364 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9365 | fi | |
9366 | ||
9367 | else | |
9368 | ||
9369 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
9370 | if test "x$LINE" != x ; then | |
9371 | eval "DEFAULT_$LINE" | |
9372 | else | |
9373 | no_cache=1 | |
9374 | fi | |
9375 | ||
9376 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
9377 | ||
9378 | fi; | |
9379 | ||
9380 | eval "$ac_cv_use_splines" | |
9381 | if test "$no_cache" != 1; then | |
9382 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9383 | fi | |
9384 | ||
9385 | if test "$wxUSE_SPLINES" = yes; then | |
9386 | echo "$as_me:$LINENO: result: yes" >&5 | |
9387 | echo "${ECHO_T}yes" >&6 | |
9388 | else | |
9389 | echo "$as_me:$LINENO: result: no" >&5 | |
9390 | echo "${ECHO_T}no" >&6 | |
9391 | fi | |
9392 | ||
9393 | ||
9394 | enablestring= | |
9395 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
9396 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
9397 | no_cache=0 | |
9398 | # Check whether --enable-validators or --disable-validators was given. | |
9399 | if test "${enable_validators+set}" = set; then | |
9400 | enableval="$enable_validators" | |
9401 | ||
9402 | if test "$enableval" = yes; then | |
9403 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9404 | else | |
9405 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9406 | fi | |
9407 | ||
9408 | else | |
9409 | ||
9410 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
9411 | if test "x$LINE" != x ; then | |
9412 | eval "DEFAULT_$LINE" | |
9413 | else | |
9414 | no_cache=1 | |
9415 | fi | |
9416 | ||
9417 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
9418 | ||
9419 | fi; | |
9420 | ||
9421 | eval "$ac_cv_use_validators" | |
9422 | if test "$no_cache" != 1; then | |
9423 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9424 | fi | |
9425 | ||
9426 | if test "$wxUSE_VALIDATORS" = yes; then | |
9427 | echo "$as_me:$LINENO: result: yes" >&5 | |
9428 | echo "${ECHO_T}yes" >&6 | |
9429 | else | |
9430 | echo "$as_me:$LINENO: result: no" >&5 | |
9431 | echo "${ECHO_T}no" >&6 | |
9432 | fi | |
9433 | ||
9434 | ||
9435 | enablestring= | |
9436 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
9437 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
9438 | no_cache=0 | |
9439 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9440 | if test "${enable_busyinfo+set}" = set; then | |
9441 | enableval="$enable_busyinfo" | |
9442 | ||
9443 | if test "$enableval" = yes; then | |
9444 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9445 | else | |
9446 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9447 | fi | |
9448 | ||
9449 | else | |
9450 | ||
9451 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
9452 | if test "x$LINE" != x ; then | |
9453 | eval "DEFAULT_$LINE" | |
9454 | else | |
9455 | no_cache=1 | |
9456 | fi | |
9457 | ||
9458 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
9459 | ||
9460 | fi; | |
9461 | ||
9462 | eval "$ac_cv_use_busyinfo" | |
9463 | if test "$no_cache" != 1; then | |
9464 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9465 | fi | |
9466 | ||
9467 | if test "$wxUSE_BUSYINFO" = yes; then | |
9468 | echo "$as_me:$LINENO: result: yes" >&5 | |
9469 | echo "${ECHO_T}yes" >&6 | |
9470 | else | |
9471 | echo "$as_me:$LINENO: result: no" >&5 | |
9472 | echo "${ECHO_T}no" >&6 | |
9473 | fi | |
9474 | ||
9475 | ||
9476 | enablestring= | |
9477 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
9478 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
9479 | no_cache=0 | |
9480 | # Check whether --enable-joystick or --disable-joystick was given. | |
9481 | if test "${enable_joystick+set}" = set; then | |
9482 | enableval="$enable_joystick" | |
9483 | ||
9484 | if test "$enableval" = yes; then | |
9485 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9486 | else | |
9487 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9488 | fi | |
9489 | ||
9490 | else | |
9491 | ||
9492 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
9493 | if test "x$LINE" != x ; then | |
9494 | eval "DEFAULT_$LINE" | |
9495 | else | |
9496 | no_cache=1 | |
9497 | fi | |
9498 | ||
9499 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
9500 | ||
9501 | fi; | |
9502 | ||
9503 | eval "$ac_cv_use_joystick" | |
9504 | if test "$no_cache" != 1; then | |
9505 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9506 | fi | |
9507 | ||
9508 | if test "$wxUSE_JOYSTICK" = yes; then | |
9509 | echo "$as_me:$LINENO: result: yes" >&5 | |
9510 | echo "${ECHO_T}yes" >&6 | |
9511 | else | |
9512 | echo "$as_me:$LINENO: result: no" >&5 | |
9513 | echo "${ECHO_T}no" >&6 | |
9514 | fi | |
9515 | ||
9516 | ||
9517 | enablestring= | |
9518 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
9519 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
9520 | no_cache=0 | |
9521 | # Check whether --enable-metafile or --disable-metafile was given. | |
9522 | if test "${enable_metafile+set}" = set; then | |
9523 | enableval="$enable_metafile" | |
9524 | ||
9525 | if test "$enableval" = yes; then | |
9526 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9527 | else | |
9528 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9529 | fi | |
9530 | ||
9531 | else | |
9532 | ||
9533 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
9534 | if test "x$LINE" != x ; then | |
9535 | eval "DEFAULT_$LINE" | |
9536 | else | |
9537 | no_cache=1 | |
9538 | fi | |
9539 | ||
9540 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
9541 | ||
9542 | fi; | |
9543 | ||
9544 | eval "$ac_cv_use_metafile" | |
9545 | if test "$no_cache" != 1; then | |
9546 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9547 | fi | |
9548 | ||
9549 | if test "$wxUSE_METAFILE" = yes; then | |
9550 | echo "$as_me:$LINENO: result: yes" >&5 | |
9551 | echo "${ECHO_T}yes" >&6 | |
9552 | else | |
9553 | echo "$as_me:$LINENO: result: no" >&5 | |
9554 | echo "${ECHO_T}no" >&6 | |
9555 | fi | |
9556 | ||
9557 | ||
9558 | enablestring= | |
9559 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
9560 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
9561 | no_cache=0 | |
9562 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9563 | if test "${enable_dragimage+set}" = set; then | |
9564 | enableval="$enable_dragimage" | |
9565 | ||
9566 | if test "$enableval" = yes; then | |
9567 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9568 | else | |
9569 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9570 | fi | |
9571 | ||
9572 | else | |
9573 | ||
9574 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
9575 | if test "x$LINE" != x ; then | |
9576 | eval "DEFAULT_$LINE" | |
9577 | else | |
9578 | no_cache=1 | |
9579 | fi | |
9580 | ||
9581 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
9582 | ||
9583 | fi; | |
9584 | ||
9585 | eval "$ac_cv_use_dragimage" | |
9586 | if test "$no_cache" != 1; then | |
9587 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9588 | fi | |
9589 | ||
9590 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
9591 | echo "$as_me:$LINENO: result: yes" >&5 | |
9592 | echo "${ECHO_T}yes" >&6 | |
9593 | else | |
9594 | echo "$as_me:$LINENO: result: no" >&5 | |
9595 | echo "${ECHO_T}no" >&6 | |
9596 | fi | |
9597 | ||
9598 | ||
9599 | enablestring= | |
9600 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
9601 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
9602 | no_cache=0 | |
9603 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9604 | if test "${enable_accessibility+set}" = set; then | |
9605 | enableval="$enable_accessibility" | |
9606 | ||
9607 | if test "$enableval" = yes; then | |
9608 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9609 | else | |
9610 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9611 | fi | |
9612 | ||
9613 | else | |
9614 | ||
9615 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
9616 | if test "x$LINE" != x ; then | |
9617 | eval "DEFAULT_$LINE" | |
9618 | else | |
9619 | no_cache=1 | |
9620 | fi | |
9621 | ||
9622 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
9623 | ||
9624 | fi; | |
9625 | ||
9626 | eval "$ac_cv_use_accessibility" | |
9627 | if test "$no_cache" != 1; then | |
9628 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9629 | fi | |
9630 | ||
9631 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
9632 | echo "$as_me:$LINENO: result: yes" >&5 | |
9633 | echo "${ECHO_T}yes" >&6 | |
9634 | else | |
9635 | echo "$as_me:$LINENO: result: no" >&5 | |
9636 | echo "${ECHO_T}no" >&6 | |
9637 | fi | |
9638 | ||
9639 | ||
9640 | ||
9641 | ||
9642 | enablestring= | |
9643 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
9644 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
9645 | no_cache=0 | |
9646 | # Check whether --enable-palette or --disable-palette was given. | |
9647 | if test "${enable_palette+set}" = set; then | |
9648 | enableval="$enable_palette" | |
9649 | ||
9650 | if test "$enableval" = yes; then | |
9651 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9652 | else | |
9653 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9654 | fi | |
9655 | ||
9656 | else | |
9657 | ||
9658 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
9659 | if test "x$LINE" != x ; then | |
9660 | eval "DEFAULT_$LINE" | |
9661 | else | |
9662 | no_cache=1 | |
9663 | fi | |
9664 | ||
9665 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
9666 | ||
9667 | fi; | |
9668 | ||
9669 | eval "$ac_cv_use_palette" | |
9670 | if test "$no_cache" != 1; then | |
9671 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9672 | fi | |
9673 | ||
9674 | if test "$wxUSE_PALETTE" = yes; then | |
9675 | echo "$as_me:$LINENO: result: yes" >&5 | |
9676 | echo "${ECHO_T}yes" >&6 | |
9677 | else | |
9678 | echo "$as_me:$LINENO: result: no" >&5 | |
9679 | echo "${ECHO_T}no" >&6 | |
9680 | fi | |
9681 | ||
9682 | ||
9683 | enablestring= | |
9684 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
9685 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
9686 | no_cache=0 | |
9687 | # Check whether --enable-image or --disable-image was given. | |
9688 | if test "${enable_image+set}" = set; then | |
9689 | enableval="$enable_image" | |
9690 | ||
9691 | if test "$enableval" = yes; then | |
9692 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9693 | else | |
9694 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9695 | fi | |
9696 | ||
9697 | else | |
9698 | ||
9699 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
9700 | if test "x$LINE" != x ; then | |
9701 | eval "DEFAULT_$LINE" | |
9702 | else | |
9703 | no_cache=1 | |
9704 | fi | |
9705 | ||
9706 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
9707 | ||
9708 | fi; | |
9709 | ||
9710 | eval "$ac_cv_use_image" | |
9711 | if test "$no_cache" != 1; then | |
9712 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9713 | fi | |
9714 | ||
9715 | if test "$wxUSE_IMAGE" = yes; then | |
9716 | echo "$as_me:$LINENO: result: yes" >&5 | |
9717 | echo "${ECHO_T}yes" >&6 | |
9718 | else | |
9719 | echo "$as_me:$LINENO: result: no" >&5 | |
9720 | echo "${ECHO_T}no" >&6 | |
9721 | fi | |
9722 | ||
9723 | ||
9724 | enablestring= | |
9725 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
9726 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
9727 | no_cache=0 | |
9728 | # Check whether --enable-gif or --disable-gif was given. | |
9729 | if test "${enable_gif+set}" = set; then | |
9730 | enableval="$enable_gif" | |
9731 | ||
9732 | if test "$enableval" = yes; then | |
9733 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9734 | else | |
9735 | ac_cv_use_gif='wxUSE_GIF=no' | |
9736 | fi | |
9737 | ||
9738 | else | |
9739 | ||
9740 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
9741 | if test "x$LINE" != x ; then | |
9742 | eval "DEFAULT_$LINE" | |
9743 | else | |
9744 | no_cache=1 | |
9745 | fi | |
9746 | ||
9747 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
9748 | ||
9749 | fi; | |
9750 | ||
9751 | eval "$ac_cv_use_gif" | |
9752 | if test "$no_cache" != 1; then | |
9753 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
9754 | fi | |
9755 | ||
9756 | if test "$wxUSE_GIF" = yes; then | |
9757 | echo "$as_me:$LINENO: result: yes" >&5 | |
9758 | echo "${ECHO_T}yes" >&6 | |
9759 | else | |
9760 | echo "$as_me:$LINENO: result: no" >&5 | |
9761 | echo "${ECHO_T}no" >&6 | |
9762 | fi | |
9763 | ||
9764 | ||
9765 | enablestring= | |
9766 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
9767 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
9768 | no_cache=0 | |
9769 | # Check whether --enable-pcx or --disable-pcx was given. | |
9770 | if test "${enable_pcx+set}" = set; then | |
9771 | enableval="$enable_pcx" | |
9772 | ||
9773 | if test "$enableval" = yes; then | |
9774 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
9775 | else | |
9776 | ac_cv_use_pcx='wxUSE_PCX=no' | |
9777 | fi | |
9778 | ||
9779 | else | |
9780 | ||
9781 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
9782 | if test "x$LINE" != x ; then | |
9783 | eval "DEFAULT_$LINE" | |
9784 | else | |
9785 | no_cache=1 | |
9786 | fi | |
9787 | ||
9788 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
9789 | ||
9790 | fi; | |
9791 | ||
9792 | eval "$ac_cv_use_pcx" | |
9793 | if test "$no_cache" != 1; then | |
9794 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
9795 | fi | |
9796 | ||
9797 | if test "$wxUSE_PCX" = yes; then | |
9798 | echo "$as_me:$LINENO: result: yes" >&5 | |
9799 | echo "${ECHO_T}yes" >&6 | |
9800 | else | |
9801 | echo "$as_me:$LINENO: result: no" >&5 | |
9802 | echo "${ECHO_T}no" >&6 | |
9803 | fi | |
9804 | ||
9805 | ||
9806 | enablestring= | |
9807 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
9808 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
9809 | no_cache=0 | |
9810 | # Check whether --enable-iff or --disable-iff was given. | |
9811 | if test "${enable_iff+set}" = set; then | |
9812 | enableval="$enable_iff" | |
9813 | ||
9814 | if test "$enableval" = yes; then | |
9815 | ac_cv_use_iff='wxUSE_IFF=yes' | |
9816 | else | |
9817 | ac_cv_use_iff='wxUSE_IFF=no' | |
9818 | fi | |
9819 | ||
9820 | else | |
9821 | ||
9822 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
9823 | if test "x$LINE" != x ; then | |
9824 | eval "DEFAULT_$LINE" | |
9825 | else | |
9826 | no_cache=1 | |
9827 | fi | |
9828 | ||
9829 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
9830 | ||
9831 | fi; | |
9832 | ||
9833 | eval "$ac_cv_use_iff" | |
9834 | if test "$no_cache" != 1; then | |
9835 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
9836 | fi | |
9837 | ||
9838 | if test "$wxUSE_IFF" = yes; then | |
9839 | echo "$as_me:$LINENO: result: yes" >&5 | |
9840 | echo "${ECHO_T}yes" >&6 | |
9841 | else | |
9842 | echo "$as_me:$LINENO: result: no" >&5 | |
9843 | echo "${ECHO_T}no" >&6 | |
9844 | fi | |
9845 | ||
9846 | ||
9847 | enablestring= | |
9848 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
9849 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
9850 | no_cache=0 | |
9851 | # Check whether --enable-pnm or --disable-pnm was given. | |
9852 | if test "${enable_pnm+set}" = set; then | |
9853 | enableval="$enable_pnm" | |
9854 | ||
9855 | if test "$enableval" = yes; then | |
9856 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
9857 | else | |
9858 | ac_cv_use_pnm='wxUSE_PNM=no' | |
9859 | fi | |
9860 | ||
9861 | else | |
9862 | ||
9863 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
9864 | if test "x$LINE" != x ; then | |
9865 | eval "DEFAULT_$LINE" | |
9866 | else | |
9867 | no_cache=1 | |
9868 | fi | |
9869 | ||
9870 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
9871 | ||
9872 | fi; | |
9873 | ||
9874 | eval "$ac_cv_use_pnm" | |
9875 | if test "$no_cache" != 1; then | |
9876 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
9877 | fi | |
9878 | ||
9879 | if test "$wxUSE_PNM" = yes; then | |
9880 | echo "$as_me:$LINENO: result: yes" >&5 | |
9881 | echo "${ECHO_T}yes" >&6 | |
9882 | else | |
9883 | echo "$as_me:$LINENO: result: no" >&5 | |
9884 | echo "${ECHO_T}no" >&6 | |
9885 | fi | |
9886 | ||
9887 | ||
9888 | enablestring= | |
9889 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
9890 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
9891 | no_cache=0 | |
9892 | # Check whether --enable-xpm or --disable-xpm was given. | |
9893 | if test "${enable_xpm+set}" = set; then | |
9894 | enableval="$enable_xpm" | |
9895 | ||
9896 | if test "$enableval" = yes; then | |
9897 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
9898 | else | |
9899 | ac_cv_use_xpm='wxUSE_XPM=no' | |
9900 | fi | |
9901 | ||
9902 | else | |
9903 | ||
9904 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
9905 | if test "x$LINE" != x ; then | |
9906 | eval "DEFAULT_$LINE" | |
9907 | else | |
9908 | no_cache=1 | |
9909 | fi | |
9910 | ||
9911 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
9912 | ||
9913 | fi; | |
9914 | ||
9915 | eval "$ac_cv_use_xpm" | |
9916 | if test "$no_cache" != 1; then | |
9917 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
9918 | fi | |
9919 | ||
9920 | if test "$wxUSE_XPM" = yes; then | |
9921 | echo "$as_me:$LINENO: result: yes" >&5 | |
9922 | echo "${ECHO_T}yes" >&6 | |
9923 | else | |
9924 | echo "$as_me:$LINENO: result: no" >&5 | |
9925 | echo "${ECHO_T}no" >&6 | |
9926 | fi | |
9927 | ||
9928 | ||
9929 | enablestring= | |
9930 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
9931 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
9932 | no_cache=0 | |
9933 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
9934 | if test "${enable_ico_cur+set}" = set; then | |
9935 | enableval="$enable_ico_cur" | |
9936 | ||
9937 | if test "$enableval" = yes; then | |
9938 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
9939 | else | |
9940 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
9941 | fi | |
9942 | ||
9943 | else | |
9944 | ||
9945 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
9946 | if test "x$LINE" != x ; then | |
9947 | eval "DEFAULT_$LINE" | |
9948 | else | |
9949 | no_cache=1 | |
9950 | fi | |
9951 | ||
9952 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
9953 | ||
9954 | fi; | |
9955 | ||
9956 | eval "$ac_cv_use_ico_cur" | |
9957 | if test "$no_cache" != 1; then | |
9958 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
9959 | fi | |
9960 | ||
9961 | if test "$wxUSE_ICO_CUR" = yes; then | |
9962 | echo "$as_me:$LINENO: result: yes" >&5 | |
9963 | echo "${ECHO_T}yes" >&6 | |
9964 | else | |
9965 | echo "$as_me:$LINENO: result: no" >&5 | |
9966 | echo "${ECHO_T}no" >&6 | |
9967 | fi | |
9968 | ||
9969 | ||
9970 | fi | |
9971 | ||
9972 | ||
9973 | ||
ceec2216 RL |
9974 | # Check whether --with-flavour or --without-flavour was given. |
9975 | if test "${with_flavour+set}" = set; then | |
9976 | withval="$with_flavour" | |
9977 | WX_FLAVOUR="$withval" | |
9978 | fi; | |
9979 | ||
9980 | ||
9981 | ||
a848cd7e SC |
9982 | enablestring= |
9983 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
9984 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
9985 | no_cache=0 | |
9986 | # Check whether --enable-official_build or --disable-official_build was given. | |
9987 | if test "${enable_official_build+set}" = set; then | |
9988 | enableval="$enable_official_build" | |
9989 | ||
9990 | if test "$enableval" = yes; then | |
9991 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
9992 | else | |
9993 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
9994 | fi | |
9995 | ||
9996 | else | |
9997 | ||
9998 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
9999 | if test "x$LINE" != x ; then | |
10000 | eval "DEFAULT_$LINE" | |
10001 | else | |
10002 | no_cache=1 | |
10003 | fi | |
10004 | ||
10005 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
10006 | ||
10007 | fi; | |
10008 | ||
10009 | eval "$ac_cv_use_official_build" | |
10010 | if test "$no_cache" != 1; then | |
10011 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
10012 | fi | |
10013 | ||
10014 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
10015 | echo "$as_me:$LINENO: result: yes" >&5 | |
10016 | echo "${ECHO_T}yes" >&6 | |
10017 | else | |
10018 | echo "$as_me:$LINENO: result: no" >&5 | |
10019 | echo "${ECHO_T}no" >&6 | |
10020 | fi | |
10021 | ||
10022 | # Check whether --enable-vendor or --disable-vendor was given. | |
10023 | if test "${enable_vendor+set}" = set; then | |
10024 | enableval="$enable_vendor" | |
10025 | VENDOR="$enableval" | |
10026 | fi; | |
10027 | if test "x$VENDOR" = "x"; then | |
10028 | VENDOR="custom" | |
10029 | fi | |
10030 | ||
a848cd7e SC |
10031 | |
10032 | ||
10033 | ||
10034 | echo "saving argument cache $wx_arg_cache_file" | |
10035 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
10036 | ||
10037 | ||
10038 | ||
10039 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
10040 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
10041 | ||
10042 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
10043 | if test "$wxUSE_WINE" = "yes"; then | |
10044 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
10045 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
10046 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
10047 | wxUSE_SHARED=no | |
10048 | fi | |
10049 | ||
10050 | if test "$wxUSE_GUI" = "yes"; then | |
10051 | ||
10052 | if test "$USE_BEOS" = 1; then | |
10053 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
10054 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
10055 | { (exit 1); exit 1; }; } | |
10056 | fi | |
10057 | ||
10058 | if test "$TOOLKIT_GIVEN" = 1; then | |
10059 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10060 | var=wxUSE_$toolkit | |
10061 | eval "value=\$${var}" | |
10062 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
10063 | done | |
10064 | else | |
10065 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10066 | if test "$has_toolkit_in_cache" != 1; then | |
10067 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
10068 | else | |
10069 | var=DEFAULT_wxUSE_$toolkit | |
10070 | fi | |
10071 | eval "wxUSE_$toolkit=\$${var}" | |
10072 | done | |
10073 | fi | |
10074 | ||
10075 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
10076 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
10077 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10078 | ||
10079 | case "${host}" in | |
10080 | *-pc-os2_emx | *-pc-os2-emx ) | |
10081 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
10082 | esac | |
10083 | ||
10084 | case "$NUM_TOOLKITS" in | |
10085 | 1) | |
10086 | ;; | |
10087 | 0) | |
10088 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10089 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10090 | { (exit 1); exit 1; }; } | |
10091 | ;; | |
10092 | *) | |
10093 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10094 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10095 | { (exit 1); exit 1; }; } | |
10096 | esac | |
10097 | ||
10098 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10099 | var=wxUSE_$toolkit | |
10100 | eval "value=\$${var}" | |
10101 | if test "x$value" != x; then | |
10102 | cache_var=CACHE_$toolkit | |
10103 | eval "cache=\$${cache_var}" | |
10104 | if test "$cache" = 1; then | |
10105 | echo "$var=$value" >> ${wx_arg_cache_file} | |
10106 | fi | |
10107 | if test "$value" = 1; then | |
10108 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
10109 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
10110 | echo "${ECHO_T}$toolkit_echo" >&6 | |
10111 | fi | |
10112 | fi | |
10113 | done | |
10114 | else | |
10115 | if test "x$host_alias" != "x"; then | |
10116 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
10117 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10118 | else | |
10119 | echo "$as_me:$LINENO: result: base only" >&5 | |
10120 | echo "${ECHO_T}base only" >&6 | |
10121 | fi | |
10122 | fi | |
10123 | ||
10124 | wants_win32=0 | |
10125 | doesnt_want_win32=0 | |
10126 | case "${host}" in | |
10127 | *-*-cygwin*) | |
10128 | if test "$wxUSE_MSW" = 1 ; then | |
10129 | wants_win32=1 | |
10130 | else | |
10131 | doesnt_want_win32=1 | |
10132 | fi | |
10133 | ;; | |
10134 | *-*-mingw*) | |
10135 | wants_win32=1 | |
10136 | ;; | |
10137 | esac | |
10138 | ||
10139 | if test "$wxUSE_WINE" = "yes"; then | |
10140 | wants_win32=1 | |
10141 | CC=winegcc | |
10142 | CXX=wineg++ | |
10143 | RESCOMP=wrc | |
10144 | LDFLAGS_GUI="-mwindows" | |
10145 | fi | |
10146 | ||
10147 | if test "$wants_win32" = 1 ; then | |
10148 | USE_UNIX=0 | |
10149 | USE_WIN32=1 | |
10150 | cat >>confdefs.h <<\_ACEOF | |
10151 | #define __WIN32__ 1 | |
10152 | _ACEOF | |
10153 | ||
10154 | cat >>confdefs.h <<\_ACEOF | |
10155 | #define __WIN95__ 1 | |
10156 | _ACEOF | |
10157 | ||
10158 | cat >>confdefs.h <<\_ACEOF | |
10159 | #define __WINDOWS__ 1 | |
10160 | _ACEOF | |
10161 | ||
10162 | cat >>confdefs.h <<\_ACEOF | |
10163 | #define __GNUWIN32__ 1 | |
10164 | _ACEOF | |
10165 | ||
10166 | cat >>confdefs.h <<\_ACEOF | |
10167 | #define STRICT 1 | |
10168 | _ACEOF | |
10169 | ||
10170 | cat >>confdefs.h <<\_ACEOF | |
10171 | #define WINVER 0x0400 | |
10172 | _ACEOF | |
10173 | ||
10174 | fi | |
10175 | if test "$doesnt_want_win32" = 1 ; then | |
10176 | USE_UNIX=1 | |
10177 | USE_WIN32=0 | |
10178 | fi | |
10179 | ||
10180 | if test "$USE_UNIX" = 1 ; then | |
10181 | wxUSE_UNIX=yes | |
10182 | cat >>confdefs.h <<\_ACEOF | |
10183 | #define __UNIX__ 1 | |
10184 | _ACEOF | |
10185 | ||
10186 | fi | |
10187 | ||
10188 | ||
10189 | cat >confcache <<\_ACEOF | |
10190 | # This file is a shell script that caches the results of configure | |
10191 | # tests run on this system so they can be shared between configure | |
10192 | # scripts and configure runs, see configure's option --config-cache. | |
10193 | # It is not useful on other systems. If it contains results you don't | |
10194 | # want to keep, you may remove or edit it. | |
10195 | # | |
10196 | # config.status only pays attention to the cache file if you give it | |
10197 | # the --recheck option to rerun configure. | |
10198 | # | |
10199 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10200 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10201 | # following values. | |
10202 | ||
10203 | _ACEOF | |
10204 | ||
10205 | # The following way of writing the cache mishandles newlines in values, | |
10206 | # but we know of no workaround that is simple, portable, and efficient. | |
10207 | # So, don't put newlines in cache variables' values. | |
10208 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10209 | # and sets the high bit in the cache file unless we assign to the vars. | |
10210 | { | |
10211 | (set) 2>&1 | | |
10212 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10213 | *ac_space=\ *) | |
10214 | # `set' does not quote correctly, so add quotes (double-quote | |
10215 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10216 | sed -n \ | |
ac1cb8d3 VS |
10217 | "s/'/'\\\\''/g; |
10218 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
10219 | ;; |
10220 | *) | |
10221 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10222 | sed -n \ | |
ac1cb8d3 | 10223 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
10224 | ;; |
10225 | esac; | |
10226 | } | | |
10227 | sed ' | |
10228 | t clear | |
10229 | : clear | |
10230 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10231 | t end | |
10232 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10233 | : end' >>confcache | |
10234 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10235 | if test -w $cache_file; then | |
10236 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10237 | cat confcache >$cache_file | |
10238 | else | |
10239 | echo "not updating unwritable cache $cache_file" | |
10240 | fi | |
10241 | fi | |
10242 | rm -f confcache | |
10243 | ||
10244 | if test "$build" != "$host" ; then | |
10245 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then | |
10246 | CC=$host_alias-gcc | |
10247 | CXX=$host_alias-c++ | |
10248 | AR=$host_alias-ar | |
10249 | RANLIB=$host_alias-ranlib | |
10250 | DLLTOOL=$host_alias-dlltool | |
10251 | RESCOMP=$host_alias-windres | |
a848cd7e SC |
10252 | STRIP=$host_alias-strip |
10253 | else | |
10254 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 | |
10255 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
10256 | { (exit 1); exit 1; }; } | |
10257 | fi | |
10258 | fi | |
10259 | ||
10260 | CFLAGS=${CFLAGS:=} | |
10261 | ac_ext=c | |
10262 | ac_cpp='$CPP $CPPFLAGS' | |
10263 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10264 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10265 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10266 | if test -n "$ac_tool_prefix"; then | |
10267 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10268 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10269 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10270 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10271 | if test "${ac_cv_prog_CC+set}" = set; then | |
10272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10273 | else | |
10274 | if test -n "$CC"; then | |
10275 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10276 | else | |
10277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10278 | for as_dir in $PATH | |
10279 | do | |
10280 | IFS=$as_save_IFS | |
10281 | test -z "$as_dir" && as_dir=. | |
10282 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10283 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10284 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10285 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10286 | break 2 | |
10287 | fi | |
10288 | done | |
10289 | done | |
10290 | ||
10291 | fi | |
10292 | fi | |
10293 | CC=$ac_cv_prog_CC | |
10294 | if test -n "$CC"; then | |
10295 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10296 | echo "${ECHO_T}$CC" >&6 | |
10297 | else | |
10298 | echo "$as_me:$LINENO: result: no" >&5 | |
10299 | echo "${ECHO_T}no" >&6 | |
10300 | fi | |
10301 | ||
10302 | fi | |
10303 | if test -z "$ac_cv_prog_CC"; then | |
10304 | ac_ct_CC=$CC | |
10305 | # Extract the first word of "gcc", so it can be a program name with args. | |
10306 | set dummy gcc; ac_word=$2 | |
10307 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10308 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10309 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10311 | else | |
10312 | if test -n "$ac_ct_CC"; then | |
10313 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10314 | else | |
10315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10316 | for as_dir in $PATH | |
10317 | do | |
10318 | IFS=$as_save_IFS | |
10319 | test -z "$as_dir" && as_dir=. | |
10320 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10321 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10322 | ac_cv_prog_ac_ct_CC="gcc" | |
10323 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10324 | break 2 | |
10325 | fi | |
10326 | done | |
10327 | done | |
10328 | ||
10329 | fi | |
10330 | fi | |
10331 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10332 | if test -n "$ac_ct_CC"; then | |
10333 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10334 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10335 | else | |
10336 | echo "$as_me:$LINENO: result: no" >&5 | |
10337 | echo "${ECHO_T}no" >&6 | |
10338 | fi | |
10339 | ||
10340 | CC=$ac_ct_CC | |
10341 | else | |
10342 | CC="$ac_cv_prog_CC" | |
10343 | fi | |
10344 | ||
10345 | if test -z "$CC"; then | |
10346 | if test -n "$ac_tool_prefix"; then | |
10347 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10348 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10349 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10350 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10351 | if test "${ac_cv_prog_CC+set}" = set; then | |
10352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10353 | else | |
10354 | if test -n "$CC"; then | |
10355 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10356 | else | |
10357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10358 | for as_dir in $PATH | |
10359 | do | |
10360 | IFS=$as_save_IFS | |
10361 | test -z "$as_dir" && as_dir=. | |
10362 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10363 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10364 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10365 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10366 | break 2 | |
10367 | fi | |
10368 | done | |
10369 | done | |
10370 | ||
10371 | fi | |
10372 | fi | |
10373 | CC=$ac_cv_prog_CC | |
10374 | if test -n "$CC"; then | |
10375 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10376 | echo "${ECHO_T}$CC" >&6 | |
10377 | else | |
10378 | echo "$as_me:$LINENO: result: no" >&5 | |
10379 | echo "${ECHO_T}no" >&6 | |
10380 | fi | |
10381 | ||
10382 | fi | |
10383 | if test -z "$ac_cv_prog_CC"; then | |
10384 | ac_ct_CC=$CC | |
10385 | # Extract the first word of "cc", so it can be a program name with args. | |
10386 | set dummy cc; ac_word=$2 | |
10387 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10388 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10389 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10391 | else | |
10392 | if test -n "$ac_ct_CC"; then | |
10393 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10394 | else | |
10395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10396 | for as_dir in $PATH | |
10397 | do | |
10398 | IFS=$as_save_IFS | |
10399 | test -z "$as_dir" && as_dir=. | |
10400 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10401 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10402 | ac_cv_prog_ac_ct_CC="cc" | |
10403 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10404 | break 2 | |
10405 | fi | |
10406 | done | |
10407 | done | |
10408 | ||
10409 | fi | |
10410 | fi | |
10411 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10412 | if test -n "$ac_ct_CC"; then | |
10413 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10414 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10415 | else | |
10416 | echo "$as_me:$LINENO: result: no" >&5 | |
10417 | echo "${ECHO_T}no" >&6 | |
10418 | fi | |
10419 | ||
10420 | CC=$ac_ct_CC | |
10421 | else | |
10422 | CC="$ac_cv_prog_CC" | |
10423 | fi | |
10424 | ||
10425 | fi | |
10426 | if test -z "$CC"; then | |
10427 | # Extract the first word of "cc", so it can be a program name with args. | |
10428 | set dummy cc; ac_word=$2 | |
10429 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10430 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10431 | if test "${ac_cv_prog_CC+set}" = set; then | |
10432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10433 | else | |
10434 | if test -n "$CC"; then | |
10435 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10436 | else | |
10437 | ac_prog_rejected=no | |
10438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10439 | for as_dir in $PATH | |
10440 | do | |
10441 | IFS=$as_save_IFS | |
10442 | test -z "$as_dir" && as_dir=. | |
10443 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10444 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10445 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10446 | ac_prog_rejected=yes | |
10447 | continue | |
10448 | fi | |
10449 | ac_cv_prog_CC="cc" | |
10450 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10451 | break 2 | |
10452 | fi | |
10453 | done | |
10454 | done | |
10455 | ||
10456 | if test $ac_prog_rejected = yes; then | |
10457 | # We found a bogon in the path, so make sure we never use it. | |
10458 | set dummy $ac_cv_prog_CC | |
10459 | shift | |
10460 | if test $# != 0; then | |
10461 | # We chose a different compiler from the bogus one. | |
10462 | # However, it has the same basename, so the bogon will be chosen | |
10463 | # first if we set CC to just the basename; use the full file name. | |
10464 | shift | |
10465 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
10466 | fi | |
10467 | fi | |
10468 | fi | |
10469 | fi | |
10470 | CC=$ac_cv_prog_CC | |
10471 | if test -n "$CC"; then | |
10472 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10473 | echo "${ECHO_T}$CC" >&6 | |
10474 | else | |
10475 | echo "$as_me:$LINENO: result: no" >&5 | |
10476 | echo "${ECHO_T}no" >&6 | |
10477 | fi | |
10478 | ||
10479 | fi | |
10480 | if test -z "$CC"; then | |
10481 | if test -n "$ac_tool_prefix"; then | |
10482 | for ac_prog in cl | |
10483 | do | |
10484 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10485 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10486 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10487 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10488 | if test "${ac_cv_prog_CC+set}" = set; then | |
10489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10490 | else | |
10491 | if test -n "$CC"; then | |
10492 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10493 | else | |
10494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10495 | for as_dir in $PATH | |
10496 | do | |
10497 | IFS=$as_save_IFS | |
10498 | test -z "$as_dir" && as_dir=. | |
10499 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10500 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10501 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10502 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10503 | break 2 | |
10504 | fi | |
10505 | done | |
10506 | done | |
10507 | ||
10508 | fi | |
10509 | fi | |
10510 | CC=$ac_cv_prog_CC | |
10511 | if test -n "$CC"; then | |
10512 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10513 | echo "${ECHO_T}$CC" >&6 | |
10514 | else | |
10515 | echo "$as_me:$LINENO: result: no" >&5 | |
10516 | echo "${ECHO_T}no" >&6 | |
10517 | fi | |
10518 | ||
10519 | test -n "$CC" && break | |
10520 | done | |
10521 | fi | |
10522 | if test -z "$CC"; then | |
10523 | ac_ct_CC=$CC | |
10524 | for ac_prog in cl | |
10525 | do | |
10526 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10527 | set dummy $ac_prog; ac_word=$2 | |
10528 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10530 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10532 | else | |
10533 | if test -n "$ac_ct_CC"; then | |
10534 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10535 | else | |
10536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10537 | for as_dir in $PATH | |
10538 | do | |
10539 | IFS=$as_save_IFS | |
10540 | test -z "$as_dir" && as_dir=. | |
10541 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10542 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10543 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10544 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10545 | break 2 | |
10546 | fi | |
10547 | done | |
10548 | done | |
10549 | ||
10550 | fi | |
10551 | fi | |
10552 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10553 | if test -n "$ac_ct_CC"; then | |
10554 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10555 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10556 | else | |
10557 | echo "$as_me:$LINENO: result: no" >&5 | |
10558 | echo "${ECHO_T}no" >&6 | |
10559 | fi | |
10560 | ||
10561 | test -n "$ac_ct_CC" && break | |
10562 | done | |
10563 | ||
10564 | CC=$ac_ct_CC | |
10565 | fi | |
10566 | ||
10567 | fi | |
10568 | ||
10569 | ||
10570 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
10571 | See \`config.log' for more details." >&5 | |
10572 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
10573 | See \`config.log' for more details." >&2;} | |
10574 | { (exit 1); exit 1; }; } | |
10575 | ||
10576 | # Provide some information about the compiler. | |
10577 | echo "$as_me:$LINENO:" \ | |
10578 | "checking for C compiler version" >&5 | |
10579 | ac_compiler=`set X $ac_compile; echo $2` | |
10580 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10581 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10582 | ac_status=$? | |
10583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10584 | (exit $ac_status); } | |
10585 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10586 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10587 | ac_status=$? | |
10588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10589 | (exit $ac_status); } | |
10590 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10591 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10592 | ac_status=$? | |
10593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10594 | (exit $ac_status); } | |
10595 | ||
10596 | cat >conftest.$ac_ext <<_ACEOF | |
10597 | /* confdefs.h. */ | |
10598 | _ACEOF | |
10599 | cat confdefs.h >>conftest.$ac_ext | |
10600 | cat >>conftest.$ac_ext <<_ACEOF | |
10601 | /* end confdefs.h. */ | |
10602 | ||
10603 | int | |
10604 | main () | |
10605 | { | |
10606 | ||
10607 | ; | |
10608 | return 0; | |
10609 | } | |
10610 | _ACEOF | |
10611 | ac_clean_files_save=$ac_clean_files | |
10612 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10613 | # Try to create an executable without -o first, disregard a.out. | |
10614 | # It will help us diagnose broken compilers, and finding out an intuition | |
10615 | # of exeext. | |
ac1cb8d3 VS |
10616 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
10617 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
10618 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
10619 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10620 | (eval $ac_link_default) 2>&5 | |
10621 | ac_status=$? | |
10622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10623 | (exit $ac_status); }; then | |
10624 | # Find the output, starting from the most likely. This scheme is | |
10625 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10626 | # resort. | |
10627 | ||
10628 | # Be careful to initialize this variable, since it used to be cached. | |
10629 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10630 | ac_cv_exeext= | |
10631 | # b.out is created by i960 compilers. | |
10632 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10633 | do | |
10634 | test -f "$ac_file" || continue | |
10635 | case $ac_file in | |
10636 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 10637 | ;; |
a848cd7e | 10638 | conftest.$ac_ext ) |
ac1cb8d3 VS |
10639 | # This is the source file. |
10640 | ;; | |
a848cd7e | 10641 | [ab].out ) |
ac1cb8d3 VS |
10642 | # We found the default executable, but exeext='' is most |
10643 | # certainly right. | |
10644 | break;; | |
a848cd7e | 10645 | *.* ) |
ac1cb8d3 VS |
10646 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
10647 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10648 | # but it would be cool to find out if it's true. Does anybody | |
10649 | # maintain Libtool? --akim. | |
10650 | export ac_cv_exeext | |
10651 | break;; | |
a848cd7e | 10652 | * ) |
ac1cb8d3 | 10653 | break;; |
a848cd7e SC |
10654 | esac |
10655 | done | |
10656 | else | |
10657 | echo "$as_me: failed program was:" >&5 | |
10658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10659 | ||
10660 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10661 | See \`config.log' for more details." >&5 | |
10662 | echo "$as_me: error: C compiler cannot create executables | |
10663 | See \`config.log' for more details." >&2;} | |
10664 | { (exit 77); exit 77; }; } | |
10665 | fi | |
10666 | ||
10667 | ac_exeext=$ac_cv_exeext | |
10668 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10669 | echo "${ECHO_T}$ac_file" >&6 | |
10670 | ||
10671 | # Check the compiler produces executables we can run. If not, either | |
10672 | # the compiler is broken, or we cross compile. | |
10673 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10674 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10675 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10676 | # If not cross compiling, check that we can run a simple program. | |
10677 | if test "$cross_compiling" != yes; then | |
10678 | if { ac_try='./$ac_file' | |
10679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10680 | (eval $ac_try) 2>&5 | |
10681 | ac_status=$? | |
10682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10683 | (exit $ac_status); }; }; then | |
10684 | cross_compiling=no | |
10685 | else | |
10686 | if test "$cross_compiling" = maybe; then | |
10687 | cross_compiling=yes | |
10688 | else | |
10689 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10690 | If you meant to cross compile, use \`--host'. | |
10691 | See \`config.log' for more details." >&5 | |
10692 | echo "$as_me: error: cannot run C compiled programs. | |
10693 | If you meant to cross compile, use \`--host'. | |
10694 | See \`config.log' for more details." >&2;} | |
10695 | { (exit 1); exit 1; }; } | |
10696 | fi | |
10697 | fi | |
10698 | fi | |
10699 | echo "$as_me:$LINENO: result: yes" >&5 | |
10700 | echo "${ECHO_T}yes" >&6 | |
10701 | ||
10702 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10703 | ac_clean_files=$ac_clean_files_save | |
10704 | # Check the compiler produces executables we can run. If not, either | |
10705 | # the compiler is broken, or we cross compile. | |
10706 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10707 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10708 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10709 | echo "${ECHO_T}$cross_compiling" >&6 | |
10710 | ||
10711 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10712 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10713 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10714 | (eval $ac_link) 2>&5 | |
10715 | ac_status=$? | |
10716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10717 | (exit $ac_status); }; then | |
10718 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10719 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10720 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10721 | # `rm'. | |
10722 | for ac_file in conftest.exe conftest conftest.*; do | |
10723 | test -f "$ac_file" || continue | |
10724 | case $ac_file in | |
10725 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10726 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
10727 | export ac_cv_exeext |
10728 | break;; | |
a848cd7e SC |
10729 | * ) break;; |
10730 | esac | |
10731 | done | |
10732 | else | |
10733 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
10734 | See \`config.log' for more details." >&5 | |
10735 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10736 | See \`config.log' for more details." >&2;} | |
10737 | { (exit 1); exit 1; }; } | |
10738 | fi | |
10739 | ||
10740 | rm -f conftest$ac_cv_exeext | |
10741 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
10742 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
10743 | ||
10744 | rm -f conftest.$ac_ext | |
10745 | EXEEXT=$ac_cv_exeext | |
10746 | ac_exeext=$EXEEXT | |
10747 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
10748 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
10749 | if test "${ac_cv_objext+set}" = set; then | |
10750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10751 | else | |
10752 | cat >conftest.$ac_ext <<_ACEOF | |
10753 | /* confdefs.h. */ | |
10754 | _ACEOF | |
10755 | cat confdefs.h >>conftest.$ac_ext | |
10756 | cat >>conftest.$ac_ext <<_ACEOF | |
10757 | /* end confdefs.h. */ | |
10758 | ||
10759 | int | |
10760 | main () | |
10761 | { | |
10762 | ||
10763 | ; | |
10764 | return 0; | |
10765 | } | |
10766 | _ACEOF | |
10767 | rm -f conftest.o conftest.obj | |
10768 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10769 | (eval $ac_compile) 2>&5 | |
10770 | ac_status=$? | |
10771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10772 | (exit $ac_status); }; then | |
10773 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
10774 | case $ac_file in | |
10775 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
10776 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
10777 | break;; | |
10778 | esac | |
10779 | done | |
10780 | else | |
10781 | echo "$as_me: failed program was:" >&5 | |
10782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10783 | ||
10784 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
10785 | See \`config.log' for more details." >&5 | |
10786 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
10787 | See \`config.log' for more details." >&2;} | |
10788 | { (exit 1); exit 1; }; } | |
10789 | fi | |
10790 | ||
10791 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
10792 | fi | |
10793 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
10794 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
10795 | OBJEXT=$ac_cv_objext | |
10796 | ac_objext=$OBJEXT | |
10797 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
10798 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
10799 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
10800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10801 | else | |
10802 | cat >conftest.$ac_ext <<_ACEOF | |
10803 | /* confdefs.h. */ | |
10804 | _ACEOF | |
10805 | cat confdefs.h >>conftest.$ac_ext | |
10806 | cat >>conftest.$ac_ext <<_ACEOF | |
10807 | /* end confdefs.h. */ | |
10808 | ||
10809 | int | |
10810 | main () | |
10811 | { | |
10812 | #ifndef __GNUC__ | |
10813 | choke me | |
10814 | #endif | |
10815 | ||
10816 | ; | |
10817 | return 0; | |
10818 | } | |
10819 | _ACEOF | |
10820 | rm -f conftest.$ac_objext | |
10821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 10822 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 10823 | ac_status=$? |
ac1cb8d3 VS |
10824 | grep -v '^ *+' conftest.er1 >conftest.err |
10825 | rm -f conftest.er1 | |
10826 | cat conftest.err >&5 | |
a848cd7e SC |
10827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10828 | (exit $ac_status); } && | |
c228d3a4 RN |
10829 | { ac_try='test -z "$ac_c_werror_flag" |
10830 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
10831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10832 | (eval $ac_try) 2>&5 | |
10833 | ac_status=$? | |
10834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10835 | (exit $ac_status); }; } && | |
10836 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
10837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10838 | (eval $ac_try) 2>&5 | |
10839 | ac_status=$? | |
10840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10841 | (exit $ac_status); }; }; then | |
10842 | ac_compiler_gnu=yes | |
10843 | else | |
10844 | echo "$as_me: failed program was:" >&5 | |
10845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10846 | ||
10847 | ac_compiler_gnu=no | |
10848 | fi | |
ac1cb8d3 | 10849 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
10850 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
10851 | ||
10852 | fi | |
10853 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
10854 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
10855 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
10856 | ac_test_CFLAGS=${CFLAGS+set} | |
10857 | ac_save_CFLAGS=$CFLAGS | |
10858 | CFLAGS="-g" | |
10859 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
10860 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
10861 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
10862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10863 | else | |
10864 | cat >conftest.$ac_ext <<_ACEOF | |
10865 | /* confdefs.h. */ | |
10866 | _ACEOF | |
10867 | cat confdefs.h >>conftest.$ac_ext | |
10868 | cat >>conftest.$ac_ext <<_ACEOF | |
10869 | /* end confdefs.h. */ | |
10870 | ||
10871 | int | |
10872 | main () | |
10873 | { | |
10874 | ||
10875 | ; | |
10876 | return 0; | |
10877 | } | |
10878 | _ACEOF | |
10879 | rm -f conftest.$ac_objext | |
10880 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 10881 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 10882 | ac_status=$? |
ac1cb8d3 VS |
10883 | grep -v '^ *+' conftest.er1 >conftest.err |
10884 | rm -f conftest.er1 | |
10885 | cat conftest.err >&5 | |
a848cd7e SC |
10886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10887 | (exit $ac_status); } && | |
c228d3a4 RN |
10888 | { ac_try='test -z "$ac_c_werror_flag" |
10889 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
10890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10891 | (eval $ac_try) 2>&5 | |
10892 | ac_status=$? | |
10893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10894 | (exit $ac_status); }; } && | |
10895 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
10896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10897 | (eval $ac_try) 2>&5 | |
10898 | ac_status=$? | |
10899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10900 | (exit $ac_status); }; }; then | |
10901 | ac_cv_prog_cc_g=yes | |
10902 | else | |
10903 | echo "$as_me: failed program was:" >&5 | |
10904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10905 | ||
10906 | ac_cv_prog_cc_g=no | |
10907 | fi | |
ac1cb8d3 | 10908 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
10909 | fi |
10910 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
10911 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
10912 | if test "$ac_test_CFLAGS" = set; then | |
10913 | CFLAGS=$ac_save_CFLAGS | |
10914 | elif test $ac_cv_prog_cc_g = yes; then | |
10915 | if test "$GCC" = yes; then | |
10916 | CFLAGS="-g -O2" | |
10917 | else | |
10918 | CFLAGS="-g" | |
10919 | fi | |
10920 | else | |
10921 | if test "$GCC" = yes; then | |
10922 | CFLAGS="-O2" | |
10923 | else | |
10924 | CFLAGS= | |
10925 | fi | |
10926 | fi | |
10927 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
10928 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
10929 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
10930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10931 | else | |
10932 | ac_cv_prog_cc_stdc=no | |
10933 | ac_save_CC=$CC | |
10934 | cat >conftest.$ac_ext <<_ACEOF | |
10935 | /* confdefs.h. */ | |
10936 | _ACEOF | |
10937 | cat confdefs.h >>conftest.$ac_ext | |
10938 | cat >>conftest.$ac_ext <<_ACEOF | |
10939 | /* end confdefs.h. */ | |
10940 | #include <stdarg.h> | |
10941 | #include <stdio.h> | |
10942 | #include <sys/types.h> | |
10943 | #include <sys/stat.h> | |
10944 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
10945 | struct buf { int x; }; | |
10946 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
10947 | static char *e (p, i) | |
10948 | char **p; | |
10949 | int i; | |
10950 | { | |
10951 | return p[i]; | |
10952 | } | |
10953 | static char *f (char * (*g) (char **, int), char **p, ...) | |
10954 | { | |
10955 | char *s; | |
10956 | va_list v; | |
10957 | va_start (v,p); | |
10958 | s = g (p, va_arg (v,int)); | |
10959 | va_end (v); | |
10960 | return s; | |
10961 | } | |
ac1cb8d3 VS |
10962 | |
10963 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
10964 | function prototypes and stuff, but not '\xHH' hex character constants. | |
10965 | These don't provoke an error unfortunately, instead are silently treated | |
10966 | as 'x'. The following induces an error, until -std1 is added to get | |
10967 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
10968 | array size at least. It's necessary to write '\x00'==0 to get something | |
10969 | that's true only with -std1. */ | |
10970 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
10971 | ||
a848cd7e SC |
10972 | int test (int i, double x); |
10973 | struct s1 {int (*f) (int a);}; | |
10974 | struct s2 {int (*f) (double a);}; | |
10975 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
10976 | int argc; | |
10977 | char **argv; | |
10978 | int | |
10979 | main () | |
10980 | { | |
10981 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
10982 | ; | |
10983 | return 0; | |
10984 | } | |
10985 | _ACEOF | |
10986 | # Don't try gcc -ansi; that turns off useful extensions and | |
10987 | # breaks some systems' header files. | |
10988 | # AIX -qlanglvl=ansi | |
10989 | # Ultrix and OSF/1 -std1 | |
10990 | # HP-UX 10.20 and later -Ae | |
10991 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
10992 | # SVR4 -Xc -D__EXTENSIONS__ | |
10993 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
10994 | do | |
10995 | CC="$ac_save_CC $ac_arg" | |
10996 | rm -f conftest.$ac_objext | |
10997 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 10998 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 10999 | ac_status=$? |
ac1cb8d3 VS |
11000 | grep -v '^ *+' conftest.er1 >conftest.err |
11001 | rm -f conftest.er1 | |
11002 | cat conftest.err >&5 | |
a848cd7e SC |
11003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11004 | (exit $ac_status); } && | |
c228d3a4 RN |
11005 | { ac_try='test -z "$ac_c_werror_flag" |
11006 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11008 | (eval $ac_try) 2>&5 | |
11009 | ac_status=$? | |
11010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11011 | (exit $ac_status); }; } && | |
11012 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11014 | (eval $ac_try) 2>&5 | |
11015 | ac_status=$? | |
11016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11017 | (exit $ac_status); }; }; then | |
11018 | ac_cv_prog_cc_stdc=$ac_arg | |
11019 | break | |
11020 | else | |
11021 | echo "$as_me: failed program was:" >&5 | |
11022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11023 | ||
11024 | fi | |
ac1cb8d3 | 11025 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
11026 | done |
11027 | rm -f conftest.$ac_ext conftest.$ac_objext | |
11028 | CC=$ac_save_CC | |
11029 | ||
11030 | fi | |
11031 | ||
11032 | case "x$ac_cv_prog_cc_stdc" in | |
11033 | x|xno) | |
11034 | echo "$as_me:$LINENO: result: none needed" >&5 | |
11035 | echo "${ECHO_T}none needed" >&6 ;; | |
11036 | *) | |
11037 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
11038 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
11039 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
11040 | esac | |
11041 | ||
11042 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
11043 | # in C++ we need to declare it. In case someone uses the same compiler | |
11044 | # for both compiling C and C++ we need to have the C++ compiler decide | |
11045 | # the declaration of exit, since it's the most demanding environment. | |
11046 | cat >conftest.$ac_ext <<_ACEOF | |
11047 | #ifndef __cplusplus | |
11048 | choke me | |
11049 | #endif | |
11050 | _ACEOF | |
11051 | rm -f conftest.$ac_objext | |
11052 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11053 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11054 | ac_status=$? |
ac1cb8d3 VS |
11055 | grep -v '^ *+' conftest.er1 >conftest.err |
11056 | rm -f conftest.er1 | |
11057 | cat conftest.err >&5 | |
a848cd7e SC |
11058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11059 | (exit $ac_status); } && | |
c228d3a4 RN |
11060 | { ac_try='test -z "$ac_c_werror_flag" |
11061 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11063 | (eval $ac_try) 2>&5 | |
11064 | ac_status=$? | |
11065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11066 | (exit $ac_status); }; } && | |
11067 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11069 | (eval $ac_try) 2>&5 | |
11070 | ac_status=$? | |
11071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11072 | (exit $ac_status); }; }; then | |
11073 | for ac_declaration in \ | |
ac1cb8d3 | 11074 | '' \ |
a848cd7e SC |
11075 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11076 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11077 | 'extern "C" void exit (int) throw ();' \ | |
11078 | 'extern "C" void exit (int);' \ | |
11079 | 'void exit (int);' | |
11080 | do | |
11081 | cat >conftest.$ac_ext <<_ACEOF | |
11082 | /* confdefs.h. */ | |
11083 | _ACEOF | |
11084 | cat confdefs.h >>conftest.$ac_ext | |
11085 | cat >>conftest.$ac_ext <<_ACEOF | |
11086 | /* end confdefs.h. */ | |
de59c161 | 11087 | $ac_declaration |
ac1cb8d3 | 11088 | #include <stdlib.h> |
a848cd7e SC |
11089 | int |
11090 | main () | |
11091 | { | |
11092 | exit (42); | |
11093 | ; | |
11094 | return 0; | |
11095 | } | |
11096 | _ACEOF | |
11097 | rm -f conftest.$ac_objext | |
11098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11099 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11100 | ac_status=$? |
ac1cb8d3 VS |
11101 | grep -v '^ *+' conftest.er1 >conftest.err |
11102 | rm -f conftest.er1 | |
11103 | cat conftest.err >&5 | |
a848cd7e SC |
11104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11105 | (exit $ac_status); } && | |
c228d3a4 RN |
11106 | { ac_try='test -z "$ac_c_werror_flag" |
11107 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11109 | (eval $ac_try) 2>&5 | |
11110 | ac_status=$? | |
11111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11112 | (exit $ac_status); }; } && | |
11113 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11115 | (eval $ac_try) 2>&5 | |
11116 | ac_status=$? | |
11117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11118 | (exit $ac_status); }; }; then | |
11119 | : | |
11120 | else | |
11121 | echo "$as_me: failed program was:" >&5 | |
11122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11123 | ||
11124 | continue | |
11125 | fi | |
ac1cb8d3 | 11126 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11127 | cat >conftest.$ac_ext <<_ACEOF |
11128 | /* confdefs.h. */ | |
11129 | _ACEOF | |
11130 | cat confdefs.h >>conftest.$ac_ext | |
11131 | cat >>conftest.$ac_ext <<_ACEOF | |
11132 | /* end confdefs.h. */ | |
11133 | $ac_declaration | |
11134 | int | |
11135 | main () | |
11136 | { | |
11137 | exit (42); | |
11138 | ; | |
11139 | return 0; | |
11140 | } | |
11141 | _ACEOF | |
11142 | rm -f conftest.$ac_objext | |
11143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11144 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11145 | ac_status=$? |
ac1cb8d3 VS |
11146 | grep -v '^ *+' conftest.er1 >conftest.err |
11147 | rm -f conftest.er1 | |
11148 | cat conftest.err >&5 | |
a848cd7e SC |
11149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11150 | (exit $ac_status); } && | |
c228d3a4 RN |
11151 | { ac_try='test -z "$ac_c_werror_flag" |
11152 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11154 | (eval $ac_try) 2>&5 | |
11155 | ac_status=$? | |
11156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11157 | (exit $ac_status); }; } && | |
11158 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11160 | (eval $ac_try) 2>&5 | |
11161 | ac_status=$? | |
11162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11163 | (exit $ac_status); }; }; then | |
11164 | break | |
11165 | else | |
11166 | echo "$as_me: failed program was:" >&5 | |
11167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11168 | ||
11169 | fi | |
ac1cb8d3 | 11170 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11171 | done |
11172 | rm -f conftest* | |
11173 | if test -n "$ac_declaration"; then | |
11174 | echo '#ifdef __cplusplus' >>confdefs.h | |
11175 | echo $ac_declaration >>confdefs.h | |
11176 | echo '#endif' >>confdefs.h | |
11177 | fi | |
11178 | ||
11179 | else | |
11180 | echo "$as_me: failed program was:" >&5 | |
11181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11182 | ||
11183 | fi | |
ac1cb8d3 | 11184 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11185 | ac_ext=c |
11186 | ac_cpp='$CPP $CPPFLAGS' | |
11187 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11188 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11189 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11190 | ||
11191 | ||
11192 | ||
11193 | ac_ext=c | |
11194 | ac_cpp='$CPP $CPPFLAGS' | |
11195 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11196 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11197 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11198 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
11199 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
11200 | # On Suns, sometimes $CPP names a directory. | |
11201 | if test -n "$CPP" && test -d "$CPP"; then | |
11202 | CPP= | |
11203 | fi | |
11204 | if test -z "$CPP"; then | |
11205 | if test "${ac_cv_prog_CPP+set}" = set; then | |
11206 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11207 | else | |
11208 | # Double quotes because CPP needs to be expanded | |
11209 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
11210 | do | |
11211 | ac_preproc_ok=false | |
11212 | for ac_c_preproc_warn_flag in '' yes | |
11213 | do | |
11214 | # Use a header file that comes with gcc, so configuring glibc | |
11215 | # with a fresh cross-compiler works. | |
11216 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11217 | # <limits.h> exists even on freestanding compilers. | |
11218 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11219 | # not just through cpp. "Syntax error" is here to catch this case. | |
11220 | cat >conftest.$ac_ext <<_ACEOF | |
11221 | /* confdefs.h. */ | |
11222 | _ACEOF | |
11223 | cat confdefs.h >>conftest.$ac_ext | |
11224 | cat >>conftest.$ac_ext <<_ACEOF | |
11225 | /* end confdefs.h. */ | |
11226 | #ifdef __STDC__ | |
11227 | # include <limits.h> | |
11228 | #else | |
11229 | # include <assert.h> | |
11230 | #endif | |
ac1cb8d3 | 11231 | Syntax error |
a848cd7e SC |
11232 | _ACEOF |
11233 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11234 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11235 | ac_status=$? | |
11236 | grep -v '^ *+' conftest.er1 >conftest.err | |
11237 | rm -f conftest.er1 | |
11238 | cat conftest.err >&5 | |
11239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11240 | (exit $ac_status); } >/dev/null; then | |
11241 | if test -s conftest.err; then | |
11242 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11243 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11244 | else |
11245 | ac_cpp_err= | |
11246 | fi | |
11247 | else | |
11248 | ac_cpp_err=yes | |
11249 | fi | |
11250 | if test -z "$ac_cpp_err"; then | |
11251 | : | |
11252 | else | |
11253 | echo "$as_me: failed program was:" >&5 | |
11254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11255 | ||
11256 | # Broken: fails on valid input. | |
11257 | continue | |
11258 | fi | |
11259 | rm -f conftest.err conftest.$ac_ext | |
11260 | ||
11261 | # OK, works on sane cases. Now check whether non-existent headers | |
11262 | # can be detected and how. | |
11263 | cat >conftest.$ac_ext <<_ACEOF | |
11264 | /* confdefs.h. */ | |
11265 | _ACEOF | |
11266 | cat confdefs.h >>conftest.$ac_ext | |
11267 | cat >>conftest.$ac_ext <<_ACEOF | |
11268 | /* end confdefs.h. */ | |
11269 | #include <ac_nonexistent.h> | |
11270 | _ACEOF | |
11271 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11272 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11273 | ac_status=$? | |
11274 | grep -v '^ *+' conftest.er1 >conftest.err | |
11275 | rm -f conftest.er1 | |
11276 | cat conftest.err >&5 | |
11277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11278 | (exit $ac_status); } >/dev/null; then | |
11279 | if test -s conftest.err; then | |
11280 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11281 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11282 | else |
11283 | ac_cpp_err= | |
11284 | fi | |
11285 | else | |
11286 | ac_cpp_err=yes | |
11287 | fi | |
11288 | if test -z "$ac_cpp_err"; then | |
11289 | # Broken: success on invalid input. | |
11290 | continue | |
11291 | else | |
11292 | echo "$as_me: failed program was:" >&5 | |
11293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11294 | ||
11295 | # Passes both tests. | |
11296 | ac_preproc_ok=: | |
11297 | break | |
11298 | fi | |
11299 | rm -f conftest.err conftest.$ac_ext | |
11300 | ||
11301 | done | |
11302 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11303 | rm -f conftest.err conftest.$ac_ext | |
11304 | if $ac_preproc_ok; then | |
11305 | break | |
11306 | fi | |
11307 | ||
11308 | done | |
11309 | ac_cv_prog_CPP=$CPP | |
11310 | ||
11311 | fi | |
11312 | CPP=$ac_cv_prog_CPP | |
11313 | else | |
11314 | ac_cv_prog_CPP=$CPP | |
11315 | fi | |
11316 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
11317 | echo "${ECHO_T}$CPP" >&6 | |
11318 | ac_preproc_ok=false | |
11319 | for ac_c_preproc_warn_flag in '' yes | |
11320 | do | |
11321 | # Use a header file that comes with gcc, so configuring glibc | |
11322 | # with a fresh cross-compiler works. | |
11323 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11324 | # <limits.h> exists even on freestanding compilers. | |
11325 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11326 | # not just through cpp. "Syntax error" is here to catch this case. | |
11327 | cat >conftest.$ac_ext <<_ACEOF | |
11328 | /* confdefs.h. */ | |
11329 | _ACEOF | |
11330 | cat confdefs.h >>conftest.$ac_ext | |
11331 | cat >>conftest.$ac_ext <<_ACEOF | |
11332 | /* end confdefs.h. */ | |
11333 | #ifdef __STDC__ | |
11334 | # include <limits.h> | |
11335 | #else | |
11336 | # include <assert.h> | |
11337 | #endif | |
ac1cb8d3 | 11338 | Syntax error |
a848cd7e SC |
11339 | _ACEOF |
11340 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11341 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11342 | ac_status=$? | |
11343 | grep -v '^ *+' conftest.er1 >conftest.err | |
11344 | rm -f conftest.er1 | |
11345 | cat conftest.err >&5 | |
11346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11347 | (exit $ac_status); } >/dev/null; then | |
11348 | if test -s conftest.err; then | |
11349 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11350 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11351 | else |
11352 | ac_cpp_err= | |
11353 | fi | |
11354 | else | |
11355 | ac_cpp_err=yes | |
11356 | fi | |
11357 | if test -z "$ac_cpp_err"; then | |
11358 | : | |
11359 | else | |
11360 | echo "$as_me: failed program was:" >&5 | |
11361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11362 | ||
11363 | # Broken: fails on valid input. | |
11364 | continue | |
11365 | fi | |
11366 | rm -f conftest.err conftest.$ac_ext | |
11367 | ||
11368 | # OK, works on sane cases. Now check whether non-existent headers | |
11369 | # can be detected and how. | |
11370 | cat >conftest.$ac_ext <<_ACEOF | |
11371 | /* confdefs.h. */ | |
11372 | _ACEOF | |
11373 | cat confdefs.h >>conftest.$ac_ext | |
11374 | cat >>conftest.$ac_ext <<_ACEOF | |
11375 | /* end confdefs.h. */ | |
11376 | #include <ac_nonexistent.h> | |
11377 | _ACEOF | |
11378 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11379 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11380 | ac_status=$? | |
11381 | grep -v '^ *+' conftest.er1 >conftest.err | |
11382 | rm -f conftest.er1 | |
11383 | cat conftest.err >&5 | |
11384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11385 | (exit $ac_status); } >/dev/null; then | |
11386 | if test -s conftest.err; then | |
11387 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11388 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11389 | else |
11390 | ac_cpp_err= | |
11391 | fi | |
11392 | else | |
11393 | ac_cpp_err=yes | |
11394 | fi | |
11395 | if test -z "$ac_cpp_err"; then | |
11396 | # Broken: success on invalid input. | |
11397 | continue | |
11398 | else | |
11399 | echo "$as_me: failed program was:" >&5 | |
11400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11401 | ||
11402 | # Passes both tests. | |
11403 | ac_preproc_ok=: | |
11404 | break | |
11405 | fi | |
11406 | rm -f conftest.err conftest.$ac_ext | |
11407 | ||
11408 | done | |
11409 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11410 | rm -f conftest.err conftest.$ac_ext | |
11411 | if $ac_preproc_ok; then | |
11412 | : | |
11413 | else | |
11414 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
11415 | See \`config.log' for more details." >&5 | |
11416 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
11417 | See \`config.log' for more details." >&2;} | |
11418 | { (exit 1); exit 1; }; } | |
11419 | fi | |
11420 | ||
11421 | ac_ext=c | |
11422 | ac_cpp='$CPP $CPPFLAGS' | |
11423 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11424 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11425 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11426 | ||
11427 | ||
11428 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
11429 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
11430 | if test "${ac_cv_prog_egrep+set}" = set; then | |
11431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11432 | else | |
11433 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
11434 | then ac_cv_prog_egrep='grep -E' | |
11435 | else ac_cv_prog_egrep='egrep' | |
11436 | fi | |
11437 | fi | |
11438 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
11439 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
11440 | EGREP=$ac_cv_prog_egrep | |
11441 | ||
11442 | ||
11443 | if test $ac_cv_c_compiler_gnu = yes; then | |
11444 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
11445 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
11446 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
11447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11448 | else | |
11449 | ac_pattern="Autoconf.*'x'" | |
11450 | cat >conftest.$ac_ext <<_ACEOF | |
11451 | /* confdefs.h. */ | |
11452 | _ACEOF | |
11453 | cat confdefs.h >>conftest.$ac_ext | |
11454 | cat >>conftest.$ac_ext <<_ACEOF | |
11455 | /* end confdefs.h. */ | |
11456 | #include <sgtty.h> | |
11457 | Autoconf TIOCGETP | |
11458 | _ACEOF | |
11459 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11460 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11461 | ac_cv_prog_gcc_traditional=yes | |
11462 | else | |
11463 | ac_cv_prog_gcc_traditional=no | |
11464 | fi | |
11465 | rm -f conftest* | |
11466 | ||
11467 | ||
11468 | if test $ac_cv_prog_gcc_traditional = no; then | |
11469 | cat >conftest.$ac_ext <<_ACEOF | |
11470 | /* confdefs.h. */ | |
11471 | _ACEOF | |
11472 | cat confdefs.h >>conftest.$ac_ext | |
11473 | cat >>conftest.$ac_ext <<_ACEOF | |
11474 | /* end confdefs.h. */ | |
11475 | #include <termio.h> | |
11476 | Autoconf TCGETA | |
11477 | _ACEOF | |
11478 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11479 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11480 | ac_cv_prog_gcc_traditional=yes | |
11481 | fi | |
11482 | rm -f conftest* | |
11483 | ||
11484 | fi | |
11485 | fi | |
11486 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
11487 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
11488 | if test $ac_cv_prog_gcc_traditional = yes; then | |
11489 | CC="$CC -traditional" | |
11490 | fi | |
11491 | fi | |
11492 | ||
11493 | ||
11494 | ||
11495 | ||
11496 | ac_ext=cc | |
11497 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11498 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11499 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11500 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11501 | ||
11502 | ||
11503 | CXXFLAGS=${CXXFLAGS:=} | |
11504 | ac_ext=cc | |
11505 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11506 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11507 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11508 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11509 | if test -n "$ac_tool_prefix"; then | |
11510 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11511 | do | |
11512 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11513 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11514 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11515 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11516 | if test "${ac_cv_prog_CXX+set}" = set; then | |
11517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11518 | else | |
11519 | if test -n "$CXX"; then | |
11520 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
11521 | else | |
11522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11523 | for as_dir in $PATH | |
11524 | do | |
11525 | IFS=$as_save_IFS | |
11526 | test -z "$as_dir" && as_dir=. | |
11527 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11528 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11529 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
11530 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11531 | break 2 | |
11532 | fi | |
11533 | done | |
11534 | done | |
11535 | ||
11536 | fi | |
11537 | fi | |
11538 | CXX=$ac_cv_prog_CXX | |
11539 | if test -n "$CXX"; then | |
11540 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
11541 | echo "${ECHO_T}$CXX" >&6 | |
11542 | else | |
11543 | echo "$as_me:$LINENO: result: no" >&5 | |
11544 | echo "${ECHO_T}no" >&6 | |
11545 | fi | |
11546 | ||
11547 | test -n "$CXX" && break | |
11548 | done | |
11549 | fi | |
11550 | if test -z "$CXX"; then | |
11551 | ac_ct_CXX=$CXX | |
11552 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11553 | do | |
11554 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11555 | set dummy $ac_prog; ac_word=$2 | |
11556 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11557 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11558 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
11559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11560 | else | |
11561 | if test -n "$ac_ct_CXX"; then | |
11562 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
11563 | else | |
11564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11565 | for as_dir in $PATH | |
11566 | do | |
11567 | IFS=$as_save_IFS | |
11568 | test -z "$as_dir" && as_dir=. | |
11569 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11570 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11571 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
11572 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11573 | break 2 | |
11574 | fi | |
11575 | done | |
11576 | done | |
11577 | ||
11578 | fi | |
11579 | fi | |
11580 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
11581 | if test -n "$ac_ct_CXX"; then | |
11582 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
11583 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
11584 | else | |
11585 | echo "$as_me:$LINENO: result: no" >&5 | |
11586 | echo "${ECHO_T}no" >&6 | |
11587 | fi | |
11588 | ||
11589 | test -n "$ac_ct_CXX" && break | |
11590 | done | |
11591 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
11592 | ||
11593 | CXX=$ac_ct_CXX | |
11594 | fi | |
11595 | ||
11596 | ||
11597 | # Provide some information about the compiler. | |
11598 | echo "$as_me:$LINENO:" \ | |
11599 | "checking for C++ compiler version" >&5 | |
11600 | ac_compiler=`set X $ac_compile; echo $2` | |
11601 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11602 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11603 | ac_status=$? | |
11604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11605 | (exit $ac_status); } | |
11606 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11607 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11608 | ac_status=$? | |
11609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11610 | (exit $ac_status); } | |
11611 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11612 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11613 | ac_status=$? | |
11614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11615 | (exit $ac_status); } | |
11616 | ||
11617 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
11618 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
11619 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
11620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11621 | else | |
11622 | cat >conftest.$ac_ext <<_ACEOF | |
11623 | /* confdefs.h. */ | |
11624 | _ACEOF | |
11625 | cat confdefs.h >>conftest.$ac_ext | |
11626 | cat >>conftest.$ac_ext <<_ACEOF | |
11627 | /* end confdefs.h. */ | |
11628 | ||
11629 | int | |
11630 | main () | |
11631 | { | |
11632 | #ifndef __GNUC__ | |
11633 | choke me | |
11634 | #endif | |
11635 | ||
11636 | ; | |
11637 | return 0; | |
11638 | } | |
11639 | _ACEOF | |
11640 | rm -f conftest.$ac_objext | |
11641 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11642 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11643 | ac_status=$? |
ac1cb8d3 VS |
11644 | grep -v '^ *+' conftest.er1 >conftest.err |
11645 | rm -f conftest.er1 | |
11646 | cat conftest.err >&5 | |
a848cd7e SC |
11647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11648 | (exit $ac_status); } && | |
c228d3a4 RN |
11649 | { ac_try='test -z "$ac_cxx_werror_flag" |
11650 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11652 | (eval $ac_try) 2>&5 | |
11653 | ac_status=$? | |
11654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11655 | (exit $ac_status); }; } && | |
11656 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11658 | (eval $ac_try) 2>&5 | |
11659 | ac_status=$? | |
11660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11661 | (exit $ac_status); }; }; then | |
11662 | ac_compiler_gnu=yes | |
11663 | else | |
11664 | echo "$as_me: failed program was:" >&5 | |
11665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11666 | ||
11667 | ac_compiler_gnu=no | |
11668 | fi | |
ac1cb8d3 | 11669 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11670 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
11671 | ||
11672 | fi | |
11673 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11674 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
11675 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
11676 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11677 | ac_save_CXXFLAGS=$CXXFLAGS | |
11678 | CXXFLAGS="-g" | |
11679 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
11680 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
11681 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
11682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11683 | else | |
11684 | cat >conftest.$ac_ext <<_ACEOF | |
11685 | /* confdefs.h. */ | |
11686 | _ACEOF | |
11687 | cat confdefs.h >>conftest.$ac_ext | |
11688 | cat >>conftest.$ac_ext <<_ACEOF | |
11689 | /* end confdefs.h. */ | |
11690 | ||
11691 | int | |
11692 | main () | |
11693 | { | |
11694 | ||
11695 | ; | |
11696 | return 0; | |
11697 | } | |
11698 | _ACEOF | |
11699 | rm -f conftest.$ac_objext | |
11700 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11701 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11702 | ac_status=$? |
ac1cb8d3 VS |
11703 | grep -v '^ *+' conftest.er1 >conftest.err |
11704 | rm -f conftest.er1 | |
11705 | cat conftest.err >&5 | |
a848cd7e SC |
11706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11707 | (exit $ac_status); } && | |
c228d3a4 RN |
11708 | { ac_try='test -z "$ac_cxx_werror_flag" |
11709 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11711 | (eval $ac_try) 2>&5 | |
11712 | ac_status=$? | |
11713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11714 | (exit $ac_status); }; } && | |
11715 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11717 | (eval $ac_try) 2>&5 | |
11718 | ac_status=$? | |
11719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11720 | (exit $ac_status); }; }; then | |
11721 | ac_cv_prog_cxx_g=yes | |
11722 | else | |
11723 | echo "$as_me: failed program was:" >&5 | |
11724 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11725 | ||
11726 | ac_cv_prog_cxx_g=no | |
11727 | fi | |
ac1cb8d3 | 11728 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11729 | fi |
11730 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
11731 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
11732 | if test "$ac_test_CXXFLAGS" = set; then | |
11733 | CXXFLAGS=$ac_save_CXXFLAGS | |
11734 | elif test $ac_cv_prog_cxx_g = yes; then | |
11735 | if test "$GXX" = yes; then | |
11736 | CXXFLAGS="-g -O2" | |
11737 | else | |
11738 | CXXFLAGS="-g" | |
11739 | fi | |
11740 | else | |
11741 | if test "$GXX" = yes; then | |
11742 | CXXFLAGS="-O2" | |
11743 | else | |
11744 | CXXFLAGS= | |
11745 | fi | |
11746 | fi | |
11747 | for ac_declaration in \ | |
ac1cb8d3 | 11748 | '' \ |
a848cd7e SC |
11749 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11750 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11751 | 'extern "C" void exit (int) throw ();' \ | |
11752 | 'extern "C" void exit (int);' \ | |
11753 | 'void exit (int);' | |
11754 | do | |
11755 | cat >conftest.$ac_ext <<_ACEOF | |
11756 | /* confdefs.h. */ | |
11757 | _ACEOF | |
11758 | cat confdefs.h >>conftest.$ac_ext | |
11759 | cat >>conftest.$ac_ext <<_ACEOF | |
11760 | /* end confdefs.h. */ | |
de59c161 | 11761 | $ac_declaration |
ac1cb8d3 | 11762 | #include <stdlib.h> |
a848cd7e SC |
11763 | int |
11764 | main () | |
11765 | { | |
11766 | exit (42); | |
11767 | ; | |
11768 | return 0; | |
11769 | } | |
11770 | _ACEOF | |
11771 | rm -f conftest.$ac_objext | |
11772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11773 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11774 | ac_status=$? |
ac1cb8d3 VS |
11775 | grep -v '^ *+' conftest.er1 >conftest.err |
11776 | rm -f conftest.er1 | |
11777 | cat conftest.err >&5 | |
a848cd7e SC |
11778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11779 | (exit $ac_status); } && | |
c228d3a4 RN |
11780 | { ac_try='test -z "$ac_cxx_werror_flag" |
11781 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11783 | (eval $ac_try) 2>&5 | |
11784 | ac_status=$? | |
11785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11786 | (exit $ac_status); }; } && | |
11787 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11789 | (eval $ac_try) 2>&5 | |
11790 | ac_status=$? | |
11791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11792 | (exit $ac_status); }; }; then | |
11793 | : | |
11794 | else | |
11795 | echo "$as_me: failed program was:" >&5 | |
11796 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11797 | ||
11798 | continue | |
11799 | fi | |
ac1cb8d3 | 11800 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11801 | cat >conftest.$ac_ext <<_ACEOF |
11802 | /* confdefs.h. */ | |
11803 | _ACEOF | |
11804 | cat confdefs.h >>conftest.$ac_ext | |
11805 | cat >>conftest.$ac_ext <<_ACEOF | |
11806 | /* end confdefs.h. */ | |
11807 | $ac_declaration | |
11808 | int | |
11809 | main () | |
11810 | { | |
11811 | exit (42); | |
11812 | ; | |
11813 | return 0; | |
11814 | } | |
11815 | _ACEOF | |
11816 | rm -f conftest.$ac_objext | |
11817 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11818 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11819 | ac_status=$? |
ac1cb8d3 VS |
11820 | grep -v '^ *+' conftest.er1 >conftest.err |
11821 | rm -f conftest.er1 | |
11822 | cat conftest.err >&5 | |
a848cd7e SC |
11823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11824 | (exit $ac_status); } && | |
c228d3a4 RN |
11825 | { ac_try='test -z "$ac_cxx_werror_flag" |
11826 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11828 | (eval $ac_try) 2>&5 | |
11829 | ac_status=$? | |
11830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11831 | (exit $ac_status); }; } && | |
11832 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11834 | (eval $ac_try) 2>&5 | |
11835 | ac_status=$? | |
11836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11837 | (exit $ac_status); }; }; then | |
11838 | break | |
11839 | else | |
11840 | echo "$as_me: failed program was:" >&5 | |
11841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11842 | ||
11843 | fi | |
ac1cb8d3 | 11844 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11845 | done |
11846 | rm -f conftest* | |
11847 | if test -n "$ac_declaration"; then | |
11848 | echo '#ifdef __cplusplus' >>confdefs.h | |
11849 | echo $ac_declaration >>confdefs.h | |
11850 | echo '#endif' >>confdefs.h | |
11851 | fi | |
11852 | ||
11853 | ac_ext=cc | |
11854 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11855 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11856 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11857 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11858 | ||
11859 | ||
11860 | ac_ext=c | |
11861 | ac_cpp='$CPP $CPPFLAGS' | |
11862 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11863 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11864 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11865 | ||
11866 | ||
a848cd7e SC |
11867 | if test -n "$ac_tool_prefix"; then |
11868 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
11869 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
11870 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11871 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11872 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
11873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11874 | else | |
11875 | if test -n "$RANLIB"; then | |
11876 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11877 | else | |
11878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11879 | for as_dir in $PATH | |
11880 | do | |
11881 | IFS=$as_save_IFS | |
11882 | test -z "$as_dir" && as_dir=. | |
11883 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11884 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11885 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
11886 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11887 | break 2 | |
11888 | fi | |
11889 | done | |
11890 | done | |
11891 | ||
11892 | fi | |
11893 | fi | |
11894 | RANLIB=$ac_cv_prog_RANLIB | |
11895 | if test -n "$RANLIB"; then | |
11896 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
11897 | echo "${ECHO_T}$RANLIB" >&6 | |
11898 | else | |
11899 | echo "$as_me:$LINENO: result: no" >&5 | |
11900 | echo "${ECHO_T}no" >&6 | |
11901 | fi | |
11902 | ||
11903 | fi | |
11904 | if test -z "$ac_cv_prog_RANLIB"; then | |
11905 | ac_ct_RANLIB=$RANLIB | |
11906 | # Extract the first word of "ranlib", so it can be a program name with args. | |
11907 | set dummy ranlib; ac_word=$2 | |
11908 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11909 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11910 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
11911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11912 | else | |
11913 | if test -n "$ac_ct_RANLIB"; then | |
11914 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
11915 | else | |
11916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11917 | for as_dir in $PATH | |
11918 | do | |
11919 | IFS=$as_save_IFS | |
11920 | test -z "$as_dir" && as_dir=. | |
11921 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11922 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11923 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
11924 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11925 | break 2 | |
11926 | fi | |
11927 | done | |
11928 | done | |
11929 | ||
11930 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
11931 | fi | |
11932 | fi | |
11933 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
11934 | if test -n "$ac_ct_RANLIB"; then | |
11935 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
11936 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
11937 | else | |
11938 | echo "$as_me:$LINENO: result: no" >&5 | |
11939 | echo "${ECHO_T}no" >&6 | |
11940 | fi | |
11941 | ||
11942 | RANLIB=$ac_ct_RANLIB | |
11943 | else | |
11944 | RANLIB="$ac_cv_prog_RANLIB" | |
11945 | fi | |
11946 | ||
11947 | ||
11948 | # Extract the first word of "ar", so it can be a program name with args. | |
11949 | set dummy ar; ac_word=$2 | |
11950 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11951 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11952 | if test "${ac_cv_prog_AR+set}" = set; then | |
11953 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11954 | else | |
11955 | if test -n "$AR"; then | |
11956 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
11957 | else | |
11958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11959 | for as_dir in $PATH | |
11960 | do | |
11961 | IFS=$as_save_IFS | |
11962 | test -z "$as_dir" && as_dir=. | |
11963 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11964 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11965 | ac_cv_prog_AR="ar" | |
11966 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11967 | break 2 | |
11968 | fi | |
11969 | done | |
11970 | done | |
11971 | ||
11972 | fi | |
11973 | fi | |
11974 | AR=$ac_cv_prog_AR | |
11975 | if test -n "$AR"; then | |
11976 | echo "$as_me:$LINENO: result: $AR" >&5 | |
11977 | echo "${ECHO_T}$AR" >&6 | |
11978 | else | |
11979 | echo "$as_me:$LINENO: result: no" >&5 | |
11980 | echo "${ECHO_T}no" >&6 | |
11981 | fi | |
11982 | ||
11983 | if test "x$AR" = "x" ; then | |
77ffb593 JS |
11984 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
11985 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
11986 | { (exit 1); exit 1; }; } |
11987 | fi | |
11988 | ||
11989 | # Find a good install program. We prefer a C program (faster), | |
11990 | # so one script is as good as another. But avoid the broken or | |
11991 | # incompatible versions: | |
11992 | # SysV /etc/install, /usr/sbin/install | |
11993 | # SunOS /usr/etc/install | |
11994 | # IRIX /sbin/install | |
11995 | # AIX /bin/install | |
11996 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
11997 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
11998 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
11999 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 12000 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
12001 | # ./install, which can be erroneously created by make from ./install.sh. |
12002 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
12003 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
12004 | if test -z "$INSTALL"; then | |
12005 | if test "${ac_cv_path_install+set}" = set; then | |
12006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12007 | else | |
12008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12009 | for as_dir in $PATH | |
12010 | do | |
12011 | IFS=$as_save_IFS | |
12012 | test -z "$as_dir" && as_dir=. | |
12013 | # Account for people who put trailing slashes in PATH elements. | |
12014 | case $as_dir/ in | |
12015 | ./ | .// | /cC/* | \ | |
12016 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 12017 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
12018 | /usr/ucb/* ) ;; |
12019 | *) | |
12020 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
12021 | # Don't use installbsd from OSF since it installs stuff as root | |
12022 | # by default. | |
12023 | for ac_prog in ginstall scoinst install; do | |
12024 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
12025 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
12026 | if test $ac_prog = install && | |
12027 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
12028 | # AIX install. It has an incompatible calling convention. | |
12029 | : | |
12030 | elif test $ac_prog = install && | |
12031 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
12032 | # program-specific install script used by HP pwplus--don't use. | |
12033 | : | |
12034 | else | |
12035 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
12036 | break 3 | |
12037 | fi | |
12038 | fi | |
a848cd7e SC |
12039 | done |
12040 | done | |
12041 | ;; | |
12042 | esac | |
12043 | done | |
12044 | ||
12045 | ||
12046 | fi | |
12047 | if test "${ac_cv_path_install+set}" = set; then | |
12048 | INSTALL=$ac_cv_path_install | |
12049 | else | |
12050 | # As a last resort, use the slow shell script. We don't cache a | |
12051 | # path for INSTALL within a source directory, because that will | |
12052 | # break other packages using the cache if that directory is | |
12053 | # removed, or if the path is relative. | |
12054 | INSTALL=$ac_install_sh | |
12055 | fi | |
12056 | fi | |
12057 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
12058 | echo "${ECHO_T}$INSTALL" >&6 | |
12059 | ||
12060 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
12061 | # It thinks the first close brace ends the variable substitution. | |
12062 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
12063 | ||
12064 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
12065 | ||
12066 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
12067 | ||
12068 | ||
12069 | case ${INSTALL} in | |
12070 | /* ) # Absolute | |
12071 | ;; | |
12072 | ?:* ) # Drive letter, considered as absolute. | |
12073 | ;; | |
12074 | *) | |
12075 | INSTALL=`pwd`/${INSTALL} ;; | |
12076 | esac | |
12077 | ||
a848cd7e SC |
12078 | |
12079 | case "${host}" in | |
12080 | ||
12081 | powerpc-*-darwin* ) | |
12082 | INSTALL_PROGRAM="cp -fp" | |
12083 | INSTALL_DATA="cp -fp" | |
12084 | ;; | |
12085 | *) | |
12086 | ;; | |
12087 | esac | |
12088 | ||
12089 | # Extract the first word of "strip", so it can be a program name with args. | |
12090 | set dummy strip; ac_word=$2 | |
12091 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12092 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12093 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
12094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12095 | else | |
12096 | if test -n "$STRIP"; then | |
12097 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12098 | else | |
12099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12100 | for as_dir in $PATH | |
12101 | do | |
12102 | IFS=$as_save_IFS | |
12103 | test -z "$as_dir" && as_dir=. | |
12104 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12105 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12106 | ac_cv_prog_STRIP="strip" | |
12107 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12108 | break 2 | |
12109 | fi | |
12110 | done | |
12111 | done | |
12112 | ||
12113 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
12114 | fi | |
12115 | fi | |
12116 | STRIP=$ac_cv_prog_STRIP | |
12117 | if test -n "$STRIP"; then | |
12118 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
12119 | echo "${ECHO_T}$STRIP" >&6 | |
12120 | else | |
12121 | echo "$as_me:$LINENO: result: no" >&5 | |
12122 | echo "${ECHO_T}no" >&6 | |
12123 | fi | |
12124 | ||
12125 | ||
12126 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
12127 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
12128 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
12129 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12130 | else | |
12131 | ||
12132 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
12133 | egrep -s GNU > /dev/null); then | |
12134 | wx_cv_prog_makeisgnu="yes" | |
12135 | else | |
12136 | wx_cv_prog_makeisgnu="no" | |
12137 | fi | |
12138 | ||
12139 | fi | |
12140 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
12141 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
12142 | ||
12143 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
12144 | IF_GNU_MAKE="" | |
12145 | else | |
12146 | IF_GNU_MAKE="#" | |
12147 | fi | |
12148 | ||
12149 | ||
12150 | ||
12151 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
12152 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
12153 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
12154 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
12155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12156 | else | |
12157 | ||
12158 | cat - << EOF > confMake | |
12159 | check : file | |
12160 | cp \$? \$@ | |
12161 | cp \$? final_file | |
12162 | EOF | |
12163 | ||
12164 | if test ! -d sub ; then | |
12165 | mkdir sub | |
12166 | fi | |
12167 | echo dummy > sub/file | |
12168 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
12169 | RESULT=$? | |
12170 | rm -f sub/file check final_file confMake | |
12171 | rmdir sub | |
12172 | if test "$RESULT" = 0; then | |
12173 | wx_cv_prog_makevpath="yes" | |
12174 | else | |
12175 | wx_cv_prog_makevpath="no" | |
12176 | fi | |
12177 | ||
12178 | fi | |
12179 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
12180 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
12181 | ||
12182 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
12183 | { { echo "$as_me:$LINENO: error: | |
12184 | You need a make-utility that is able to use the variable | |
12185 | VPATH correctly. | |
12186 | If your version of make does not support VPATH correctly, | |
12187 | please install GNU-make (possibly as gmake), and start | |
12188 | configure with the following command: | |
12189 | export MAKE=gmake; ./configure for sh-type shells | |
12190 | setenv MAKE gmake; ./configure for csh-type shells | |
12191 | Also please do remember to use gmake in this case every time | |
12192 | you are trying to compile. | |
12193 | " >&5 | |
12194 | echo "$as_me: error: | |
12195 | You need a make-utility that is able to use the variable | |
12196 | VPATH correctly. | |
12197 | If your version of make does not support VPATH correctly, | |
12198 | please install GNU-make (possibly as gmake), and start | |
12199 | configure with the following command: | |
12200 | export MAKE=gmake; ./configure for sh-type shells | |
12201 | setenv MAKE gmake; ./configure for csh-type shells | |
12202 | Also please do remember to use gmake in this case every time | |
12203 | you are trying to compile. | |
12204 | " >&2;} | |
12205 | { (exit 1); exit 1; }; } | |
12206 | fi fi | |
12207 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
12208 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
12209 | LN_S=$as_ln_s | |
12210 | if test "$LN_S" = "ln -s"; then | |
12211 | echo "$as_me:$LINENO: result: yes" >&5 | |
12212 | echo "${ECHO_T}yes" >&6 | |
12213 | else | |
12214 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
12215 | echo "${ECHO_T}no, using $LN_S" >&6 | |
12216 | fi | |
12217 | ||
12218 | ||
12219 | ||
12220 | case "${host}" in | |
12221 | *-pc-os2_emx | *-pc-os2-emx ) | |
12222 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
12223 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
12224 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
12225 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
12226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12227 | else | |
12228 | ac_check_lib_save_LIBS=$LIBS | |
12229 | LIBS="-lcExt $LIBS" | |
12230 | cat >conftest.$ac_ext <<_ACEOF | |
12231 | /* confdefs.h. */ | |
12232 | _ACEOF | |
12233 | cat confdefs.h >>conftest.$ac_ext | |
12234 | cat >>conftest.$ac_ext <<_ACEOF | |
12235 | /* end confdefs.h. */ | |
12236 | ||
12237 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12238 | #ifdef __cplusplus | |
12239 | extern "C" | |
12240 | #endif | |
12241 | /* We use char because int might match the return type of a gcc2 | |
12242 | builtin and then its argument prototype would still apply. */ | |
12243 | char drand48 (); | |
12244 | int | |
12245 | main () | |
12246 | { | |
12247 | drand48 (); | |
12248 | ; | |
12249 | return 0; | |
12250 | } | |
12251 | _ACEOF | |
12252 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12253 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12254 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12255 | ac_status=$? |
ac1cb8d3 VS |
12256 | grep -v '^ *+' conftest.er1 >conftest.err |
12257 | rm -f conftest.er1 | |
12258 | cat conftest.err >&5 | |
a848cd7e SC |
12259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12260 | (exit $ac_status); } && | |
c228d3a4 RN |
12261 | { ac_try='test -z "$ac_c_werror_flag" |
12262 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12264 | (eval $ac_try) 2>&5 | |
12265 | ac_status=$? | |
12266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12267 | (exit $ac_status); }; } && | |
12268 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12270 | (eval $ac_try) 2>&5 | |
12271 | ac_status=$? | |
12272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12273 | (exit $ac_status); }; }; then | |
12274 | ac_cv_lib_cExt_drand48=yes | |
12275 | else | |
12276 | echo "$as_me: failed program was:" >&5 | |
12277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12278 | ||
12279 | ac_cv_lib_cExt_drand48=no | |
12280 | fi | |
ac1cb8d3 VS |
12281 | rm -f conftest.err conftest.$ac_objext \ |
12282 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12283 | LIBS=$ac_check_lib_save_LIBS |
12284 | fi | |
12285 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
12286 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
12287 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
12288 | LIBS="$LIBS -lcExt" | |
12289 | fi | |
12290 | ||
12291 | else | |
12292 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
12293 | fi | |
12294 | echo "$as_me:$LINENO: checking for gcc version" >&5 | |
12295 | echo $ECHO_N "checking for gcc version... $ECHO_C" >&6 | |
12296 | if test "${wx_cv_gccversion+set}" = set; then | |
12297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12298 | else | |
12299 | ||
12300 | cat >conftest.$ac_ext <<_ACEOF | |
12301 | /* confdefs.h. */ | |
12302 | _ACEOF | |
12303 | cat confdefs.h >>conftest.$ac_ext | |
12304 | cat >>conftest.$ac_ext <<_ACEOF | |
12305 | /* end confdefs.h. */ | |
12306 | ||
12307 | int | |
12308 | main () | |
12309 | { | |
12310 | ||
12311 | #if (__GNUC__ < 3) | |
12312 | #error old gcc | |
12313 | #endif | |
12314 | ||
12315 | ; | |
12316 | return 0; | |
12317 | } | |
12318 | _ACEOF | |
12319 | rm -f conftest.$ac_objext | |
12320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12321 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12322 | ac_status=$? |
ac1cb8d3 VS |
12323 | grep -v '^ *+' conftest.er1 >conftest.err |
12324 | rm -f conftest.er1 | |
12325 | cat conftest.err >&5 | |
a848cd7e SC |
12326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12327 | (exit $ac_status); } && | |
c228d3a4 RN |
12328 | { ac_try='test -z "$ac_c_werror_flag" |
12329 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12331 | (eval $ac_try) 2>&5 | |
12332 | ac_status=$? | |
12333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12334 | (exit $ac_status); }; } && | |
12335 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12337 | (eval $ac_try) 2>&5 | |
12338 | ac_status=$? | |
12339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12340 | (exit $ac_status); }; }; then | |
12341 | ||
12342 | cat >conftest.$ac_ext <<_ACEOF | |
12343 | /* confdefs.h. */ | |
12344 | _ACEOF | |
12345 | cat confdefs.h >>conftest.$ac_ext | |
12346 | cat >>conftest.$ac_ext <<_ACEOF | |
12347 | /* end confdefs.h. */ | |
12348 | ||
12349 | int | |
12350 | main () | |
12351 | { | |
12352 | ||
12353 | #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
12354 | #error intermediate gcc | |
12355 | #endif | |
12356 | ||
12357 | ; | |
12358 | return 0; | |
12359 | } | |
12360 | _ACEOF | |
12361 | rm -f conftest.$ac_objext | |
12362 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12363 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12364 | ac_status=$? |
ac1cb8d3 VS |
12365 | grep -v '^ *+' conftest.er1 >conftest.err |
12366 | rm -f conftest.er1 | |
12367 | cat conftest.err >&5 | |
a848cd7e SC |
12368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12369 | (exit $ac_status); } && | |
c228d3a4 RN |
12370 | { ac_try='test -z "$ac_c_werror_flag" |
12371 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12373 | (eval $ac_try) 2>&5 | |
12374 | ac_status=$? | |
12375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12376 | (exit $ac_status); }; } && | |
12377 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12379 | (eval $ac_try) 2>&5 | |
12380 | ac_status=$? | |
12381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12382 | (exit $ac_status); }; }; then | |
12383 | ||
12384 | wx_cv_gccversion=Innotek | |
12385 | ||
12386 | else | |
12387 | echo "$as_me: failed program was:" >&5 | |
12388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12389 | ||
12390 | ||
12391 | wx_cv_gccversion=3 | |
12392 | ||
12393 | ||
12394 | fi | |
ac1cb8d3 | 12395 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12396 | |
12397 | else | |
12398 | echo "$as_me: failed program was:" >&5 | |
12399 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12400 | ||
12401 | ||
12402 | wx_cv_gccversion=2 | |
12403 | ||
12404 | ||
12405 | fi | |
ac1cb8d3 | 12406 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12407 | |
12408 | fi | |
12409 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
12410 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
12411 | if test "$wx_cv_gccversion" = "2"; then | |
12412 | LIBS="$LIBS -lstdcpp" | |
12413 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12414 | else | |
12415 | if test "$wx_cv_gccversion" = "3"; then | |
12416 | LIBS="$LIBS -lstdcxx" | |
12417 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12418 | else | |
12419 | LIBS="$LIBS -lstdc++" | |
12420 | fi | |
12421 | fi | |
12422 | if test "$wxUSE_OMF" = "yes"; then | |
de59c161 | 12423 | LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK" |
a848cd7e SC |
12424 | fi |
12425 | ;; | |
12426 | *) | |
12427 | ||
12428 | ||
12429 | ||
12430 | ac_ext=cc | |
12431 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12432 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12433 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12434 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12435 | ||
12436 | ||
12437 | ||
12438 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 | |
12439 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 | |
12440 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
12441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12442 | else | |
12443 | ||
12444 | cat >conftest.$ac_ext <<_ACEOF | |
12445 | /* confdefs.h. */ | |
12446 | _ACEOF | |
12447 | cat confdefs.h >>conftest.$ac_ext | |
12448 | cat >>conftest.$ac_ext <<_ACEOF | |
12449 | /* end confdefs.h. */ | |
12450 | ||
12451 | #include <string.h> | |
12452 | ||
12453 | int | |
12454 | main () | |
12455 | { | |
12456 | ||
12457 | strcasecmp("foo", "bar"); | |
12458 | ||
12459 | ; | |
12460 | return 0; | |
12461 | } | |
12462 | _ACEOF | |
12463 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12464 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12465 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12466 | ac_status=$? |
ac1cb8d3 VS |
12467 | grep -v '^ *+' conftest.er1 >conftest.err |
12468 | rm -f conftest.er1 | |
12469 | cat conftest.err >&5 | |
a848cd7e SC |
12470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12471 | (exit $ac_status); } && | |
c228d3a4 RN |
12472 | { ac_try='test -z "$ac_cxx_werror_flag" |
12473 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12475 | (eval $ac_try) 2>&5 | |
12476 | ac_status=$? | |
12477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12478 | (exit $ac_status); }; } && | |
12479 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12481 | (eval $ac_try) 2>&5 | |
12482 | ac_status=$? | |
12483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12484 | (exit $ac_status); }; }; then | |
12485 | ac_cv_string_strcasecmp=yes | |
12486 | else | |
12487 | echo "$as_me: failed program was:" >&5 | |
12488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12489 | ||
12490 | ac_cv_string_strcasecmp=no | |
12491 | ||
12492 | fi | |
ac1cb8d3 VS |
12493 | rm -f conftest.err conftest.$ac_objext \ |
12494 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12495 | |
12496 | fi | |
12497 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
12498 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
12499 | ||
12500 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
12501 | cat >>confdefs.h <<\_ACEOF | |
12502 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
12503 | _ACEOF | |
12504 | ||
12505 | else | |
12506 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
12507 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
12508 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
12509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12510 | else | |
12511 | ||
12512 | cat >conftest.$ac_ext <<_ACEOF | |
12513 | /* confdefs.h. */ | |
12514 | _ACEOF | |
12515 | cat confdefs.h >>conftest.$ac_ext | |
12516 | cat >>conftest.$ac_ext <<_ACEOF | |
12517 | /* end confdefs.h. */ | |
12518 | ||
12519 | #include <strings.h> | |
12520 | ||
12521 | int | |
12522 | main () | |
12523 | { | |
12524 | ||
12525 | strcasecmp("foo", "bar"); | |
12526 | ||
12527 | ; | |
12528 | return 0; | |
12529 | } | |
12530 | _ACEOF | |
12531 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12532 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12533 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12534 | ac_status=$? |
ac1cb8d3 VS |
12535 | grep -v '^ *+' conftest.er1 >conftest.err |
12536 | rm -f conftest.er1 | |
12537 | cat conftest.err >&5 | |
a848cd7e SC |
12538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12539 | (exit $ac_status); } && | |
c228d3a4 RN |
12540 | { ac_try='test -z "$ac_cxx_werror_flag" |
12541 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12543 | (eval $ac_try) 2>&5 | |
12544 | ac_status=$? | |
12545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12546 | (exit $ac_status); }; } && | |
12547 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12549 | (eval $ac_try) 2>&5 | |
12550 | ac_status=$? | |
12551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12552 | (exit $ac_status); }; }; then | |
12553 | ac_cv_strings_strcasecmp=yes | |
12554 | else | |
12555 | echo "$as_me: failed program was:" >&5 | |
12556 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12557 | ||
12558 | ac_cv_strings_strcasecmp=no | |
12559 | ||
12560 | fi | |
ac1cb8d3 VS |
12561 | rm -f conftest.err conftest.$ac_objext \ |
12562 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12563 | |
12564 | fi | |
12565 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
12566 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
12567 | ||
0c3c69fc | 12568 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
12569 | cat >>confdefs.h <<\_ACEOF |
12570 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
12571 | _ACEOF | |
12572 | ||
12573 | else | |
12574 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
12575 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
12576 | { (exit 1); exit 1; }; } | |
12577 | fi | |
12578 | fi | |
12579 | ||
12580 | ac_ext=c | |
12581 | ac_cpp='$CPP $CPPFLAGS' | |
12582 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12583 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12584 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12585 | ||
12586 | ;; | |
12587 | esac | |
12588 | ||
12589 | ||
12590 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
12591 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
12592 | if test "${ac_cv_header_stdc+set}" = set; then | |
12593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12594 | else | |
12595 | cat >conftest.$ac_ext <<_ACEOF | |
12596 | /* confdefs.h. */ | |
12597 | _ACEOF | |
12598 | cat confdefs.h >>conftest.$ac_ext | |
12599 | cat >>conftest.$ac_ext <<_ACEOF | |
12600 | /* end confdefs.h. */ | |
12601 | #include <stdlib.h> | |
12602 | #include <stdarg.h> | |
12603 | #include <string.h> | |
12604 | #include <float.h> | |
12605 | ||
12606 | int | |
12607 | main () | |
12608 | { | |
12609 | ||
12610 | ; | |
12611 | return 0; | |
12612 | } | |
12613 | _ACEOF | |
12614 | rm -f conftest.$ac_objext | |
12615 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12616 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12617 | ac_status=$? |
ac1cb8d3 VS |
12618 | grep -v '^ *+' conftest.er1 >conftest.err |
12619 | rm -f conftest.er1 | |
12620 | cat conftest.err >&5 | |
a848cd7e SC |
12621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12622 | (exit $ac_status); } && | |
c228d3a4 RN |
12623 | { ac_try='test -z "$ac_c_werror_flag" |
12624 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12626 | (eval $ac_try) 2>&5 | |
12627 | ac_status=$? | |
12628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12629 | (exit $ac_status); }; } && | |
12630 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12632 | (eval $ac_try) 2>&5 | |
12633 | ac_status=$? | |
12634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12635 | (exit $ac_status); }; }; then | |
12636 | ac_cv_header_stdc=yes | |
12637 | else | |
12638 | echo "$as_me: failed program was:" >&5 | |
12639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12640 | ||
12641 | ac_cv_header_stdc=no | |
12642 | fi | |
ac1cb8d3 | 12643 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12644 | |
12645 | if test $ac_cv_header_stdc = yes; then | |
12646 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
12647 | cat >conftest.$ac_ext <<_ACEOF | |
12648 | /* confdefs.h. */ | |
12649 | _ACEOF | |
12650 | cat confdefs.h >>conftest.$ac_ext | |
12651 | cat >>conftest.$ac_ext <<_ACEOF | |
12652 | /* end confdefs.h. */ | |
12653 | #include <string.h> | |
12654 | ||
12655 | _ACEOF | |
12656 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12657 | $EGREP "memchr" >/dev/null 2>&1; then | |
12658 | : | |
12659 | else | |
12660 | ac_cv_header_stdc=no | |
12661 | fi | |
12662 | rm -f conftest* | |
12663 | ||
12664 | fi | |
12665 | ||
12666 | if test $ac_cv_header_stdc = yes; then | |
12667 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
12668 | cat >conftest.$ac_ext <<_ACEOF | |
12669 | /* confdefs.h. */ | |
12670 | _ACEOF | |
12671 | cat confdefs.h >>conftest.$ac_ext | |
12672 | cat >>conftest.$ac_ext <<_ACEOF | |
12673 | /* end confdefs.h. */ | |
12674 | #include <stdlib.h> | |
12675 | ||
12676 | _ACEOF | |
12677 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12678 | $EGREP "free" >/dev/null 2>&1; then | |
12679 | : | |
12680 | else | |
12681 | ac_cv_header_stdc=no | |
12682 | fi | |
12683 | rm -f conftest* | |
12684 | ||
12685 | fi | |
12686 | ||
12687 | if test $ac_cv_header_stdc = yes; then | |
12688 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
12689 | if test "$cross_compiling" = yes; then | |
12690 | : | |
12691 | else | |
12692 | cat >conftest.$ac_ext <<_ACEOF | |
12693 | /* confdefs.h. */ | |
12694 | _ACEOF | |
12695 | cat confdefs.h >>conftest.$ac_ext | |
12696 | cat >>conftest.$ac_ext <<_ACEOF | |
12697 | /* end confdefs.h. */ | |
12698 | #include <ctype.h> | |
12699 | #if ((' ' & 0x0FF) == 0x020) | |
12700 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12701 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12702 | #else | |
12703 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
12704 | (('a' <= (c) && (c) <= 'i') \ |
12705 | || ('j' <= (c) && (c) <= 'r') \ | |
12706 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
12707 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
12708 | #endif | |
12709 | ||
12710 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
12711 | int | |
12712 | main () | |
12713 | { | |
12714 | int i; | |
12715 | for (i = 0; i < 256; i++) | |
12716 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 12717 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
12718 | exit(2); |
12719 | exit (0); | |
12720 | } | |
12721 | _ACEOF | |
12722 | rm -f conftest$ac_exeext | |
12723 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12724 | (eval $ac_link) 2>&5 | |
12725 | ac_status=$? | |
12726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12727 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12729 | (eval $ac_try) 2>&5 | |
12730 | ac_status=$? | |
12731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12732 | (exit $ac_status); }; }; then | |
12733 | : | |
12734 | else | |
12735 | echo "$as_me: program exited with status $ac_status" >&5 | |
12736 | echo "$as_me: failed program was:" >&5 | |
12737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12738 | ||
12739 | ( exit $ac_status ) | |
12740 | ac_cv_header_stdc=no | |
12741 | fi | |
ac1cb8d3 | 12742 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12743 | fi |
12744 | fi | |
12745 | fi | |
12746 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
12747 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
12748 | if test $ac_cv_header_stdc = yes; then | |
12749 | ||
12750 | cat >>confdefs.h <<\_ACEOF | |
12751 | #define STDC_HEADERS 1 | |
12752 | _ACEOF | |
12753 | ||
12754 | fi | |
12755 | ||
12756 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
12757 | ||
12758 | ||
12759 | ||
12760 | ||
12761 | ||
12762 | ||
12763 | ||
12764 | ||
12765 | ||
12766 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 12767 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
12768 | do |
12769 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12770 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12771 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12772 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12774 | else | |
12775 | cat >conftest.$ac_ext <<_ACEOF | |
12776 | /* confdefs.h. */ | |
12777 | _ACEOF | |
12778 | cat confdefs.h >>conftest.$ac_ext | |
12779 | cat >>conftest.$ac_ext <<_ACEOF | |
12780 | /* end confdefs.h. */ | |
12781 | $ac_includes_default | |
12782 | ||
12783 | #include <$ac_header> | |
12784 | _ACEOF | |
12785 | rm -f conftest.$ac_objext | |
12786 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12787 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12788 | ac_status=$? |
ac1cb8d3 VS |
12789 | grep -v '^ *+' conftest.er1 >conftest.err |
12790 | rm -f conftest.er1 | |
12791 | cat conftest.err >&5 | |
a848cd7e SC |
12792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12793 | (exit $ac_status); } && | |
c228d3a4 RN |
12794 | { ac_try='test -z "$ac_c_werror_flag" |
12795 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12797 | (eval $ac_try) 2>&5 | |
12798 | ac_status=$? | |
12799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12800 | (exit $ac_status); }; } && | |
12801 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12803 | (eval $ac_try) 2>&5 | |
12804 | ac_status=$? | |
12805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12806 | (exit $ac_status); }; }; then | |
12807 | eval "$as_ac_Header=yes" | |
12808 | else | |
12809 | echo "$as_me: failed program was:" >&5 | |
12810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12811 | ||
12812 | eval "$as_ac_Header=no" | |
12813 | fi | |
ac1cb8d3 | 12814 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12815 | fi |
12816 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12817 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12818 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12819 | cat >>confdefs.h <<_ACEOF | |
12820 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12821 | _ACEOF | |
12822 | ||
12823 | fi | |
12824 | ||
12825 | done | |
12826 | ||
12827 | ||
12828 | ||
12829 | for ac_header in stdlib.h | |
12830 | do | |
12831 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12832 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12833 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12834 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12835 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12836 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12837 | fi | |
12838 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12839 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12840 | else | |
12841 | # Is the header compilable? | |
12842 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12843 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12844 | cat >conftest.$ac_ext <<_ACEOF | |
12845 | /* confdefs.h. */ | |
12846 | _ACEOF | |
12847 | cat confdefs.h >>conftest.$ac_ext | |
12848 | cat >>conftest.$ac_ext <<_ACEOF | |
12849 | /* end confdefs.h. */ | |
12850 | $ac_includes_default | |
12851 | #include <$ac_header> | |
12852 | _ACEOF | |
12853 | rm -f conftest.$ac_objext | |
12854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12855 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12856 | ac_status=$? |
ac1cb8d3 VS |
12857 | grep -v '^ *+' conftest.er1 >conftest.err |
12858 | rm -f conftest.er1 | |
12859 | cat conftest.err >&5 | |
a848cd7e SC |
12860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12861 | (exit $ac_status); } && | |
c228d3a4 RN |
12862 | { ac_try='test -z "$ac_c_werror_flag" |
12863 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12865 | (eval $ac_try) 2>&5 | |
12866 | ac_status=$? | |
12867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12868 | (exit $ac_status); }; } && | |
12869 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12871 | (eval $ac_try) 2>&5 | |
12872 | ac_status=$? | |
12873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12874 | (exit $ac_status); }; }; then | |
12875 | ac_header_compiler=yes | |
12876 | else | |
12877 | echo "$as_me: failed program was:" >&5 | |
12878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12879 | ||
12880 | ac_header_compiler=no | |
12881 | fi | |
ac1cb8d3 | 12882 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12883 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12884 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12885 | ||
12886 | # Is the header present? | |
12887 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12888 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12889 | cat >conftest.$ac_ext <<_ACEOF | |
12890 | /* confdefs.h. */ | |
12891 | _ACEOF | |
12892 | cat confdefs.h >>conftest.$ac_ext | |
12893 | cat >>conftest.$ac_ext <<_ACEOF | |
12894 | /* end confdefs.h. */ | |
12895 | #include <$ac_header> | |
12896 | _ACEOF | |
12897 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12898 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12899 | ac_status=$? | |
12900 | grep -v '^ *+' conftest.er1 >conftest.err | |
12901 | rm -f conftest.er1 | |
12902 | cat conftest.err >&5 | |
12903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12904 | (exit $ac_status); } >/dev/null; then | |
12905 | if test -s conftest.err; then | |
12906 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12907 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12908 | else |
12909 | ac_cpp_err= | |
12910 | fi | |
12911 | else | |
12912 | ac_cpp_err=yes | |
12913 | fi | |
12914 | if test -z "$ac_cpp_err"; then | |
12915 | ac_header_preproc=yes | |
12916 | else | |
12917 | echo "$as_me: failed program was:" >&5 | |
12918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12919 | ||
12920 | ac_header_preproc=no | |
12921 | fi | |
12922 | rm -f conftest.err conftest.$ac_ext | |
12923 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12924 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12925 | ||
12926 | # So? What about this header? | |
ac1cb8d3 VS |
12927 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12928 | yes:no: ) | |
a848cd7e SC |
12929 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12930 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
12931 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
12932 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12933 | ac_header_preproc=yes | |
a848cd7e | 12934 | ;; |
ac1cb8d3 | 12935 | no:yes:* ) |
a848cd7e SC |
12936 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12937 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
12938 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12939 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12940 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12941 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12942 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12943 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
12944 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12945 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
12946 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
12947 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
12948 | ( |
12949 | cat <<\_ASBOX | |
ac1cb8d3 VS |
12950 | ## ----------------------------------------- ## |
12951 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
12952 | ## ----------------------------------------- ## | |
a848cd7e SC |
12953 | _ASBOX |
12954 | ) | | |
12955 | sed "s/^/$as_me: WARNING: /" >&2 | |
12956 | ;; | |
12957 | esac | |
12958 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12959 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12960 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12962 | else | |
ac1cb8d3 | 12963 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
12964 | fi |
12965 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12966 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12967 | ||
12968 | fi | |
12969 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12970 | cat >>confdefs.h <<_ACEOF | |
12971 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12972 | _ACEOF | |
12973 | ||
12974 | fi | |
12975 | ||
12976 | done | |
12977 | ||
12978 | ||
12979 | for ac_header in malloc.h | |
12980 | do | |
12981 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12982 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12983 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12984 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12985 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12987 | fi | |
12988 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12989 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12990 | else | |
12991 | # Is the header compilable? | |
12992 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12993 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12994 | cat >conftest.$ac_ext <<_ACEOF | |
12995 | /* confdefs.h. */ | |
12996 | _ACEOF | |
12997 | cat confdefs.h >>conftest.$ac_ext | |
12998 | cat >>conftest.$ac_ext <<_ACEOF | |
12999 | /* end confdefs.h. */ | |
13000 | $ac_includes_default | |
13001 | #include <$ac_header> | |
13002 | _ACEOF | |
13003 | rm -f conftest.$ac_objext | |
13004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13005 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13006 | ac_status=$? |
ac1cb8d3 VS |
13007 | grep -v '^ *+' conftest.er1 >conftest.err |
13008 | rm -f conftest.er1 | |
13009 | cat conftest.err >&5 | |
a848cd7e SC |
13010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13011 | (exit $ac_status); } && | |
c228d3a4 RN |
13012 | { ac_try='test -z "$ac_c_werror_flag" |
13013 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13015 | (eval $ac_try) 2>&5 | |
13016 | ac_status=$? | |
13017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13018 | (exit $ac_status); }; } && | |
13019 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13021 | (eval $ac_try) 2>&5 | |
13022 | ac_status=$? | |
13023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13024 | (exit $ac_status); }; }; then | |
13025 | ac_header_compiler=yes | |
13026 | else | |
13027 | echo "$as_me: failed program was:" >&5 | |
13028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13029 | ||
13030 | ac_header_compiler=no | |
13031 | fi | |
ac1cb8d3 | 13032 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13033 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13034 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13035 | ||
13036 | # Is the header present? | |
13037 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13038 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13039 | cat >conftest.$ac_ext <<_ACEOF | |
13040 | /* confdefs.h. */ | |
13041 | _ACEOF | |
13042 | cat confdefs.h >>conftest.$ac_ext | |
13043 | cat >>conftest.$ac_ext <<_ACEOF | |
13044 | /* end confdefs.h. */ | |
13045 | #include <$ac_header> | |
13046 | _ACEOF | |
13047 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13048 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13049 | ac_status=$? | |
13050 | grep -v '^ *+' conftest.er1 >conftest.err | |
13051 | rm -f conftest.er1 | |
13052 | cat conftest.err >&5 | |
13053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13054 | (exit $ac_status); } >/dev/null; then | |
13055 | if test -s conftest.err; then | |
13056 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13057 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13058 | else |
13059 | ac_cpp_err= | |
13060 | fi | |
13061 | else | |
13062 | ac_cpp_err=yes | |
13063 | fi | |
13064 | if test -z "$ac_cpp_err"; then | |
13065 | ac_header_preproc=yes | |
13066 | else | |
13067 | echo "$as_me: failed program was:" >&5 | |
13068 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13069 | ||
13070 | ac_header_preproc=no | |
13071 | fi | |
13072 | rm -f conftest.err conftest.$ac_ext | |
13073 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13074 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13075 | ||
13076 | # So? What about this header? | |
ac1cb8d3 VS |
13077 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13078 | yes:no: ) | |
a848cd7e SC |
13079 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13080 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13081 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13082 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13083 | ac_header_preproc=yes | |
a848cd7e | 13084 | ;; |
ac1cb8d3 | 13085 | no:yes:* ) |
a848cd7e SC |
13086 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13087 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13088 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13089 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13090 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13091 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13092 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13093 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13094 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13095 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13096 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13097 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13098 | ( |
13099 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13100 | ## ----------------------------------------- ## |
13101 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13102 | ## ----------------------------------------- ## | |
a848cd7e SC |
13103 | _ASBOX |
13104 | ) | | |
13105 | sed "s/^/$as_me: WARNING: /" >&2 | |
13106 | ;; | |
13107 | esac | |
13108 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13109 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13110 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13112 | else | |
ac1cb8d3 | 13113 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13114 | fi |
13115 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13116 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13117 | ||
13118 | fi | |
13119 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13120 | cat >>confdefs.h <<_ACEOF | |
13121 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13122 | _ACEOF | |
13123 | ||
13124 | fi | |
13125 | ||
13126 | done | |
13127 | ||
13128 | ||
13129 | for ac_header in unistd.h | |
13130 | do | |
13131 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13132 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13133 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13134 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13135 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13137 | fi | |
13138 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13139 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13140 | else | |
13141 | # Is the header compilable? | |
13142 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13143 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13144 | cat >conftest.$ac_ext <<_ACEOF | |
13145 | /* confdefs.h. */ | |
13146 | _ACEOF | |
13147 | cat confdefs.h >>conftest.$ac_ext | |
13148 | cat >>conftest.$ac_ext <<_ACEOF | |
13149 | /* end confdefs.h. */ | |
13150 | $ac_includes_default | |
13151 | #include <$ac_header> | |
13152 | _ACEOF | |
13153 | rm -f conftest.$ac_objext | |
13154 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13155 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13156 | ac_status=$? |
ac1cb8d3 VS |
13157 | grep -v '^ *+' conftest.er1 >conftest.err |
13158 | rm -f conftest.er1 | |
13159 | cat conftest.err >&5 | |
a848cd7e SC |
13160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13161 | (exit $ac_status); } && | |
c228d3a4 RN |
13162 | { ac_try='test -z "$ac_c_werror_flag" |
13163 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13165 | (eval $ac_try) 2>&5 | |
13166 | ac_status=$? | |
13167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13168 | (exit $ac_status); }; } && | |
13169 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13171 | (eval $ac_try) 2>&5 | |
13172 | ac_status=$? | |
13173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13174 | (exit $ac_status); }; }; then | |
13175 | ac_header_compiler=yes | |
13176 | else | |
13177 | echo "$as_me: failed program was:" >&5 | |
13178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13179 | ||
13180 | ac_header_compiler=no | |
13181 | fi | |
ac1cb8d3 | 13182 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13183 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13184 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13185 | ||
13186 | # Is the header present? | |
13187 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13188 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13189 | cat >conftest.$ac_ext <<_ACEOF | |
13190 | /* confdefs.h. */ | |
13191 | _ACEOF | |
13192 | cat confdefs.h >>conftest.$ac_ext | |
13193 | cat >>conftest.$ac_ext <<_ACEOF | |
13194 | /* end confdefs.h. */ | |
13195 | #include <$ac_header> | |
13196 | _ACEOF | |
13197 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13198 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13199 | ac_status=$? | |
13200 | grep -v '^ *+' conftest.er1 >conftest.err | |
13201 | rm -f conftest.er1 | |
13202 | cat conftest.err >&5 | |
13203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13204 | (exit $ac_status); } >/dev/null; then | |
13205 | if test -s conftest.err; then | |
13206 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13207 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13208 | else |
13209 | ac_cpp_err= | |
13210 | fi | |
13211 | else | |
13212 | ac_cpp_err=yes | |
13213 | fi | |
13214 | if test -z "$ac_cpp_err"; then | |
13215 | ac_header_preproc=yes | |
13216 | else | |
13217 | echo "$as_me: failed program was:" >&5 | |
13218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13219 | ||
13220 | ac_header_preproc=no | |
13221 | fi | |
13222 | rm -f conftest.err conftest.$ac_ext | |
13223 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13224 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13225 | ||
13226 | # So? What about this header? | |
ac1cb8d3 VS |
13227 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13228 | yes:no: ) | |
a848cd7e SC |
13229 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13230 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13231 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13232 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13233 | ac_header_preproc=yes | |
a848cd7e | 13234 | ;; |
ac1cb8d3 | 13235 | no:yes:* ) |
a848cd7e SC |
13236 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13237 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13238 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13239 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13240 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13241 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13242 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13243 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13244 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13245 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13246 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13247 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13248 | ( |
13249 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13250 | ## ----------------------------------------- ## |
13251 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13252 | ## ----------------------------------------- ## | |
a848cd7e SC |
13253 | _ASBOX |
13254 | ) | | |
13255 | sed "s/^/$as_me: WARNING: /" >&2 | |
13256 | ;; | |
13257 | esac | |
13258 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13259 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13260 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13262 | else | |
ac1cb8d3 | 13263 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13264 | fi |
13265 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13266 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13267 | ||
13268 | fi | |
13269 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13270 | cat >>confdefs.h <<_ACEOF | |
13271 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13272 | _ACEOF | |
13273 | ||
13274 | fi | |
13275 | ||
13276 | done | |
13277 | ||
13278 | ||
13279 | for ac_header in wchar.h | |
13280 | do | |
13281 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13282 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13283 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13284 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13285 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13287 | fi | |
13288 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13289 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13290 | else | |
13291 | # Is the header compilable? | |
13292 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13293 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13294 | cat >conftest.$ac_ext <<_ACEOF | |
13295 | /* confdefs.h. */ | |
13296 | _ACEOF | |
13297 | cat confdefs.h >>conftest.$ac_ext | |
13298 | cat >>conftest.$ac_ext <<_ACEOF | |
13299 | /* end confdefs.h. */ | |
13300 | $ac_includes_default | |
13301 | #include <$ac_header> | |
13302 | _ACEOF | |
13303 | rm -f conftest.$ac_objext | |
13304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13305 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13306 | ac_status=$? |
ac1cb8d3 VS |
13307 | grep -v '^ *+' conftest.er1 >conftest.err |
13308 | rm -f conftest.er1 | |
13309 | cat conftest.err >&5 | |
a848cd7e SC |
13310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13311 | (exit $ac_status); } && | |
c228d3a4 RN |
13312 | { ac_try='test -z "$ac_c_werror_flag" |
13313 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13315 | (eval $ac_try) 2>&5 | |
13316 | ac_status=$? | |
13317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13318 | (exit $ac_status); }; } && | |
13319 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13321 | (eval $ac_try) 2>&5 | |
13322 | ac_status=$? | |
13323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13324 | (exit $ac_status); }; }; then | |
13325 | ac_header_compiler=yes | |
13326 | else | |
13327 | echo "$as_me: failed program was:" >&5 | |
13328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13329 | ||
13330 | ac_header_compiler=no | |
13331 | fi | |
ac1cb8d3 | 13332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13333 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13334 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13335 | ||
13336 | # Is the header present? | |
13337 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13338 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13339 | cat >conftest.$ac_ext <<_ACEOF | |
13340 | /* confdefs.h. */ | |
13341 | _ACEOF | |
13342 | cat confdefs.h >>conftest.$ac_ext | |
13343 | cat >>conftest.$ac_ext <<_ACEOF | |
13344 | /* end confdefs.h. */ | |
13345 | #include <$ac_header> | |
13346 | _ACEOF | |
13347 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13348 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13349 | ac_status=$? | |
13350 | grep -v '^ *+' conftest.er1 >conftest.err | |
13351 | rm -f conftest.er1 | |
13352 | cat conftest.err >&5 | |
13353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13354 | (exit $ac_status); } >/dev/null; then | |
13355 | if test -s conftest.err; then | |
13356 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13357 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13358 | else |
13359 | ac_cpp_err= | |
13360 | fi | |
13361 | else | |
13362 | ac_cpp_err=yes | |
13363 | fi | |
13364 | if test -z "$ac_cpp_err"; then | |
13365 | ac_header_preproc=yes | |
13366 | else | |
13367 | echo "$as_me: failed program was:" >&5 | |
13368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13369 | ||
13370 | ac_header_preproc=no | |
13371 | fi | |
13372 | rm -f conftest.err conftest.$ac_ext | |
13373 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13374 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13375 | ||
13376 | # So? What about this header? | |
ac1cb8d3 VS |
13377 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13378 | yes:no: ) | |
a848cd7e SC |
13379 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13380 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13381 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13382 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13383 | ac_header_preproc=yes | |
a848cd7e | 13384 | ;; |
ac1cb8d3 | 13385 | no:yes:* ) |
a848cd7e SC |
13386 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13387 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13388 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13389 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13390 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13391 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13392 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13393 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13394 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13395 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13396 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13397 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13398 | ( |
13399 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13400 | ## ----------------------------------------- ## |
13401 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13402 | ## ----------------------------------------- ## | |
a848cd7e SC |
13403 | _ASBOX |
13404 | ) | | |
13405 | sed "s/^/$as_me: WARNING: /" >&2 | |
13406 | ;; | |
13407 | esac | |
13408 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13409 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13410 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13412 | else | |
ac1cb8d3 | 13413 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13414 | fi |
13415 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13416 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13417 | ||
13418 | fi | |
13419 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13420 | cat >>confdefs.h <<_ACEOF | |
13421 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13422 | _ACEOF | |
13423 | ||
13424 | fi | |
13425 | ||
13426 | done | |
13427 | ||
13428 | ||
13429 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
13430 | ||
13431 | for ac_header in wcstr.h | |
13432 | do | |
13433 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13434 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13435 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13436 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13437 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13439 | fi | |
13440 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13441 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13442 | else | |
13443 | # Is the header compilable? | |
13444 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13445 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13446 | cat >conftest.$ac_ext <<_ACEOF | |
13447 | /* confdefs.h. */ | |
13448 | _ACEOF | |
13449 | cat confdefs.h >>conftest.$ac_ext | |
13450 | cat >>conftest.$ac_ext <<_ACEOF | |
13451 | /* end confdefs.h. */ | |
13452 | $ac_includes_default | |
13453 | #include <$ac_header> | |
13454 | _ACEOF | |
13455 | rm -f conftest.$ac_objext | |
13456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13457 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13458 | ac_status=$? |
ac1cb8d3 VS |
13459 | grep -v '^ *+' conftest.er1 >conftest.err |
13460 | rm -f conftest.er1 | |
13461 | cat conftest.err >&5 | |
a848cd7e SC |
13462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13463 | (exit $ac_status); } && | |
c228d3a4 RN |
13464 | { ac_try='test -z "$ac_c_werror_flag" |
13465 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13467 | (eval $ac_try) 2>&5 | |
13468 | ac_status=$? | |
13469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13470 | (exit $ac_status); }; } && | |
13471 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13473 | (eval $ac_try) 2>&5 | |
13474 | ac_status=$? | |
13475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13476 | (exit $ac_status); }; }; then | |
13477 | ac_header_compiler=yes | |
13478 | else | |
13479 | echo "$as_me: failed program was:" >&5 | |
13480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13481 | ||
13482 | ac_header_compiler=no | |
13483 | fi | |
ac1cb8d3 | 13484 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13485 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13486 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13487 | ||
13488 | # Is the header present? | |
13489 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13490 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13491 | cat >conftest.$ac_ext <<_ACEOF | |
13492 | /* confdefs.h. */ | |
13493 | _ACEOF | |
13494 | cat confdefs.h >>conftest.$ac_ext | |
13495 | cat >>conftest.$ac_ext <<_ACEOF | |
13496 | /* end confdefs.h. */ | |
13497 | #include <$ac_header> | |
13498 | _ACEOF | |
13499 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13500 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13501 | ac_status=$? | |
13502 | grep -v '^ *+' conftest.er1 >conftest.err | |
13503 | rm -f conftest.er1 | |
13504 | cat conftest.err >&5 | |
13505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13506 | (exit $ac_status); } >/dev/null; then | |
13507 | if test -s conftest.err; then | |
13508 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13509 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13510 | else |
13511 | ac_cpp_err= | |
13512 | fi | |
13513 | else | |
13514 | ac_cpp_err=yes | |
13515 | fi | |
13516 | if test -z "$ac_cpp_err"; then | |
13517 | ac_header_preproc=yes | |
13518 | else | |
13519 | echo "$as_me: failed program was:" >&5 | |
13520 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13521 | ||
13522 | ac_header_preproc=no | |
13523 | fi | |
13524 | rm -f conftest.err conftest.$ac_ext | |
13525 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13526 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13527 | ||
13528 | # So? What about this header? | |
ac1cb8d3 VS |
13529 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13530 | yes:no: ) | |
a848cd7e SC |
13531 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13532 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13533 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13534 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13535 | ac_header_preproc=yes | |
a848cd7e | 13536 | ;; |
ac1cb8d3 | 13537 | no:yes:* ) |
a848cd7e SC |
13538 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13539 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13540 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13541 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13542 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13543 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13544 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13545 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13546 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13547 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13548 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13549 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13550 | ( |
13551 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13552 | ## ----------------------------------------- ## |
13553 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13554 | ## ----------------------------------------- ## | |
a848cd7e SC |
13555 | _ASBOX |
13556 | ) | | |
13557 | sed "s/^/$as_me: WARNING: /" >&2 | |
13558 | ;; | |
13559 | esac | |
13560 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13561 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13562 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13564 | else | |
ac1cb8d3 | 13565 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13566 | fi |
13567 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13568 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13569 | ||
13570 | fi | |
13571 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13572 | cat >>confdefs.h <<_ACEOF | |
13573 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13574 | _ACEOF | |
13575 | ||
13576 | fi | |
13577 | ||
13578 | done | |
13579 | ||
13580 | fi | |
13581 | ||
13582 | ||
13583 | for ac_header in fnmatch.h | |
13584 | do | |
13585 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13586 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13587 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13588 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13589 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13591 | fi | |
13592 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13593 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13594 | else | |
13595 | # Is the header compilable? | |
13596 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13597 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13598 | cat >conftest.$ac_ext <<_ACEOF | |
13599 | /* confdefs.h. */ | |
13600 | _ACEOF | |
13601 | cat confdefs.h >>conftest.$ac_ext | |
13602 | cat >>conftest.$ac_ext <<_ACEOF | |
13603 | /* end confdefs.h. */ | |
13604 | $ac_includes_default | |
13605 | #include <$ac_header> | |
13606 | _ACEOF | |
13607 | rm -f conftest.$ac_objext | |
13608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13609 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13610 | ac_status=$? |
ac1cb8d3 VS |
13611 | grep -v '^ *+' conftest.er1 >conftest.err |
13612 | rm -f conftest.er1 | |
13613 | cat conftest.err >&5 | |
a848cd7e SC |
13614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13615 | (exit $ac_status); } && | |
c228d3a4 RN |
13616 | { ac_try='test -z "$ac_c_werror_flag" |
13617 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13619 | (eval $ac_try) 2>&5 | |
13620 | ac_status=$? | |
13621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13622 | (exit $ac_status); }; } && | |
13623 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13625 | (eval $ac_try) 2>&5 | |
13626 | ac_status=$? | |
13627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13628 | (exit $ac_status); }; }; then | |
13629 | ac_header_compiler=yes | |
13630 | else | |
13631 | echo "$as_me: failed program was:" >&5 | |
13632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13633 | ||
13634 | ac_header_compiler=no | |
13635 | fi | |
ac1cb8d3 | 13636 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13637 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13638 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13639 | ||
13640 | # Is the header present? | |
13641 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13642 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13643 | cat >conftest.$ac_ext <<_ACEOF | |
13644 | /* confdefs.h. */ | |
13645 | _ACEOF | |
13646 | cat confdefs.h >>conftest.$ac_ext | |
13647 | cat >>conftest.$ac_ext <<_ACEOF | |
13648 | /* end confdefs.h. */ | |
13649 | #include <$ac_header> | |
13650 | _ACEOF | |
13651 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13652 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13653 | ac_status=$? | |
13654 | grep -v '^ *+' conftest.er1 >conftest.err | |
13655 | rm -f conftest.er1 | |
13656 | cat conftest.err >&5 | |
13657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13658 | (exit $ac_status); } >/dev/null; then | |
13659 | if test -s conftest.err; then | |
13660 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13661 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13662 | else |
13663 | ac_cpp_err= | |
13664 | fi | |
13665 | else | |
13666 | ac_cpp_err=yes | |
13667 | fi | |
13668 | if test -z "$ac_cpp_err"; then | |
13669 | ac_header_preproc=yes | |
13670 | else | |
13671 | echo "$as_me: failed program was:" >&5 | |
13672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13673 | ||
13674 | ac_header_preproc=no | |
13675 | fi | |
13676 | rm -f conftest.err conftest.$ac_ext | |
13677 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13678 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13679 | ||
13680 | # So? What about this header? | |
ac1cb8d3 VS |
13681 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13682 | yes:no: ) | |
a848cd7e SC |
13683 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13684 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13685 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13686 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13687 | ac_header_preproc=yes | |
a848cd7e | 13688 | ;; |
ac1cb8d3 | 13689 | no:yes:* ) |
a848cd7e SC |
13690 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13691 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13692 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13693 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13694 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13695 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13696 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13697 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13698 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13699 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13700 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13701 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13702 | ( |
13703 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13704 | ## ----------------------------------------- ## |
13705 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13706 | ## ----------------------------------------- ## | |
a848cd7e SC |
13707 | _ASBOX |
13708 | ) | | |
13709 | sed "s/^/$as_me: WARNING: /" >&2 | |
13710 | ;; | |
13711 | esac | |
13712 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13713 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13714 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13716 | else | |
ac1cb8d3 | 13717 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13718 | fi |
13719 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13720 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13721 | ||
13722 | fi | |
13723 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13724 | cat >>confdefs.h <<_ACEOF | |
13725 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13726 | _ACEOF | |
13727 | ||
13728 | fi | |
13729 | ||
13730 | done | |
13731 | ||
13732 | ||
13733 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then | |
13734 | ||
13735 | for ac_func in fnmatch | |
13736 | do | |
13737 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13738 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13739 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13740 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13742 | else | |
13743 | cat >conftest.$ac_ext <<_ACEOF | |
13744 | /* confdefs.h. */ | |
13745 | _ACEOF | |
13746 | cat confdefs.h >>conftest.$ac_ext | |
13747 | cat >>conftest.$ac_ext <<_ACEOF | |
13748 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
13749 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13750 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13751 | #define $ac_func innocuous_$ac_func | |
13752 | ||
a848cd7e SC |
13753 | /* System header to define __stub macros and hopefully few prototypes, |
13754 | which can conflict with char $ac_func (); below. | |
13755 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13756 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 13757 | |
a848cd7e SC |
13758 | #ifdef __STDC__ |
13759 | # include <limits.h> | |
13760 | #else | |
13761 | # include <assert.h> | |
13762 | #endif | |
ac1cb8d3 VS |
13763 | |
13764 | #undef $ac_func | |
13765 | ||
a848cd7e SC |
13766 | /* Override any gcc2 internal prototype to avoid an error. */ |
13767 | #ifdef __cplusplus | |
13768 | extern "C" | |
13769 | { | |
13770 | #endif | |
13771 | /* We use char because int might match the return type of a gcc2 | |
13772 | builtin and then its argument prototype would still apply. */ | |
13773 | char $ac_func (); | |
13774 | /* The GNU C library defines this for functions which it implements | |
13775 | to always fail with ENOSYS. Some functions are actually named | |
13776 | something starting with __ and the normal name is an alias. */ | |
13777 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13778 | choke me | |
13779 | #else | |
13780 | char (*f) () = $ac_func; | |
13781 | #endif | |
13782 | #ifdef __cplusplus | |
13783 | } | |
13784 | #endif | |
13785 | ||
13786 | int | |
13787 | main () | |
13788 | { | |
13789 | return f != $ac_func; | |
13790 | ; | |
13791 | return 0; | |
13792 | } | |
13793 | _ACEOF | |
13794 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13795 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13796 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13797 | ac_status=$? |
ac1cb8d3 VS |
13798 | grep -v '^ *+' conftest.er1 >conftest.err |
13799 | rm -f conftest.er1 | |
13800 | cat conftest.err >&5 | |
a848cd7e SC |
13801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13802 | (exit $ac_status); } && | |
c228d3a4 RN |
13803 | { ac_try='test -z "$ac_c_werror_flag" |
13804 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13806 | (eval $ac_try) 2>&5 | |
13807 | ac_status=$? | |
13808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13809 | (exit $ac_status); }; } && | |
13810 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13812 | (eval $ac_try) 2>&5 | |
13813 | ac_status=$? | |
13814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13815 | (exit $ac_status); }; }; then | |
13816 | eval "$as_ac_var=yes" | |
13817 | else | |
13818 | echo "$as_me: failed program was:" >&5 | |
13819 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13820 | ||
13821 | eval "$as_ac_var=no" | |
13822 | fi | |
ac1cb8d3 VS |
13823 | rm -f conftest.err conftest.$ac_objext \ |
13824 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13825 | fi |
13826 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13827 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13828 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13829 | cat >>confdefs.h <<_ACEOF | |
13830 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13831 | _ACEOF | |
13832 | ||
13833 | fi | |
13834 | done | |
13835 | ||
13836 | fi | |
13837 | ||
13838 | ||
13839 | for ac_header in langinfo.h | |
13840 | do | |
13841 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13842 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13843 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13844 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13845 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13847 | fi | |
13848 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13849 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13850 | else | |
13851 | # Is the header compilable? | |
13852 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13853 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13854 | cat >conftest.$ac_ext <<_ACEOF | |
13855 | /* confdefs.h. */ | |
13856 | _ACEOF | |
13857 | cat confdefs.h >>conftest.$ac_ext | |
13858 | cat >>conftest.$ac_ext <<_ACEOF | |
13859 | /* end confdefs.h. */ | |
13860 | $ac_includes_default | |
13861 | #include <$ac_header> | |
13862 | _ACEOF | |
13863 | rm -f conftest.$ac_objext | |
13864 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13865 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13866 | ac_status=$? |
ac1cb8d3 VS |
13867 | grep -v '^ *+' conftest.er1 >conftest.err |
13868 | rm -f conftest.er1 | |
13869 | cat conftest.err >&5 | |
a848cd7e SC |
13870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13871 | (exit $ac_status); } && | |
c228d3a4 RN |
13872 | { ac_try='test -z "$ac_c_werror_flag" |
13873 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13875 | (eval $ac_try) 2>&5 | |
13876 | ac_status=$? | |
13877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13878 | (exit $ac_status); }; } && | |
13879 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13881 | (eval $ac_try) 2>&5 | |
13882 | ac_status=$? | |
13883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13884 | (exit $ac_status); }; }; then | |
13885 | ac_header_compiler=yes | |
13886 | else | |
13887 | echo "$as_me: failed program was:" >&5 | |
13888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13889 | ||
13890 | ac_header_compiler=no | |
13891 | fi | |
ac1cb8d3 | 13892 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13893 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13894 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13895 | ||
13896 | # Is the header present? | |
13897 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13898 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13899 | cat >conftest.$ac_ext <<_ACEOF | |
13900 | /* confdefs.h. */ | |
13901 | _ACEOF | |
13902 | cat confdefs.h >>conftest.$ac_ext | |
13903 | cat >>conftest.$ac_ext <<_ACEOF | |
13904 | /* end confdefs.h. */ | |
13905 | #include <$ac_header> | |
13906 | _ACEOF | |
13907 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13908 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13909 | ac_status=$? | |
13910 | grep -v '^ *+' conftest.er1 >conftest.err | |
13911 | rm -f conftest.er1 | |
13912 | cat conftest.err >&5 | |
13913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13914 | (exit $ac_status); } >/dev/null; then | |
13915 | if test -s conftest.err; then | |
13916 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13917 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13918 | else |
13919 | ac_cpp_err= | |
13920 | fi | |
13921 | else | |
13922 | ac_cpp_err=yes | |
13923 | fi | |
13924 | if test -z "$ac_cpp_err"; then | |
13925 | ac_header_preproc=yes | |
13926 | else | |
13927 | echo "$as_me: failed program was:" >&5 | |
13928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13929 | ||
13930 | ac_header_preproc=no | |
13931 | fi | |
13932 | rm -f conftest.err conftest.$ac_ext | |
13933 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13934 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13935 | ||
13936 | # So? What about this header? | |
ac1cb8d3 VS |
13937 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13938 | yes:no: ) | |
a848cd7e SC |
13939 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13940 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13941 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13942 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13943 | ac_header_preproc=yes | |
a848cd7e | 13944 | ;; |
ac1cb8d3 | 13945 | no:yes:* ) |
a848cd7e SC |
13946 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13947 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13948 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13949 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13950 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13951 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13952 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13953 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13954 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13955 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13956 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13957 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13958 | ( |
13959 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13960 | ## ----------------------------------------- ## |
13961 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13962 | ## ----------------------------------------- ## | |
a848cd7e SC |
13963 | _ASBOX |
13964 | ) | | |
13965 | sed "s/^/$as_me: WARNING: /" >&2 | |
13966 | ;; | |
13967 | esac | |
13968 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13969 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13970 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13972 | else | |
ac1cb8d3 | 13973 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13974 | fi |
13975 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13976 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13977 | ||
13978 | fi | |
13979 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13980 | cat >>confdefs.h <<_ACEOF | |
13981 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13982 | _ACEOF | |
13983 | ||
13984 | fi | |
13985 | ||
13986 | done | |
13987 | ||
13988 | ||
13989 | case "${host}" in | |
13990 | *-pc-os2_emx | *-pc-os2-emx ) | |
13991 | if test $ac_cv_header_langinfo_h = "yes"; then | |
13992 | LIBS="$LIBS -lintl" | |
13993 | fi | |
13994 | ;; | |
13995 | esac | |
13996 | ||
13997 | if test "$wxUSE_GUI" = "yes"; then | |
13998 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
13999 | ||
14000 | for ac_header in X11/Xlib.h | |
14001 | do | |
14002 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14003 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14004 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14005 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14006 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14007 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14008 | fi | |
14009 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14010 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14011 | else | |
14012 | # Is the header compilable? | |
14013 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14014 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14015 | cat >conftest.$ac_ext <<_ACEOF | |
14016 | /* confdefs.h. */ | |
14017 | _ACEOF | |
14018 | cat confdefs.h >>conftest.$ac_ext | |
14019 | cat >>conftest.$ac_ext <<_ACEOF | |
14020 | /* end confdefs.h. */ | |
14021 | $ac_includes_default | |
14022 | #include <$ac_header> | |
14023 | _ACEOF | |
14024 | rm -f conftest.$ac_objext | |
14025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14026 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14027 | ac_status=$? |
ac1cb8d3 VS |
14028 | grep -v '^ *+' conftest.er1 >conftest.err |
14029 | rm -f conftest.er1 | |
14030 | cat conftest.err >&5 | |
a848cd7e SC |
14031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14032 | (exit $ac_status); } && | |
c228d3a4 RN |
14033 | { ac_try='test -z "$ac_c_werror_flag" |
14034 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14036 | (eval $ac_try) 2>&5 | |
14037 | ac_status=$? | |
14038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14039 | (exit $ac_status); }; } && | |
14040 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14042 | (eval $ac_try) 2>&5 | |
14043 | ac_status=$? | |
14044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14045 | (exit $ac_status); }; }; then | |
14046 | ac_header_compiler=yes | |
14047 | else | |
14048 | echo "$as_me: failed program was:" >&5 | |
14049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14050 | ||
14051 | ac_header_compiler=no | |
14052 | fi | |
ac1cb8d3 | 14053 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14054 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14055 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14056 | ||
14057 | # Is the header present? | |
14058 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14059 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14060 | cat >conftest.$ac_ext <<_ACEOF | |
14061 | /* confdefs.h. */ | |
14062 | _ACEOF | |
14063 | cat confdefs.h >>conftest.$ac_ext | |
14064 | cat >>conftest.$ac_ext <<_ACEOF | |
14065 | /* end confdefs.h. */ | |
14066 | #include <$ac_header> | |
14067 | _ACEOF | |
14068 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14069 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14070 | ac_status=$? | |
14071 | grep -v '^ *+' conftest.er1 >conftest.err | |
14072 | rm -f conftest.er1 | |
14073 | cat conftest.err >&5 | |
14074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14075 | (exit $ac_status); } >/dev/null; then | |
14076 | if test -s conftest.err; then | |
14077 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14078 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14079 | else |
14080 | ac_cpp_err= | |
14081 | fi | |
14082 | else | |
14083 | ac_cpp_err=yes | |
14084 | fi | |
14085 | if test -z "$ac_cpp_err"; then | |
14086 | ac_header_preproc=yes | |
14087 | else | |
14088 | echo "$as_me: failed program was:" >&5 | |
14089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14090 | ||
14091 | ac_header_preproc=no | |
14092 | fi | |
14093 | rm -f conftest.err conftest.$ac_ext | |
14094 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14095 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14096 | ||
14097 | # So? What about this header? | |
ac1cb8d3 VS |
14098 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14099 | yes:no: ) | |
a848cd7e SC |
14100 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14101 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14102 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14103 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14104 | ac_header_preproc=yes | |
a848cd7e | 14105 | ;; |
ac1cb8d3 | 14106 | no:yes:* ) |
a848cd7e SC |
14107 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14108 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14109 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14110 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14111 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14112 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14113 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14114 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14115 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14116 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14117 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14118 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14119 | ( |
14120 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14121 | ## ----------------------------------------- ## |
14122 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14123 | ## ----------------------------------------- ## | |
a848cd7e SC |
14124 | _ASBOX |
14125 | ) | | |
14126 | sed "s/^/$as_me: WARNING: /" >&2 | |
14127 | ;; | |
14128 | esac | |
14129 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14130 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14131 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14133 | else | |
ac1cb8d3 | 14134 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14135 | fi |
14136 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14137 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14138 | ||
14139 | fi | |
14140 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14141 | cat >>confdefs.h <<_ACEOF | |
14142 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14143 | _ACEOF | |
14144 | ||
14145 | fi | |
14146 | ||
14147 | done | |
14148 | ||
14149 | ||
14150 | for ac_header in X11/XKBlib.h | |
14151 | do | |
14152 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14153 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14154 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14155 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14157 | else | |
14158 | cat >conftest.$ac_ext <<_ACEOF | |
14159 | /* confdefs.h. */ | |
14160 | _ACEOF | |
14161 | cat confdefs.h >>conftest.$ac_ext | |
14162 | cat >>conftest.$ac_ext <<_ACEOF | |
14163 | /* end confdefs.h. */ | |
14164 | ||
14165 | #if HAVE_X11_XLIB_H | |
14166 | #include <X11/Xlib.h> | |
14167 | #endif | |
14168 | ||
14169 | ||
14170 | #include <$ac_header> | |
14171 | _ACEOF | |
14172 | rm -f conftest.$ac_objext | |
14173 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14174 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14175 | ac_status=$? |
ac1cb8d3 VS |
14176 | grep -v '^ *+' conftest.er1 >conftest.err |
14177 | rm -f conftest.er1 | |
14178 | cat conftest.err >&5 | |
a848cd7e SC |
14179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14180 | (exit $ac_status); } && | |
c228d3a4 RN |
14181 | { ac_try='test -z "$ac_c_werror_flag" |
14182 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14184 | (eval $ac_try) 2>&5 | |
14185 | ac_status=$? | |
14186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14187 | (exit $ac_status); }; } && | |
14188 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14190 | (eval $ac_try) 2>&5 | |
14191 | ac_status=$? | |
14192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14193 | (exit $ac_status); }; }; then | |
14194 | eval "$as_ac_Header=yes" | |
14195 | else | |
14196 | echo "$as_me: failed program was:" >&5 | |
14197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14198 | ||
14199 | eval "$as_ac_Header=no" | |
14200 | fi | |
ac1cb8d3 | 14201 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14202 | fi |
14203 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14204 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14205 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14206 | cat >>confdefs.h <<_ACEOF | |
14207 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14208 | _ACEOF | |
14209 | ||
14210 | fi | |
14211 | ||
14212 | done | |
14213 | ||
14214 | fi | |
14215 | fi | |
14216 | ||
14217 | ||
14218 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
14219 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
14220 | if test "${ac_cv_c_const+set}" = set; then | |
14221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14222 | else | |
14223 | cat >conftest.$ac_ext <<_ACEOF | |
14224 | /* confdefs.h. */ | |
14225 | _ACEOF | |
14226 | cat confdefs.h >>conftest.$ac_ext | |
14227 | cat >>conftest.$ac_ext <<_ACEOF | |
14228 | /* end confdefs.h. */ | |
14229 | ||
14230 | int | |
14231 | main () | |
14232 | { | |
14233 | /* FIXME: Include the comments suggested by Paul. */ | |
14234 | #ifndef __cplusplus | |
14235 | /* Ultrix mips cc rejects this. */ | |
14236 | typedef int charset[2]; | |
14237 | const charset x; | |
14238 | /* SunOS 4.1.1 cc rejects this. */ | |
14239 | char const *const *ccp; | |
14240 | char **p; | |
14241 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14242 | struct point {int x, y;}; | |
14243 | static struct point const zero = {0,0}; | |
14244 | /* AIX XL C 1.02.0.0 rejects this. | |
14245 | It does not let you subtract one const X* pointer from another in | |
14246 | an arm of an if-expression whose if-part is not a constant | |
14247 | expression */ | |
14248 | const char *g = "string"; | |
14249 | ccp = &g + (g ? g-g : 0); | |
14250 | /* HPUX 7.0 cc rejects these. */ | |
14251 | ++ccp; | |
14252 | p = (char**) ccp; | |
14253 | ccp = (char const *const *) p; | |
14254 | { /* SCO 3.2v4 cc rejects this. */ | |
14255 | char *t; | |
14256 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
14257 | ||
14258 | *t++ = 0; | |
14259 | } | |
14260 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
14261 | int x[] = {25, 17}; | |
14262 | const int *foo = &x[0]; | |
14263 | ++foo; | |
14264 | } | |
14265 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
14266 | typedef const int *iptr; | |
14267 | iptr p = 0; | |
14268 | ++p; | |
14269 | } | |
14270 | { /* AIX XL C 1.02.0.0 rejects this saying | |
14271 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14272 | struct s { int j; const int *ap[3]; }; | |
14273 | struct s *b; b->j = 5; | |
14274 | } | |
14275 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
14276 | const int foo = 10; | |
14277 | } | |
14278 | #endif | |
14279 | ||
14280 | ; | |
14281 | return 0; | |
14282 | } | |
14283 | _ACEOF | |
14284 | rm -f conftest.$ac_objext | |
14285 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14286 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14287 | ac_status=$? |
ac1cb8d3 VS |
14288 | grep -v '^ *+' conftest.er1 >conftest.err |
14289 | rm -f conftest.er1 | |
14290 | cat conftest.err >&5 | |
a848cd7e SC |
14291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14292 | (exit $ac_status); } && | |
c228d3a4 RN |
14293 | { ac_try='test -z "$ac_c_werror_flag" |
14294 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14296 | (eval $ac_try) 2>&5 | |
14297 | ac_status=$? | |
14298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14299 | (exit $ac_status); }; } && | |
14300 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14302 | (eval $ac_try) 2>&5 | |
14303 | ac_status=$? | |
14304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14305 | (exit $ac_status); }; }; then | |
14306 | ac_cv_c_const=yes | |
14307 | else | |
14308 | echo "$as_me: failed program was:" >&5 | |
14309 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14310 | ||
14311 | ac_cv_c_const=no | |
14312 | fi | |
ac1cb8d3 | 14313 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14314 | fi |
14315 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
14316 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
14317 | if test $ac_cv_c_const = no; then | |
14318 | ||
14319 | cat >>confdefs.h <<\_ACEOF | |
14320 | #define const | |
14321 | _ACEOF | |
14322 | ||
14323 | fi | |
14324 | ||
14325 | echo "$as_me:$LINENO: checking for inline" >&5 | |
14326 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
14327 | if test "${ac_cv_c_inline+set}" = set; then | |
14328 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14329 | else | |
14330 | ac_cv_c_inline=no | |
14331 | for ac_kw in inline __inline__ __inline; do | |
14332 | cat >conftest.$ac_ext <<_ACEOF | |
14333 | /* confdefs.h. */ | |
14334 | _ACEOF | |
14335 | cat confdefs.h >>conftest.$ac_ext | |
14336 | cat >>conftest.$ac_ext <<_ACEOF | |
14337 | /* end confdefs.h. */ | |
14338 | #ifndef __cplusplus | |
14339 | typedef int foo_t; | |
14340 | static $ac_kw foo_t static_foo () {return 0; } | |
14341 | $ac_kw foo_t foo () {return 0; } | |
14342 | #endif | |
14343 | ||
14344 | _ACEOF | |
14345 | rm -f conftest.$ac_objext | |
14346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14347 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14348 | ac_status=$? |
ac1cb8d3 VS |
14349 | grep -v '^ *+' conftest.er1 >conftest.err |
14350 | rm -f conftest.er1 | |
14351 | cat conftest.err >&5 | |
a848cd7e SC |
14352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14353 | (exit $ac_status); } && | |
c228d3a4 RN |
14354 | { ac_try='test -z "$ac_c_werror_flag" |
14355 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14357 | (eval $ac_try) 2>&5 | |
14358 | ac_status=$? | |
14359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14360 | (exit $ac_status); }; } && | |
14361 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14363 | (eval $ac_try) 2>&5 | |
14364 | ac_status=$? | |
14365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14366 | (exit $ac_status); }; }; then | |
14367 | ac_cv_c_inline=$ac_kw; break | |
14368 | else | |
14369 | echo "$as_me: failed program was:" >&5 | |
14370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14371 | ||
14372 | fi | |
ac1cb8d3 | 14373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14374 | done |
14375 | ||
14376 | fi | |
14377 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
14378 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
14379 | |
14380 | ||
a848cd7e SC |
14381 | case $ac_cv_c_inline in |
14382 | inline | yes) ;; | |
ac1cb8d3 VS |
14383 | *) |
14384 | case $ac_cv_c_inline in | |
14385 | no) ac_val=;; | |
14386 | *) ac_val=$ac_cv_c_inline;; | |
14387 | esac | |
14388 | cat >>confdefs.h <<_ACEOF | |
14389 | #ifndef __cplusplus | |
14390 | #define inline $ac_val | |
14391 | #endif | |
de59c161 | 14392 | _ACEOF |
ac1cb8d3 | 14393 | ;; |
a848cd7e SC |
14394 | esac |
14395 | ||
14396 | ||
14397 | echo "$as_me:$LINENO: checking for char" >&5 | |
14398 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
14399 | if test "${ac_cv_type_char+set}" = set; then | |
14400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14401 | else | |
14402 | cat >conftest.$ac_ext <<_ACEOF | |
14403 | /* confdefs.h. */ | |
14404 | _ACEOF | |
14405 | cat confdefs.h >>conftest.$ac_ext | |
14406 | cat >>conftest.$ac_ext <<_ACEOF | |
14407 | /* end confdefs.h. */ | |
14408 | $ac_includes_default | |
14409 | int | |
14410 | main () | |
14411 | { | |
14412 | if ((char *) 0) | |
14413 | return 0; | |
14414 | if (sizeof (char)) | |
14415 | return 0; | |
14416 | ; | |
14417 | return 0; | |
14418 | } | |
14419 | _ACEOF | |
14420 | rm -f conftest.$ac_objext | |
14421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14422 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14423 | ac_status=$? |
ac1cb8d3 VS |
14424 | grep -v '^ *+' conftest.er1 >conftest.err |
14425 | rm -f conftest.er1 | |
14426 | cat conftest.err >&5 | |
a848cd7e SC |
14427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14428 | (exit $ac_status); } && | |
c228d3a4 RN |
14429 | { ac_try='test -z "$ac_c_werror_flag" |
14430 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14432 | (eval $ac_try) 2>&5 | |
14433 | ac_status=$? | |
14434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14435 | (exit $ac_status); }; } && | |
14436 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14438 | (eval $ac_try) 2>&5 | |
14439 | ac_status=$? | |
14440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14441 | (exit $ac_status); }; }; then | |
14442 | ac_cv_type_char=yes | |
14443 | else | |
14444 | echo "$as_me: failed program was:" >&5 | |
14445 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14446 | ||
14447 | ac_cv_type_char=no | |
14448 | fi | |
ac1cb8d3 | 14449 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14450 | fi |
14451 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
14452 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
14453 | ||
14454 | echo "$as_me:$LINENO: checking size of char" >&5 | |
14455 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
14456 | if test "${ac_cv_sizeof_char+set}" = set; then | |
14457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14458 | else | |
14459 | if test "$ac_cv_type_char" = yes; then | |
14460 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14461 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14462 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14463 | # This bug is HP SR number 8606223364. | |
14464 | if test "$cross_compiling" = yes; then | |
14465 | # Depending upon the size, compute the lo and hi bounds. | |
14466 | cat >conftest.$ac_ext <<_ACEOF | |
14467 | /* confdefs.h. */ | |
14468 | _ACEOF | |
14469 | cat confdefs.h >>conftest.$ac_ext | |
14470 | cat >>conftest.$ac_ext <<_ACEOF | |
14471 | /* end confdefs.h. */ | |
14472 | $ac_includes_default | |
14473 | int | |
14474 | main () | |
14475 | { | |
14476 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
14477 | test_array [0] = 0 | |
14478 | ||
14479 | ; | |
14480 | return 0; | |
14481 | } | |
14482 | _ACEOF | |
14483 | rm -f conftest.$ac_objext | |
14484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14485 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14486 | ac_status=$? |
ac1cb8d3 VS |
14487 | grep -v '^ *+' conftest.er1 >conftest.err |
14488 | rm -f conftest.er1 | |
14489 | cat conftest.err >&5 | |
a848cd7e SC |
14490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14491 | (exit $ac_status); } && | |
c228d3a4 RN |
14492 | { ac_try='test -z "$ac_c_werror_flag" |
14493 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14495 | (eval $ac_try) 2>&5 | |
14496 | ac_status=$? | |
14497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14498 | (exit $ac_status); }; } && | |
14499 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14501 | (eval $ac_try) 2>&5 | |
14502 | ac_status=$? | |
14503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14504 | (exit $ac_status); }; }; then | |
14505 | ac_lo=0 ac_mid=0 | |
14506 | while :; do | |
14507 | cat >conftest.$ac_ext <<_ACEOF | |
14508 | /* confdefs.h. */ | |
14509 | _ACEOF | |
14510 | cat confdefs.h >>conftest.$ac_ext | |
14511 | cat >>conftest.$ac_ext <<_ACEOF | |
14512 | /* end confdefs.h. */ | |
14513 | $ac_includes_default | |
14514 | int | |
14515 | main () | |
14516 | { | |
14517 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14518 | test_array [0] = 0 | |
14519 | ||
14520 | ; | |
14521 | return 0; | |
14522 | } | |
14523 | _ACEOF | |
14524 | rm -f conftest.$ac_objext | |
14525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14526 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14527 | ac_status=$? |
ac1cb8d3 VS |
14528 | grep -v '^ *+' conftest.er1 >conftest.err |
14529 | rm -f conftest.er1 | |
14530 | cat conftest.err >&5 | |
a848cd7e SC |
14531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14532 | (exit $ac_status); } && | |
c228d3a4 RN |
14533 | { ac_try='test -z "$ac_c_werror_flag" |
14534 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14536 | (eval $ac_try) 2>&5 | |
14537 | ac_status=$? | |
14538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14539 | (exit $ac_status); }; } && | |
14540 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14542 | (eval $ac_try) 2>&5 | |
14543 | ac_status=$? | |
14544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14545 | (exit $ac_status); }; }; then | |
14546 | ac_hi=$ac_mid; break | |
14547 | else | |
14548 | echo "$as_me: failed program was:" >&5 | |
14549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14550 | ||
14551 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
14552 | if test $ac_lo -le $ac_mid; then |
14553 | ac_lo= ac_hi= | |
14554 | break | |
14555 | fi | |
14556 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 14557 | fi |
ac1cb8d3 | 14558 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14559 | done |
14560 | else | |
14561 | echo "$as_me: failed program was:" >&5 | |
14562 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14563 | ||
14564 | cat >conftest.$ac_ext <<_ACEOF | |
14565 | /* confdefs.h. */ | |
14566 | _ACEOF | |
14567 | cat confdefs.h >>conftest.$ac_ext | |
14568 | cat >>conftest.$ac_ext <<_ACEOF | |
14569 | /* end confdefs.h. */ | |
14570 | $ac_includes_default | |
14571 | int | |
14572 | main () | |
14573 | { | |
14574 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
14575 | test_array [0] = 0 | |
14576 | ||
14577 | ; | |
14578 | return 0; | |
14579 | } | |
14580 | _ACEOF | |
14581 | rm -f conftest.$ac_objext | |
14582 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14583 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14584 | ac_status=$? |
ac1cb8d3 VS |
14585 | grep -v '^ *+' conftest.er1 >conftest.err |
14586 | rm -f conftest.er1 | |
14587 | cat conftest.err >&5 | |
a848cd7e SC |
14588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14589 | (exit $ac_status); } && | |
c228d3a4 RN |
14590 | { ac_try='test -z "$ac_c_werror_flag" |
14591 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14593 | (eval $ac_try) 2>&5 | |
14594 | ac_status=$? | |
14595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14596 | (exit $ac_status); }; } && | |
14597 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14599 | (eval $ac_try) 2>&5 | |
14600 | ac_status=$? | |
14601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14602 | (exit $ac_status); }; }; then | |
14603 | ac_hi=-1 ac_mid=-1 | |
14604 | while :; do | |
14605 | cat >conftest.$ac_ext <<_ACEOF | |
14606 | /* confdefs.h. */ | |
14607 | _ACEOF | |
14608 | cat confdefs.h >>conftest.$ac_ext | |
14609 | cat >>conftest.$ac_ext <<_ACEOF | |
14610 | /* end confdefs.h. */ | |
14611 | $ac_includes_default | |
14612 | int | |
14613 | main () | |
14614 | { | |
14615 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
14616 | test_array [0] = 0 | |
14617 | ||
14618 | ; | |
14619 | return 0; | |
14620 | } | |
14621 | _ACEOF | |
14622 | rm -f conftest.$ac_objext | |
14623 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14624 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14625 | ac_status=$? |
ac1cb8d3 VS |
14626 | grep -v '^ *+' conftest.er1 >conftest.err |
14627 | rm -f conftest.er1 | |
14628 | cat conftest.err >&5 | |
a848cd7e SC |
14629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14630 | (exit $ac_status); } && | |
c228d3a4 RN |
14631 | { ac_try='test -z "$ac_c_werror_flag" |
14632 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14634 | (eval $ac_try) 2>&5 | |
14635 | ac_status=$? | |
14636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14637 | (exit $ac_status); }; } && | |
14638 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14640 | (eval $ac_try) 2>&5 | |
14641 | ac_status=$? | |
14642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14643 | (exit $ac_status); }; }; then | |
14644 | ac_lo=$ac_mid; break | |
14645 | else | |
14646 | echo "$as_me: failed program was:" >&5 | |
14647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14648 | ||
14649 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
14650 | if test $ac_mid -le $ac_hi; then |
14651 | ac_lo= ac_hi= | |
14652 | break | |
14653 | fi | |
14654 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 14655 | fi |
ac1cb8d3 | 14656 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14657 | done |
14658 | else | |
14659 | echo "$as_me: failed program was:" >&5 | |
14660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14661 | ||
14662 | ac_lo= ac_hi= | |
14663 | fi | |
ac1cb8d3 | 14664 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 14665 | fi |
ac1cb8d3 | 14666 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14667 | # Binary search between lo and hi bounds. |
14668 | while test "x$ac_lo" != "x$ac_hi"; do | |
14669 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14670 | cat >conftest.$ac_ext <<_ACEOF | |
14671 | /* confdefs.h. */ | |
14672 | _ACEOF | |
14673 | cat confdefs.h >>conftest.$ac_ext | |
14674 | cat >>conftest.$ac_ext <<_ACEOF | |
14675 | /* end confdefs.h. */ | |
14676 | $ac_includes_default | |
14677 | int | |
14678 | main () | |
14679 | { | |
14680 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14681 | test_array [0] = 0 | |
14682 | ||
14683 | ; | |
14684 | return 0; | |
14685 | } | |
14686 | _ACEOF | |
14687 | rm -f conftest.$ac_objext | |
14688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14689 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14690 | ac_status=$? |
ac1cb8d3 VS |
14691 | grep -v '^ *+' conftest.er1 >conftest.err |
14692 | rm -f conftest.er1 | |
14693 | cat conftest.err >&5 | |
a848cd7e SC |
14694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14695 | (exit $ac_status); } && | |
c228d3a4 RN |
14696 | { ac_try='test -z "$ac_c_werror_flag" |
14697 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14699 | (eval $ac_try) 2>&5 | |
14700 | ac_status=$? | |
14701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14702 | (exit $ac_status); }; } && | |
14703 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14705 | (eval $ac_try) 2>&5 | |
14706 | ac_status=$? | |
14707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14708 | (exit $ac_status); }; }; then | |
14709 | ac_hi=$ac_mid | |
14710 | else | |
14711 | echo "$as_me: failed program was:" >&5 | |
14712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14713 | ||
14714 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14715 | fi | |
ac1cb8d3 | 14716 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14717 | done |
14718 | case $ac_lo in | |
14719 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
14720 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14721 | See \`config.log' for more details." >&5 | |
14722 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14723 | See \`config.log' for more details." >&2;} | |
14724 | { (exit 1); exit 1; }; } ;; | |
14725 | esac | |
14726 | else | |
14727 | if test "$cross_compiling" = yes; then | |
c228d3a4 RN |
14728 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
14729 | See \`config.log' for more details." >&5 | |
14730 | echo "$as_me: error: cannot run test program while cross compiling | |
14731 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
14732 | { (exit 1); exit 1; }; } |
14733 | else | |
14734 | cat >conftest.$ac_ext <<_ACEOF | |
14735 | /* confdefs.h. */ | |
14736 | _ACEOF | |
14737 | cat confdefs.h >>conftest.$ac_ext | |
14738 | cat >>conftest.$ac_ext <<_ACEOF | |
14739 | /* end confdefs.h. */ | |
14740 | $ac_includes_default | |
14741 | long longval () { return (long) (sizeof (char)); } | |
14742 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
14743 | #include <stdio.h> | |
14744 | #include <stdlib.h> | |
14745 | int | |
14746 | main () | |
14747 | { | |
14748 | ||
14749 | FILE *f = fopen ("conftest.val", "w"); | |
14750 | if (! f) | |
14751 | exit (1); | |
14752 | if (((long) (sizeof (char))) < 0) | |
14753 | { | |
14754 | long i = longval (); | |
14755 | if (i != ((long) (sizeof (char)))) | |
14756 | exit (1); | |
14757 | fprintf (f, "%ld\n", i); | |
14758 | } | |
14759 | else | |
14760 | { | |
14761 | unsigned long i = ulongval (); | |
14762 | if (i != ((long) (sizeof (char)))) | |
14763 | exit (1); | |
14764 | fprintf (f, "%lu\n", i); | |
14765 | } | |
14766 | exit (ferror (f) || fclose (f) != 0); | |
14767 | ||
14768 | ; | |
14769 | return 0; | |
14770 | } | |
14771 | _ACEOF | |
14772 | rm -f conftest$ac_exeext | |
14773 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14774 | (eval $ac_link) 2>&5 | |
14775 | ac_status=$? | |
14776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14777 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14779 | (eval $ac_try) 2>&5 | |
14780 | ac_status=$? | |
14781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14782 | (exit $ac_status); }; }; then | |
14783 | ac_cv_sizeof_char=`cat conftest.val` | |
14784 | else | |
14785 | echo "$as_me: program exited with status $ac_status" >&5 | |
14786 | echo "$as_me: failed program was:" >&5 | |
14787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14788 | ||
14789 | ( exit $ac_status ) | |
14790 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14791 | See \`config.log' for more details." >&5 | |
14792 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14793 | See \`config.log' for more details." >&2;} | |
14794 | { (exit 1); exit 1; }; } | |
14795 | fi | |
ac1cb8d3 | 14796 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14797 | fi |
14798 | fi | |
14799 | rm -f conftest.val | |
14800 | else | |
14801 | ac_cv_sizeof_char=0 | |
14802 | fi | |
14803 | fi | |
14804 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
14805 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
14806 | cat >>confdefs.h <<_ACEOF | |
14807 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
14808 | _ACEOF | |
14809 | ||
14810 | ||
14811 | echo "$as_me:$LINENO: checking for short" >&5 | |
14812 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
14813 | if test "${ac_cv_type_short+set}" = set; then | |
14814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14815 | else | |
14816 | cat >conftest.$ac_ext <<_ACEOF | |
14817 | /* confdefs.h. */ | |
14818 | _ACEOF | |
14819 | cat confdefs.h >>conftest.$ac_ext | |
14820 | cat >>conftest.$ac_ext <<_ACEOF | |
14821 | /* end confdefs.h. */ | |
14822 | $ac_includes_default | |
14823 | int | |
14824 | main () | |
14825 | { | |
14826 | if ((short *) 0) | |
14827 | return 0; | |
14828 | if (sizeof (short)) | |
14829 | return 0; | |
14830 | ; | |
14831 | return 0; | |
14832 | } | |
14833 | _ACEOF | |
14834 | rm -f conftest.$ac_objext | |
14835 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14836 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14837 | ac_status=$? |
ac1cb8d3 VS |
14838 | grep -v '^ *+' conftest.er1 >conftest.err |
14839 | rm -f conftest.er1 | |
14840 | cat conftest.err >&5 | |
a848cd7e SC |
14841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14842 | (exit $ac_status); } && | |
c228d3a4 RN |
14843 | { ac_try='test -z "$ac_c_werror_flag" |
14844 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14846 | (eval $ac_try) 2>&5 | |
14847 | ac_status=$? | |
14848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14849 | (exit $ac_status); }; } && | |
14850 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14852 | (eval $ac_try) 2>&5 | |
14853 | ac_status=$? | |
14854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14855 | (exit $ac_status); }; }; then | |
14856 | ac_cv_type_short=yes | |
14857 | else | |
14858 | echo "$as_me: failed program was:" >&5 | |
14859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14860 | ||
14861 | ac_cv_type_short=no | |
14862 | fi | |
ac1cb8d3 | 14863 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14864 | fi |
14865 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
14866 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
14867 | ||
14868 | echo "$as_me:$LINENO: checking size of short" >&5 | |
14869 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
14870 | if test "${ac_cv_sizeof_short+set}" = set; then | |
14871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14872 | else | |
14873 | if test "$ac_cv_type_short" = yes; then | |
14874 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14875 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14876 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14877 | # This bug is HP SR number 8606223364. | |
14878 | if test "$cross_compiling" = yes; then | |
14879 | # Depending upon the size, compute the lo and hi bounds. | |
14880 | cat >conftest.$ac_ext <<_ACEOF | |
14881 | /* confdefs.h. */ | |
14882 | _ACEOF | |
14883 | cat confdefs.h >>conftest.$ac_ext | |
14884 | cat >>conftest.$ac_ext <<_ACEOF | |
14885 | /* end confdefs.h. */ | |
14886 | $ac_includes_default | |
14887 | int | |
14888 | main () | |
14889 | { | |
14890 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
14891 | test_array [0] = 0 | |
14892 | ||
14893 | ; | |
14894 | return 0; | |
14895 | } | |
14896 | _ACEOF | |
14897 | rm -f conftest.$ac_objext | |
14898 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14899 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14900 | ac_status=$? |
ac1cb8d3 VS |
14901 | grep -v '^ *+' conftest.er1 >conftest.err |
14902 | rm -f conftest.er1 | |
14903 | cat conftest.err >&5 | |
a848cd7e SC |
14904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14905 | (exit $ac_status); } && | |
c228d3a4 RN |
14906 | { ac_try='test -z "$ac_c_werror_flag" |
14907 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14909 | (eval $ac_try) 2>&5 | |
14910 | ac_status=$? | |
14911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14912 | (exit $ac_status); }; } && | |
14913 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14915 | (eval $ac_try) 2>&5 | |
14916 | ac_status=$? | |
14917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14918 | (exit $ac_status); }; }; then | |
14919 | ac_lo=0 ac_mid=0 | |
14920 | while :; do | |
14921 | cat >conftest.$ac_ext <<_ACEOF | |
14922 | /* confdefs.h. */ | |
14923 | _ACEOF | |
14924 | cat confdefs.h >>conftest.$ac_ext | |
14925 | cat >>conftest.$ac_ext <<_ACEOF | |
14926 | /* end confdefs.h. */ | |
14927 | $ac_includes_default | |
14928 | int | |
14929 | main () | |
14930 | { | |
14931 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14932 | test_array [0] = 0 | |
14933 | ||
14934 | ; | |
14935 | return 0; | |
14936 | } | |
14937 | _ACEOF | |
14938 | rm -f conftest.$ac_objext | |
14939 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14940 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14941 | ac_status=$? |
ac1cb8d3 VS |
14942 | grep -v '^ *+' conftest.er1 >conftest.err |
14943 | rm -f conftest.er1 | |
14944 | cat conftest.err >&5 | |
a848cd7e SC |
14945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14946 | (exit $ac_status); } && | |
c228d3a4 RN |
14947 | { ac_try='test -z "$ac_c_werror_flag" |
14948 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14950 | (eval $ac_try) 2>&5 | |
14951 | ac_status=$? | |
14952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14953 | (exit $ac_status); }; } && | |
14954 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14956 | (eval $ac_try) 2>&5 | |
14957 | ac_status=$? | |
14958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14959 | (exit $ac_status); }; }; then | |
14960 | ac_hi=$ac_mid; break | |
14961 | else | |
14962 | echo "$as_me: failed program was:" >&5 | |
14963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14964 | ||
14965 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
14966 | if test $ac_lo -le $ac_mid; then |
14967 | ac_lo= ac_hi= | |
14968 | break | |
14969 | fi | |
14970 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 14971 | fi |
ac1cb8d3 | 14972 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14973 | done |
14974 | else | |
14975 | echo "$as_me: failed program was:" >&5 | |
14976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14977 | ||
14978 | cat >conftest.$ac_ext <<_ACEOF | |
14979 | /* confdefs.h. */ | |
14980 | _ACEOF | |
14981 | cat confdefs.h >>conftest.$ac_ext | |
14982 | cat >>conftest.$ac_ext <<_ACEOF | |
14983 | /* end confdefs.h. */ | |
14984 | $ac_includes_default | |
14985 | int | |
14986 | main () | |
14987 | { | |
14988 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
14989 | test_array [0] = 0 | |
14990 | ||
14991 | ; | |
14992 | return 0; | |
14993 | } | |
14994 | _ACEOF | |
14995 | rm -f conftest.$ac_objext | |
14996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14997 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14998 | ac_status=$? |
ac1cb8d3 VS |
14999 | grep -v '^ *+' conftest.er1 >conftest.err |
15000 | rm -f conftest.er1 | |
15001 | cat conftest.err >&5 | |
a848cd7e SC |
15002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15003 | (exit $ac_status); } && | |
c228d3a4 RN |
15004 | { ac_try='test -z "$ac_c_werror_flag" |
15005 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15007 | (eval $ac_try) 2>&5 | |
15008 | ac_status=$? | |
15009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15010 | (exit $ac_status); }; } && | |
15011 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15013 | (eval $ac_try) 2>&5 | |
15014 | ac_status=$? | |
15015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15016 | (exit $ac_status); }; }; then | |
15017 | ac_hi=-1 ac_mid=-1 | |
15018 | while :; do | |
15019 | cat >conftest.$ac_ext <<_ACEOF | |
15020 | /* confdefs.h. */ | |
15021 | _ACEOF | |
15022 | cat confdefs.h >>conftest.$ac_ext | |
15023 | cat >>conftest.$ac_ext <<_ACEOF | |
15024 | /* end confdefs.h. */ | |
15025 | $ac_includes_default | |
15026 | int | |
15027 | main () | |
15028 | { | |
15029 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
15030 | test_array [0] = 0 | |
15031 | ||
15032 | ; | |
15033 | return 0; | |
15034 | } | |
15035 | _ACEOF | |
15036 | rm -f conftest.$ac_objext | |
15037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15038 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15039 | ac_status=$? |
ac1cb8d3 VS |
15040 | grep -v '^ *+' conftest.er1 >conftest.err |
15041 | rm -f conftest.er1 | |
15042 | cat conftest.err >&5 | |
a848cd7e SC |
15043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15044 | (exit $ac_status); } && | |
c228d3a4 RN |
15045 | { ac_try='test -z "$ac_c_werror_flag" |
15046 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15048 | (eval $ac_try) 2>&5 | |
15049 | ac_status=$? | |
15050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15051 | (exit $ac_status); }; } && | |
15052 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15054 | (eval $ac_try) 2>&5 | |
15055 | ac_status=$? | |
15056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15057 | (exit $ac_status); }; }; then | |
15058 | ac_lo=$ac_mid; break | |
15059 | else | |
15060 | echo "$as_me: failed program was:" >&5 | |
15061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15062 | ||
15063 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15064 | if test $ac_mid -le $ac_hi; then |
15065 | ac_lo= ac_hi= | |
15066 | break | |
15067 | fi | |
15068 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15069 | fi |
ac1cb8d3 | 15070 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15071 | done |
15072 | else | |
15073 | echo "$as_me: failed program was:" >&5 | |
15074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15075 | ||
15076 | ac_lo= ac_hi= | |
15077 | fi | |
ac1cb8d3 | 15078 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15079 | fi |
ac1cb8d3 | 15080 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15081 | # Binary search between lo and hi bounds. |
15082 | while test "x$ac_lo" != "x$ac_hi"; do | |
15083 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15084 | cat >conftest.$ac_ext <<_ACEOF | |
15085 | /* confdefs.h. */ | |
15086 | _ACEOF | |
15087 | cat confdefs.h >>conftest.$ac_ext | |
15088 | cat >>conftest.$ac_ext <<_ACEOF | |
15089 | /* end confdefs.h. */ | |
15090 | $ac_includes_default | |
15091 | int | |
15092 | main () | |
15093 | { | |
15094 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
15095 | test_array [0] = 0 | |
15096 | ||
15097 | ; | |
15098 | return 0; | |
15099 | } | |
15100 | _ACEOF | |
15101 | rm -f conftest.$ac_objext | |
15102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15103 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15104 | ac_status=$? |
ac1cb8d3 VS |
15105 | grep -v '^ *+' conftest.er1 >conftest.err |
15106 | rm -f conftest.er1 | |
15107 | cat conftest.err >&5 | |
a848cd7e SC |
15108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15109 | (exit $ac_status); } && | |
c228d3a4 RN |
15110 | { ac_try='test -z "$ac_c_werror_flag" |
15111 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15113 | (eval $ac_try) 2>&5 | |
15114 | ac_status=$? | |
15115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15116 | (exit $ac_status); }; } && | |
15117 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15119 | (eval $ac_try) 2>&5 | |
15120 | ac_status=$? | |
15121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15122 | (exit $ac_status); }; }; then | |
15123 | ac_hi=$ac_mid | |
15124 | else | |
15125 | echo "$as_me: failed program was:" >&5 | |
15126 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15127 | ||
15128 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15129 | fi | |
ac1cb8d3 | 15130 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15131 | done |
15132 | case $ac_lo in | |
15133 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
15134 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15135 | See \`config.log' for more details." >&5 | |
15136 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15137 | See \`config.log' for more details." >&2;} | |
15138 | { (exit 1); exit 1; }; } ;; | |
15139 | esac | |
15140 | else | |
15141 | if test "$cross_compiling" = yes; then | |
c228d3a4 RN |
15142 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
15143 | See \`config.log' for more details." >&5 | |
15144 | echo "$as_me: error: cannot run test program while cross compiling | |
15145 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
15146 | { (exit 1); exit 1; }; } |
15147 | else | |
15148 | cat >conftest.$ac_ext <<_ACEOF | |
15149 | /* confdefs.h. */ | |
15150 | _ACEOF | |
15151 | cat confdefs.h >>conftest.$ac_ext | |
15152 | cat >>conftest.$ac_ext <<_ACEOF | |
15153 | /* end confdefs.h. */ | |
15154 | $ac_includes_default | |
15155 | long longval () { return (long) (sizeof (short)); } | |
15156 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
15157 | #include <stdio.h> | |
15158 | #include <stdlib.h> | |
15159 | int | |
15160 | main () | |
15161 | { | |
15162 | ||
15163 | FILE *f = fopen ("conftest.val", "w"); | |
15164 | if (! f) | |
15165 | exit (1); | |
15166 | if (((long) (sizeof (short))) < 0) | |
15167 | { | |
15168 | long i = longval (); | |
15169 | if (i != ((long) (sizeof (short)))) | |
15170 | exit (1); | |
15171 | fprintf (f, "%ld\n", i); | |
15172 | } | |
15173 | else | |
15174 | { | |
15175 | unsigned long i = ulongval (); | |
15176 | if (i != ((long) (sizeof (short)))) | |
15177 | exit (1); | |
15178 | fprintf (f, "%lu\n", i); | |
15179 | } | |
15180 | exit (ferror (f) || fclose (f) != 0); | |
15181 | ||
15182 | ; | |
15183 | return 0; | |
15184 | } | |
15185 | _ACEOF | |
15186 | rm -f conftest$ac_exeext | |
15187 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15188 | (eval $ac_link) 2>&5 | |
15189 | ac_status=$? | |
15190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15191 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15193 | (eval $ac_try) 2>&5 | |
15194 | ac_status=$? | |
15195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15196 | (exit $ac_status); }; }; then | |
15197 | ac_cv_sizeof_short=`cat conftest.val` | |
15198 | else | |
15199 | echo "$as_me: program exited with status $ac_status" >&5 | |
15200 | echo "$as_me: failed program was:" >&5 | |
15201 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15202 | ||
15203 | ( exit $ac_status ) | |
15204 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15205 | See \`config.log' for more details." >&5 | |
15206 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15207 | See \`config.log' for more details." >&2;} | |
15208 | { (exit 1); exit 1; }; } | |
15209 | fi | |
ac1cb8d3 | 15210 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15211 | fi |
15212 | fi | |
15213 | rm -f conftest.val | |
15214 | else | |
15215 | ac_cv_sizeof_short=0 | |
15216 | fi | |
15217 | fi | |
15218 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
15219 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
15220 | cat >>confdefs.h <<_ACEOF | |
15221 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
15222 | _ACEOF | |
15223 | ||
15224 | ||
15225 | echo "$as_me:$LINENO: checking for void *" >&5 | |
15226 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
15227 | if test "${ac_cv_type_void_p+set}" = set; then | |
15228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15229 | else | |
15230 | cat >conftest.$ac_ext <<_ACEOF | |
15231 | /* confdefs.h. */ | |
15232 | _ACEOF | |
15233 | cat confdefs.h >>conftest.$ac_ext | |
15234 | cat >>conftest.$ac_ext <<_ACEOF | |
15235 | /* end confdefs.h. */ | |
15236 | $ac_includes_default | |
15237 | int | |
15238 | main () | |
15239 | { | |
15240 | if ((void * *) 0) | |
15241 | return 0; | |
15242 | if (sizeof (void *)) | |
15243 | return 0; | |
15244 | ; | |
15245 | return 0; | |
15246 | } | |
15247 | _ACEOF | |
15248 | rm -f conftest.$ac_objext | |
15249 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15250 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15251 | ac_status=$? |
ac1cb8d3 VS |
15252 | grep -v '^ *+' conftest.er1 >conftest.err |
15253 | rm -f conftest.er1 | |
15254 | cat conftest.err >&5 | |
a848cd7e SC |
15255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15256 | (exit $ac_status); } && | |
c228d3a4 RN |
15257 | { ac_try='test -z "$ac_c_werror_flag" |
15258 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15260 | (eval $ac_try) 2>&5 | |
15261 | ac_status=$? | |
15262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15263 | (exit $ac_status); }; } && | |
15264 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15266 | (eval $ac_try) 2>&5 | |
15267 | ac_status=$? | |
15268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15269 | (exit $ac_status); }; }; then | |
15270 | ac_cv_type_void_p=yes | |
15271 | else | |
15272 | echo "$as_me: failed program was:" >&5 | |
15273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15274 | ||
15275 | ac_cv_type_void_p=no | |
15276 | fi | |
ac1cb8d3 | 15277 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15278 | fi |
15279 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
15280 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
15281 | ||
15282 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
15283 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
15284 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
15285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15286 | else | |
15287 | if test "$ac_cv_type_void_p" = yes; then | |
15288 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15289 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15290 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15291 | # This bug is HP SR number 8606223364. | |
15292 | if test "$cross_compiling" = yes; then | |
15293 | # Depending upon the size, compute the lo and hi bounds. | |
15294 | cat >conftest.$ac_ext <<_ACEOF | |
15295 | /* confdefs.h. */ | |
15296 | _ACEOF | |
15297 | cat confdefs.h >>conftest.$ac_ext | |
15298 | cat >>conftest.$ac_ext <<_ACEOF | |
15299 | /* end confdefs.h. */ | |
15300 | $ac_includes_default | |
15301 | int | |
15302 | main () | |
15303 | { | |
15304 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
15305 | test_array [0] = 0 | |
15306 | ||
15307 | ; | |
15308 | return 0; | |
15309 | } | |
15310 | _ACEOF | |
15311 | rm -f conftest.$ac_objext | |
15312 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15313 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15314 | ac_status=$? |
ac1cb8d3 VS |
15315 | grep -v '^ *+' conftest.er1 >conftest.err |
15316 | rm -f conftest.er1 | |
15317 | cat conftest.err >&5 | |
a848cd7e SC |
15318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15319 | (exit $ac_status); } && | |
c228d3a4 RN |
15320 | { ac_try='test -z "$ac_c_werror_flag" |
15321 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15323 | (eval $ac_try) 2>&5 | |
15324 | ac_status=$? | |
15325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15326 | (exit $ac_status); }; } && | |
15327 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15329 | (eval $ac_try) 2>&5 | |
15330 | ac_status=$? | |
15331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15332 | (exit $ac_status); }; }; then | |
15333 | ac_lo=0 ac_mid=0 | |
15334 | while :; do | |
15335 | cat >conftest.$ac_ext <<_ACEOF | |
15336 | /* confdefs.h. */ | |
15337 | _ACEOF | |
15338 | cat confdefs.h >>conftest.$ac_ext | |
15339 | cat >>conftest.$ac_ext <<_ACEOF | |
15340 | /* end confdefs.h. */ | |
15341 | $ac_includes_default | |
15342 | int | |
15343 | main () | |
15344 | { | |
15345 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15346 | test_array [0] = 0 | |
15347 | ||
15348 | ; | |
15349 | return 0; | |
15350 | } | |
15351 | _ACEOF | |
15352 | rm -f conftest.$ac_objext | |
15353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15354 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15355 | ac_status=$? |
ac1cb8d3 VS |
15356 | grep -v '^ *+' conftest.er1 >conftest.err |
15357 | rm -f conftest.er1 | |
15358 | cat conftest.err >&5 | |
a848cd7e SC |
15359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15360 | (exit $ac_status); } && | |
c228d3a4 RN |
15361 | { ac_try='test -z "$ac_c_werror_flag" |
15362 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15364 | (eval $ac_try) 2>&5 | |
15365 | ac_status=$? | |
15366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15367 | (exit $ac_status); }; } && | |
15368 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15370 | (eval $ac_try) 2>&5 | |
15371 | ac_status=$? | |
15372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15373 | (exit $ac_status); }; }; then | |
15374 | ac_hi=$ac_mid; break | |
15375 | else | |
15376 | echo "$as_me: failed program was:" >&5 | |
15377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15378 | ||
15379 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15380 | if test $ac_lo -le $ac_mid; then |
15381 | ac_lo= ac_hi= | |
15382 | break | |
15383 | fi | |
15384 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15385 | fi |
ac1cb8d3 | 15386 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15387 | done |
15388 | else | |
15389 | echo "$as_me: failed program was:" >&5 | |
15390 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15391 | ||
15392 | cat >conftest.$ac_ext <<_ACEOF | |
15393 | /* confdefs.h. */ | |
15394 | _ACEOF | |
15395 | cat confdefs.h >>conftest.$ac_ext | |
15396 | cat >>conftest.$ac_ext <<_ACEOF | |
15397 | /* end confdefs.h. */ | |
15398 | $ac_includes_default | |
15399 | int | |
15400 | main () | |
15401 | { | |
15402 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
15403 | test_array [0] = 0 | |
15404 | ||
15405 | ; | |
15406 | return 0; | |
15407 | } | |
15408 | _ACEOF | |
15409 | rm -f conftest.$ac_objext | |
15410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15411 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15412 | ac_status=$? |
ac1cb8d3 VS |
15413 | grep -v '^ *+' conftest.er1 >conftest.err |
15414 | rm -f conftest.er1 | |
15415 | cat conftest.err >&5 | |
a848cd7e SC |
15416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15417 | (exit $ac_status); } && | |
c228d3a4 RN |
15418 | { ac_try='test -z "$ac_c_werror_flag" |
15419 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15421 | (eval $ac_try) 2>&5 | |
15422 | ac_status=$? | |
15423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15424 | (exit $ac_status); }; } && | |
15425 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15427 | (eval $ac_try) 2>&5 | |
15428 | ac_status=$? | |
15429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15430 | (exit $ac_status); }; }; then | |
15431 | ac_hi=-1 ac_mid=-1 | |
15432 | while :; do | |
15433 | cat >conftest.$ac_ext <<_ACEOF | |
15434 | /* confdefs.h. */ | |
15435 | _ACEOF | |
15436 | cat confdefs.h >>conftest.$ac_ext | |
15437 | cat >>conftest.$ac_ext <<_ACEOF | |
15438 | /* end confdefs.h. */ | |
15439 | $ac_includes_default | |
15440 | int | |
15441 | main () | |
15442 | { | |
15443 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
15444 | test_array [0] = 0 | |
15445 | ||
15446 | ; | |
15447 | return 0; | |
15448 | } | |
15449 | _ACEOF | |
15450 | rm -f conftest.$ac_objext | |
15451 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15452 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15453 | ac_status=$? |
ac1cb8d3 VS |
15454 | grep -v '^ *+' conftest.er1 >conftest.err |
15455 | rm -f conftest.er1 | |
15456 | cat conftest.err >&5 | |
a848cd7e SC |
15457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15458 | (exit $ac_status); } && | |
c228d3a4 RN |
15459 | { ac_try='test -z "$ac_c_werror_flag" |
15460 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15462 | (eval $ac_try) 2>&5 | |
15463 | ac_status=$? | |
15464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15465 | (exit $ac_status); }; } && | |
15466 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15468 | (eval $ac_try) 2>&5 | |
15469 | ac_status=$? | |
15470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15471 | (exit $ac_status); }; }; then | |
15472 | ac_lo=$ac_mid; break | |
15473 | else | |
15474 | echo "$as_me: failed program was:" >&5 | |
15475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15476 | ||
15477 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15478 | if test $ac_mid -le $ac_hi; then |
15479 | ac_lo= ac_hi= | |
15480 | break | |
15481 | fi | |
15482 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15483 | fi |
ac1cb8d3 | 15484 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15485 | done |
15486 | else | |
15487 | echo "$as_me: failed program was:" >&5 | |
15488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15489 | ||
15490 | ac_lo= ac_hi= | |
15491 | fi | |
ac1cb8d3 | 15492 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15493 | fi |
ac1cb8d3 | 15494 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15495 | # Binary search between lo and hi bounds. |
15496 | while test "x$ac_lo" != "x$ac_hi"; do | |
15497 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15498 | cat >conftest.$ac_ext <<_ACEOF | |
15499 | /* confdefs.h. */ | |
15500 | _ACEOF | |
15501 | cat confdefs.h >>conftest.$ac_ext | |
15502 | cat >>conftest.$ac_ext <<_ACEOF | |
15503 | /* end confdefs.h. */ | |
15504 | $ac_includes_default | |
15505 | int | |
15506 | main () | |
15507 | { | |
15508 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15509 | test_array [0] = 0 | |
15510 | ||
15511 | ; | |
15512 | return 0; | |
15513 | } | |
15514 | _ACEOF | |
15515 | rm -f conftest.$ac_objext | |
15516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15517 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15518 | ac_status=$? |
ac1cb8d3 VS |
15519 | grep -v '^ *+' conftest.er1 >conftest.err |
15520 | rm -f conftest.er1 | |
15521 | cat conftest.err >&5 | |
a848cd7e SC |
15522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15523 | (exit $ac_status); } && | |
c228d3a4 RN |
15524 | { ac_try='test -z "$ac_c_werror_flag" |
15525 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15527 | (eval $ac_try) 2>&5 | |
15528 | ac_status=$? | |
15529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15530 | (exit $ac_status); }; } && | |
15531 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15533 | (eval $ac_try) 2>&5 | |
15534 | ac_status=$? | |
15535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15536 | (exit $ac_status); }; }; then | |
15537 | ac_hi=$ac_mid | |
15538 | else | |
15539 | echo "$as_me: failed program was:" >&5 | |
15540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15541 | ||
15542 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15543 | fi | |
ac1cb8d3 | 15544 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15545 | done |
15546 | case $ac_lo in | |
15547 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
15548 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15549 | See \`config.log' for more details." >&5 | |
15550 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15551 | See \`config.log' for more details." >&2;} | |
15552 | { (exit 1); exit 1; }; } ;; | |
15553 | esac | |
15554 | else | |
15555 | if test "$cross_compiling" = yes; then | |
c228d3a4 RN |
15556 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
15557 | See \`config.log' for more details." >&5 | |
15558 | echo "$as_me: error: cannot run test program while cross compiling | |
15559 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
15560 | { (exit 1); exit 1; }; } |
15561 | else | |
15562 | cat >conftest.$ac_ext <<_ACEOF | |
15563 | /* confdefs.h. */ | |
15564 | _ACEOF | |
15565 | cat confdefs.h >>conftest.$ac_ext | |
15566 | cat >>conftest.$ac_ext <<_ACEOF | |
15567 | /* end confdefs.h. */ | |
15568 | $ac_includes_default | |
15569 | long longval () { return (long) (sizeof (void *)); } | |
15570 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
15571 | #include <stdio.h> | |
15572 | #include <stdlib.h> | |
15573 | int | |
15574 | main () | |
15575 | { | |
15576 | ||
15577 | FILE *f = fopen ("conftest.val", "w"); | |
15578 | if (! f) | |
15579 | exit (1); | |
15580 | if (((long) (sizeof (void *))) < 0) | |
15581 | { | |
15582 | long i = longval (); | |
15583 | if (i != ((long) (sizeof (void *)))) | |
15584 | exit (1); | |
15585 | fprintf (f, "%ld\n", i); | |
15586 | } | |
15587 | else | |
15588 | { | |
15589 | unsigned long i = ulongval (); | |
15590 | if (i != ((long) (sizeof (void *)))) | |
15591 | exit (1); | |
15592 | fprintf (f, "%lu\n", i); | |
15593 | } | |
15594 | exit (ferror (f) || fclose (f) != 0); | |
15595 | ||
15596 | ; | |
15597 | return 0; | |
15598 | } | |
15599 | _ACEOF | |
15600 | rm -f conftest$ac_exeext | |
15601 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15602 | (eval $ac_link) 2>&5 | |
15603 | ac_status=$? | |
15604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15605 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15607 | (eval $ac_try) 2>&5 | |
15608 | ac_status=$? | |
15609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15610 | (exit $ac_status); }; }; then | |
15611 | ac_cv_sizeof_void_p=`cat conftest.val` | |
15612 | else | |
15613 | echo "$as_me: program exited with status $ac_status" >&5 | |
15614 | echo "$as_me: failed program was:" >&5 | |
15615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15616 | ||
15617 | ( exit $ac_status ) | |
15618 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15619 | See \`config.log' for more details." >&5 | |
15620 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15621 | See \`config.log' for more details." >&2;} | |
15622 | { (exit 1); exit 1; }; } | |
15623 | fi | |
ac1cb8d3 | 15624 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15625 | fi |
15626 | fi | |
15627 | rm -f conftest.val | |
15628 | else | |
15629 | ac_cv_sizeof_void_p=0 | |
15630 | fi | |
15631 | fi | |
15632 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
15633 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
15634 | cat >>confdefs.h <<_ACEOF | |
15635 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
15636 | _ACEOF | |
15637 | ||
15638 | ||
15639 | echo "$as_me:$LINENO: checking for int" >&5 | |
15640 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
15641 | if test "${ac_cv_type_int+set}" = set; then | |
15642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15643 | else | |
15644 | cat >conftest.$ac_ext <<_ACEOF | |
15645 | /* confdefs.h. */ | |
15646 | _ACEOF | |
15647 | cat confdefs.h >>conftest.$ac_ext | |
15648 | cat >>conftest.$ac_ext <<_ACEOF | |
15649 | /* end confdefs.h. */ | |
15650 | $ac_includes_default | |
15651 | int | |
15652 | main () | |
15653 | { | |
15654 | if ((int *) 0) | |
15655 | return 0; | |
15656 | if (sizeof (int)) | |
15657 | return 0; | |
15658 | ; | |
15659 | return 0; | |
15660 | } | |
15661 | _ACEOF | |
15662 | rm -f conftest.$ac_objext | |
15663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15664 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15665 | ac_status=$? |
ac1cb8d3 VS |
15666 | grep -v '^ *+' conftest.er1 >conftest.err |
15667 | rm -f conftest.er1 | |
15668 | cat conftest.err >&5 | |
a848cd7e SC |
15669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15670 | (exit $ac_status); } && | |
c228d3a4 RN |
15671 | { ac_try='test -z "$ac_c_werror_flag" |
15672 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15674 | (eval $ac_try) 2>&5 | |
15675 | ac_status=$? | |
15676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15677 | (exit $ac_status); }; } && | |
15678 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15680 | (eval $ac_try) 2>&5 | |
15681 | ac_status=$? | |
15682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15683 | (exit $ac_status); }; }; then | |
15684 | ac_cv_type_int=yes | |
15685 | else | |
15686 | echo "$as_me: failed program was:" >&5 | |
15687 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15688 | ||
15689 | ac_cv_type_int=no | |
15690 | fi | |
ac1cb8d3 | 15691 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15692 | fi |
15693 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
15694 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
15695 | ||
15696 | echo "$as_me:$LINENO: checking size of int" >&5 | |
15697 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
15698 | if test "${ac_cv_sizeof_int+set}" = set; then | |
15699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15700 | else | |
15701 | if test "$ac_cv_type_int" = yes; then | |
15702 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15703 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15704 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15705 | # This bug is HP SR number 8606223364. | |
15706 | if test "$cross_compiling" = yes; then | |
15707 | # Depending upon the size, compute the lo and hi bounds. | |
15708 | cat >conftest.$ac_ext <<_ACEOF | |
15709 | /* confdefs.h. */ | |
15710 | _ACEOF | |
15711 | cat confdefs.h >>conftest.$ac_ext | |
15712 | cat >>conftest.$ac_ext <<_ACEOF | |
15713 | /* end confdefs.h. */ | |
15714 | $ac_includes_default | |
15715 | int | |
15716 | main () | |
15717 | { | |
15718 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
15719 | test_array [0] = 0 | |
15720 | ||
15721 | ; | |
15722 | return 0; | |
15723 | } | |
15724 | _ACEOF | |
15725 | rm -f conftest.$ac_objext | |
15726 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15727 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15728 | ac_status=$? |
ac1cb8d3 VS |
15729 | grep -v '^ *+' conftest.er1 >conftest.err |
15730 | rm -f conftest.er1 | |
15731 | cat conftest.err >&5 | |
a848cd7e SC |
15732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15733 | (exit $ac_status); } && | |
c228d3a4 RN |
15734 | { ac_try='test -z "$ac_c_werror_flag" |
15735 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15737 | (eval $ac_try) 2>&5 | |
15738 | ac_status=$? | |
15739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15740 | (exit $ac_status); }; } && | |
15741 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15743 | (eval $ac_try) 2>&5 | |
15744 | ac_status=$? | |
15745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15746 | (exit $ac_status); }; }; then | |
15747 | ac_lo=0 ac_mid=0 | |
15748 | while :; do | |
15749 | cat >conftest.$ac_ext <<_ACEOF | |
15750 | /* confdefs.h. */ | |
15751 | _ACEOF | |
15752 | cat confdefs.h >>conftest.$ac_ext | |
15753 | cat >>conftest.$ac_ext <<_ACEOF | |
15754 | /* end confdefs.h. */ | |
15755 | $ac_includes_default | |
15756 | int | |
15757 | main () | |
15758 | { | |
15759 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15760 | test_array [0] = 0 | |
15761 | ||
15762 | ; | |
15763 | return 0; | |
15764 | } | |
15765 | _ACEOF | |
15766 | rm -f conftest.$ac_objext | |
15767 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15768 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15769 | ac_status=$? |
ac1cb8d3 VS |
15770 | grep -v '^ *+' conftest.er1 >conftest.err |
15771 | rm -f conftest.er1 | |
15772 | cat conftest.err >&5 | |
a848cd7e SC |
15773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15774 | (exit $ac_status); } && | |
c228d3a4 RN |
15775 | { ac_try='test -z "$ac_c_werror_flag" |
15776 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15778 | (eval $ac_try) 2>&5 | |
15779 | ac_status=$? | |
15780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15781 | (exit $ac_status); }; } && | |
15782 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15784 | (eval $ac_try) 2>&5 | |
15785 | ac_status=$? | |
15786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15787 | (exit $ac_status); }; }; then | |
15788 | ac_hi=$ac_mid; break | |
15789 | else | |
15790 | echo "$as_me: failed program was:" >&5 | |
15791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15792 | ||
15793 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15794 | if test $ac_lo -le $ac_mid; then |
15795 | ac_lo= ac_hi= | |
15796 | break | |
15797 | fi | |
15798 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15799 | fi |
ac1cb8d3 | 15800 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15801 | done |
15802 | else | |
15803 | echo "$as_me: failed program was:" >&5 | |
15804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15805 | ||
15806 | cat >conftest.$ac_ext <<_ACEOF | |
15807 | /* confdefs.h. */ | |
15808 | _ACEOF | |
15809 | cat confdefs.h >>conftest.$ac_ext | |
15810 | cat >>conftest.$ac_ext <<_ACEOF | |
15811 | /* end confdefs.h. */ | |
15812 | $ac_includes_default | |
15813 | int | |
15814 | main () | |
15815 | { | |
15816 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
15817 | test_array [0] = 0 | |
15818 | ||
15819 | ; | |
15820 | return 0; | |
15821 | } | |
15822 | _ACEOF | |
15823 | rm -f conftest.$ac_objext | |
15824 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15825 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15826 | ac_status=$? |
ac1cb8d3 VS |
15827 | grep -v '^ *+' conftest.er1 >conftest.err |
15828 | rm -f conftest.er1 | |
15829 | cat conftest.err >&5 | |
a848cd7e SC |
15830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15831 | (exit $ac_status); } && | |
c228d3a4 RN |
15832 | { ac_try='test -z "$ac_c_werror_flag" |
15833 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15835 | (eval $ac_try) 2>&5 | |
15836 | ac_status=$? | |
15837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15838 | (exit $ac_status); }; } && | |
15839 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15841 | (eval $ac_try) 2>&5 | |
15842 | ac_status=$? | |
15843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15844 | (exit $ac_status); }; }; then | |
15845 | ac_hi=-1 ac_mid=-1 | |
15846 | while :; do | |
15847 | cat >conftest.$ac_ext <<_ACEOF | |
15848 | /* confdefs.h. */ | |
15849 | _ACEOF | |
15850 | cat confdefs.h >>conftest.$ac_ext | |
15851 | cat >>conftest.$ac_ext <<_ACEOF | |
15852 | /* end confdefs.h. */ | |
15853 | $ac_includes_default | |
15854 | int | |
15855 | main () | |
15856 | { | |
15857 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
15858 | test_array [0] = 0 | |
15859 | ||
15860 | ; | |
15861 | return 0; | |
15862 | } | |
15863 | _ACEOF | |
15864 | rm -f conftest.$ac_objext | |
15865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15866 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15867 | ac_status=$? |
ac1cb8d3 VS |
15868 | grep -v '^ *+' conftest.er1 >conftest.err |
15869 | rm -f conftest.er1 | |
15870 | cat conftest.err >&5 | |
a848cd7e SC |
15871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15872 | (exit $ac_status); } && | |
c228d3a4 RN |
15873 | { ac_try='test -z "$ac_c_werror_flag" |
15874 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15876 | (eval $ac_try) 2>&5 | |
15877 | ac_status=$? | |
15878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15879 | (exit $ac_status); }; } && | |
15880 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15882 | (eval $ac_try) 2>&5 | |
15883 | ac_status=$? | |
15884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15885 | (exit $ac_status); }; }; then | |
15886 | ac_lo=$ac_mid; break | |
15887 | else | |
15888 | echo "$as_me: failed program was:" >&5 | |
15889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15890 | ||
15891 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15892 | if test $ac_mid -le $ac_hi; then |
15893 | ac_lo= ac_hi= | |
15894 | break | |
15895 | fi | |
15896 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15897 | fi |
ac1cb8d3 | 15898 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15899 | done |
15900 | else | |
15901 | echo "$as_me: failed program was:" >&5 | |
15902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15903 | ||
15904 | ac_lo= ac_hi= | |
15905 | fi | |
ac1cb8d3 | 15906 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15907 | fi |
ac1cb8d3 | 15908 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15909 | # Binary search between lo and hi bounds. |
15910 | while test "x$ac_lo" != "x$ac_hi"; do | |
15911 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15912 | cat >conftest.$ac_ext <<_ACEOF | |
15913 | /* confdefs.h. */ | |
15914 | _ACEOF | |
15915 | cat confdefs.h >>conftest.$ac_ext | |
15916 | cat >>conftest.$ac_ext <<_ACEOF | |
15917 | /* end confdefs.h. */ | |
15918 | $ac_includes_default | |
15919 | int | |
15920 | main () | |
15921 | { | |
15922 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15923 | test_array [0] = 0 | |
15924 | ||
15925 | ; | |
15926 | return 0; | |
15927 | } | |
15928 | _ACEOF | |
15929 | rm -f conftest.$ac_objext | |
15930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15931 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15932 | ac_status=$? |
ac1cb8d3 VS |
15933 | grep -v '^ *+' conftest.er1 >conftest.err |
15934 | rm -f conftest.er1 | |
15935 | cat conftest.err >&5 | |
a848cd7e SC |
15936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15937 | (exit $ac_status); } && | |
c228d3a4 RN |
15938 | { ac_try='test -z "$ac_c_werror_flag" |
15939 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15941 | (eval $ac_try) 2>&5 | |
15942 | ac_status=$? | |
15943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15944 | (exit $ac_status); }; } && | |
15945 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15947 | (eval $ac_try) 2>&5 | |
15948 | ac_status=$? | |
15949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15950 | (exit $ac_status); }; }; then | |
15951 | ac_hi=$ac_mid | |
15952 | else | |
15953 | echo "$as_me: failed program was:" >&5 | |
15954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15955 | ||
15956 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15957 | fi | |
ac1cb8d3 | 15958 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15959 | done |
15960 | case $ac_lo in | |
15961 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
15962 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15963 | See \`config.log' for more details." >&5 | |
15964 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15965 | See \`config.log' for more details." >&2;} | |
15966 | { (exit 1); exit 1; }; } ;; | |
15967 | esac | |
15968 | else | |
15969 | if test "$cross_compiling" = yes; then | |
c228d3a4 RN |
15970 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
15971 | See \`config.log' for more details." >&5 | |
15972 | echo "$as_me: error: cannot run test program while cross compiling | |
15973 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
15974 | { (exit 1); exit 1; }; } |
15975 | else | |
15976 | cat >conftest.$ac_ext <<_ACEOF | |
15977 | /* confdefs.h. */ | |
15978 | _ACEOF | |
15979 | cat confdefs.h >>conftest.$ac_ext | |
15980 | cat >>conftest.$ac_ext <<_ACEOF | |
15981 | /* end confdefs.h. */ | |
15982 | $ac_includes_default | |
15983 | long longval () { return (long) (sizeof (int)); } | |
15984 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
15985 | #include <stdio.h> | |
15986 | #include <stdlib.h> | |
15987 | int | |
15988 | main () | |
15989 | { | |
15990 | ||
15991 | FILE *f = fopen ("conftest.val", "w"); | |
15992 | if (! f) | |
15993 | exit (1); | |
15994 | if (((long) (sizeof (int))) < 0) | |
15995 | { | |
15996 | long i = longval (); | |
15997 | if (i != ((long) (sizeof (int)))) | |
15998 | exit (1); | |
15999 | fprintf (f, "%ld\n", i); | |
16000 | } | |
16001 | else | |
16002 | { | |
16003 | unsigned long i = ulongval (); | |
16004 | if (i != ((long) (sizeof (int)))) | |
16005 | exit (1); | |
16006 | fprintf (f, "%lu\n", i); | |
16007 | } | |
16008 | exit (ferror (f) || fclose (f) != 0); | |
16009 | ||
16010 | ; | |
16011 | return 0; | |
16012 | } | |
16013 | _ACEOF | |
16014 | rm -f conftest$ac_exeext | |
16015 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16016 | (eval $ac_link) 2>&5 | |
16017 | ac_status=$? | |
16018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16019 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16021 | (eval $ac_try) 2>&5 | |
16022 | ac_status=$? | |
16023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16024 | (exit $ac_status); }; }; then | |
16025 | ac_cv_sizeof_int=`cat conftest.val` | |
16026 | else | |
16027 | echo "$as_me: program exited with status $ac_status" >&5 | |
16028 | echo "$as_me: failed program was:" >&5 | |
16029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16030 | ||
16031 | ( exit $ac_status ) | |
16032 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
16033 | See \`config.log' for more details." >&5 | |
16034 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
16035 | See \`config.log' for more details." >&2;} | |
16036 | { (exit 1); exit 1; }; } | |
16037 | fi | |
ac1cb8d3 | 16038 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16039 | fi |
16040 | fi | |
16041 | rm -f conftest.val | |
16042 | else | |
16043 | ac_cv_sizeof_int=0 | |
16044 | fi | |
16045 | fi | |
16046 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
16047 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
16048 | cat >>confdefs.h <<_ACEOF | |
16049 | #define SIZEOF_INT $ac_cv_sizeof_int | |
16050 | _ACEOF | |
16051 | ||
16052 | ||
16053 | echo "$as_me:$LINENO: checking for long" >&5 | |
16054 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
16055 | if test "${ac_cv_type_long+set}" = set; then | |
16056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16057 | else | |
16058 | cat >conftest.$ac_ext <<_ACEOF | |
16059 | /* confdefs.h. */ | |
16060 | _ACEOF | |
16061 | cat confdefs.h >>conftest.$ac_ext | |
16062 | cat >>conftest.$ac_ext <<_ACEOF | |
16063 | /* end confdefs.h. */ | |
16064 | $ac_includes_default | |
16065 | int | |
16066 | main () | |
16067 | { | |
16068 | if ((long *) 0) | |
16069 | return 0; | |
16070 | if (sizeof (long)) | |
16071 | return 0; | |
16072 | ; | |
16073 | return 0; | |
16074 | } | |
16075 | _ACEOF | |
16076 | rm -f conftest.$ac_objext | |
16077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16078 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16079 | ac_status=$? |
ac1cb8d3 VS |
16080 | grep -v '^ *+' conftest.er1 >conftest.err |
16081 | rm -f conftest.er1 | |
16082 | cat conftest.err >&5 | |
a848cd7e SC |
16083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16084 | (exit $ac_status); } && | |
c228d3a4 RN |
16085 | { ac_try='test -z "$ac_c_werror_flag" |
16086 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16088 | (eval $ac_try) 2>&5 | |
16089 | ac_status=$? | |
16090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16091 | (exit $ac_status); }; } && | |
16092 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16094 | (eval $ac_try) 2>&5 | |
16095 | ac_status=$? | |
16096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16097 | (exit $ac_status); }; }; then | |
16098 | ac_cv_type_long=yes | |
16099 | else | |
16100 | echo "$as_me: failed program was:" >&5 | |
16101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16102 | ||
16103 | ac_cv_type_long=no | |
16104 | fi | |
ac1cb8d3 | 16105 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16106 | fi |
16107 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
16108 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
16109 | ||
16110 | echo "$as_me:$LINENO: checking size of long" >&5 | |
16111 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
16112 | if test "${ac_cv_sizeof_long+set}" = set; then | |
16113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16114 | else | |
16115 | if test "$ac_cv_type_long" = yes; then | |
16116 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16117 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16118 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16119 | # This bug is HP SR number 8606223364. | |
16120 | if test "$cross_compiling" = yes; then | |
16121 | # Depending upon the size, compute the lo and hi bounds. | |
16122 | cat >conftest.$ac_ext <<_ACEOF | |
16123 | /* confdefs.h. */ | |
16124 | _ACEOF | |
16125 | cat confdefs.h >>conftest.$ac_ext | |
16126 | cat >>conftest.$ac_ext <<_ACEOF | |
16127 | /* end confdefs.h. */ | |
16128 | $ac_includes_default | |
16129 | int | |
16130 | main () | |
16131 | { | |
16132 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
16133 | test_array [0] = 0 | |
16134 | ||
16135 | ; | |
16136 | return 0; | |
16137 | } | |
16138 | _ACEOF | |
16139 | rm -f conftest.$ac_objext | |
16140 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16141 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16142 | ac_status=$? |
ac1cb8d3 VS |
16143 | grep -v '^ *+' conftest.er1 >conftest.err |
16144 | rm -f conftest.er1 | |
16145 | cat conftest.err >&5 | |
a848cd7e SC |
16146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16147 | (exit $ac_status); } && | |
c228d3a4 RN |
16148 | { ac_try='test -z "$ac_c_werror_flag" |
16149 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16151 | (eval $ac_try) 2>&5 | |
16152 | ac_status=$? | |
16153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16154 | (exit $ac_status); }; } && | |
16155 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16157 | (eval $ac_try) 2>&5 | |
16158 | ac_status=$? | |
16159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16160 | (exit $ac_status); }; }; then | |
16161 | ac_lo=0 ac_mid=0 | |
16162 | while :; do | |
16163 | cat >conftest.$ac_ext <<_ACEOF | |
16164 | /* confdefs.h. */ | |
16165 | _ACEOF | |
16166 | cat confdefs.h >>conftest.$ac_ext | |
16167 | cat >>conftest.$ac_ext <<_ACEOF | |
16168 | /* end confdefs.h. */ | |
16169 | $ac_includes_default | |
16170 | int | |
16171 | main () | |
16172 | { | |
16173 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16174 | test_array [0] = 0 | |
16175 | ||
16176 | ; | |
16177 | return 0; | |
16178 | } | |
16179 | _ACEOF | |
16180 | rm -f conftest.$ac_objext | |
16181 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16182 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16183 | ac_status=$? |
ac1cb8d3 VS |
16184 | grep -v '^ *+' conftest.er1 >conftest.err |
16185 | rm -f conftest.er1 | |
16186 | cat conftest.err >&5 | |
a848cd7e SC |
16187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16188 | (exit $ac_status); } && | |
c228d3a4 RN |
16189 | { ac_try='test -z "$ac_c_werror_flag" |
16190 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16192 | (eval $ac_try) 2>&5 | |
16193 | ac_status=$? | |
16194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16195 | (exit $ac_status); }; } && | |
16196 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16198 | (eval $ac_try) 2>&5 | |
16199 | ac_status=$? | |
16200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16201 | (exit $ac_status); }; }; then | |
16202 | ac_hi=$ac_mid; break | |
16203 | else | |
16204 | echo "$as_me: failed program was:" >&5 | |
16205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16206 | ||
16207 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16208 | if test $ac_lo -le $ac_mid; then |
16209 | ac_lo= ac_hi= | |
16210 | break | |
16211 | fi | |
16212 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16213 | fi |
ac1cb8d3 | 16214 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16215 | done |
16216 | else | |
16217 | echo "$as_me: failed program was:" >&5 | |
16218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16219 | ||
16220 | cat >conftest.$ac_ext <<_ACEOF | |
16221 | /* confdefs.h. */ | |
16222 | _ACEOF | |
16223 | cat confdefs.h >>conftest.$ac_ext | |
16224 | cat >>conftest.$ac_ext <<_ACEOF | |
16225 | /* end confdefs.h. */ | |
16226 | $ac_includes_default | |
16227 | int | |
16228 | main () | |
16229 | { | |
16230 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
16231 | test_array [0] = 0 | |
16232 | ||
16233 | ; | |
16234 | return 0; | |
16235 | } | |
16236 | _ACEOF | |
16237 | rm -f conftest.$ac_objext | |
16238 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16239 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16240 | ac_status=$? |
ac1cb8d3 VS |
16241 | grep -v '^ *+' conftest.er1 >conftest.err |
16242 | rm -f conftest.er1 | |
16243 | cat conftest.err >&5 | |
a848cd7e SC |
16244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16245 | (exit $ac_status); } && | |
c228d3a4 RN |
16246 | { ac_try='test -z "$ac_c_werror_flag" |
16247 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16249 | (eval $ac_try) 2>&5 | |
16250 | ac_status=$? | |
16251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16252 | (exit $ac_status); }; } && | |
16253 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16255 | (eval $ac_try) 2>&5 | |
16256 | ac_status=$? | |
16257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16258 | (exit $ac_status); }; }; then | |
16259 | ac_hi=-1 ac_mid=-1 | |
16260 | while :; do | |
16261 | cat >conftest.$ac_ext <<_ACEOF | |
16262 | /* confdefs.h. */ | |
16263 | _ACEOF | |
16264 | cat confdefs.h >>conftest.$ac_ext | |
16265 | cat >>conftest.$ac_ext <<_ACEOF | |
16266 | /* end confdefs.h. */ | |
16267 | $ac_includes_default | |
16268 | int | |
16269 | main () | |
16270 | { | |
16271 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
16272 | test_array [0] = 0 | |
16273 | ||
16274 | ; | |
16275 | return 0; | |
16276 | } | |
16277 | _ACEOF | |
16278 | rm -f conftest.$ac_objext | |
16279 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16280 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16281 | ac_status=$? |
ac1cb8d3 VS |
16282 | grep -v '^ *+' conftest.er1 >conftest.err |
16283 | rm -f conftest.er1 | |
16284 | cat conftest.err >&5 | |
a848cd7e SC |
16285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16286 | (exit $ac_status); } && | |
c228d3a4 RN |
16287 | { ac_try='test -z "$ac_c_werror_flag" |
16288 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16290 | (eval $ac_try) 2>&5 | |
16291 | ac_status=$? | |
16292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16293 | (exit $ac_status); }; } && | |
16294 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16296 | (eval $ac_try) 2>&5 | |
16297 | ac_status=$? | |
16298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16299 | (exit $ac_status); }; }; then | |
16300 | ac_lo=$ac_mid; break | |
16301 | else | |
16302 | echo "$as_me: failed program was:" >&5 | |
16303 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16304 | ||
16305 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16306 | if test $ac_mid -le $ac_hi; then |
16307 | ac_lo= ac_hi= | |
16308 | break | |
16309 | fi | |
16310 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16311 | fi |
ac1cb8d3 | 16312 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16313 | done |
16314 | else | |
16315 | echo "$as_me: failed program was:" >&5 | |
16316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16317 | ||
16318 | ac_lo= ac_hi= | |
16319 | fi | |
ac1cb8d3 | 16320 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16321 | fi |
ac1cb8d3 | 16322 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16323 | # Binary search between lo and hi bounds. |
16324 | while test "x$ac_lo" != "x$ac_hi"; do | |
16325 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16326 | cat >conftest.$ac_ext <<_ACEOF | |
16327 | /* confdefs.h. */ | |
16328 | _ACEOF | |
16329 | cat confdefs.h >>conftest.$ac_ext | |
16330 | cat >>conftest.$ac_ext <<_ACEOF | |
16331 | /* end confdefs.h. */ | |
16332 | $ac_includes_default | |
16333 | int | |
16334 | main () | |
16335 | { | |
16336 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16337 | test_array [0] = 0 | |
16338 | ||
16339 | ; | |
16340 | return 0; | |
16341 | } | |
16342 | _ACEOF | |
16343 | rm -f conftest.$ac_objext | |
16344 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16345 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16346 | ac_status=$? |
ac1cb8d3 VS |
16347 | grep -v '^ *+' conftest.er1 >conftest.err |
16348 | rm -f conftest.er1 | |
16349 | cat conftest.err >&5 | |
a848cd7e SC |
16350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16351 | (exit $ac_status); } && | |
c228d3a4 RN |
16352 | { ac_try='test -z "$ac_c_werror_flag" |
16353 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16355 | (eval $ac_try) 2>&5 | |
16356 | ac_status=$? | |
16357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16358 | (exit $ac_status); }; } && | |
16359 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16361 | (eval $ac_try) 2>&5 | |
16362 | ac_status=$? | |
16363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16364 | (exit $ac_status); }; }; then | |
16365 | ac_hi=$ac_mid | |
16366 | else | |
16367 | echo "$as_me: failed program was:" >&5 | |
16368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16369 | ||
16370 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16371 | fi | |
ac1cb8d3 | 16372 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16373 | done |
16374 | case $ac_lo in | |
16375 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
16376 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16377 | See \`config.log' for more details." >&5 | |
16378 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16379 | See \`config.log' for more details." >&2;} | |
16380 | { (exit 1); exit 1; }; } ;; | |
16381 | esac | |
16382 | else | |
16383 | if test "$cross_compiling" = yes; then | |
c228d3a4 RN |
16384 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
16385 | See \`config.log' for more details." >&5 | |
16386 | echo "$as_me: error: cannot run test program while cross compiling | |
16387 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
16388 | { (exit 1); exit 1; }; } |
16389 | else | |
16390 | cat >conftest.$ac_ext <<_ACEOF | |
16391 | /* confdefs.h. */ | |
16392 | _ACEOF | |
16393 | cat confdefs.h >>conftest.$ac_ext | |
16394 | cat >>conftest.$ac_ext <<_ACEOF | |
16395 | /* end confdefs.h. */ | |
16396 | $ac_includes_default | |
16397 | long longval () { return (long) (sizeof (long)); } | |
16398 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
16399 | #include <stdio.h> | |
16400 | #include <stdlib.h> | |
16401 | int | |
16402 | main () | |
16403 | { | |
16404 | ||
16405 | FILE *f = fopen ("conftest.val", "w"); | |
16406 | if (! f) | |
16407 | exit (1); | |
16408 | if (((long) (sizeof (long))) < 0) | |
16409 | { | |
16410 | long i = longval (); | |
16411 | if (i != ((long) (sizeof (long)))) | |
16412 | exit (1); | |
16413 | fprintf (f, "%ld\n", i); | |
16414 | } | |
16415 | else | |
16416 | { | |
16417 | unsigned long i = ulongval (); | |
16418 | if (i != ((long) (sizeof (long)))) | |
16419 | exit (1); | |
16420 | fprintf (f, "%lu\n", i); | |
16421 | } | |
16422 | exit (ferror (f) || fclose (f) != 0); | |
16423 | ||
16424 | ; | |
16425 | return 0; | |
16426 | } | |
16427 | _ACEOF | |
16428 | rm -f conftest$ac_exeext | |
16429 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16430 | (eval $ac_link) 2>&5 | |
16431 | ac_status=$? | |
16432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16433 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16435 | (eval $ac_try) 2>&5 | |
16436 | ac_status=$? | |
16437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16438 | (exit $ac_status); }; }; then | |
16439 | ac_cv_sizeof_long=`cat conftest.val` | |
16440 | else | |
16441 | echo "$as_me: program exited with status $ac_status" >&5 | |
16442 | echo "$as_me: failed program was:" >&5 | |
16443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16444 | ||
16445 | ( exit $ac_status ) | |
16446 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16447 | See \`config.log' for more details." >&5 | |
16448 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16449 | See \`config.log' for more details." >&2;} | |
16450 | { (exit 1); exit 1; }; } | |
16451 | fi | |
ac1cb8d3 | 16452 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16453 | fi |
16454 | fi | |
16455 | rm -f conftest.val | |
16456 | else | |
16457 | ac_cv_sizeof_long=0 | |
16458 | fi | |
16459 | fi | |
16460 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
16461 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
16462 | cat >>confdefs.h <<_ACEOF | |
16463 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
16464 | _ACEOF | |
16465 | ||
16466 | ||
16467 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
16468 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
16469 | if test "${ac_cv_type_size_t+set}" = set; then | |
16470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16471 | else | |
16472 | cat >conftest.$ac_ext <<_ACEOF | |
16473 | /* confdefs.h. */ | |
16474 | _ACEOF | |
16475 | cat confdefs.h >>conftest.$ac_ext | |
16476 | cat >>conftest.$ac_ext <<_ACEOF | |
16477 | /* end confdefs.h. */ | |
16478 | $ac_includes_default | |
16479 | int | |
16480 | main () | |
16481 | { | |
16482 | if ((size_t *) 0) | |
16483 | return 0; | |
16484 | if (sizeof (size_t)) | |
16485 | return 0; | |
16486 | ; | |
16487 | return 0; | |
16488 | } | |
16489 | _ACEOF | |
16490 | rm -f conftest.$ac_objext | |
16491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16492 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16493 | ac_status=$? |
ac1cb8d3 VS |
16494 | grep -v '^ *+' conftest.er1 >conftest.err |
16495 | rm -f conftest.er1 | |
16496 | cat conftest.err >&5 | |
a848cd7e SC |
16497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16498 | (exit $ac_status); } && | |
c228d3a4 RN |
16499 | { ac_try='test -z "$ac_c_werror_flag" |
16500 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16502 | (eval $ac_try) 2>&5 | |
16503 | ac_status=$? | |
16504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16505 | (exit $ac_status); }; } && | |
16506 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16508 | (eval $ac_try) 2>&5 | |
16509 | ac_status=$? | |
16510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16511 | (exit $ac_status); }; }; then | |
16512 | ac_cv_type_size_t=yes | |
16513 | else | |
16514 | echo "$as_me: failed program was:" >&5 | |
16515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16516 | ||
16517 | ac_cv_type_size_t=no | |
16518 | fi | |
ac1cb8d3 | 16519 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16520 | fi |
16521 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
16522 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
16523 | ||
16524 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
16525 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
16526 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
16527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16528 | else | |
16529 | if test "$ac_cv_type_size_t" = yes; then | |
16530 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16531 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16532 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16533 | # This bug is HP SR number 8606223364. | |
16534 | if test "$cross_compiling" = yes; then | |
16535 | # Depending upon the size, compute the lo and hi bounds. | |
16536 | cat >conftest.$ac_ext <<_ACEOF | |
16537 | /* confdefs.h. */ | |
16538 | _ACEOF | |
16539 | cat confdefs.h >>conftest.$ac_ext | |
16540 | cat >>conftest.$ac_ext <<_ACEOF | |
16541 | /* end confdefs.h. */ | |
16542 | $ac_includes_default | |
16543 | int | |
16544 | main () | |
16545 | { | |
16546 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
16547 | test_array [0] = 0 | |
16548 | ||
16549 | ; | |
16550 | return 0; | |
16551 | } | |
16552 | _ACEOF | |
16553 | rm -f conftest.$ac_objext | |
16554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16555 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16556 | ac_status=$? |
ac1cb8d3 VS |
16557 | grep -v '^ *+' conftest.er1 >conftest.err |
16558 | rm -f conftest.er1 | |
16559 | cat conftest.err >&5 | |
a848cd7e SC |
16560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16561 | (exit $ac_status); } && | |
c228d3a4 RN |
16562 | { ac_try='test -z "$ac_c_werror_flag" |
16563 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16565 | (eval $ac_try) 2>&5 | |
16566 | ac_status=$? | |
16567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16568 | (exit $ac_status); }; } && | |
16569 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16571 | (eval $ac_try) 2>&5 | |
16572 | ac_status=$? | |
16573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16574 | (exit $ac_status); }; }; then | |
16575 | ac_lo=0 ac_mid=0 | |
16576 | while :; do | |
16577 | cat >conftest.$ac_ext <<_ACEOF | |
16578 | /* confdefs.h. */ | |
16579 | _ACEOF | |
16580 | cat confdefs.h >>conftest.$ac_ext | |
16581 | cat >>conftest.$ac_ext <<_ACEOF | |
16582 | /* end confdefs.h. */ | |
16583 | $ac_includes_default | |
16584 | int | |
16585 | main () | |
16586 | { | |
16587 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16588 | test_array [0] = 0 | |
16589 | ||
16590 | ; | |
16591 | return 0; | |
16592 | } | |
16593 | _ACEOF | |
16594 | rm -f conftest.$ac_objext | |
16595 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16596 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16597 | ac_status=$? |
ac1cb8d3 VS |
16598 | grep -v '^ *+' conftest.er1 >conftest.err |
16599 | rm -f conftest.er1 | |
16600 | cat conftest.err >&5 | |
a848cd7e SC |
16601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16602 | (exit $ac_status); } && | |
c228d3a4 RN |
16603 | { ac_try='test -z "$ac_c_werror_flag" |
16604 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16606 | (eval $ac_try) 2>&5 | |
16607 | ac_status=$? | |
16608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16609 | (exit $ac_status); }; } && | |
16610 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16612 | (eval $ac_try) 2>&5 | |
16613 | ac_status=$? | |
16614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16615 | (exit $ac_status); }; }; then | |
16616 | ac_hi=$ac_mid; break | |
16617 | else | |
16618 | echo "$as_me: failed program was:" >&5 | |
16619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16620 | ||
16621 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16622 | if test $ac_lo -le $ac_mid; then |
16623 | ac_lo= ac_hi= | |
16624 | break | |
16625 | fi | |
16626 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16627 | fi |
ac1cb8d3 | 16628 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16629 | done |
16630 | else | |
16631 | echo "$as_me: failed program was:" >&5 | |
16632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16633 | ||
16634 | cat >conftest.$ac_ext <<_ACEOF | |
16635 | /* confdefs.h. */ | |
16636 | _ACEOF | |
16637 | cat confdefs.h >>conftest.$ac_ext | |
16638 | cat >>conftest.$ac_ext <<_ACEOF | |
16639 | /* end confdefs.h. */ | |
16640 | $ac_includes_default | |
16641 | int | |
16642 | main () | |
16643 | { | |
16644 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
16645 | test_array [0] = 0 | |
16646 | ||
16647 | ; | |
16648 | return 0; | |
16649 | } | |
16650 | _ACEOF | |
16651 | rm -f conftest.$ac_objext | |
16652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16653 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16654 | ac_status=$? |
ac1cb8d3 VS |
16655 | grep -v '^ *+' conftest.er1 >conftest.err |
16656 | rm -f conftest.er1 | |
16657 | cat conftest.err >&5 | |
a848cd7e SC |
16658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16659 | (exit $ac_status); } && | |
c228d3a4 RN |
16660 | { ac_try='test -z "$ac_c_werror_flag" |
16661 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16663 | (eval $ac_try) 2>&5 | |
16664 | ac_status=$? | |
16665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16666 | (exit $ac_status); }; } && | |
16667 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16669 | (eval $ac_try) 2>&5 | |
16670 | ac_status=$? | |
16671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16672 | (exit $ac_status); }; }; then | |
16673 | ac_hi=-1 ac_mid=-1 | |
16674 | while :; do | |
16675 | cat >conftest.$ac_ext <<_ACEOF | |
16676 | /* confdefs.h. */ | |
16677 | _ACEOF | |
16678 | cat confdefs.h >>conftest.$ac_ext | |
16679 | cat >>conftest.$ac_ext <<_ACEOF | |
16680 | /* end confdefs.h. */ | |
16681 | $ac_includes_default | |
16682 | int | |
16683 | main () | |
16684 | { | |
16685 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
16686 | test_array [0] = 0 | |
16687 | ||
16688 | ; | |
16689 | return 0; | |
16690 | } | |
16691 | _ACEOF | |
16692 | rm -f conftest.$ac_objext | |
16693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16694 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16695 | ac_status=$? |
ac1cb8d3 VS |
16696 | grep -v '^ *+' conftest.er1 >conftest.err |
16697 | rm -f conftest.er1 | |
16698 | cat conftest.err >&5 | |
a848cd7e SC |
16699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16700 | (exit $ac_status); } && | |
c228d3a4 RN |
16701 | { ac_try='test -z "$ac_c_werror_flag" |
16702 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16704 | (eval $ac_try) 2>&5 | |
16705 | ac_status=$? | |
16706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16707 | (exit $ac_status); }; } && | |
16708 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16710 | (eval $ac_try) 2>&5 | |
16711 | ac_status=$? | |
16712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16713 | (exit $ac_status); }; }; then | |
16714 | ac_lo=$ac_mid; break | |
16715 | else | |
16716 | echo "$as_me: failed program was:" >&5 | |
16717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16718 | ||
16719 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16720 | if test $ac_mid -le $ac_hi; then |
16721 | ac_lo= ac_hi= | |
16722 | break | |
16723 | fi | |
16724 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16725 | fi |
ac1cb8d3 | 16726 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16727 | done |
16728 | else | |
16729 | echo "$as_me: failed program was:" >&5 | |
16730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16731 | ||
16732 | ac_lo= ac_hi= | |
16733 | fi | |
ac1cb8d3 | 16734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16735 | fi |
ac1cb8d3 | 16736 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16737 | # Binary search between lo and hi bounds. |
16738 | while test "x$ac_lo" != "x$ac_hi"; do | |
16739 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16740 | cat >conftest.$ac_ext <<_ACEOF | |
16741 | /* confdefs.h. */ | |
16742 | _ACEOF | |
16743 | cat confdefs.h >>conftest.$ac_ext | |
16744 | cat >>conftest.$ac_ext <<_ACEOF | |
16745 | /* end confdefs.h. */ | |
16746 | $ac_includes_default | |
16747 | int | |
16748 | main () | |
16749 | { | |
16750 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16751 | test_array [0] = 0 | |
16752 | ||
16753 | ; | |
16754 | return 0; | |
16755 | } | |
16756 | _ACEOF | |
16757 | rm -f conftest.$ac_objext | |
16758 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16759 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16760 | ac_status=$? |
ac1cb8d3 VS |
16761 | grep -v '^ *+' conftest.er1 >conftest.err |
16762 | rm -f conftest.er1 | |
16763 | cat conftest.err >&5 | |
a848cd7e SC |
16764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16765 | (exit $ac_status); } && | |
c228d3a4 RN |
16766 | { ac_try='test -z "$ac_c_werror_flag" |
16767 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16769 | (eval $ac_try) 2>&5 | |
16770 | ac_status=$? | |
16771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16772 | (exit $ac_status); }; } && | |
16773 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16775 | (eval $ac_try) 2>&5 | |
16776 | ac_status=$? | |
16777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16778 | (exit $ac_status); }; }; then | |
16779 | ac_hi=$ac_mid | |
16780 | else | |
16781 | echo "$as_me: failed program was:" >&5 | |
16782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16783 | ||
16784 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16785 | fi | |
ac1cb8d3 | 16786 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16787 | done |
16788 | case $ac_lo in | |
16789 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
16790 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16791 | See \`config.log' for more details." >&5 | |
16792 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16793 | See \`config.log' for more details." >&2;} | |
16794 | { (exit 1); exit 1; }; } ;; | |
16795 | esac | |
16796 | else | |
16797 | if test "$cross_compiling" = yes; then | |
c228d3a4 RN |
16798 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
16799 | See \`config.log' for more details." >&5 | |
16800 | echo "$as_me: error: cannot run test program while cross compiling | |
16801 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
16802 | { (exit 1); exit 1; }; } |
16803 | else | |
16804 | cat >conftest.$ac_ext <<_ACEOF | |
16805 | /* confdefs.h. */ | |
16806 | _ACEOF | |
16807 | cat confdefs.h >>conftest.$ac_ext | |
16808 | cat >>conftest.$ac_ext <<_ACEOF | |
16809 | /* end confdefs.h. */ | |
16810 | $ac_includes_default | |
16811 | long longval () { return (long) (sizeof (size_t)); } | |
16812 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
16813 | #include <stdio.h> | |
16814 | #include <stdlib.h> | |
16815 | int | |
16816 | main () | |
16817 | { | |
16818 | ||
16819 | FILE *f = fopen ("conftest.val", "w"); | |
16820 | if (! f) | |
16821 | exit (1); | |
16822 | if (((long) (sizeof (size_t))) < 0) | |
16823 | { | |
16824 | long i = longval (); | |
16825 | if (i != ((long) (sizeof (size_t)))) | |
16826 | exit (1); | |
16827 | fprintf (f, "%ld\n", i); | |
16828 | } | |
16829 | else | |
16830 | { | |
16831 | unsigned long i = ulongval (); | |
16832 | if (i != ((long) (sizeof (size_t)))) | |
16833 | exit (1); | |
16834 | fprintf (f, "%lu\n", i); | |
16835 | } | |
16836 | exit (ferror (f) || fclose (f) != 0); | |
16837 | ||
16838 | ; | |
16839 | return 0; | |
16840 | } | |
16841 | _ACEOF | |
16842 | rm -f conftest$ac_exeext | |
16843 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16844 | (eval $ac_link) 2>&5 | |
16845 | ac_status=$? | |
16846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16847 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16849 | (eval $ac_try) 2>&5 | |
16850 | ac_status=$? | |
16851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16852 | (exit $ac_status); }; }; then | |
16853 | ac_cv_sizeof_size_t=`cat conftest.val` | |
16854 | else | |
16855 | echo "$as_me: program exited with status $ac_status" >&5 | |
16856 | echo "$as_me: failed program was:" >&5 | |
16857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16858 | ||
16859 | ( exit $ac_status ) | |
16860 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16861 | See \`config.log' for more details." >&5 | |
16862 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16863 | See \`config.log' for more details." >&2;} | |
16864 | { (exit 1); exit 1; }; } | |
16865 | fi | |
ac1cb8d3 | 16866 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16867 | fi |
16868 | fi | |
16869 | rm -f conftest.val | |
16870 | else | |
16871 | ac_cv_sizeof_size_t=0 | |
16872 | fi | |
16873 | fi | |
16874 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
16875 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
16876 | cat >>confdefs.h <<_ACEOF | |
16877 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
16878 | _ACEOF | |
16879 | ||
16880 | ||
16881 | ||
16882 | case "${host}" in | |
16883 | arm-*-linux* ) | |
16884 | echo "$as_me:$LINENO: checking for long long" >&5 | |
16885 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16886 | if test "${ac_cv_type_long_long+set}" = set; then | |
16887 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16888 | else | |
16889 | cat >conftest.$ac_ext <<_ACEOF | |
16890 | /* confdefs.h. */ | |
16891 | _ACEOF | |
16892 | cat confdefs.h >>conftest.$ac_ext | |
16893 | cat >>conftest.$ac_ext <<_ACEOF | |
16894 | /* end confdefs.h. */ | |
16895 | $ac_includes_default | |
16896 | int | |
16897 | main () | |
16898 | { | |
16899 | if ((long long *) 0) | |
16900 | return 0; | |
16901 | if (sizeof (long long)) | |
16902 | return 0; | |
16903 | ; | |
16904 | return 0; | |
16905 | } | |
16906 | _ACEOF | |
16907 | rm -f conftest.$ac_objext | |
16908 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16909 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16910 | ac_status=$? |
ac1cb8d3 VS |
16911 | grep -v '^ *+' conftest.er1 >conftest.err |
16912 | rm -f conftest.er1 | |
16913 | cat conftest.err >&5 | |
a848cd7e SC |
16914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16915 | (exit $ac_status); } && | |
c228d3a4 RN |
16916 | { ac_try='test -z "$ac_c_werror_flag" |
16917 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16919 | (eval $ac_try) 2>&5 | |
16920 | ac_status=$? | |
16921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16922 | (exit $ac_status); }; } && | |
16923 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16925 | (eval $ac_try) 2>&5 | |
16926 | ac_status=$? | |
16927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16928 | (exit $ac_status); }; }; then | |
16929 | ac_cv_type_long_long=yes | |
16930 | else | |
16931 | echo "$as_me: failed program was:" >&5 | |
16932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16933 | ||
16934 | ac_cv_type_long_long=no | |
16935 | fi | |
ac1cb8d3 | 16936 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16937 | fi |
16938 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16939 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16940 | ||
16941 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16942 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16943 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16945 | else | |
16946 | if test "$ac_cv_type_long_long" = yes; then | |
16947 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16948 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16949 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16950 | # This bug is HP SR number 8606223364. | |
16951 | if test "$cross_compiling" = yes; then | |
16952 | # Depending upon the size, compute the lo and hi bounds. | |
16953 | cat >conftest.$ac_ext <<_ACEOF | |
16954 | /* confdefs.h. */ | |
16955 | _ACEOF | |
16956 | cat confdefs.h >>conftest.$ac_ext | |
16957 | cat >>conftest.$ac_ext <<_ACEOF | |
16958 | /* end confdefs.h. */ | |
16959 | $ac_includes_default | |
16960 | int | |
16961 | main () | |
16962 | { | |
16963 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16964 | test_array [0] = 0 | |
16965 | ||
16966 | ; | |
16967 | return 0; | |
16968 | } | |
16969 | _ACEOF | |
16970 | rm -f conftest.$ac_objext | |
16971 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16972 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16973 | ac_status=$? |
ac1cb8d3 VS |
16974 | grep -v '^ *+' conftest.er1 >conftest.err |
16975 | rm -f conftest.er1 | |
16976 | cat conftest.err >&5 | |
a848cd7e SC |
16977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16978 | (exit $ac_status); } && | |
c228d3a4 RN |
16979 | { ac_try='test -z "$ac_c_werror_flag" |
16980 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16982 | (eval $ac_try) 2>&5 | |
16983 | ac_status=$? | |
16984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16985 | (exit $ac_status); }; } && | |
16986 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16988 | (eval $ac_try) 2>&5 | |
16989 | ac_status=$? | |
16990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16991 | (exit $ac_status); }; }; then | |
16992 | ac_lo=0 ac_mid=0 | |
16993 | while :; do | |
16994 | cat >conftest.$ac_ext <<_ACEOF | |
16995 | /* confdefs.h. */ | |
16996 | _ACEOF | |
16997 | cat confdefs.h >>conftest.$ac_ext | |
16998 | cat >>conftest.$ac_ext <<_ACEOF | |
16999 | /* end confdefs.h. */ | |
17000 | $ac_includes_default | |
17001 | int | |
17002 | main () | |
17003 | { | |
17004 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17005 | test_array [0] = 0 | |
17006 | ||
17007 | ; | |
17008 | return 0; | |
17009 | } | |
17010 | _ACEOF | |
17011 | rm -f conftest.$ac_objext | |
17012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17013 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17014 | ac_status=$? |
ac1cb8d3 VS |
17015 | grep -v '^ *+' conftest.er1 >conftest.err |
17016 | rm -f conftest.er1 | |
17017 | cat conftest.err >&5 | |
a848cd7e SC |
17018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17019 | (exit $ac_status); } && | |
c228d3a4 RN |
17020 | { ac_try='test -z "$ac_c_werror_flag" |
17021 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17023 | (eval $ac_try) 2>&5 | |
17024 | ac_status=$? | |
17025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17026 | (exit $ac_status); }; } && | |
17027 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17029 | (eval $ac_try) 2>&5 | |
17030 | ac_status=$? | |
17031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17032 | (exit $ac_status); }; }; then | |
17033 | ac_hi=$ac_mid; break | |
17034 | else | |
17035 | echo "$as_me: failed program was:" >&5 | |
17036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17037 | ||
17038 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17039 | if test $ac_lo -le $ac_mid; then |
17040 | ac_lo= ac_hi= | |
17041 | break | |
17042 | fi | |
17043 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17044 | fi |
ac1cb8d3 | 17045 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17046 | done |
17047 | else | |
17048 | echo "$as_me: failed program was:" >&5 | |
17049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17050 | ||
17051 | cat >conftest.$ac_ext <<_ACEOF | |
17052 | /* confdefs.h. */ | |
17053 | _ACEOF | |
17054 | cat confdefs.h >>conftest.$ac_ext | |
17055 | cat >>conftest.$ac_ext <<_ACEOF | |
17056 | /* end confdefs.h. */ | |
17057 | $ac_includes_default | |
17058 | int | |
17059 | main () | |
17060 | { | |
17061 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17062 | test_array [0] = 0 | |
17063 | ||
17064 | ; | |
17065 | return 0; | |
17066 | } | |
17067 | _ACEOF | |
17068 | rm -f conftest.$ac_objext | |
17069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17070 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17071 | ac_status=$? |
ac1cb8d3 VS |
17072 | grep -v '^ *+' conftest.er1 >conftest.err |
17073 | rm -f conftest.er1 | |
17074 | cat conftest.err >&5 | |
a848cd7e SC |
17075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17076 | (exit $ac_status); } && | |
c228d3a4 RN |
17077 | { ac_try='test -z "$ac_c_werror_flag" |
17078 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17080 | (eval $ac_try) 2>&5 | |
17081 | ac_status=$? | |
17082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17083 | (exit $ac_status); }; } && | |
17084 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17086 | (eval $ac_try) 2>&5 | |
17087 | ac_status=$? | |
17088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17089 | (exit $ac_status); }; }; then | |
17090 | ac_hi=-1 ac_mid=-1 | |
17091 | while :; do | |
17092 | cat >conftest.$ac_ext <<_ACEOF | |
17093 | /* confdefs.h. */ | |
17094 | _ACEOF | |
17095 | cat confdefs.h >>conftest.$ac_ext | |
17096 | cat >>conftest.$ac_ext <<_ACEOF | |
17097 | /* end confdefs.h. */ | |
17098 | $ac_includes_default | |
17099 | int | |
17100 | main () | |
17101 | { | |
17102 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17103 | test_array [0] = 0 | |
17104 | ||
17105 | ; | |
17106 | return 0; | |
17107 | } | |
17108 | _ACEOF | |
17109 | rm -f conftest.$ac_objext | |
17110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17111 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17112 | ac_status=$? |
ac1cb8d3 VS |
17113 | grep -v '^ *+' conftest.er1 >conftest.err |
17114 | rm -f conftest.er1 | |
17115 | cat conftest.err >&5 | |
a848cd7e SC |
17116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17117 | (exit $ac_status); } && | |
c228d3a4 RN |
17118 | { ac_try='test -z "$ac_c_werror_flag" |
17119 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17121 | (eval $ac_try) 2>&5 | |
17122 | ac_status=$? | |
17123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17124 | (exit $ac_status); }; } && | |
17125 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17127 | (eval $ac_try) 2>&5 | |
17128 | ac_status=$? | |
17129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17130 | (exit $ac_status); }; }; then | |
17131 | ac_lo=$ac_mid; break | |
17132 | else | |
17133 | echo "$as_me: failed program was:" >&5 | |
17134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17135 | ||
17136 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17137 | if test $ac_mid -le $ac_hi; then |
17138 | ac_lo= ac_hi= | |
17139 | break | |
17140 | fi | |
17141 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17142 | fi |
ac1cb8d3 | 17143 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17144 | done |
17145 | else | |
17146 | echo "$as_me: failed program was:" >&5 | |
17147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17148 | ||
17149 | ac_lo= ac_hi= | |
17150 | fi | |
ac1cb8d3 | 17151 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17152 | fi |
ac1cb8d3 | 17153 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17154 | # Binary search between lo and hi bounds. |
17155 | while test "x$ac_lo" != "x$ac_hi"; do | |
17156 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17157 | cat >conftest.$ac_ext <<_ACEOF | |
17158 | /* confdefs.h. */ | |
17159 | _ACEOF | |
17160 | cat confdefs.h >>conftest.$ac_ext | |
17161 | cat >>conftest.$ac_ext <<_ACEOF | |
17162 | /* end confdefs.h. */ | |
17163 | $ac_includes_default | |
17164 | int | |
17165 | main () | |
17166 | { | |
17167 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17168 | test_array [0] = 0 | |
17169 | ||
17170 | ; | |
17171 | return 0; | |
17172 | } | |
17173 | _ACEOF | |
17174 | rm -f conftest.$ac_objext | |
17175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17176 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17177 | ac_status=$? |
ac1cb8d3 VS |
17178 | grep -v '^ *+' conftest.er1 >conftest.err |
17179 | rm -f conftest.er1 | |
17180 | cat conftest.err >&5 | |
a848cd7e SC |
17181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17182 | (exit $ac_status); } && | |
c228d3a4 RN |
17183 | { ac_try='test -z "$ac_c_werror_flag" |
17184 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17186 | (eval $ac_try) 2>&5 | |
17187 | ac_status=$? | |
17188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17189 | (exit $ac_status); }; } && | |
17190 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17192 | (eval $ac_try) 2>&5 | |
17193 | ac_status=$? | |
17194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17195 | (exit $ac_status); }; }; then | |
17196 | ac_hi=$ac_mid | |
17197 | else | |
17198 | echo "$as_me: failed program was:" >&5 | |
17199 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17200 | ||
17201 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17202 | fi | |
ac1cb8d3 | 17203 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17204 | done |
17205 | case $ac_lo in | |
17206 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17207 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17208 | See \`config.log' for more details." >&5 | |
17209 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17210 | See \`config.log' for more details." >&2;} | |
17211 | { (exit 1); exit 1; }; } ;; | |
17212 | esac | |
17213 | else | |
17214 | if test "$cross_compiling" = yes; then | |
c228d3a4 RN |
17215 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17216 | See \`config.log' for more details." >&5 | |
17217 | echo "$as_me: error: cannot run test program while cross compiling | |
17218 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17219 | { (exit 1); exit 1; }; } |
17220 | else | |
17221 | cat >conftest.$ac_ext <<_ACEOF | |
17222 | /* confdefs.h. */ | |
17223 | _ACEOF | |
17224 | cat confdefs.h >>conftest.$ac_ext | |
17225 | cat >>conftest.$ac_ext <<_ACEOF | |
17226 | /* end confdefs.h. */ | |
17227 | $ac_includes_default | |
17228 | long longval () { return (long) (sizeof (long long)); } | |
17229 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17230 | #include <stdio.h> | |
17231 | #include <stdlib.h> | |
17232 | int | |
17233 | main () | |
17234 | { | |
17235 | ||
17236 | FILE *f = fopen ("conftest.val", "w"); | |
17237 | if (! f) | |
17238 | exit (1); | |
17239 | if (((long) (sizeof (long long))) < 0) | |
17240 | { | |
17241 | long i = longval (); | |
17242 | if (i != ((long) (sizeof (long long)))) | |
17243 | exit (1); | |
17244 | fprintf (f, "%ld\n", i); | |
17245 | } | |
17246 | else | |
17247 | { | |
17248 | unsigned long i = ulongval (); | |
17249 | if (i != ((long) (sizeof (long long)))) | |
17250 | exit (1); | |
17251 | fprintf (f, "%lu\n", i); | |
17252 | } | |
17253 | exit (ferror (f) || fclose (f) != 0); | |
17254 | ||
17255 | ; | |
17256 | return 0; | |
17257 | } | |
17258 | _ACEOF | |
17259 | rm -f conftest$ac_exeext | |
17260 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17261 | (eval $ac_link) 2>&5 | |
17262 | ac_status=$? | |
17263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17264 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17266 | (eval $ac_try) 2>&5 | |
17267 | ac_status=$? | |
17268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17269 | (exit $ac_status); }; }; then | |
17270 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17271 | else | |
17272 | echo "$as_me: program exited with status $ac_status" >&5 | |
17273 | echo "$as_me: failed program was:" >&5 | |
17274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17275 | ||
17276 | ( exit $ac_status ) | |
17277 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17278 | See \`config.log' for more details." >&5 | |
17279 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17280 | See \`config.log' for more details." >&2;} | |
17281 | { (exit 1); exit 1; }; } | |
17282 | fi | |
ac1cb8d3 | 17283 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17284 | fi |
17285 | fi | |
17286 | rm -f conftest.val | |
17287 | else | |
17288 | ac_cv_sizeof_long_long=0 | |
17289 | fi | |
17290 | fi | |
17291 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
17292 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17293 | cat >>confdefs.h <<_ACEOF | |
17294 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17295 | _ACEOF | |
17296 | ||
17297 | ||
17298 | ;; | |
17299 | *-hp-hpux* ) | |
17300 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17301 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17302 | if test "${ac_cv_type_long_long+set}" = set; then | |
17303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17304 | else | |
17305 | cat >conftest.$ac_ext <<_ACEOF | |
17306 | /* confdefs.h. */ | |
17307 | _ACEOF | |
17308 | cat confdefs.h >>conftest.$ac_ext | |
17309 | cat >>conftest.$ac_ext <<_ACEOF | |
17310 | /* end confdefs.h. */ | |
17311 | $ac_includes_default | |
17312 | int | |
17313 | main () | |
17314 | { | |
17315 | if ((long long *) 0) | |
17316 | return 0; | |
17317 | if (sizeof (long long)) | |
17318 | return 0; | |
17319 | ; | |
17320 | return 0; | |
17321 | } | |
17322 | _ACEOF | |
17323 | rm -f conftest.$ac_objext | |
17324 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17325 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17326 | ac_status=$? |
ac1cb8d3 VS |
17327 | grep -v '^ *+' conftest.er1 >conftest.err |
17328 | rm -f conftest.er1 | |
17329 | cat conftest.err >&5 | |
a848cd7e SC |
17330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17331 | (exit $ac_status); } && | |
c228d3a4 RN |
17332 | { ac_try='test -z "$ac_c_werror_flag" |
17333 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17335 | (eval $ac_try) 2>&5 | |
17336 | ac_status=$? | |
17337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17338 | (exit $ac_status); }; } && | |
17339 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17341 | (eval $ac_try) 2>&5 | |
17342 | ac_status=$? | |
17343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17344 | (exit $ac_status); }; }; then | |
17345 | ac_cv_type_long_long=yes | |
17346 | else | |
17347 | echo "$as_me: failed program was:" >&5 | |
17348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17349 | ||
17350 | ac_cv_type_long_long=no | |
17351 | fi | |
ac1cb8d3 | 17352 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17353 | fi |
17354 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17355 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17356 | ||
17357 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17358 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17359 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17361 | else | |
17362 | if test "$ac_cv_type_long_long" = yes; then | |
17363 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17364 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17365 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17366 | # This bug is HP SR number 8606223364. | |
17367 | if test "$cross_compiling" = yes; then | |
17368 | # Depending upon the size, compute the lo and hi bounds. | |
17369 | cat >conftest.$ac_ext <<_ACEOF | |
17370 | /* confdefs.h. */ | |
17371 | _ACEOF | |
17372 | cat confdefs.h >>conftest.$ac_ext | |
17373 | cat >>conftest.$ac_ext <<_ACEOF | |
17374 | /* end confdefs.h. */ | |
17375 | $ac_includes_default | |
17376 | int | |
17377 | main () | |
17378 | { | |
17379 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17380 | test_array [0] = 0 | |
17381 | ||
17382 | ; | |
17383 | return 0; | |
17384 | } | |
17385 | _ACEOF | |
17386 | rm -f conftest.$ac_objext | |
17387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17388 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17389 | ac_status=$? |
ac1cb8d3 VS |
17390 | grep -v '^ *+' conftest.er1 >conftest.err |
17391 | rm -f conftest.er1 | |
17392 | cat conftest.err >&5 | |
a848cd7e SC |
17393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17394 | (exit $ac_status); } && | |
c228d3a4 RN |
17395 | { ac_try='test -z "$ac_c_werror_flag" |
17396 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17398 | (eval $ac_try) 2>&5 | |
17399 | ac_status=$? | |
17400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17401 | (exit $ac_status); }; } && | |
17402 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17404 | (eval $ac_try) 2>&5 | |
17405 | ac_status=$? | |
17406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17407 | (exit $ac_status); }; }; then | |
17408 | ac_lo=0 ac_mid=0 | |
17409 | while :; do | |
17410 | cat >conftest.$ac_ext <<_ACEOF | |
17411 | /* confdefs.h. */ | |
17412 | _ACEOF | |
17413 | cat confdefs.h >>conftest.$ac_ext | |
17414 | cat >>conftest.$ac_ext <<_ACEOF | |
17415 | /* end confdefs.h. */ | |
17416 | $ac_includes_default | |
17417 | int | |
17418 | main () | |
17419 | { | |
17420 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17421 | test_array [0] = 0 | |
17422 | ||
17423 | ; | |
17424 | return 0; | |
17425 | } | |
17426 | _ACEOF | |
17427 | rm -f conftest.$ac_objext | |
17428 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17429 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17430 | ac_status=$? |
ac1cb8d3 VS |
17431 | grep -v '^ *+' conftest.er1 >conftest.err |
17432 | rm -f conftest.er1 | |
17433 | cat conftest.err >&5 | |
a848cd7e SC |
17434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17435 | (exit $ac_status); } && | |
c228d3a4 RN |
17436 | { ac_try='test -z "$ac_c_werror_flag" |
17437 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17439 | (eval $ac_try) 2>&5 | |
17440 | ac_status=$? | |
17441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17442 | (exit $ac_status); }; } && | |
17443 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17445 | (eval $ac_try) 2>&5 | |
17446 | ac_status=$? | |
17447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17448 | (exit $ac_status); }; }; then | |
17449 | ac_hi=$ac_mid; break | |
17450 | else | |
17451 | echo "$as_me: failed program was:" >&5 | |
17452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17453 | ||
17454 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17455 | if test $ac_lo -le $ac_mid; then |
17456 | ac_lo= ac_hi= | |
17457 | break | |
17458 | fi | |
17459 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17460 | fi |
ac1cb8d3 | 17461 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17462 | done |
17463 | else | |
17464 | echo "$as_me: failed program was:" >&5 | |
17465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17466 | ||
17467 | cat >conftest.$ac_ext <<_ACEOF | |
17468 | /* confdefs.h. */ | |
17469 | _ACEOF | |
17470 | cat confdefs.h >>conftest.$ac_ext | |
17471 | cat >>conftest.$ac_ext <<_ACEOF | |
17472 | /* end confdefs.h. */ | |
17473 | $ac_includes_default | |
17474 | int | |
17475 | main () | |
17476 | { | |
17477 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17478 | test_array [0] = 0 | |
17479 | ||
17480 | ; | |
17481 | return 0; | |
17482 | } | |
17483 | _ACEOF | |
17484 | rm -f conftest.$ac_objext | |
17485 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17486 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17487 | ac_status=$? |
ac1cb8d3 VS |
17488 | grep -v '^ *+' conftest.er1 >conftest.err |
17489 | rm -f conftest.er1 | |
17490 | cat conftest.err >&5 | |
a848cd7e SC |
17491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17492 | (exit $ac_status); } && | |
c228d3a4 RN |
17493 | { ac_try='test -z "$ac_c_werror_flag" |
17494 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17496 | (eval $ac_try) 2>&5 | |
17497 | ac_status=$? | |
17498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17499 | (exit $ac_status); }; } && | |
17500 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17502 | (eval $ac_try) 2>&5 | |
17503 | ac_status=$? | |
17504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17505 | (exit $ac_status); }; }; then | |
17506 | ac_hi=-1 ac_mid=-1 | |
17507 | while :; do | |
17508 | cat >conftest.$ac_ext <<_ACEOF | |
17509 | /* confdefs.h. */ | |
17510 | _ACEOF | |
17511 | cat confdefs.h >>conftest.$ac_ext | |
17512 | cat >>conftest.$ac_ext <<_ACEOF | |
17513 | /* end confdefs.h. */ | |
17514 | $ac_includes_default | |
17515 | int | |
17516 | main () | |
17517 | { | |
17518 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17519 | test_array [0] = 0 | |
17520 | ||
17521 | ; | |
17522 | return 0; | |
17523 | } | |
17524 | _ACEOF | |
17525 | rm -f conftest.$ac_objext | |
17526 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17527 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17528 | ac_status=$? |
ac1cb8d3 VS |
17529 | grep -v '^ *+' conftest.er1 >conftest.err |
17530 | rm -f conftest.er1 | |
17531 | cat conftest.err >&5 | |
a848cd7e SC |
17532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17533 | (exit $ac_status); } && | |
c228d3a4 RN |
17534 | { ac_try='test -z "$ac_c_werror_flag" |
17535 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17537 | (eval $ac_try) 2>&5 | |
17538 | ac_status=$? | |
17539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17540 | (exit $ac_status); }; } && | |
17541 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17543 | (eval $ac_try) 2>&5 | |
17544 | ac_status=$? | |
17545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17546 | (exit $ac_status); }; }; then | |
17547 | ac_lo=$ac_mid; break | |
17548 | else | |
17549 | echo "$as_me: failed program was:" >&5 | |
17550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17551 | ||
17552 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17553 | if test $ac_mid -le $ac_hi; then |
17554 | ac_lo= ac_hi= | |
17555 | break | |
17556 | fi | |
17557 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17558 | fi |
ac1cb8d3 | 17559 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17560 | done |
17561 | else | |
17562 | echo "$as_me: failed program was:" >&5 | |
17563 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17564 | ||
17565 | ac_lo= ac_hi= | |
17566 | fi | |
ac1cb8d3 | 17567 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17568 | fi |
ac1cb8d3 | 17569 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17570 | # Binary search between lo and hi bounds. |
17571 | while test "x$ac_lo" != "x$ac_hi"; do | |
17572 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17573 | cat >conftest.$ac_ext <<_ACEOF | |
17574 | /* confdefs.h. */ | |
17575 | _ACEOF | |
17576 | cat confdefs.h >>conftest.$ac_ext | |
17577 | cat >>conftest.$ac_ext <<_ACEOF | |
17578 | /* end confdefs.h. */ | |
17579 | $ac_includes_default | |
17580 | int | |
17581 | main () | |
17582 | { | |
17583 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17584 | test_array [0] = 0 | |
17585 | ||
17586 | ; | |
17587 | return 0; | |
17588 | } | |
17589 | _ACEOF | |
17590 | rm -f conftest.$ac_objext | |
17591 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17592 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17593 | ac_status=$? |
ac1cb8d3 VS |
17594 | grep -v '^ *+' conftest.er1 >conftest.err |
17595 | rm -f conftest.er1 | |
17596 | cat conftest.err >&5 | |
a848cd7e SC |
17597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17598 | (exit $ac_status); } && | |
c228d3a4 RN |
17599 | { ac_try='test -z "$ac_c_werror_flag" |
17600 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17602 | (eval $ac_try) 2>&5 | |
17603 | ac_status=$? | |
17604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17605 | (exit $ac_status); }; } && | |
17606 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17608 | (eval $ac_try) 2>&5 | |
17609 | ac_status=$? | |
17610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17611 | (exit $ac_status); }; }; then | |
17612 | ac_hi=$ac_mid | |
17613 | else | |
17614 | echo "$as_me: failed program was:" >&5 | |
17615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17616 | ||
17617 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17618 | fi | |
ac1cb8d3 | 17619 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17620 | done |
17621 | case $ac_lo in | |
17622 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17623 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17624 | See \`config.log' for more details." >&5 | |
17625 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17626 | See \`config.log' for more details." >&2;} | |
17627 | { (exit 1); exit 1; }; } ;; | |
17628 | esac | |
17629 | else | |
17630 | if test "$cross_compiling" = yes; then | |
c228d3a4 RN |
17631 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17632 | See \`config.log' for more details." >&5 | |
17633 | echo "$as_me: error: cannot run test program while cross compiling | |
17634 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17635 | { (exit 1); exit 1; }; } |
17636 | else | |
17637 | cat >conftest.$ac_ext <<_ACEOF | |
17638 | /* confdefs.h. */ | |
17639 | _ACEOF | |
17640 | cat confdefs.h >>conftest.$ac_ext | |
17641 | cat >>conftest.$ac_ext <<_ACEOF | |
17642 | /* end confdefs.h. */ | |
17643 | $ac_includes_default | |
17644 | long longval () { return (long) (sizeof (long long)); } | |
17645 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17646 | #include <stdio.h> | |
17647 | #include <stdlib.h> | |
17648 | int | |
17649 | main () | |
17650 | { | |
17651 | ||
17652 | FILE *f = fopen ("conftest.val", "w"); | |
17653 | if (! f) | |
17654 | exit (1); | |
17655 | if (((long) (sizeof (long long))) < 0) | |
17656 | { | |
17657 | long i = longval (); | |
17658 | if (i != ((long) (sizeof (long long)))) | |
17659 | exit (1); | |
17660 | fprintf (f, "%ld\n", i); | |
17661 | } | |
17662 | else | |
17663 | { | |
17664 | unsigned long i = ulongval (); | |
17665 | if (i != ((long) (sizeof (long long)))) | |
17666 | exit (1); | |
17667 | fprintf (f, "%lu\n", i); | |
17668 | } | |
17669 | exit (ferror (f) || fclose (f) != 0); | |
17670 | ||
17671 | ; | |
17672 | return 0; | |
17673 | } | |
17674 | _ACEOF | |
17675 | rm -f conftest$ac_exeext | |
17676 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17677 | (eval $ac_link) 2>&5 | |
17678 | ac_status=$? | |
17679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17680 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17682 | (eval $ac_try) 2>&5 | |
17683 | ac_status=$? | |
17684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17685 | (exit $ac_status); }; }; then | |
17686 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17687 | else | |
17688 | echo "$as_me: program exited with status $ac_status" >&5 | |
17689 | echo "$as_me: failed program was:" >&5 | |
17690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17691 | ||
17692 | ( exit $ac_status ) | |
17693 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17694 | See \`config.log' for more details." >&5 | |
17695 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17696 | See \`config.log' for more details." >&2;} | |
17697 | { (exit 1); exit 1; }; } | |
17698 | fi | |
ac1cb8d3 | 17699 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17700 | fi |
17701 | fi | |
17702 | rm -f conftest.val | |
17703 | else | |
17704 | ac_cv_sizeof_long_long=0 | |
17705 | fi | |
17706 | fi | |
17707 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
17708 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17709 | cat >>confdefs.h <<_ACEOF | |
17710 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17711 | _ACEOF | |
17712 | ||
17713 | ||
17714 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
17715 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
17716 | fi | |
17717 | ;; | |
17718 | * ) | |
17719 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17720 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17721 | if test "${ac_cv_type_long_long+set}" = set; then | |
17722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17723 | else | |
17724 | cat >conftest.$ac_ext <<_ACEOF | |
17725 | /* confdefs.h. */ | |
17726 | _ACEOF | |
17727 | cat confdefs.h >>conftest.$ac_ext | |
17728 | cat >>conftest.$ac_ext <<_ACEOF | |
17729 | /* end confdefs.h. */ | |
17730 | $ac_includes_default | |
17731 | int | |
17732 | main () | |
17733 | { | |
17734 | if ((long long *) 0) | |
17735 | return 0; | |
17736 | if (sizeof (long long)) | |
17737 | return 0; | |
17738 | ; | |
17739 | return 0; | |
17740 | } | |
17741 | _ACEOF | |
17742 | rm -f conftest.$ac_objext | |
17743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17744 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17745 | ac_status=$? |
ac1cb8d3 VS |
17746 | grep -v '^ *+' conftest.er1 >conftest.err |
17747 | rm -f conftest.er1 | |
17748 | cat conftest.err >&5 | |
a848cd7e SC |
17749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17750 | (exit $ac_status); } && | |
c228d3a4 RN |
17751 | { ac_try='test -z "$ac_c_werror_flag" |
17752 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17754 | (eval $ac_try) 2>&5 | |
17755 | ac_status=$? | |
17756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17757 | (exit $ac_status); }; } && | |
17758 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17760 | (eval $ac_try) 2>&5 | |
17761 | ac_status=$? | |
17762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17763 | (exit $ac_status); }; }; then | |
17764 | ac_cv_type_long_long=yes | |
17765 | else | |
17766 | echo "$as_me: failed program was:" >&5 | |
17767 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17768 | ||
17769 | ac_cv_type_long_long=no | |
17770 | fi | |
ac1cb8d3 | 17771 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17772 | fi |
17773 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17774 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17775 | ||
17776 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17777 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17778 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17780 | else | |
17781 | if test "$ac_cv_type_long_long" = yes; then | |
17782 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17783 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17784 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17785 | # This bug is HP SR number 8606223364. | |
17786 | if test "$cross_compiling" = yes; then | |
17787 | # Depending upon the size, compute the lo and hi bounds. | |
17788 | cat >conftest.$ac_ext <<_ACEOF | |
17789 | /* confdefs.h. */ | |
17790 | _ACEOF | |
17791 | cat confdefs.h >>conftest.$ac_ext | |
17792 | cat >>conftest.$ac_ext <<_ACEOF | |
17793 | /* end confdefs.h. */ | |
17794 | $ac_includes_default | |
17795 | int | |
17796 | main () | |
17797 | { | |
17798 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17799 | test_array [0] = 0 | |
17800 | ||
17801 | ; | |
17802 | return 0; | |
17803 | } | |
17804 | _ACEOF | |
17805 | rm -f conftest.$ac_objext | |
17806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17807 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17808 | ac_status=$? |
ac1cb8d3 VS |
17809 | grep -v '^ *+' conftest.er1 >conftest.err |
17810 | rm -f conftest.er1 | |
17811 | cat conftest.err >&5 | |
a848cd7e SC |
17812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17813 | (exit $ac_status); } && | |
c228d3a4 RN |
17814 | { ac_try='test -z "$ac_c_werror_flag" |
17815 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17817 | (eval $ac_try) 2>&5 | |
17818 | ac_status=$? | |
17819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17820 | (exit $ac_status); }; } && | |
17821 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17823 | (eval $ac_try) 2>&5 | |
17824 | ac_status=$? | |
17825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17826 | (exit $ac_status); }; }; then | |
17827 | ac_lo=0 ac_mid=0 | |
17828 | while :; do | |
17829 | cat >conftest.$ac_ext <<_ACEOF | |
17830 | /* confdefs.h. */ | |
17831 | _ACEOF | |
17832 | cat confdefs.h >>conftest.$ac_ext | |
17833 | cat >>conftest.$ac_ext <<_ACEOF | |
17834 | /* end confdefs.h. */ | |
17835 | $ac_includes_default | |
17836 | int | |
17837 | main () | |
17838 | { | |
17839 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17840 | test_array [0] = 0 | |
17841 | ||
17842 | ; | |
17843 | return 0; | |
17844 | } | |
17845 | _ACEOF | |
17846 | rm -f conftest.$ac_objext | |
17847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17848 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17849 | ac_status=$? |
ac1cb8d3 VS |
17850 | grep -v '^ *+' conftest.er1 >conftest.err |
17851 | rm -f conftest.er1 | |
17852 | cat conftest.err >&5 | |
a848cd7e SC |
17853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17854 | (exit $ac_status); } && | |
c228d3a4 RN |
17855 | { ac_try='test -z "$ac_c_werror_flag" |
17856 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17858 | (eval $ac_try) 2>&5 | |
17859 | ac_status=$? | |
17860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17861 | (exit $ac_status); }; } && | |
17862 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17864 | (eval $ac_try) 2>&5 | |
17865 | ac_status=$? | |
17866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17867 | (exit $ac_status); }; }; then | |
17868 | ac_hi=$ac_mid; break | |
17869 | else | |
17870 | echo "$as_me: failed program was:" >&5 | |
17871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17872 | ||
17873 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17874 | if test $ac_lo -le $ac_mid; then |
17875 | ac_lo= ac_hi= | |
17876 | break | |
17877 | fi | |
17878 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17879 | fi |
ac1cb8d3 | 17880 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17881 | done |
17882 | else | |
17883 | echo "$as_me: failed program was:" >&5 | |
17884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17885 | ||
17886 | cat >conftest.$ac_ext <<_ACEOF | |
17887 | /* confdefs.h. */ | |
17888 | _ACEOF | |
17889 | cat confdefs.h >>conftest.$ac_ext | |
17890 | cat >>conftest.$ac_ext <<_ACEOF | |
17891 | /* end confdefs.h. */ | |
17892 | $ac_includes_default | |
17893 | int | |
17894 | main () | |
17895 | { | |
17896 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17897 | test_array [0] = 0 | |
17898 | ||
17899 | ; | |
17900 | return 0; | |
17901 | } | |
17902 | _ACEOF | |
17903 | rm -f conftest.$ac_objext | |
17904 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17905 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17906 | ac_status=$? |
ac1cb8d3 VS |
17907 | grep -v '^ *+' conftest.er1 >conftest.err |
17908 | rm -f conftest.er1 | |
17909 | cat conftest.err >&5 | |
a848cd7e SC |
17910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17911 | (exit $ac_status); } && | |
c228d3a4 RN |
17912 | { ac_try='test -z "$ac_c_werror_flag" |
17913 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17915 | (eval $ac_try) 2>&5 | |
17916 | ac_status=$? | |
17917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17918 | (exit $ac_status); }; } && | |
17919 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17921 | (eval $ac_try) 2>&5 | |
17922 | ac_status=$? | |
17923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17924 | (exit $ac_status); }; }; then | |
17925 | ac_hi=-1 ac_mid=-1 | |
17926 | while :; do | |
17927 | cat >conftest.$ac_ext <<_ACEOF | |
17928 | /* confdefs.h. */ | |
17929 | _ACEOF | |
17930 | cat confdefs.h >>conftest.$ac_ext | |
17931 | cat >>conftest.$ac_ext <<_ACEOF | |
17932 | /* end confdefs.h. */ | |
17933 | $ac_includes_default | |
17934 | int | |
17935 | main () | |
17936 | { | |
17937 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17938 | test_array [0] = 0 | |
17939 | ||
17940 | ; | |
17941 | return 0; | |
17942 | } | |
17943 | _ACEOF | |
17944 | rm -f conftest.$ac_objext | |
17945 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17946 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17947 | ac_status=$? |
ac1cb8d3 VS |
17948 | grep -v '^ *+' conftest.er1 >conftest.err |
17949 | rm -f conftest.er1 | |
17950 | cat conftest.err >&5 | |
a848cd7e SC |
17951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17952 | (exit $ac_status); } && | |
c228d3a4 RN |
17953 | { ac_try='test -z "$ac_c_werror_flag" |
17954 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17956 | (eval $ac_try) 2>&5 | |
17957 | ac_status=$? | |
17958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17959 | (exit $ac_status); }; } && | |
17960 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17962 | (eval $ac_try) 2>&5 | |
17963 | ac_status=$? | |
17964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17965 | (exit $ac_status); }; }; then | |
17966 | ac_lo=$ac_mid; break | |
17967 | else | |
17968 | echo "$as_me: failed program was:" >&5 | |
17969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17970 | ||
17971 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17972 | if test $ac_mid -le $ac_hi; then |
17973 | ac_lo= ac_hi= | |
17974 | break | |
17975 | fi | |
17976 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17977 | fi |
ac1cb8d3 | 17978 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17979 | done |
17980 | else | |
17981 | echo "$as_me: failed program was:" >&5 | |
17982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17983 | ||
17984 | ac_lo= ac_hi= | |
17985 | fi | |
ac1cb8d3 | 17986 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17987 | fi |
ac1cb8d3 | 17988 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17989 | # Binary search between lo and hi bounds. |
17990 | while test "x$ac_lo" != "x$ac_hi"; do | |
17991 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17992 | cat >conftest.$ac_ext <<_ACEOF | |
17993 | /* confdefs.h. */ | |
17994 | _ACEOF | |
17995 | cat confdefs.h >>conftest.$ac_ext | |
17996 | cat >>conftest.$ac_ext <<_ACEOF | |
17997 | /* end confdefs.h. */ | |
17998 | $ac_includes_default | |
17999 | int | |
18000 | main () | |
18001 | { | |
18002 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18003 | test_array [0] = 0 | |
18004 | ||
18005 | ; | |
18006 | return 0; | |
18007 | } | |
18008 | _ACEOF | |
18009 | rm -f conftest.$ac_objext | |
18010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18011 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18012 | ac_status=$? |
ac1cb8d3 VS |
18013 | grep -v '^ *+' conftest.er1 >conftest.err |
18014 | rm -f conftest.er1 | |
18015 | cat conftest.err >&5 | |
a848cd7e SC |
18016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18017 | (exit $ac_status); } && | |
c228d3a4 RN |
18018 | { ac_try='test -z "$ac_c_werror_flag" |
18019 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18021 | (eval $ac_try) 2>&5 | |
18022 | ac_status=$? | |
18023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18024 | (exit $ac_status); }; } && | |
18025 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18027 | (eval $ac_try) 2>&5 | |
18028 | ac_status=$? | |
18029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18030 | (exit $ac_status); }; }; then | |
18031 | ac_hi=$ac_mid | |
18032 | else | |
18033 | echo "$as_me: failed program was:" >&5 | |
18034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18035 | ||
18036 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18037 | fi | |
ac1cb8d3 | 18038 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18039 | done |
18040 | case $ac_lo in | |
18041 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18042 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18043 | See \`config.log' for more details." >&5 | |
18044 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18045 | See \`config.log' for more details." >&2;} | |
18046 | { (exit 1); exit 1; }; } ;; | |
18047 | esac | |
18048 | else | |
18049 | if test "$cross_compiling" = yes; then | |
c228d3a4 RN |
18050 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18051 | See \`config.log' for more details." >&5 | |
18052 | echo "$as_me: error: cannot run test program while cross compiling | |
18053 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18054 | { (exit 1); exit 1; }; } |
18055 | else | |
18056 | cat >conftest.$ac_ext <<_ACEOF | |
18057 | /* confdefs.h. */ | |
18058 | _ACEOF | |
18059 | cat confdefs.h >>conftest.$ac_ext | |
18060 | cat >>conftest.$ac_ext <<_ACEOF | |
18061 | /* end confdefs.h. */ | |
18062 | $ac_includes_default | |
18063 | long longval () { return (long) (sizeof (long long)); } | |
18064 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18065 | #include <stdio.h> | |
18066 | #include <stdlib.h> | |
18067 | int | |
18068 | main () | |
18069 | { | |
18070 | ||
18071 | FILE *f = fopen ("conftest.val", "w"); | |
18072 | if (! f) | |
18073 | exit (1); | |
18074 | if (((long) (sizeof (long long))) < 0) | |
18075 | { | |
18076 | long i = longval (); | |
18077 | if (i != ((long) (sizeof (long long)))) | |
18078 | exit (1); | |
18079 | fprintf (f, "%ld\n", i); | |
18080 | } | |
18081 | else | |
18082 | { | |
18083 | unsigned long i = ulongval (); | |
18084 | if (i != ((long) (sizeof (long long)))) | |
18085 | exit (1); | |
18086 | fprintf (f, "%lu\n", i); | |
18087 | } | |
18088 | exit (ferror (f) || fclose (f) != 0); | |
18089 | ||
18090 | ; | |
18091 | return 0; | |
18092 | } | |
18093 | _ACEOF | |
18094 | rm -f conftest$ac_exeext | |
18095 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18096 | (eval $ac_link) 2>&5 | |
18097 | ac_status=$? | |
18098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18099 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18101 | (eval $ac_try) 2>&5 | |
18102 | ac_status=$? | |
18103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18104 | (exit $ac_status); }; }; then | |
18105 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18106 | else | |
18107 | echo "$as_me: program exited with status $ac_status" >&5 | |
18108 | echo "$as_me: failed program was:" >&5 | |
18109 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18110 | ||
18111 | ( exit $ac_status ) | |
18112 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18113 | See \`config.log' for more details." >&5 | |
18114 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18115 | See \`config.log' for more details." >&2;} | |
18116 | { (exit 1); exit 1; }; } | |
18117 | fi | |
ac1cb8d3 | 18118 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18119 | fi |
18120 | fi | |
18121 | rm -f conftest.val | |
18122 | else | |
18123 | ac_cv_sizeof_long_long=0 | |
18124 | fi | |
18125 | fi | |
18126 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18127 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18128 | cat >>confdefs.h <<_ACEOF | |
18129 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18130 | _ACEOF | |
18131 | ||
18132 | ||
18133 | esac | |
18134 | ||
18135 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 | |
18136 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
18137 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
18138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18139 | else | |
18140 | ||
18141 | if test "$cross_compiling" = yes; then | |
18142 | ||
18143 | case "${host}" in | |
18144 | *-pc-msdosdjgpp ) | |
18145 | wx_cv_sizeof_wchar_t=0 | |
18146 | ;; | |
18147 | * ) | |
18148 | wx_cv_sizeof_wchar_t=4 | |
18149 | ;; | |
18150 | esac | |
18151 | ||
18152 | ||
18153 | else | |
18154 | cat >conftest.$ac_ext <<_ACEOF | |
18155 | /* confdefs.h. */ | |
18156 | _ACEOF | |
18157 | cat confdefs.h >>conftest.$ac_ext | |
18158 | cat >>conftest.$ac_ext <<_ACEOF | |
18159 | /* end confdefs.h. */ | |
18160 | ||
18161 | /* DJGPP only has fake wchar_t: */ | |
18162 | #ifdef __DJGPP__ | |
18163 | # error "fake wchar_t" | |
18164 | #endif | |
18165 | #ifdef HAVE_WCHAR_H | |
18166 | # ifdef __CYGWIN__ | |
18167 | # include <stddef.h> | |
18168 | # endif | |
18169 | # include <wchar.h> | |
18170 | #endif | |
18171 | #ifdef HAVE_STDLIB_H | |
18172 | # include <stdlib.h> | |
18173 | #endif | |
18174 | #include <stdio.h> | |
18175 | int main() | |
18176 | { | |
18177 | FILE *f=fopen("conftestval", "w"); | |
18178 | if (!f) exit(1); | |
18179 | fprintf(f, "%i", sizeof(wchar_t)); | |
18180 | exit(0); | |
18181 | } | |
18182 | ||
18183 | _ACEOF | |
18184 | rm -f conftest$ac_exeext | |
18185 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18186 | (eval $ac_link) 2>&5 | |
18187 | ac_status=$? | |
18188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18189 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18191 | (eval $ac_try) 2>&5 | |
18192 | ac_status=$? | |
18193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18194 | (exit $ac_status); }; }; then | |
18195 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
18196 | else | |
18197 | echo "$as_me: program exited with status $ac_status" >&5 | |
18198 | echo "$as_me: failed program was:" >&5 | |
18199 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18200 | ||
18201 | ( exit $ac_status ) | |
18202 | wx_cv_sizeof_wchar_t=0 | |
18203 | fi | |
ac1cb8d3 | 18204 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18205 | fi |
18206 | ||
18207 | fi | |
18208 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 | |
18209 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
18210 | ||
18211 | cat >>confdefs.h <<_ACEOF | |
18212 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
18213 | _ACEOF | |
18214 | ||
18215 | ||
ba3d13e1 VZ |
18216 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
18217 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
18218 | if test "${wx_cv_func_va_copy+set}" = set; then | |
18219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18220 | else | |
18221 | ||
18222 | cat >conftest.$ac_ext <<_ACEOF | |
18223 | ||
18224 | #include <stdarg.h> | |
18225 | void foo(char *f, ...) | |
18226 | { | |
18227 | va_list ap1, ap2; | |
18228 | va_start(ap1, f); | |
18229 | va_copy(ap2, ap1); | |
18230 | va_end(ap2); | |
18231 | va_end(ap1); | |
18232 | } | |
18233 | _ACEOF | |
18234 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18235 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18236 | (eval $ac_link) 2>conftest.er1 | |
18237 | ac_status=$? | |
18238 | grep -v '^ *+' conftest.er1 >conftest.err | |
18239 | rm -f conftest.er1 | |
18240 | cat conftest.err >&5 | |
18241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18242 | (exit $ac_status); } && | |
c228d3a4 RN |
18243 | { ac_try='test -z "$ac_c_werror_flag" |
18244 | || test ! -s conftest.err' | |
ba3d13e1 VZ |
18245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18246 | (eval $ac_try) 2>&5 | |
18247 | ac_status=$? | |
18248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18249 | (exit $ac_status); }; } && | |
18250 | { ac_try='test -s conftest$ac_exeext' | |
18251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18252 | (eval $ac_try) 2>&5 | |
18253 | ac_status=$? | |
18254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18255 | (exit $ac_status); }; }; then | |
18256 | wx_cv_func_va_copy=yes | |
18257 | else | |
18258 | echo "$as_me: failed program was:" >&5 | |
18259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18260 | ||
18261 | wx_cv_func_va_copy=no | |
18262 | ||
18263 | fi | |
18264 | rm -f conftest.err conftest.$ac_objext \ | |
18265 | conftest$ac_exeext conftest.$ac_ext | |
18266 | ||
18267 | ||
18268 | fi | |
18269 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
18270 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
18271 | ||
18272 | if test $wx_cv_func_va_copy = "yes"; then | |
18273 | cat >>confdefs.h <<\_ACEOF | |
18274 | #define HAVE_VA_COPY 1 | |
18275 | _ACEOF | |
18276 | ||
18277 | else | |
18278 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
18279 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
18280 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
18281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18282 | else | |
18283 | ||
18284 | if test "$cross_compiling" = yes; then | |
18285 | wx_cv_type_va_list_lvalue=yes | |
18286 | ||
18287 | else | |
18288 | cat >conftest.$ac_ext <<_ACEOF | |
18289 | ||
18290 | #include <stdarg.h> | |
18291 | int foo(char *f, ...) | |
18292 | { | |
18293 | va_list ap1, ap2; | |
18294 | va_start(ap1, f); | |
18295 | ap2 = ap1; | |
18296 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
18297 | return 1; | |
18298 | va_end(ap2); | |
18299 | va_end(ap1); | |
18300 | return 0; | |
18301 | } | |
18302 | int main() | |
18303 | { | |
18304 | return foo("hi", 17); | |
18305 | } | |
18306 | _ACEOF | |
18307 | rm -f conftest$ac_exeext | |
18308 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18309 | (eval $ac_link) 2>&5 | |
18310 | ac_status=$? | |
18311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18312 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18314 | (eval $ac_try) 2>&5 | |
18315 | ac_status=$? | |
18316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18317 | (exit $ac_status); }; }; then | |
18318 | wx_cv_type_va_list_lvalue=yes | |
18319 | else | |
18320 | echo "$as_me: program exited with status $ac_status" >&5 | |
18321 | echo "$as_me: failed program was:" >&5 | |
18322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18323 | ||
18324 | ( exit $ac_status ) | |
18325 | wx_cv_type_va_list_lvalue=no | |
18326 | fi | |
18327 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
18328 | fi | |
18329 | ||
18330 | ||
18331 | fi | |
18332 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
18333 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
18334 | ||
18335 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
18336 | cat >>confdefs.h <<\_ACEOF | |
18337 | #define VA_LIST_IS_ARRAY 1 | |
18338 | _ACEOF | |
18339 | ||
18340 | fi | |
18341 | fi | |
18342 | ||
a848cd7e SC |
18343 | # Check whether --enable-largefile or --disable-largefile was given. |
18344 | if test "${enable_largefile+set}" = set; then | |
18345 | enableval="$enable_largefile" | |
18346 | ||
18347 | fi; | |
18348 | if test "$enable_largefile" != no; then | |
18349 | wx_largefile=no | |
18350 | ||
18351 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
18352 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
18353 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
18354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18355 | else | |
18356 | ||
18357 | cat >conftest.$ac_ext <<_ACEOF | |
18358 | /* confdefs.h. */ | |
18359 | _ACEOF | |
18360 | cat confdefs.h >>conftest.$ac_ext | |
18361 | cat >>conftest.$ac_ext <<_ACEOF | |
18362 | /* end confdefs.h. */ | |
18363 | #define _FILE_OFFSET_BITS 64 | |
18364 | #include <sys/types.h> | |
18365 | int | |
18366 | main () | |
18367 | { | |
18368 | typedef struct { | |
18369 | unsigned int field: sizeof(off_t) == 8; | |
18370 | } wxlf; | |
18371 | ||
18372 | ; | |
18373 | return 0; | |
18374 | } | |
18375 | _ACEOF | |
18376 | rm -f conftest.$ac_objext | |
18377 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18378 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18379 | ac_status=$? |
ac1cb8d3 VS |
18380 | grep -v '^ *+' conftest.er1 >conftest.err |
18381 | rm -f conftest.er1 | |
18382 | cat conftest.err >&5 | |
a848cd7e SC |
18383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18384 | (exit $ac_status); } && | |
c228d3a4 RN |
18385 | { ac_try='test -z "$ac_c_werror_flag" |
18386 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18388 | (eval $ac_try) 2>&5 | |
18389 | ac_status=$? | |
18390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18391 | (exit $ac_status); }; } && | |
18392 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18394 | (eval $ac_try) 2>&5 | |
18395 | ac_status=$? | |
18396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18397 | (exit $ac_status); }; }; then | |
18398 | ac_cv_sys_file_offset_bits=64 | |
18399 | else | |
18400 | echo "$as_me: failed program was:" >&5 | |
18401 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18402 | ||
18403 | ac_cv_sys_file_offset_bits=no | |
18404 | fi | |
ac1cb8d3 | 18405 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18406 | |
18407 | ||
18408 | fi | |
18409 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
18410 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
18411 | ||
18412 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
18413 | wx_largefile=yes | |
18414 | cat >>confdefs.h <<_ACEOF | |
18415 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
18416 | _ACEOF | |
18417 | ||
18418 | fi | |
18419 | ||
18420 | if test "x$wx_largefile" != "xyes"; then | |
18421 | ||
18422 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
18423 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
18424 | if test "${ac_cv_sys_large_files+set}" = set; then | |
18425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18426 | else | |
18427 | ||
18428 | cat >conftest.$ac_ext <<_ACEOF | |
18429 | /* confdefs.h. */ | |
18430 | _ACEOF | |
18431 | cat confdefs.h >>conftest.$ac_ext | |
18432 | cat >>conftest.$ac_ext <<_ACEOF | |
18433 | /* end confdefs.h. */ | |
18434 | #define _LARGE_FILES 1 | |
18435 | #include <sys/types.h> | |
18436 | int | |
18437 | main () | |
18438 | { | |
18439 | typedef struct { | |
18440 | unsigned int field: sizeof(off_t) == 8; | |
18441 | } wxlf; | |
18442 | ||
18443 | ; | |
18444 | return 0; | |
18445 | } | |
18446 | _ACEOF | |
18447 | rm -f conftest.$ac_objext | |
18448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18449 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18450 | ac_status=$? |
ac1cb8d3 VS |
18451 | grep -v '^ *+' conftest.er1 >conftest.err |
18452 | rm -f conftest.er1 | |
18453 | cat conftest.err >&5 | |
a848cd7e SC |
18454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18455 | (exit $ac_status); } && | |
c228d3a4 RN |
18456 | { ac_try='test -z "$ac_c_werror_flag" |
18457 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18459 | (eval $ac_try) 2>&5 | |
18460 | ac_status=$? | |
18461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18462 | (exit $ac_status); }; } && | |
18463 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18465 | (eval $ac_try) 2>&5 | |
18466 | ac_status=$? | |
18467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18468 | (exit $ac_status); }; }; then | |
18469 | ac_cv_sys_large_files=1 | |
18470 | else | |
18471 | echo "$as_me: failed program was:" >&5 | |
18472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18473 | ||
18474 | ac_cv_sys_large_files=no | |
18475 | fi | |
ac1cb8d3 | 18476 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18477 | |
18478 | ||
18479 | fi | |
18480 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
18481 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
18482 | ||
18483 | if test "$ac_cv_sys_large_files" != no; then | |
18484 | wx_largefile=yes | |
18485 | cat >>confdefs.h <<_ACEOF | |
18486 | #define _LARGE_FILES $ac_cv_sys_large_files | |
18487 | _ACEOF | |
18488 | ||
18489 | fi | |
18490 | ||
18491 | fi | |
18492 | ||
18493 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
18494 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
18495 | if test "x$wx_largefile" = "xyes"; then | |
18496 | cat >>confdefs.h <<\_ACEOF | |
18497 | #define HAVE_LARGEFILE_SUPPORT 1 | |
18498 | _ACEOF | |
18499 | ||
18500 | fi | |
18501 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
18502 | echo "${ECHO_T}$wx_largefile" >&6 | |
18503 | fi | |
18504 | ||
18505 | ||
18506 | if test "x$wx_largefile" = "xyes"; then | |
18507 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
18508 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
18509 | else | |
18510 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" | |
18511 | fi | |
18512 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" | |
18513 | fi | |
18514 | ||
18515 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
18516 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
18517 | if test "${ac_cv_c_bigendian+set}" = set; then | |
18518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18519 | else | |
18520 | ac_cv_c_bigendian=unknown | |
18521 | # See if sys/param.h defines the BYTE_ORDER macro. | |
18522 | cat >conftest.$ac_ext <<_ACEOF | |
18523 | /* confdefs.h. */ | |
18524 | _ACEOF | |
18525 | cat confdefs.h >>conftest.$ac_ext | |
18526 | cat >>conftest.$ac_ext <<_ACEOF | |
18527 | /* end confdefs.h. */ | |
18528 | #include <sys/types.h> | |
18529 | #include <sys/param.h> | |
18530 | int | |
18531 | main () | |
18532 | { | |
18533 | ||
18534 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
18535 | bogus endian macros | |
18536 | #endif | |
18537 | ; | |
18538 | return 0; | |
18539 | } | |
18540 | _ACEOF | |
18541 | rm -f conftest.$ac_objext | |
18542 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18543 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18544 | ac_status=$? |
ac1cb8d3 VS |
18545 | grep -v '^ *+' conftest.er1 >conftest.err |
18546 | rm -f conftest.er1 | |
18547 | cat conftest.err >&5 | |
a848cd7e SC |
18548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18549 | (exit $ac_status); } && | |
c228d3a4 RN |
18550 | { ac_try='test -z "$ac_c_werror_flag" |
18551 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18553 | (eval $ac_try) 2>&5 | |
18554 | ac_status=$? | |
18555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18556 | (exit $ac_status); }; } && | |
18557 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18559 | (eval $ac_try) 2>&5 | |
18560 | ac_status=$? | |
18561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18562 | (exit $ac_status); }; }; then | |
18563 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
18564 | cat >conftest.$ac_ext <<_ACEOF | |
18565 | /* confdefs.h. */ | |
18566 | _ACEOF | |
18567 | cat confdefs.h >>conftest.$ac_ext | |
18568 | cat >>conftest.$ac_ext <<_ACEOF | |
18569 | /* end confdefs.h. */ | |
18570 | #include <sys/types.h> | |
18571 | #include <sys/param.h> | |
18572 | int | |
18573 | main () | |
18574 | { | |
18575 | ||
18576 | #if BYTE_ORDER != BIG_ENDIAN | |
18577 | not big endian | |
18578 | #endif | |
18579 | ; | |
18580 | return 0; | |
18581 | } | |
18582 | _ACEOF | |
18583 | rm -f conftest.$ac_objext | |
18584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18585 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18586 | ac_status=$? |
ac1cb8d3 VS |
18587 | grep -v '^ *+' conftest.er1 >conftest.err |
18588 | rm -f conftest.er1 | |
18589 | cat conftest.err >&5 | |
a848cd7e SC |
18590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18591 | (exit $ac_status); } && | |
c228d3a4 RN |
18592 | { ac_try='test -z "$ac_c_werror_flag" |
18593 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18595 | (eval $ac_try) 2>&5 | |
18596 | ac_status=$? | |
18597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18598 | (exit $ac_status); }; } && | |
18599 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18601 | (eval $ac_try) 2>&5 | |
18602 | ac_status=$? | |
18603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18604 | (exit $ac_status); }; }; then | |
18605 | ac_cv_c_bigendian=yes | |
18606 | else | |
18607 | echo "$as_me: failed program was:" >&5 | |
18608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18609 | ||
18610 | ac_cv_c_bigendian=no | |
18611 | fi | |
ac1cb8d3 | 18612 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18613 | else |
18614 | echo "$as_me: failed program was:" >&5 | |
18615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18616 | ||
18617 | fi | |
ac1cb8d3 | 18618 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18619 | if test $ac_cv_c_bigendian = unknown; then |
18620 | if test "$cross_compiling" = yes; then | |
18621 | ac_cv_c_bigendian=unknown | |
18622 | else | |
18623 | cat >conftest.$ac_ext <<_ACEOF | |
18624 | /* confdefs.h. */ | |
18625 | _ACEOF | |
18626 | cat confdefs.h >>conftest.$ac_ext | |
18627 | cat >>conftest.$ac_ext <<_ACEOF | |
18628 | /* end confdefs.h. */ | |
18629 | main () { | |
18630 | /* Are we little or big endian? From Harbison&Steele. */ | |
18631 | union | |
18632 | { | |
18633 | long l; | |
18634 | char c[sizeof (long)]; | |
18635 | } u; | |
18636 | u.l = 1; | |
18637 | exit (u.c[sizeof (long) - 1] == 1); | |
18638 | } | |
18639 | _ACEOF | |
18640 | rm -f conftest$ac_exeext | |
18641 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18642 | (eval $ac_link) 2>&5 | |
18643 | ac_status=$? | |
18644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18645 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18647 | (eval $ac_try) 2>&5 | |
18648 | ac_status=$? | |
18649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18650 | (exit $ac_status); }; }; then | |
18651 | ac_cv_c_bigendian=no | |
18652 | else | |
18653 | echo "$as_me: program exited with status $ac_status" >&5 | |
18654 | echo "$as_me: failed program was:" >&5 | |
18655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18656 | ||
18657 | ( exit $ac_status ) | |
18658 | ac_cv_c_bigendian=yes | |
18659 | fi | |
ac1cb8d3 | 18660 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18661 | fi |
18662 | fi | |
18663 | fi | |
18664 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
18665 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
18666 | if test $ac_cv_c_bigendian = unknown; then | |
18667 | { 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 | |
18668 | 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;} | |
18669 | fi | |
18670 | if test $ac_cv_c_bigendian = yes; then | |
18671 | cat >>confdefs.h <<\_ACEOF | |
18672 | #define WORDS_BIGENDIAN 1 | |
18673 | _ACEOF | |
18674 | ||
18675 | fi | |
18676 | ||
18677 | ||
18678 | ac_ext=cc | |
18679 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18680 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18681 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18682 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18683 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
18684 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
18685 | if test -z "$CXXCPP"; then | |
18686 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
18687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18688 | else | |
18689 | # Double quotes because CXXCPP needs to be expanded | |
18690 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
18691 | do | |
18692 | ac_preproc_ok=false | |
18693 | for ac_cxx_preproc_warn_flag in '' yes | |
18694 | do | |
18695 | # Use a header file that comes with gcc, so configuring glibc | |
18696 | # with a fresh cross-compiler works. | |
18697 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18698 | # <limits.h> exists even on freestanding compilers. | |
18699 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
18700 | # not just through cpp. "Syntax error" is here to catch this case. | |
18701 | cat >conftest.$ac_ext <<_ACEOF | |
18702 | /* confdefs.h. */ | |
18703 | _ACEOF | |
18704 | cat confdefs.h >>conftest.$ac_ext | |
18705 | cat >>conftest.$ac_ext <<_ACEOF | |
18706 | /* end confdefs.h. */ | |
18707 | #ifdef __STDC__ | |
18708 | # include <limits.h> | |
18709 | #else | |
18710 | # include <assert.h> | |
18711 | #endif | |
ac1cb8d3 | 18712 | Syntax error |
a848cd7e SC |
18713 | _ACEOF |
18714 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18715 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18716 | ac_status=$? | |
18717 | grep -v '^ *+' conftest.er1 >conftest.err | |
18718 | rm -f conftest.er1 | |
18719 | cat conftest.err >&5 | |
18720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18721 | (exit $ac_status); } >/dev/null; then | |
18722 | if test -s conftest.err; then | |
18723 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18724 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18725 | else |
18726 | ac_cpp_err= | |
18727 | fi | |
18728 | else | |
18729 | ac_cpp_err=yes | |
18730 | fi | |
18731 | if test -z "$ac_cpp_err"; then | |
18732 | : | |
18733 | else | |
18734 | echo "$as_me: failed program was:" >&5 | |
18735 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18736 | ||
18737 | # Broken: fails on valid input. | |
18738 | continue | |
18739 | fi | |
18740 | rm -f conftest.err conftest.$ac_ext | |
18741 | ||
18742 | # OK, works on sane cases. Now check whether non-existent headers | |
18743 | # can be detected and how. | |
18744 | cat >conftest.$ac_ext <<_ACEOF | |
18745 | /* confdefs.h. */ | |
18746 | _ACEOF | |
18747 | cat confdefs.h >>conftest.$ac_ext | |
18748 | cat >>conftest.$ac_ext <<_ACEOF | |
18749 | /* end confdefs.h. */ | |
18750 | #include <ac_nonexistent.h> | |
18751 | _ACEOF | |
18752 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18753 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18754 | ac_status=$? | |
18755 | grep -v '^ *+' conftest.er1 >conftest.err | |
18756 | rm -f conftest.er1 | |
18757 | cat conftest.err >&5 | |
18758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18759 | (exit $ac_status); } >/dev/null; then | |
18760 | if test -s conftest.err; then | |
18761 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18762 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18763 | else |
18764 | ac_cpp_err= | |
18765 | fi | |
18766 | else | |
18767 | ac_cpp_err=yes | |
18768 | fi | |
18769 | if test -z "$ac_cpp_err"; then | |
18770 | # Broken: success on invalid input. | |
18771 | continue | |
18772 | else | |
18773 | echo "$as_me: failed program was:" >&5 | |
18774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18775 | ||
18776 | # Passes both tests. | |
18777 | ac_preproc_ok=: | |
18778 | break | |
18779 | fi | |
18780 | rm -f conftest.err conftest.$ac_ext | |
18781 | ||
18782 | done | |
18783 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18784 | rm -f conftest.err conftest.$ac_ext | |
18785 | if $ac_preproc_ok; then | |
18786 | break | |
18787 | fi | |
18788 | ||
18789 | done | |
18790 | ac_cv_prog_CXXCPP=$CXXCPP | |
18791 | ||
18792 | fi | |
18793 | CXXCPP=$ac_cv_prog_CXXCPP | |
18794 | else | |
18795 | ac_cv_prog_CXXCPP=$CXXCPP | |
18796 | fi | |
18797 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
18798 | echo "${ECHO_T}$CXXCPP" >&6 | |
18799 | ac_preproc_ok=false | |
18800 | for ac_cxx_preproc_warn_flag in '' yes | |
18801 | do | |
18802 | # Use a header file that comes with gcc, so configuring glibc | |
18803 | # with a fresh cross-compiler works. | |
18804 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18805 | # <limits.h> exists even on freestanding compilers. | |
18806 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
18807 | # not just through cpp. "Syntax error" is here to catch this case. | |
18808 | cat >conftest.$ac_ext <<_ACEOF | |
18809 | /* confdefs.h. */ | |
18810 | _ACEOF | |
18811 | cat confdefs.h >>conftest.$ac_ext | |
18812 | cat >>conftest.$ac_ext <<_ACEOF | |
18813 | /* end confdefs.h. */ | |
18814 | #ifdef __STDC__ | |
18815 | # include <limits.h> | |
18816 | #else | |
18817 | # include <assert.h> | |
18818 | #endif | |
ac1cb8d3 | 18819 | Syntax error |
a848cd7e SC |
18820 | _ACEOF |
18821 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18822 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18823 | ac_status=$? | |
18824 | grep -v '^ *+' conftest.er1 >conftest.err | |
18825 | rm -f conftest.er1 | |
18826 | cat conftest.err >&5 | |
18827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18828 | (exit $ac_status); } >/dev/null; then | |
18829 | if test -s conftest.err; then | |
18830 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18831 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18832 | else |
18833 | ac_cpp_err= | |
18834 | fi | |
18835 | else | |
18836 | ac_cpp_err=yes | |
18837 | fi | |
18838 | if test -z "$ac_cpp_err"; then | |
18839 | : | |
18840 | else | |
18841 | echo "$as_me: failed program was:" >&5 | |
18842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18843 | ||
18844 | # Broken: fails on valid input. | |
18845 | continue | |
18846 | fi | |
18847 | rm -f conftest.err conftest.$ac_ext | |
18848 | ||
18849 | # OK, works on sane cases. Now check whether non-existent headers | |
18850 | # can be detected and how. | |
18851 | cat >conftest.$ac_ext <<_ACEOF | |
18852 | /* confdefs.h. */ | |
18853 | _ACEOF | |
18854 | cat confdefs.h >>conftest.$ac_ext | |
18855 | cat >>conftest.$ac_ext <<_ACEOF | |
18856 | /* end confdefs.h. */ | |
18857 | #include <ac_nonexistent.h> | |
18858 | _ACEOF | |
18859 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18860 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18861 | ac_status=$? | |
18862 | grep -v '^ *+' conftest.er1 >conftest.err | |
18863 | rm -f conftest.er1 | |
18864 | cat conftest.err >&5 | |
18865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18866 | (exit $ac_status); } >/dev/null; then | |
18867 | if test -s conftest.err; then | |
18868 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18869 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18870 | else |
18871 | ac_cpp_err= | |
18872 | fi | |
18873 | else | |
18874 | ac_cpp_err=yes | |
18875 | fi | |
18876 | if test -z "$ac_cpp_err"; then | |
18877 | # Broken: success on invalid input. | |
18878 | continue | |
18879 | else | |
18880 | echo "$as_me: failed program was:" >&5 | |
18881 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18882 | ||
18883 | # Passes both tests. | |
18884 | ac_preproc_ok=: | |
18885 | break | |
18886 | fi | |
18887 | rm -f conftest.err conftest.$ac_ext | |
18888 | ||
18889 | done | |
18890 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18891 | rm -f conftest.err conftest.$ac_ext | |
18892 | if $ac_preproc_ok; then | |
18893 | : | |
18894 | else | |
18895 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18896 | See \`config.log' for more details." >&5 | |
18897 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18898 | See \`config.log' for more details." >&2;} | |
18899 | { (exit 1); exit 1; }; } | |
18900 | fi | |
18901 | ||
18902 | ac_ext=cc | |
18903 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18904 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18905 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18906 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18907 | ||
18908 | ||
18909 | ||
18910 | ||
18911 | ||
18912 | ac_ext=cc | |
18913 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18914 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18915 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18916 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18917 | ||
18918 | ||
18919 | ||
18920 | for ac_header in iostream | |
18921 | do | |
18922 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
18923 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18924 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18925 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18926 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18928 | fi | |
18929 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18930 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18931 | else | |
18932 | # Is the header compilable? | |
18933 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18934 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18935 | cat >conftest.$ac_ext <<_ACEOF | |
18936 | /* confdefs.h. */ | |
18937 | _ACEOF | |
18938 | cat confdefs.h >>conftest.$ac_ext | |
18939 | cat >>conftest.$ac_ext <<_ACEOF | |
18940 | /* end confdefs.h. */ | |
18941 | $ac_includes_default | |
18942 | #include <$ac_header> | |
18943 | _ACEOF | |
18944 | rm -f conftest.$ac_objext | |
18945 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18946 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18947 | ac_status=$? |
ac1cb8d3 VS |
18948 | grep -v '^ *+' conftest.er1 >conftest.err |
18949 | rm -f conftest.er1 | |
18950 | cat conftest.err >&5 | |
a848cd7e SC |
18951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18952 | (exit $ac_status); } && | |
c228d3a4 RN |
18953 | { ac_try='test -z "$ac_cxx_werror_flag" |
18954 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18956 | (eval $ac_try) 2>&5 | |
18957 | ac_status=$? | |
18958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18959 | (exit $ac_status); }; } && | |
18960 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18962 | (eval $ac_try) 2>&5 | |
18963 | ac_status=$? | |
18964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18965 | (exit $ac_status); }; }; then | |
18966 | ac_header_compiler=yes | |
18967 | else | |
18968 | echo "$as_me: failed program was:" >&5 | |
18969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18970 | ||
18971 | ac_header_compiler=no | |
18972 | fi | |
ac1cb8d3 | 18973 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18974 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18975 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18976 | ||
18977 | # Is the header present? | |
18978 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18979 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18980 | cat >conftest.$ac_ext <<_ACEOF | |
18981 | /* confdefs.h. */ | |
18982 | _ACEOF | |
18983 | cat confdefs.h >>conftest.$ac_ext | |
18984 | cat >>conftest.$ac_ext <<_ACEOF | |
18985 | /* end confdefs.h. */ | |
18986 | #include <$ac_header> | |
18987 | _ACEOF | |
18988 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18989 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18990 | ac_status=$? | |
18991 | grep -v '^ *+' conftest.er1 >conftest.err | |
18992 | rm -f conftest.er1 | |
18993 | cat conftest.err >&5 | |
18994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18995 | (exit $ac_status); } >/dev/null; then | |
18996 | if test -s conftest.err; then | |
18997 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18998 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18999 | else |
19000 | ac_cpp_err= | |
19001 | fi | |
19002 | else | |
19003 | ac_cpp_err=yes | |
19004 | fi | |
19005 | if test -z "$ac_cpp_err"; then | |
19006 | ac_header_preproc=yes | |
19007 | else | |
19008 | echo "$as_me: failed program was:" >&5 | |
19009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19010 | ||
19011 | ac_header_preproc=no | |
19012 | fi | |
19013 | rm -f conftest.err conftest.$ac_ext | |
19014 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19015 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19016 | ||
19017 | # So? What about this header? | |
ac1cb8d3 VS |
19018 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
19019 | yes:no: ) | |
a848cd7e SC |
19020 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
19021 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
19022 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
19023 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
19024 | ac_header_preproc=yes | |
a848cd7e | 19025 | ;; |
ac1cb8d3 | 19026 | no:yes:* ) |
a848cd7e SC |
19027 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
19028 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
19029 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
19030 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
19031 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
19032 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
19033 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
19034 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
19035 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19036 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
19037 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
19038 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
19039 | ( |
19040 | cat <<\_ASBOX | |
ac1cb8d3 VS |
19041 | ## ----------------------------------------- ## |
19042 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
19043 | ## ----------------------------------------- ## | |
a848cd7e SC |
19044 | _ASBOX |
19045 | ) | | |
19046 | sed "s/^/$as_me: WARNING: /" >&2 | |
19047 | ;; | |
19048 | esac | |
19049 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19050 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19051 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19053 | else | |
ac1cb8d3 | 19054 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
19055 | fi |
19056 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19057 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19058 | ||
19059 | fi | |
19060 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
19061 | cat >>confdefs.h <<_ACEOF | |
19062 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19063 | _ACEOF | |
19064 | ||
19065 | fi | |
19066 | ||
19067 | done | |
19068 | ||
19069 | ||
19070 | if test "$ac_cv_header_iostream" = "yes" ; then | |
19071 | : | |
19072 | else | |
19073 | cat >>confdefs.h <<\_ACEOF | |
19074 | #define wxUSE_IOSTREAMH 1 | |
19075 | _ACEOF | |
19076 | ||
19077 | fi | |
19078 | ||
19079 | ac_ext=c | |
19080 | ac_cpp='$CPP $CPPFLAGS' | |
19081 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19082 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19083 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19084 | ||
19085 | ||
19086 | ||
19087 | ||
19088 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
19089 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
19090 | if test "${wx_cv_cpp_bool+set}" = set; then | |
19091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19092 | else | |
19093 | ||
19094 | ||
19095 | ||
19096 | ac_ext=cc | |
19097 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19098 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19099 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19100 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19101 | ||
19102 | ||
19103 | cat >conftest.$ac_ext <<_ACEOF | |
19104 | /* confdefs.h. */ | |
19105 | _ACEOF | |
19106 | cat confdefs.h >>conftest.$ac_ext | |
19107 | cat >>conftest.$ac_ext <<_ACEOF | |
19108 | /* end confdefs.h. */ | |
19109 | ||
19110 | ||
19111 | int | |
19112 | main () | |
19113 | { | |
19114 | ||
19115 | bool b = true; | |
19116 | ||
19117 | return 0; | |
19118 | ||
19119 | ; | |
19120 | return 0; | |
19121 | } | |
19122 | _ACEOF | |
19123 | rm -f conftest.$ac_objext | |
19124 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19125 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19126 | ac_status=$? |
ac1cb8d3 VS |
19127 | grep -v '^ *+' conftest.er1 >conftest.err |
19128 | rm -f conftest.er1 | |
19129 | cat conftest.err >&5 | |
a848cd7e SC |
19130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19131 | (exit $ac_status); } && | |
c228d3a4 RN |
19132 | { ac_try='test -z "$ac_cxx_werror_flag" |
19133 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19135 | (eval $ac_try) 2>&5 | |
19136 | ac_status=$? | |
19137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19138 | (exit $ac_status); }; } && | |
19139 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19141 | (eval $ac_try) 2>&5 | |
19142 | ac_status=$? | |
19143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19144 | (exit $ac_status); }; }; then | |
19145 | ||
19146 | wx_cv_cpp_bool=yes | |
19147 | ||
19148 | else | |
19149 | echo "$as_me: failed program was:" >&5 | |
19150 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19151 | ||
19152 | ||
19153 | wx_cv_cpp_bool=no | |
19154 | ||
19155 | ||
19156 | fi | |
ac1cb8d3 | 19157 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19158 | |
19159 | ac_ext=c | |
19160 | ac_cpp='$CPP $CPPFLAGS' | |
19161 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19162 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19163 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19164 | ||
19165 | ||
19166 | fi | |
19167 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
19168 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
19169 | ||
19170 | if test "$wx_cv_cpp_bool" = "yes"; then | |
19171 | cat >>confdefs.h <<\_ACEOF | |
19172 | #define HAVE_BOOL 1 | |
19173 | _ACEOF | |
19174 | ||
19175 | fi | |
19176 | ||
19177 | ||
19178 | ||
19179 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
19180 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
19181 | if test "${wx_cv_explicit+set}" = set; then | |
19182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19183 | else | |
19184 | ||
19185 | ||
19186 | ||
19187 | ac_ext=cc | |
19188 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19189 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19190 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19191 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19192 | ||
19193 | ||
19194 | cat >conftest.$ac_ext <<_ACEOF | |
19195 | /* confdefs.h. */ | |
19196 | _ACEOF | |
19197 | cat confdefs.h >>conftest.$ac_ext | |
19198 | cat >>conftest.$ac_ext <<_ACEOF | |
19199 | /* end confdefs.h. */ | |
19200 | ||
19201 | class Foo { public: explicit Foo(int) {} }; | |
19202 | ||
19203 | int | |
19204 | main () | |
19205 | { | |
19206 | ||
19207 | return 0; | |
19208 | ||
19209 | ; | |
19210 | return 0; | |
19211 | } | |
19212 | _ACEOF | |
19213 | rm -f conftest.$ac_objext | |
19214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19215 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19216 | ac_status=$? |
ac1cb8d3 VS |
19217 | grep -v '^ *+' conftest.er1 >conftest.err |
19218 | rm -f conftest.er1 | |
19219 | cat conftest.err >&5 | |
a848cd7e SC |
19220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19221 | (exit $ac_status); } && | |
c228d3a4 RN |
19222 | { ac_try='test -z "$ac_cxx_werror_flag" |
19223 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19225 | (eval $ac_try) 2>&5 | |
19226 | ac_status=$? | |
19227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19228 | (exit $ac_status); }; } && | |
19229 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19231 | (eval $ac_try) 2>&5 | |
19232 | ac_status=$? | |
19233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19234 | (exit $ac_status); }; }; then | |
19235 | ||
19236 | cat >conftest.$ac_ext <<_ACEOF | |
19237 | /* confdefs.h. */ | |
19238 | _ACEOF | |
19239 | cat confdefs.h >>conftest.$ac_ext | |
19240 | cat >>conftest.$ac_ext <<_ACEOF | |
19241 | /* end confdefs.h. */ | |
19242 | ||
19243 | class Foo { public: explicit Foo(int) {} }; | |
19244 | static void TakeFoo(const Foo& foo) { } | |
19245 | ||
19246 | int | |
19247 | main () | |
19248 | { | |
19249 | ||
19250 | TakeFoo(17); | |
19251 | return 0; | |
19252 | ||
19253 | ; | |
19254 | return 0; | |
19255 | } | |
19256 | _ACEOF | |
19257 | rm -f conftest.$ac_objext | |
19258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19259 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19260 | ac_status=$? |
ac1cb8d3 VS |
19261 | grep -v '^ *+' conftest.er1 >conftest.err |
19262 | rm -f conftest.er1 | |
19263 | cat conftest.err >&5 | |
a848cd7e SC |
19264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19265 | (exit $ac_status); } && | |
c228d3a4 RN |
19266 | { ac_try='test -z "$ac_cxx_werror_flag" |
19267 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19269 | (eval $ac_try) 2>&5 | |
19270 | ac_status=$? | |
19271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19272 | (exit $ac_status); }; } && | |
19273 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19275 | (eval $ac_try) 2>&5 | |
19276 | ac_status=$? | |
19277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19278 | (exit $ac_status); }; }; then | |
19279 | wx_cv_explicit=no | |
19280 | else | |
19281 | echo "$as_me: failed program was:" >&5 | |
19282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19283 | ||
19284 | wx_cv_explicit=yes | |
19285 | ||
19286 | fi | |
ac1cb8d3 | 19287 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19288 | |
19289 | else | |
19290 | echo "$as_me: failed program was:" >&5 | |
19291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19292 | ||
19293 | wx_cv_explicit=no | |
19294 | ||
19295 | fi | |
ac1cb8d3 | 19296 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19297 | |
19298 | ac_ext=c | |
19299 | ac_cpp='$CPP $CPPFLAGS' | |
19300 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19301 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19302 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19303 | ||
19304 | ||
19305 | fi | |
19306 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
19307 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
19308 | ||
19309 | if test "$wx_cv_explicit" = "yes"; then | |
19310 | cat >>confdefs.h <<\_ACEOF | |
19311 | #define HAVE_EXPLICIT 1 | |
19312 | _ACEOF | |
19313 | ||
19314 | fi | |
19315 | ||
19316 | ||
19317 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
19318 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
19319 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
19320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19321 | else | |
19322 | ||
19323 | ||
19324 | ac_ext=cc | |
19325 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19326 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19327 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19328 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19329 | ||
19330 | cat >conftest.$ac_ext <<_ACEOF | |
19331 | /* confdefs.h. */ | |
19332 | _ACEOF | |
19333 | cat confdefs.h >>conftest.$ac_ext | |
19334 | cat >>conftest.$ac_ext <<_ACEOF | |
19335 | /* end confdefs.h. */ | |
19336 | ||
19337 | int | |
19338 | main () | |
19339 | { | |
19340 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
19341 | ; | |
19342 | return 0; | |
19343 | } | |
19344 | _ACEOF | |
19345 | rm -f conftest.$ac_objext | |
19346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19347 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19348 | ac_status=$? |
ac1cb8d3 VS |
19349 | grep -v '^ *+' conftest.er1 >conftest.err |
19350 | rm -f conftest.er1 | |
19351 | cat conftest.err >&5 | |
a848cd7e SC |
19352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19353 | (exit $ac_status); } && | |
c228d3a4 RN |
19354 | { ac_try='test -z "$ac_cxx_werror_flag" |
19355 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19357 | (eval $ac_try) 2>&5 | |
19358 | ac_status=$? | |
19359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19360 | (exit $ac_status); }; } && | |
19361 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19363 | (eval $ac_try) 2>&5 | |
19364 | ac_status=$? | |
19365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19366 | (exit $ac_status); }; }; then | |
19367 | ac_cv_cxx_const_cast=yes | |
19368 | else | |
19369 | echo "$as_me: failed program was:" >&5 | |
19370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19371 | ||
19372 | ac_cv_cxx_const_cast=no | |
19373 | fi | |
ac1cb8d3 | 19374 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19375 | ac_ext=c |
19376 | ac_cpp='$CPP $CPPFLAGS' | |
19377 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19378 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19379 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19380 | ||
19381 | ||
19382 | fi | |
19383 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
19384 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
19385 | if test "$ac_cv_cxx_const_cast" = yes; then | |
19386 | ||
19387 | cat >>confdefs.h <<\_ACEOF | |
19388 | #define HAVE_CONST_CAST | |
19389 | _ACEOF | |
19390 | ||
19391 | fi | |
19392 | ||
7714864e RL |
19393 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
19394 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
19395 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
19396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19397 | else | |
19398 | ||
19399 | ||
19400 | ac_ext=cc | |
19401 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19402 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19403 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19404 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19405 | ||
19406 | cat >conftest.$ac_ext <<_ACEOF | |
19407 | /* confdefs.h. */ | |
19408 | _ACEOF | |
19409 | cat confdefs.h >>conftest.$ac_ext | |
19410 | cat >>conftest.$ac_ext <<_ACEOF | |
19411 | /* end confdefs.h. */ | |
19412 | #include <typeinfo> | |
19413 | class Base { public : Base () {} virtual void f () = 0;}; | |
19414 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
19415 | class Unrelated { public : Unrelated () {} }; | |
19416 | int g (Unrelated&) { return 0; } | |
19417 | int | |
19418 | main () | |
19419 | { | |
19420 | ||
19421 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
19422 | ; | |
19423 | return 0; | |
19424 | } | |
19425 | _ACEOF | |
19426 | rm -f conftest.$ac_objext | |
19427 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19428 | (eval $ac_compile) 2>conftest.er1 | |
19429 | ac_status=$? | |
19430 | grep -v '^ *+' conftest.er1 >conftest.err | |
19431 | rm -f conftest.er1 | |
19432 | cat conftest.err >&5 | |
19433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19434 | (exit $ac_status); } && | |
c228d3a4 RN |
19435 | { ac_try='test -z "$ac_cxx_werror_flag" |
19436 | || test ! -s conftest.err' | |
7714864e RL |
19437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19438 | (eval $ac_try) 2>&5 | |
19439 | ac_status=$? | |
19440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19441 | (exit $ac_status); }; } && | |
19442 | { ac_try='test -s conftest.$ac_objext' | |
19443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19444 | (eval $ac_try) 2>&5 | |
19445 | ac_status=$? | |
19446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19447 | (exit $ac_status); }; }; then | |
19448 | ac_cv_cxx_reinterpret_cast=yes | |
19449 | else | |
19450 | echo "$as_me: failed program was:" >&5 | |
19451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19452 | ||
19453 | ac_cv_cxx_reinterpret_cast=no | |
19454 | fi | |
19455 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19456 | ac_ext=c | |
19457 | ac_cpp='$CPP $CPPFLAGS' | |
19458 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19459 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19460 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19461 | ||
19462 | ||
19463 | fi | |
19464 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
19465 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
19466 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
19467 | ||
19468 | cat >>confdefs.h <<\_ACEOF | |
19469 | #define HAVE_REINTERPRET_CAST | |
19470 | _ACEOF | |
19471 | ||
19472 | fi | |
19473 | ||
a848cd7e SC |
19474 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
19475 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
19476 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
19477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19478 | else | |
19479 | ||
19480 | ||
19481 | ac_ext=cc | |
19482 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19483 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19484 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19485 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19486 | ||
19487 | cat >conftest.$ac_ext <<_ACEOF | |
19488 | /* confdefs.h. */ | |
19489 | _ACEOF | |
19490 | cat confdefs.h >>conftest.$ac_ext | |
19491 | cat >>conftest.$ac_ext <<_ACEOF | |
19492 | /* end confdefs.h. */ | |
19493 | #include <typeinfo> | |
19494 | class Base { public : Base () {} virtual void f () = 0; }; | |
19495 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
19496 | int g (Derived&) { return 0; } | |
19497 | int | |
19498 | main () | |
19499 | { | |
19500 | ||
19501 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
19502 | ; | |
19503 | return 0; | |
19504 | } | |
19505 | _ACEOF | |
19506 | rm -f conftest.$ac_objext | |
19507 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19508 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19509 | ac_status=$? |
ac1cb8d3 VS |
19510 | grep -v '^ *+' conftest.er1 >conftest.err |
19511 | rm -f conftest.er1 | |
19512 | cat conftest.err >&5 | |
a848cd7e SC |
19513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19514 | (exit $ac_status); } && | |
c228d3a4 RN |
19515 | { ac_try='test -z "$ac_cxx_werror_flag" |
19516 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19518 | (eval $ac_try) 2>&5 | |
19519 | ac_status=$? | |
19520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19521 | (exit $ac_status); }; } && | |
19522 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19524 | (eval $ac_try) 2>&5 | |
19525 | ac_status=$? | |
19526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19527 | (exit $ac_status); }; }; then | |
19528 | ac_cv_cxx_static_cast=yes | |
19529 | else | |
19530 | echo "$as_me: failed program was:" >&5 | |
19531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19532 | ||
19533 | ac_cv_cxx_static_cast=no | |
19534 | fi | |
ac1cb8d3 | 19535 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19536 | ac_ext=c |
19537 | ac_cpp='$CPP $CPPFLAGS' | |
19538 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19539 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19540 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19541 | ||
19542 | ||
19543 | fi | |
19544 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
19545 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
19546 | if test "$ac_cv_cxx_static_cast" = yes; then | |
19547 | ||
19548 | cat >>confdefs.h <<\_ACEOF | |
19549 | #define HAVE_STATIC_CAST | |
19550 | _ACEOF | |
19551 | ||
19552 | fi | |
19553 | ||
19554 | ||
19555 | if test "$wxUSE_STL" = "yes"; then | |
19556 | ac_ext=cc | |
19557 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19558 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19559 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19560 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19561 | ||
19562 | ||
19563 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
19564 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
19565 | cat >conftest.$ac_ext <<_ACEOF | |
19566 | /* confdefs.h. */ | |
19567 | _ACEOF | |
19568 | cat confdefs.h >>conftest.$ac_ext | |
19569 | cat >>conftest.$ac_ext <<_ACEOF | |
19570 | /* end confdefs.h. */ | |
19571 | #include <string> | |
19572 | #include <functional> | |
19573 | #include <algorithm> | |
19574 | #include <vector> | |
19575 | #include <list> | |
19576 | int | |
19577 | main () | |
19578 | { | |
19579 | std::vector<int> moo; | |
19580 | std::list<int> foo; | |
19581 | std::vector<int>::iterator it = | |
19582 | std::find_if(moo.begin(), moo.end(), | |
19583 | std::bind2nd(std::less<int>(), 3)); | |
19584 | ; | |
19585 | return 0; | |
19586 | } | |
19587 | _ACEOF | |
19588 | rm -f conftest.$ac_objext | |
19589 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19590 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19591 | ac_status=$? |
ac1cb8d3 VS |
19592 | grep -v '^ *+' conftest.er1 >conftest.err |
19593 | rm -f conftest.er1 | |
19594 | cat conftest.err >&5 | |
a848cd7e SC |
19595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19596 | (exit $ac_status); } && | |
c228d3a4 RN |
19597 | { ac_try='test -z "$ac_cxx_werror_flag" |
19598 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19600 | (eval $ac_try) 2>&5 | |
19601 | ac_status=$? | |
19602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19603 | (exit $ac_status); }; } && | |
19604 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19606 | (eval $ac_try) 2>&5 | |
19607 | ac_status=$? | |
19608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19609 | (exit $ac_status); }; }; then | |
19610 | echo "$as_me:$LINENO: result: yes" >&5 | |
19611 | echo "${ECHO_T}yes" >&6 | |
19612 | else | |
19613 | echo "$as_me: failed program was:" >&5 | |
19614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19615 | ||
19616 | echo "$as_me:$LINENO: result: no" >&5 | |
19617 | echo "${ECHO_T}no" >&6 | |
19618 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 | |
19619 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
19620 | { (exit 1); exit 1; }; } | |
19621 | fi | |
ac1cb8d3 | 19622 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19623 | |
19624 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 | |
19625 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
19626 | cat >conftest.$ac_ext <<_ACEOF | |
19627 | /* confdefs.h. */ | |
19628 | _ACEOF | |
19629 | cat confdefs.h >>conftest.$ac_ext | |
19630 | cat >>conftest.$ac_ext <<_ACEOF | |
19631 | /* end confdefs.h. */ | |
19632 | #include <string> | |
19633 | int | |
19634 | main () | |
19635 | { | |
19636 | std::wstring foo; | |
19637 | ; | |
19638 | return 0; | |
19639 | } | |
19640 | _ACEOF | |
19641 | rm -f conftest.$ac_objext | |
19642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19643 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19644 | ac_status=$? |
ac1cb8d3 VS |
19645 | grep -v '^ *+' conftest.er1 >conftest.err |
19646 | rm -f conftest.er1 | |
19647 | cat conftest.err >&5 | |
a848cd7e SC |
19648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19649 | (exit $ac_status); } && | |
c228d3a4 RN |
19650 | { ac_try='test -z "$ac_cxx_werror_flag" |
19651 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19653 | (eval $ac_try) 2>&5 | |
19654 | ac_status=$? | |
19655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19656 | (exit $ac_status); }; } && | |
19657 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19659 | (eval $ac_try) 2>&5 | |
19660 | ac_status=$? | |
19661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19662 | (exit $ac_status); }; }; then | |
19663 | echo "$as_me:$LINENO: result: yes" >&5 | |
19664 | echo "${ECHO_T}yes" >&6 | |
19665 | cat >>confdefs.h <<\_ACEOF | |
19666 | #define HAVE_STD_WSTRING 1 | |
19667 | _ACEOF | |
19668 | ||
19669 | else | |
19670 | echo "$as_me: failed program was:" >&5 | |
19671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19672 | ||
19673 | echo "$as_me:$LINENO: result: no" >&5 | |
19674 | echo "${ECHO_T}no" >&6 | |
19675 | fi | |
ac1cb8d3 | 19676 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19677 | |
19678 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
19679 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
19680 | cat >conftest.$ac_ext <<_ACEOF | |
19681 | /* confdefs.h. */ | |
19682 | _ACEOF | |
19683 | cat confdefs.h >>conftest.$ac_ext | |
19684 | cat >>conftest.$ac_ext <<_ACEOF | |
19685 | /* end confdefs.h. */ | |
19686 | #include <string> | |
19687 | int | |
19688 | main () | |
19689 | { | |
19690 | std::string foo, bar; | |
19691 | foo.compare(bar); | |
19692 | foo.compare(1, 1, bar); | |
19693 | foo.compare(1, 1, bar, 1, 1); | |
19694 | foo.compare(""); | |
19695 | foo.compare(1, 1, ""); | |
19696 | foo.compare(1, 1, "", 2); | |
19697 | ; | |
19698 | return 0; | |
19699 | } | |
19700 | _ACEOF | |
19701 | rm -f conftest.$ac_objext | |
19702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19703 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19704 | ac_status=$? |
ac1cb8d3 VS |
19705 | grep -v '^ *+' conftest.er1 >conftest.err |
19706 | rm -f conftest.er1 | |
19707 | cat conftest.err >&5 | |
a848cd7e SC |
19708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19709 | (exit $ac_status); } && | |
c228d3a4 RN |
19710 | { ac_try='test -z "$ac_cxx_werror_flag" |
19711 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19713 | (eval $ac_try) 2>&5 | |
19714 | ac_status=$? | |
19715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19716 | (exit $ac_status); }; } && | |
19717 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19719 | (eval $ac_try) 2>&5 | |
19720 | ac_status=$? | |
19721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19722 | (exit $ac_status); }; }; then | |
19723 | echo "$as_me:$LINENO: result: yes" >&5 | |
19724 | echo "${ECHO_T}yes" >&6 | |
19725 | cat >>confdefs.h <<\_ACEOF | |
19726 | #define HAVE_STD_STRING_COMPARE 1 | |
19727 | _ACEOF | |
19728 | ||
19729 | else | |
19730 | echo "$as_me: failed program was:" >&5 | |
19731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19732 | ||
19733 | echo "$as_me:$LINENO: result: no" >&5 | |
19734 | echo "${ECHO_T}no" >&6 | |
19735 | fi | |
ac1cb8d3 | 19736 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19737 | |
19738 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19739 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
19740 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
19741 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19742 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19743 | fi | |
19744 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
19745 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
19746 | else | |
19747 | # Is the header compilable? | |
19748 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
19749 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
19750 | cat >conftest.$ac_ext <<_ACEOF | |
19751 | /* confdefs.h. */ | |
19752 | _ACEOF | |
19753 | cat confdefs.h >>conftest.$ac_ext | |
19754 | cat >>conftest.$ac_ext <<_ACEOF | |
19755 | /* end confdefs.h. */ | |
19756 | $ac_includes_default | |
19757 | #include <hash_map> | |
19758 | _ACEOF | |
19759 | rm -f conftest.$ac_objext | |
19760 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19761 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19762 | ac_status=$? |
ac1cb8d3 VS |
19763 | grep -v '^ *+' conftest.er1 >conftest.err |
19764 | rm -f conftest.er1 | |
19765 | cat conftest.err >&5 | |
bdcade0a MB |
19766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19767 | (exit $ac_status); } && | |
c228d3a4 RN |
19768 | { ac_try='test -z "$ac_cxx_werror_flag" |
19769 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19771 | (eval $ac_try) 2>&5 | |
19772 | ac_status=$? | |
19773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19774 | (exit $ac_status); }; } && | |
19775 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19777 | (eval $ac_try) 2>&5 | |
19778 | ac_status=$? | |
19779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19780 | (exit $ac_status); }; }; then | |
19781 | ac_header_compiler=yes | |
19782 | else | |
19783 | echo "$as_me: failed program was:" >&5 | |
19784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19785 | ||
19786 | ac_header_compiler=no | |
19787 | fi | |
ac1cb8d3 | 19788 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19789 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19790 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19791 | ||
19792 | # Is the header present? | |
19793 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
19794 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
19795 | cat >conftest.$ac_ext <<_ACEOF | |
19796 | /* confdefs.h. */ | |
19797 | _ACEOF | |
19798 | cat confdefs.h >>conftest.$ac_ext | |
19799 | cat >>conftest.$ac_ext <<_ACEOF | |
19800 | /* end confdefs.h. */ | |
19801 | #include <hash_map> | |
19802 | _ACEOF | |
19803 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19804 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19805 | ac_status=$? | |
19806 | grep -v '^ *+' conftest.er1 >conftest.err | |
19807 | rm -f conftest.er1 | |
19808 | cat conftest.err >&5 | |
19809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19810 | (exit $ac_status); } >/dev/null; then | |
19811 | if test -s conftest.err; then | |
19812 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19813 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
19814 | else |
19815 | ac_cpp_err= | |
19816 | fi | |
19817 | else | |
19818 | ac_cpp_err=yes | |
19819 | fi | |
19820 | if test -z "$ac_cpp_err"; then | |
19821 | ac_header_preproc=yes | |
19822 | else | |
19823 | echo "$as_me: failed program was:" >&5 | |
19824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19825 | ||
19826 | ac_header_preproc=no | |
19827 | fi | |
19828 | rm -f conftest.err conftest.$ac_ext | |
19829 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19830 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19831 | ||
19832 | # So? What about this header? | |
ac1cb8d3 VS |
19833 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
19834 | yes:no: ) | |
bdcade0a MB |
19835 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
19836 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
19837 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
19838 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
19839 | ac_header_preproc=yes | |
bdcade0a | 19840 | ;; |
ac1cb8d3 | 19841 | no:yes:* ) |
bdcade0a MB |
19842 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
19843 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
19844 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
19845 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
19846 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
19847 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
19848 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
19849 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
19850 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
19851 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
19852 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
19853 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
19854 | ( |
19855 | cat <<\_ASBOX | |
ac1cb8d3 VS |
19856 | ## ----------------------------------------- ## |
19857 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
19858 | ## ----------------------------------------- ## | |
bdcade0a MB |
19859 | _ASBOX |
19860 | ) | | |
19861 | sed "s/^/$as_me: WARNING: /" >&2 | |
19862 | ;; | |
19863 | esac | |
19864 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
19865 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
19866 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19868 | else | |
19869 | ac_cv_header_hash_map=$ac_header_preproc | |
19870 | fi | |
19871 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
19872 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
19873 | ||
19874 | fi | |
19875 | if test $ac_cv_header_hash_map = yes; then | |
19876 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
19877 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
19878 | cat >conftest.$ac_ext <<_ACEOF | |
19879 | /* confdefs.h. */ | |
19880 | _ACEOF | |
19881 | cat confdefs.h >>conftest.$ac_ext | |
19882 | cat >>conftest.$ac_ext <<_ACEOF | |
19883 | /* end confdefs.h. */ | |
19884 | #include <hash_map> | |
19885 | #include <hash_set> | |
19886 | int | |
19887 | main () | |
19888 | { | |
19889 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
19890 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
19891 | ; | |
19892 | return 0; | |
19893 | } | |
19894 | _ACEOF | |
19895 | rm -f conftest.$ac_objext | |
19896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19897 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19898 | ac_status=$? |
ac1cb8d3 VS |
19899 | grep -v '^ *+' conftest.er1 >conftest.err |
19900 | rm -f conftest.er1 | |
19901 | cat conftest.err >&5 | |
bdcade0a MB |
19902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19903 | (exit $ac_status); } && | |
c228d3a4 RN |
19904 | { ac_try='test -z "$ac_cxx_werror_flag" |
19905 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19907 | (eval $ac_try) 2>&5 | |
19908 | ac_status=$? | |
19909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19910 | (exit $ac_status); }; } && | |
19911 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19913 | (eval $ac_try) 2>&5 | |
19914 | ac_status=$? | |
19915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19916 | (exit $ac_status); }; }; then | |
19917 | echo "$as_me:$LINENO: result: yes" >&5 | |
19918 | echo "${ECHO_T}yes" >&6 | |
19919 | cat >>confdefs.h <<\_ACEOF | |
19920 | #define HAVE_HASH_MAP 1 | |
19921 | _ACEOF | |
19922 | ||
19923 | cat >>confdefs.h <<\_ACEOF | |
19924 | #define HAVE_STD_HASH_MAP 1 | |
19925 | _ACEOF | |
19926 | ||
19927 | else | |
19928 | echo "$as_me: failed program was:" >&5 | |
19929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19930 | ||
19931 | echo "$as_me:$LINENO: result: no" >&5 | |
19932 | echo "${ECHO_T}no" >&6 | |
19933 | fi | |
ac1cb8d3 | 19934 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19935 | |
19936 | fi | |
19937 | ||
19938 | ||
19939 | ||
19940 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
19941 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
19942 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
19943 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
19944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19945 | fi | |
19946 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
19947 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
19948 | else | |
19949 | # Is the header compilable? | |
19950 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
19951 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
19952 | cat >conftest.$ac_ext <<_ACEOF | |
19953 | /* confdefs.h. */ | |
19954 | _ACEOF | |
19955 | cat confdefs.h >>conftest.$ac_ext | |
19956 | cat >>conftest.$ac_ext <<_ACEOF | |
19957 | /* end confdefs.h. */ | |
19958 | $ac_includes_default | |
19959 | #include <ext/hash_map> | |
19960 | _ACEOF | |
19961 | rm -f conftest.$ac_objext | |
19962 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19963 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19964 | ac_status=$? |
ac1cb8d3 VS |
19965 | grep -v '^ *+' conftest.er1 >conftest.err |
19966 | rm -f conftest.er1 | |
19967 | cat conftest.err >&5 | |
bdcade0a MB |
19968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19969 | (exit $ac_status); } && | |
c228d3a4 RN |
19970 | { ac_try='test -z "$ac_cxx_werror_flag" |
19971 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19973 | (eval $ac_try) 2>&5 | |
19974 | ac_status=$? | |
19975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19976 | (exit $ac_status); }; } && | |
19977 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19979 | (eval $ac_try) 2>&5 | |
19980 | ac_status=$? | |
19981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19982 | (exit $ac_status); }; }; then | |
19983 | ac_header_compiler=yes | |
19984 | else | |
19985 | echo "$as_me: failed program was:" >&5 | |
19986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19987 | ||
19988 | ac_header_compiler=no | |
19989 | fi | |
ac1cb8d3 | 19990 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19991 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19992 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19993 | ||
19994 | # Is the header present? | |
19995 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
19996 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
19997 | cat >conftest.$ac_ext <<_ACEOF | |
19998 | /* confdefs.h. */ | |
19999 | _ACEOF | |
20000 | cat confdefs.h >>conftest.$ac_ext | |
20001 | cat >>conftest.$ac_ext <<_ACEOF | |
20002 | /* end confdefs.h. */ | |
20003 | #include <ext/hash_map> | |
20004 | _ACEOF | |
20005 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20006 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20007 | ac_status=$? | |
20008 | grep -v '^ *+' conftest.er1 >conftest.err | |
20009 | rm -f conftest.er1 | |
20010 | cat conftest.err >&5 | |
20011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20012 | (exit $ac_status); } >/dev/null; then | |
20013 | if test -s conftest.err; then | |
20014 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20015 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
20016 | else |
20017 | ac_cpp_err= | |
20018 | fi | |
20019 | else | |
20020 | ac_cpp_err=yes | |
20021 | fi | |
20022 | if test -z "$ac_cpp_err"; then | |
20023 | ac_header_preproc=yes | |
20024 | else | |
20025 | echo "$as_me: failed program was:" >&5 | |
20026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20027 | ||
20028 | ac_header_preproc=no | |
20029 | fi | |
20030 | rm -f conftest.err conftest.$ac_ext | |
20031 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20032 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20033 | ||
20034 | # So? What about this header? | |
ac1cb8d3 VS |
20035 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
20036 | yes:no: ) | |
bdcade0a MB |
20037 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
20038 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20039 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
20040 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
20041 | ac_header_preproc=yes | |
bdcade0a | 20042 | ;; |
ac1cb8d3 | 20043 | no:yes:* ) |
bdcade0a MB |
20044 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
20045 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20046 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
20047 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
20048 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
20049 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
20050 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
20051 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
20052 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
20053 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20054 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
20055 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
20056 | ( |
20057 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20058 | ## ----------------------------------------- ## |
20059 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20060 | ## ----------------------------------------- ## | |
bdcade0a MB |
20061 | _ASBOX |
20062 | ) | | |
20063 | sed "s/^/$as_me: WARNING: /" >&2 | |
20064 | ;; | |
20065 | esac | |
20066 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
20067 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
20068 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
20069 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20070 | else | |
20071 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
20072 | fi | |
20073 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
20074 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
20075 | ||
20076 | fi | |
20077 | if test $ac_cv_header_ext_hash_map = yes; then | |
20078 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
20079 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
20080 | cat >conftest.$ac_ext <<_ACEOF | |
20081 | /* confdefs.h. */ | |
20082 | _ACEOF | |
20083 | cat confdefs.h >>conftest.$ac_ext | |
20084 | cat >>conftest.$ac_ext <<_ACEOF | |
20085 | /* end confdefs.h. */ | |
20086 | #include <ext/hash_map> | |
20087 | #include <ext/hash_set> | |
20088 | int | |
20089 | main () | |
20090 | { | |
20091 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
20092 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
20093 | ; | |
20094 | return 0; | |
20095 | } | |
20096 | _ACEOF | |
20097 | rm -f conftest.$ac_objext | |
20098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20099 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 20100 | ac_status=$? |
ac1cb8d3 VS |
20101 | grep -v '^ *+' conftest.er1 >conftest.err |
20102 | rm -f conftest.er1 | |
20103 | cat conftest.err >&5 | |
bdcade0a MB |
20104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20105 | (exit $ac_status); } && | |
c228d3a4 RN |
20106 | { ac_try='test -z "$ac_cxx_werror_flag" |
20107 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20109 | (eval $ac_try) 2>&5 | |
20110 | ac_status=$? | |
20111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20112 | (exit $ac_status); }; } && | |
20113 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
20114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20115 | (eval $ac_try) 2>&5 | |
20116 | ac_status=$? | |
20117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20118 | (exit $ac_status); }; }; then | |
20119 | echo "$as_me:$LINENO: result: yes" >&5 | |
20120 | echo "${ECHO_T}yes" >&6 | |
20121 | cat >>confdefs.h <<\_ACEOF | |
20122 | #define HAVE_EXT_HASH_MAP 1 | |
20123 | _ACEOF | |
20124 | ||
20125 | cat >>confdefs.h <<\_ACEOF | |
20126 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
20127 | _ACEOF | |
20128 | ||
20129 | else | |
20130 | echo "$as_me: failed program was:" >&5 | |
20131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20132 | ||
20133 | echo "$as_me:$LINENO: result: no" >&5 | |
20134 | echo "${ECHO_T}no" >&6 | |
20135 | fi | |
ac1cb8d3 | 20136 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
20137 | |
20138 | fi | |
20139 | ||
20140 | ||
a848cd7e SC |
20141 | |
20142 | ac_ext=c | |
20143 | ac_cpp='$CPP $CPPFLAGS' | |
20144 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20145 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20146 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20147 | ||
20148 | fi | |
20149 | ||
20150 | ||
20151 | SEARCH_INCLUDE="\ | |
20152 | /usr/local/include \ | |
20153 | \ | |
20154 | /usr/Motif-2.1/include \ | |
20155 | /usr/Motif-1.2/include \ | |
20156 | /usr/include/Motif1.2 \ | |
20157 | /opt/xpm/include/X11 \ | |
20158 | /opt/GBxpm/include/ \ | |
20159 | /opt/GBxpm/X11/include/ \ | |
20160 | \ | |
20161 | /usr/dt/include \ | |
20162 | /usr/openwin/include \ | |
20163 | \ | |
20164 | /usr/include/Xm \ | |
20165 | \ | |
20166 | /usr/X11R6/include \ | |
20167 | /usr/X11R6.4/include \ | |
20168 | /usr/X11R5/include \ | |
20169 | /usr/X11R4/include \ | |
20170 | \ | |
20171 | /usr/include/X11R6 \ | |
20172 | /usr/include/X11R5 \ | |
20173 | /usr/include/X11R4 \ | |
20174 | \ | |
20175 | /usr/local/X11R6/include \ | |
20176 | /usr/local/X11R5/include \ | |
20177 | /usr/local/X11R4/include \ | |
20178 | \ | |
20179 | /usr/local/include/X11R6 \ | |
20180 | /usr/local/include/X11R5 \ | |
20181 | /usr/local/include/X11R4 \ | |
20182 | \ | |
20183 | /usr/X11/include \ | |
20184 | /usr/include/X11 \ | |
20185 | /usr/local/X11/include \ | |
20186 | /usr/local/include/X11 \ | |
20187 | \ | |
20188 | /usr/X386/include \ | |
20189 | /usr/x386/include \ | |
20190 | /usr/XFree86/include/X11 \ | |
20191 | \ | |
20192 | X:/XFree86/include \ | |
20193 | X:/XFree86/include/X11 \ | |
20194 | \ | |
20195 | /usr/include/gtk \ | |
20196 | /usr/local/include/gtk \ | |
20197 | /usr/include/glib \ | |
20198 | /usr/local/include/glib \ | |
20199 | \ | |
20200 | /usr/include/qt \ | |
20201 | /usr/local/include/qt \ | |
20202 | \ | |
20203 | /usr/local/arm/3.3.2/include \ | |
20204 | \ | |
20205 | /usr/include/windows \ | |
20206 | /usr/include/wine \ | |
20207 | /usr/local/include/wine \ | |
20208 | \ | |
20209 | /usr/unsupported/include \ | |
20210 | /usr/athena/include \ | |
20211 | /usr/local/x11r5/include \ | |
20212 | /usr/lpp/Xamples/include \ | |
20213 | \ | |
20214 | /usr/openwin/share/include" | |
20215 | ||
20216 | SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64" | |
20217 | ||
20218 | ||
20219 | cat >confcache <<\_ACEOF | |
20220 | # This file is a shell script that caches the results of configure | |
20221 | # tests run on this system so they can be shared between configure | |
20222 | # scripts and configure runs, see configure's option --config-cache. | |
20223 | # It is not useful on other systems. If it contains results you don't | |
20224 | # want to keep, you may remove or edit it. | |
20225 | # | |
20226 | # config.status only pays attention to the cache file if you give it | |
20227 | # the --recheck option to rerun configure. | |
20228 | # | |
20229 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
20230 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
20231 | # following values. | |
20232 | ||
20233 | _ACEOF | |
20234 | ||
20235 | # The following way of writing the cache mishandles newlines in values, | |
20236 | # but we know of no workaround that is simple, portable, and efficient. | |
20237 | # So, don't put newlines in cache variables' values. | |
20238 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20239 | # and sets the high bit in the cache file unless we assign to the vars. | |
20240 | { | |
20241 | (set) 2>&1 | | |
20242 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
20243 | *ac_space=\ *) | |
20244 | # `set' does not quote correctly, so add quotes (double-quote | |
20245 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
20246 | sed -n \ | |
ac1cb8d3 VS |
20247 | "s/'/'\\\\''/g; |
20248 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
20249 | ;; |
20250 | *) | |
20251 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20252 | sed -n \ | |
ac1cb8d3 | 20253 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
20254 | ;; |
20255 | esac; | |
20256 | } | | |
20257 | sed ' | |
20258 | t clear | |
20259 | : clear | |
20260 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
20261 | t end | |
20262 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
20263 | : end' >>confcache | |
20264 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
20265 | if test -w $cache_file; then | |
20266 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
20267 | cat confcache >$cache_file | |
20268 | else | |
20269 | echo "not updating unwritable cache $cache_file" | |
20270 | fi | |
20271 | fi | |
20272 | rm -f confcache | |
20273 | ||
20274 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
20275 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
20276 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
20277 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
20278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20279 | else | |
20280 | ||
20281 | cat >conftest.$ac_ext <<_ACEOF | |
20282 | /* confdefs.h. */ | |
20283 | _ACEOF | |
20284 | cat confdefs.h >>conftest.$ac_ext | |
20285 | cat >>conftest.$ac_ext <<_ACEOF | |
20286 | /* end confdefs.h. */ | |
20287 | #include <features.h> | |
20288 | int | |
20289 | main () | |
20290 | { | |
20291 | ||
20292 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
20293 | #error not glibc2.1 | |
20294 | #endif | |
20295 | ||
20296 | ; | |
20297 | return 0; | |
20298 | } | |
20299 | _ACEOF | |
20300 | rm -f conftest.$ac_objext | |
20301 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20302 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20303 | ac_status=$? |
ac1cb8d3 VS |
20304 | grep -v '^ *+' conftest.er1 >conftest.err |
20305 | rm -f conftest.er1 | |
20306 | cat conftest.err >&5 | |
a848cd7e SC |
20307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20308 | (exit $ac_status); } && | |
c228d3a4 RN |
20309 | { ac_try='test -z "$ac_c_werror_flag" |
20310 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20312 | (eval $ac_try) 2>&5 | |
20313 | ac_status=$? | |
20314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20315 | (exit $ac_status); }; } && | |
20316 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20318 | (eval $ac_try) 2>&5 | |
20319 | ac_status=$? | |
20320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20321 | (exit $ac_status); }; }; then | |
20322 | ||
20323 | wx_cv_lib_glibc21=yes | |
20324 | ||
20325 | else | |
20326 | echo "$as_me: failed program was:" >&5 | |
20327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20328 | ||
20329 | ||
20330 | wx_cv_lib_glibc21=no | |
20331 | ||
20332 | ||
20333 | fi | |
ac1cb8d3 | 20334 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20335 | |
20336 | fi | |
20337 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
20338 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
20339 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
20340 | cat >>confdefs.h <<\_ACEOF | |
20341 | #define wxHAVE_GLIBC2 1 | |
20342 | _ACEOF | |
20343 | ||
20344 | fi | |
20345 | fi | |
20346 | ||
20347 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
20348 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
20349 | cat >>confdefs.h <<\_ACEOF | |
20350 | #define _GNU_SOURCE 1 | |
20351 | _ACEOF | |
20352 | ||
20353 | fi | |
20354 | fi | |
20355 | ||
20356 | ||
20357 | ||
20358 | if test "$wxUSE_REGEX" != "no"; then | |
20359 | cat >>confdefs.h <<\_ACEOF | |
20360 | #define wxUSE_REGEX 1 | |
20361 | _ACEOF | |
20362 | ||
20363 | ||
20364 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
20365 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
20366 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
20367 | wxUSE_REGEX=builtin | |
20368 | fi | |
20369 | ||
20370 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
20371 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20372 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
20373 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
20374 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20376 | fi | |
20377 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
20378 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
20379 | else | |
20380 | # Is the header compilable? | |
20381 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
20382 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
20383 | cat >conftest.$ac_ext <<_ACEOF | |
20384 | /* confdefs.h. */ | |
20385 | _ACEOF | |
20386 | cat confdefs.h >>conftest.$ac_ext | |
20387 | cat >>conftest.$ac_ext <<_ACEOF | |
20388 | /* end confdefs.h. */ | |
20389 | $ac_includes_default | |
20390 | #include <regex.h> | |
20391 | _ACEOF | |
20392 | rm -f conftest.$ac_objext | |
20393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20394 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20395 | ac_status=$? |
ac1cb8d3 VS |
20396 | grep -v '^ *+' conftest.er1 >conftest.err |
20397 | rm -f conftest.er1 | |
20398 | cat conftest.err >&5 | |
a848cd7e SC |
20399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20400 | (exit $ac_status); } && | |
c228d3a4 RN |
20401 | { ac_try='test -z "$ac_c_werror_flag" |
20402 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20404 | (eval $ac_try) 2>&5 | |
20405 | ac_status=$? | |
20406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20407 | (exit $ac_status); }; } && | |
20408 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20410 | (eval $ac_try) 2>&5 | |
20411 | ac_status=$? | |
20412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20413 | (exit $ac_status); }; }; then | |
20414 | ac_header_compiler=yes | |
20415 | else | |
20416 | echo "$as_me: failed program was:" >&5 | |
20417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20418 | ||
20419 | ac_header_compiler=no | |
20420 | fi | |
ac1cb8d3 | 20421 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20422 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20423 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20424 | ||
20425 | # Is the header present? | |
20426 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
20427 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
20428 | cat >conftest.$ac_ext <<_ACEOF | |
20429 | /* confdefs.h. */ | |
20430 | _ACEOF | |
20431 | cat confdefs.h >>conftest.$ac_ext | |
20432 | cat >>conftest.$ac_ext <<_ACEOF | |
20433 | /* end confdefs.h. */ | |
20434 | #include <regex.h> | |
20435 | _ACEOF | |
20436 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20437 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20438 | ac_status=$? | |
20439 | grep -v '^ *+' conftest.er1 >conftest.err | |
20440 | rm -f conftest.er1 | |
20441 | cat conftest.err >&5 | |
20442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20443 | (exit $ac_status); } >/dev/null; then | |
20444 | if test -s conftest.err; then | |
20445 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20446 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20447 | else |
20448 | ac_cpp_err= | |
20449 | fi | |
20450 | else | |
20451 | ac_cpp_err=yes | |
20452 | fi | |
20453 | if test -z "$ac_cpp_err"; then | |
20454 | ac_header_preproc=yes | |
20455 | else | |
20456 | echo "$as_me: failed program was:" >&5 | |
20457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20458 | ||
20459 | ac_header_preproc=no | |
20460 | fi | |
20461 | rm -f conftest.err conftest.$ac_ext | |
20462 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20463 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20464 | ||
20465 | # So? What about this header? | |
ac1cb8d3 VS |
20466 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20467 | yes:no: ) | |
a848cd7e SC |
20468 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20469 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20470 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
20471 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
20472 | ac_header_preproc=yes | |
a848cd7e | 20473 | ;; |
ac1cb8d3 | 20474 | no:yes:* ) |
a848cd7e SC |
20475 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
20476 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20477 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
20478 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
20479 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
20480 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
20481 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20482 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20483 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
20484 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20485 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
20486 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20487 | ( |
20488 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20489 | ## ----------------------------------------- ## |
20490 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20491 | ## ----------------------------------------- ## | |
a848cd7e SC |
20492 | _ASBOX |
20493 | ) | | |
20494 | sed "s/^/$as_me: WARNING: /" >&2 | |
20495 | ;; | |
20496 | esac | |
20497 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
20498 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
20499 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20501 | else | |
20502 | ac_cv_header_regex_h=$ac_header_preproc | |
20503 | fi | |
20504 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
20505 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
20506 | ||
20507 | fi | |
20508 | if test $ac_cv_header_regex_h = yes; then | |
20509 | ||
20510 | for ac_func in regcomp | |
20511 | do | |
20512 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
20513 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20514 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
20515 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20517 | else | |
20518 | cat >conftest.$ac_ext <<_ACEOF | |
20519 | /* confdefs.h. */ | |
20520 | _ACEOF | |
20521 | cat confdefs.h >>conftest.$ac_ext | |
20522 | cat >>conftest.$ac_ext <<_ACEOF | |
20523 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
20524 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
20525 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20526 | #define $ac_func innocuous_$ac_func | |
20527 | ||
a848cd7e SC |
20528 | /* System header to define __stub macros and hopefully few prototypes, |
20529 | which can conflict with char $ac_func (); below. | |
20530 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20531 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 20532 | |
a848cd7e SC |
20533 | #ifdef __STDC__ |
20534 | # include <limits.h> | |
20535 | #else | |
20536 | # include <assert.h> | |
20537 | #endif | |
ac1cb8d3 VS |
20538 | |
20539 | #undef $ac_func | |
20540 | ||
a848cd7e SC |
20541 | /* Override any gcc2 internal prototype to avoid an error. */ |
20542 | #ifdef __cplusplus | |
20543 | extern "C" | |
20544 | { | |
20545 | #endif | |
20546 | /* We use char because int might match the return type of a gcc2 | |
20547 | builtin and then its argument prototype would still apply. */ | |
20548 | char $ac_func (); | |
20549 | /* The GNU C library defines this for functions which it implements | |
20550 | to always fail with ENOSYS. Some functions are actually named | |
20551 | something starting with __ and the normal name is an alias. */ | |
20552 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20553 | choke me | |
20554 | #else | |
20555 | char (*f) () = $ac_func; | |
20556 | #endif | |
20557 | #ifdef __cplusplus | |
20558 | } | |
20559 | #endif | |
20560 | ||
20561 | int | |
20562 | main () | |
20563 | { | |
20564 | return f != $ac_func; | |
20565 | ; | |
20566 | return 0; | |
20567 | } | |
20568 | _ACEOF | |
20569 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20570 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20571 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20572 | ac_status=$? |
ac1cb8d3 VS |
20573 | grep -v '^ *+' conftest.er1 >conftest.err |
20574 | rm -f conftest.er1 | |
20575 | cat conftest.err >&5 | |
a848cd7e SC |
20576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20577 | (exit $ac_status); } && | |
c228d3a4 RN |
20578 | { ac_try='test -z "$ac_c_werror_flag" |
20579 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20581 | (eval $ac_try) 2>&5 | |
20582 | ac_status=$? | |
20583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20584 | (exit $ac_status); }; } && | |
20585 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
20586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20587 | (eval $ac_try) 2>&5 | |
20588 | ac_status=$? | |
20589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20590 | (exit $ac_status); }; }; then | |
20591 | eval "$as_ac_var=yes" | |
20592 | else | |
20593 | echo "$as_me: failed program was:" >&5 | |
20594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20595 | ||
20596 | eval "$as_ac_var=no" | |
20597 | fi | |
ac1cb8d3 VS |
20598 | rm -f conftest.err conftest.$ac_objext \ |
20599 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
20600 | fi |
20601 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
20602 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
20603 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
20604 | cat >>confdefs.h <<_ACEOF | |
20605 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20606 | _ACEOF | |
20607 | ||
20608 | fi | |
20609 | done | |
20610 | ||
20611 | fi | |
20612 | ||
20613 | ||
20614 | ||
20615 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
20616 | if test "$wxUSE_REGEX" = "sys" ; then | |
20617 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
20618 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
20619 | { (exit 1); exit 1; }; } | |
20620 | else | |
20621 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
20622 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
20623 | wxUSE_REGEX=builtin | |
20624 | fi | |
20625 | else | |
20626 | wxUSE_REGEX=sys | |
20627 | cat >>confdefs.h <<\_ACEOF | |
20628 | #define WX_NO_REGEX_ADVANCED 1 | |
20629 | _ACEOF | |
20630 | ||
20631 | fi | |
20632 | fi | |
20633 | fi | |
20634 | ||
20635 | ||
20636 | ZLIB_LINK= | |
20637 | if test "$wxUSE_ZLIB" != "no" ; then | |
20638 | cat >>confdefs.h <<\_ACEOF | |
20639 | #define wxUSE_ZLIB 1 | |
20640 | _ACEOF | |
20641 | ||
20642 | ||
20643 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
20644 | if test "$USE_DARWIN" = 1; then | |
20645 | system_zlib_h_ok="yes" | |
20646 | else | |
20647 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
20648 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
20649 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20651 | else | |
20652 | if test "$cross_compiling" = yes; then | |
20653 | unset ac_cv_header_zlib_h | |
20654 | ||
20655 | else | |
20656 | cat >conftest.$ac_ext <<_ACEOF | |
20657 | /* confdefs.h. */ | |
20658 | _ACEOF | |
20659 | cat confdefs.h >>conftest.$ac_ext | |
20660 | cat >>conftest.$ac_ext <<_ACEOF | |
20661 | /* end confdefs.h. */ | |
20662 | ||
20663 | #include <zlib.h> | |
20664 | #include <stdio.h> | |
20665 | ||
20666 | int main() | |
20667 | { | |
20668 | FILE *f=fopen("conftestval", "w"); | |
20669 | if (!f) exit(1); | |
20670 | fprintf(f, "%s", | |
20671 | ZLIB_VERSION[0] == '1' && | |
20672 | (ZLIB_VERSION[2] > '1' || | |
20673 | (ZLIB_VERSION[2] == '1' && | |
20674 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
20675 | exit(0); | |
20676 | } | |
20677 | ||
20678 | _ACEOF | |
20679 | rm -f conftest$ac_exeext | |
20680 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20681 | (eval $ac_link) 2>&5 | |
20682 | ac_status=$? | |
20683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20684 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20686 | (eval $ac_try) 2>&5 | |
20687 | ac_status=$? | |
20688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20689 | (exit $ac_status); }; }; then | |
20690 | ac_cv_header_zlib_h=`cat conftestval` | |
20691 | else | |
20692 | echo "$as_me: program exited with status $ac_status" >&5 | |
20693 | echo "$as_me: failed program was:" >&5 | |
20694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20695 | ||
20696 | ( exit $ac_status ) | |
20697 | ac_cv_header_zlib_h=no | |
20698 | fi | |
ac1cb8d3 | 20699 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20700 | fi |
20701 | ||
20702 | fi | |
20703 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20704 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20705 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20706 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
20707 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
20708 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20710 | fi | |
20711 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20712 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20713 | else | |
20714 | # Is the header compilable? | |
20715 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
20716 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
20717 | cat >conftest.$ac_ext <<_ACEOF | |
20718 | /* confdefs.h. */ | |
20719 | _ACEOF | |
20720 | cat confdefs.h >>conftest.$ac_ext | |
20721 | cat >>conftest.$ac_ext <<_ACEOF | |
20722 | /* end confdefs.h. */ | |
20723 | $ac_includes_default | |
20724 | #include <zlib.h> | |
20725 | _ACEOF | |
20726 | rm -f conftest.$ac_objext | |
20727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20728 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20729 | ac_status=$? |
ac1cb8d3 VS |
20730 | grep -v '^ *+' conftest.er1 >conftest.err |
20731 | rm -f conftest.er1 | |
20732 | cat conftest.err >&5 | |
a848cd7e SC |
20733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20734 | (exit $ac_status); } && | |
c228d3a4 RN |
20735 | { ac_try='test -z "$ac_c_werror_flag" |
20736 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20738 | (eval $ac_try) 2>&5 | |
20739 | ac_status=$? | |
20740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20741 | (exit $ac_status); }; } && | |
20742 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20744 | (eval $ac_try) 2>&5 | |
20745 | ac_status=$? | |
20746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20747 | (exit $ac_status); }; }; then | |
20748 | ac_header_compiler=yes | |
20749 | else | |
20750 | echo "$as_me: failed program was:" >&5 | |
20751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20752 | ||
20753 | ac_header_compiler=no | |
20754 | fi | |
ac1cb8d3 | 20755 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20756 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20757 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20758 | ||
20759 | # Is the header present? | |
20760 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
20761 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
20762 | cat >conftest.$ac_ext <<_ACEOF | |
20763 | /* confdefs.h. */ | |
20764 | _ACEOF | |
20765 | cat confdefs.h >>conftest.$ac_ext | |
20766 | cat >>conftest.$ac_ext <<_ACEOF | |
20767 | /* end confdefs.h. */ | |
20768 | #include <zlib.h> | |
20769 | _ACEOF | |
20770 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20771 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20772 | ac_status=$? | |
20773 | grep -v '^ *+' conftest.er1 >conftest.err | |
20774 | rm -f conftest.er1 | |
20775 | cat conftest.err >&5 | |
20776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20777 | (exit $ac_status); } >/dev/null; then | |
20778 | if test -s conftest.err; then | |
20779 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20780 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20781 | else |
20782 | ac_cpp_err= | |
20783 | fi | |
20784 | else | |
20785 | ac_cpp_err=yes | |
20786 | fi | |
20787 | if test -z "$ac_cpp_err"; then | |
20788 | ac_header_preproc=yes | |
20789 | else | |
20790 | echo "$as_me: failed program was:" >&5 | |
20791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20792 | ||
20793 | ac_header_preproc=no | |
20794 | fi | |
20795 | rm -f conftest.err conftest.$ac_ext | |
20796 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20797 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20798 | ||
20799 | # So? What about this header? | |
ac1cb8d3 VS |
20800 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20801 | yes:no: ) | |
a848cd7e SC |
20802 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20803 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20804 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
20805 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
20806 | ac_header_preproc=yes | |
a848cd7e | 20807 | ;; |
ac1cb8d3 | 20808 | no:yes:* ) |
a848cd7e SC |
20809 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
20810 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20811 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
20812 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
20813 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
20814 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
20815 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20816 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20817 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
20818 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20819 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
20820 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20821 | ( |
20822 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20823 | ## ----------------------------------------- ## |
20824 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20825 | ## ----------------------------------------- ## | |
a848cd7e SC |
20826 | _ASBOX |
20827 | ) | | |
20828 | sed "s/^/$as_me: WARNING: /" >&2 | |
20829 | ;; | |
20830 | esac | |
20831 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
20832 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
20833 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20835 | else | |
20836 | ac_cv_header_zlib_h=$ac_header_preproc | |
20837 | fi | |
20838 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20839 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20840 | ||
20841 | fi | |
20842 | ||
20843 | ||
20844 | ||
20845 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
20846 | fi | |
20847 | ||
20848 | if test "$system_zlib_h_ok" = "yes"; then | |
20849 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
20850 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
20851 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
20852 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20853 | else | |
20854 | ac_check_lib_save_LIBS=$LIBS | |
20855 | LIBS="-lz $LIBS" | |
20856 | cat >conftest.$ac_ext <<_ACEOF | |
20857 | /* confdefs.h. */ | |
20858 | _ACEOF | |
20859 | cat confdefs.h >>conftest.$ac_ext | |
20860 | cat >>conftest.$ac_ext <<_ACEOF | |
20861 | /* end confdefs.h. */ | |
20862 | ||
20863 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20864 | #ifdef __cplusplus | |
20865 | extern "C" | |
20866 | #endif | |
20867 | /* We use char because int might match the return type of a gcc2 | |
20868 | builtin and then its argument prototype would still apply. */ | |
20869 | char deflate (); | |
20870 | int | |
20871 | main () | |
20872 | { | |
20873 | deflate (); | |
20874 | ; | |
20875 | return 0; | |
20876 | } | |
20877 | _ACEOF | |
20878 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20879 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20880 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20881 | ac_status=$? |
ac1cb8d3 VS |
20882 | grep -v '^ *+' conftest.er1 >conftest.err |
20883 | rm -f conftest.er1 | |
20884 | cat conftest.err >&5 | |
a848cd7e SC |
20885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20886 | (exit $ac_status); } && | |
c228d3a4 RN |
20887 | { ac_try='test -z "$ac_c_werror_flag" |
20888 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20890 | (eval $ac_try) 2>&5 | |
20891 | ac_status=$? | |
20892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20893 | (exit $ac_status); }; } && | |
20894 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
20895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20896 | (eval $ac_try) 2>&5 | |
20897 | ac_status=$? | |
20898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20899 | (exit $ac_status); }; }; then | |
20900 | ac_cv_lib_z_deflate=yes | |
20901 | else | |
20902 | echo "$as_me: failed program was:" >&5 | |
20903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20904 | ||
20905 | ac_cv_lib_z_deflate=no | |
20906 | fi | |
ac1cb8d3 VS |
20907 | rm -f conftest.err conftest.$ac_objext \ |
20908 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
20909 | LIBS=$ac_check_lib_save_LIBS |
20910 | fi | |
20911 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
20912 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
20913 | if test $ac_cv_lib_z_deflate = yes; then | |
20914 | ZLIB_LINK=" -lz" | |
20915 | fi | |
20916 | ||
20917 | fi | |
20918 | ||
20919 | if test "x$ZLIB_LINK" = "x" ; then | |
20920 | if test "$wxUSE_ZLIB" = "sys" ; then | |
20921 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
20922 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
20923 | { (exit 1); exit 1; }; } | |
20924 | else | |
20925 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
20926 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
20927 | wxUSE_ZLIB=builtin | |
20928 | fi | |
20929 | else | |
20930 | wxUSE_ZLIB=sys | |
20931 | fi | |
20932 | fi | |
20933 | fi | |
20934 | ||
20935 | ||
20936 | PNG_LINK= | |
20937 | if test "$wxUSE_LIBPNG" != "no" ; then | |
20938 | cat >>confdefs.h <<\_ACEOF | |
20939 | #define wxUSE_LIBPNG 1 | |
20940 | _ACEOF | |
20941 | ||
20942 | ||
20943 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
20944 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
20945 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
20946 | wxUSE_LIBPNG=sys | |
20947 | fi | |
20948 | ||
20949 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
20950 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
20951 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
20952 | wxUSE_LIBPNG=builtin | |
20953 | fi | |
20954 | ||
20955 | if test "$wxUSE_MGL" != 1 ; then | |
20956 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
20957 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
20958 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
20959 | if test "${ac_cv_header_png_h+set}" = set; then | |
20960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20961 | else | |
20962 | if test "$cross_compiling" = yes; then | |
20963 | unset ac_cv_header_png_h | |
20964 | ||
20965 | else | |
20966 | cat >conftest.$ac_ext <<_ACEOF | |
20967 | /* confdefs.h. */ | |
20968 | _ACEOF | |
20969 | cat confdefs.h >>conftest.$ac_ext | |
20970 | cat >>conftest.$ac_ext <<_ACEOF | |
20971 | /* end confdefs.h. */ | |
20972 | ||
20973 | #include <png.h> | |
20974 | #include <stdio.h> | |
20975 | ||
20976 | int main() | |
20977 | { | |
20978 | FILE *f=fopen("conftestval", "w"); | |
20979 | if (!f) exit(1); | |
20980 | fprintf(f, "%s", | |
20981 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
20982 | exit(0); | |
20983 | } | |
20984 | ||
20985 | _ACEOF | |
20986 | rm -f conftest$ac_exeext | |
20987 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20988 | (eval $ac_link) 2>&5 | |
20989 | ac_status=$? | |
20990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20991 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20993 | (eval $ac_try) 2>&5 | |
20994 | ac_status=$? | |
20995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20996 | (exit $ac_status); }; }; then | |
20997 | ac_cv_header_png_h=`cat conftestval` | |
20998 | else | |
20999 | echo "$as_me: program exited with status $ac_status" >&5 | |
21000 | echo "$as_me: failed program was:" >&5 | |
21001 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21002 | ||
21003 | ( exit $ac_status ) | |
21004 | ac_cv_header_png_h=no | |
21005 | fi | |
ac1cb8d3 | 21006 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21007 | fi |
21008 | ||
21009 | fi | |
21010 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
21011 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
21012 | if test "${ac_cv_header_png_h+set}" = set; then | |
21013 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
21014 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
21015 | if test "${ac_cv_header_png_h+set}" = set; then | |
21016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21017 | fi | |
21018 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
21019 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
21020 | else | |
21021 | # Is the header compilable? | |
21022 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
21023 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
21024 | cat >conftest.$ac_ext <<_ACEOF | |
21025 | /* confdefs.h. */ | |
21026 | _ACEOF | |
21027 | cat confdefs.h >>conftest.$ac_ext | |
21028 | cat >>conftest.$ac_ext <<_ACEOF | |
21029 | /* end confdefs.h. */ | |
21030 | $ac_includes_default | |
21031 | #include <png.h> | |
21032 | _ACEOF | |
21033 | rm -f conftest.$ac_objext | |
21034 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21035 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21036 | ac_status=$? |
ac1cb8d3 VS |
21037 | grep -v '^ *+' conftest.er1 >conftest.err |
21038 | rm -f conftest.er1 | |
21039 | cat conftest.err >&5 | |
a848cd7e SC |
21040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21041 | (exit $ac_status); } && | |
c228d3a4 RN |
21042 | { ac_try='test -z "$ac_c_werror_flag" |
21043 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21045 | (eval $ac_try) 2>&5 | |
21046 | ac_status=$? | |
21047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21048 | (exit $ac_status); }; } && | |
21049 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21051 | (eval $ac_try) 2>&5 | |
21052 | ac_status=$? | |
21053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21054 | (exit $ac_status); }; }; then | |
21055 | ac_header_compiler=yes | |
21056 | else | |
21057 | echo "$as_me: failed program was:" >&5 | |
21058 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21059 | ||
21060 | ac_header_compiler=no | |
21061 | fi | |
ac1cb8d3 | 21062 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21063 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21064 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21065 | ||
21066 | # Is the header present? | |
21067 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
21068 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
21069 | cat >conftest.$ac_ext <<_ACEOF | |
21070 | /* confdefs.h. */ | |
21071 | _ACEOF | |
21072 | cat confdefs.h >>conftest.$ac_ext | |
21073 | cat >>conftest.$ac_ext <<_ACEOF | |
21074 | /* end confdefs.h. */ | |
21075 | #include <png.h> | |
21076 | _ACEOF | |
21077 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21078 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21079 | ac_status=$? | |
21080 | grep -v '^ *+' conftest.er1 >conftest.err | |
21081 | rm -f conftest.er1 | |
21082 | cat conftest.err >&5 | |
21083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21084 | (exit $ac_status); } >/dev/null; then | |
21085 | if test -s conftest.err; then | |
21086 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21087 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21088 | else |
21089 | ac_cpp_err= | |
21090 | fi | |
21091 | else | |
21092 | ac_cpp_err=yes | |
21093 | fi | |
21094 | if test -z "$ac_cpp_err"; then | |
21095 | ac_header_preproc=yes | |
21096 | else | |
21097 | echo "$as_me: failed program was:" >&5 | |
21098 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21099 | ||
21100 | ac_header_preproc=no | |
21101 | fi | |
21102 | rm -f conftest.err conftest.$ac_ext | |
21103 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21104 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21105 | ||
21106 | # So? What about this header? | |
ac1cb8d3 VS |
21107 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21108 | yes:no: ) | |
a848cd7e SC |
21109 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21110 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21111 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
21112 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
21113 | ac_header_preproc=yes | |
a848cd7e | 21114 | ;; |
ac1cb8d3 | 21115 | no:yes:* ) |
a848cd7e SC |
21116 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
21117 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21118 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
21119 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
21120 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
21121 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
21122 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21123 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21124 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
21125 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21126 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
21127 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21128 | ( |
21129 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21130 | ## ----------------------------------------- ## |
21131 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21132 | ## ----------------------------------------- ## | |
a848cd7e SC |
21133 | _ASBOX |
21134 | ) | | |
21135 | sed "s/^/$as_me: WARNING: /" >&2 | |
21136 | ;; | |
21137 | esac | |
21138 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
21139 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
21140 | if test "${ac_cv_header_png_h+set}" = set; then | |
21141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21142 | else | |
21143 | ac_cv_header_png_h=$ac_header_preproc | |
21144 | fi | |
21145 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
21146 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
21147 | ||
21148 | fi | |
21149 | ||
21150 | ||
21151 | ||
21152 | if test "$ac_cv_header_png_h" = "yes"; then | |
21153 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
21154 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
21155 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
21156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21157 | else | |
21158 | ac_check_lib_save_LIBS=$LIBS | |
21159 | LIBS="-lpng -lz -lm $LIBS" | |
21160 | cat >conftest.$ac_ext <<_ACEOF | |
21161 | /* confdefs.h. */ | |
21162 | _ACEOF | |
21163 | cat confdefs.h >>conftest.$ac_ext | |
21164 | cat >>conftest.$ac_ext <<_ACEOF | |
21165 | /* end confdefs.h. */ | |
21166 | ||
21167 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21168 | #ifdef __cplusplus | |
21169 | extern "C" | |
21170 | #endif | |
21171 | /* We use char because int might match the return type of a gcc2 | |
21172 | builtin and then its argument prototype would still apply. */ | |
21173 | char png_check_sig (); | |
21174 | int | |
21175 | main () | |
21176 | { | |
21177 | png_check_sig (); | |
21178 | ; | |
21179 | return 0; | |
21180 | } | |
21181 | _ACEOF | |
21182 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21184 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21185 | ac_status=$? |
ac1cb8d3 VS |
21186 | grep -v '^ *+' conftest.er1 >conftest.err |
21187 | rm -f conftest.er1 | |
21188 | cat conftest.err >&5 | |
a848cd7e SC |
21189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21190 | (exit $ac_status); } && | |
c228d3a4 RN |
21191 | { ac_try='test -z "$ac_c_werror_flag" |
21192 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21194 | (eval $ac_try) 2>&5 | |
21195 | ac_status=$? | |
21196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21197 | (exit $ac_status); }; } && | |
21198 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21200 | (eval $ac_try) 2>&5 | |
21201 | ac_status=$? | |
21202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21203 | (exit $ac_status); }; }; then | |
21204 | ac_cv_lib_png_png_check_sig=yes | |
21205 | else | |
21206 | echo "$as_me: failed program was:" >&5 | |
21207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21208 | ||
21209 | ac_cv_lib_png_png_check_sig=no | |
21210 | fi | |
ac1cb8d3 VS |
21211 | rm -f conftest.err conftest.$ac_objext \ |
21212 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21213 | LIBS=$ac_check_lib_save_LIBS |
21214 | fi | |
21215 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
21216 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
21217 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
21218 | PNG_LINK=" -lpng -lz" | |
21219 | fi | |
21220 | ||
21221 | fi | |
21222 | ||
21223 | if test "x$PNG_LINK" = "x" ; then | |
21224 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
21225 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
21226 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
21227 | { (exit 1); exit 1; }; } | |
21228 | else | |
21229 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
21230 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
21231 | wxUSE_LIBPNG=builtin | |
21232 | fi | |
21233 | else | |
21234 | wxUSE_LIBPNG=sys | |
21235 | fi | |
21236 | fi | |
21237 | fi | |
21238 | ||
21239 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
21240 | fi | |
21241 | ||
21242 | ||
21243 | JPEG_LINK= | |
21244 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
21245 | cat >>confdefs.h <<\_ACEOF | |
21246 | #define wxUSE_LIBJPEG 1 | |
21247 | _ACEOF | |
21248 | ||
21249 | ||
21250 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
21251 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
21252 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
21253 | wxUSE_LIBJPEG=sys | |
21254 | fi | |
21255 | ||
21256 | if test "$wxUSE_MGL" != 1 ; then | |
21257 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
21258 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
21259 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
21260 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
21261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21262 | else | |
21263 | cat >conftest.$ac_ext <<_ACEOF | |
21264 | /* confdefs.h. */ | |
21265 | _ACEOF | |
21266 | cat confdefs.h >>conftest.$ac_ext | |
21267 | cat >>conftest.$ac_ext <<_ACEOF | |
21268 | /* end confdefs.h. */ | |
21269 | ||
21270 | #undef HAVE_STDLIB_H | |
21271 | #include <stdio.h> | |
21272 | #include <jpeglib.h> | |
21273 | ||
21274 | int | |
21275 | main () | |
21276 | { | |
21277 | ||
21278 | ||
21279 | ; | |
21280 | return 0; | |
21281 | } | |
21282 | _ACEOF | |
21283 | rm -f conftest.$ac_objext | |
21284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21285 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21286 | ac_status=$? |
ac1cb8d3 VS |
21287 | grep -v '^ *+' conftest.er1 >conftest.err |
21288 | rm -f conftest.er1 | |
21289 | cat conftest.err >&5 | |
a848cd7e SC |
21290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21291 | (exit $ac_status); } && | |
c228d3a4 RN |
21292 | { ac_try='test -z "$ac_c_werror_flag" |
21293 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21295 | (eval $ac_try) 2>&5 | |
21296 | ac_status=$? | |
21297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21298 | (exit $ac_status); }; } && | |
21299 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21301 | (eval $ac_try) 2>&5 | |
21302 | ac_status=$? | |
21303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21304 | (exit $ac_status); }; }; then | |
21305 | ac_cv_header_jpeglib_h=yes | |
21306 | else | |
21307 | echo "$as_me: failed program was:" >&5 | |
21308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21309 | ||
21310 | ac_cv_header_jpeglib_h=no | |
21311 | ||
21312 | fi | |
ac1cb8d3 | 21313 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21314 | |
21315 | fi | |
21316 | ||
21317 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
21318 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
21319 | ||
21320 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
21321 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
21322 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
21323 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
21324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21325 | else | |
21326 | ac_check_lib_save_LIBS=$LIBS | |
21327 | LIBS="-ljpeg $LIBS" | |
21328 | cat >conftest.$ac_ext <<_ACEOF | |
21329 | /* confdefs.h. */ | |
21330 | _ACEOF | |
21331 | cat confdefs.h >>conftest.$ac_ext | |
21332 | cat >>conftest.$ac_ext <<_ACEOF | |
21333 | /* end confdefs.h. */ | |
21334 | ||
21335 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21336 | #ifdef __cplusplus | |
21337 | extern "C" | |
21338 | #endif | |
21339 | /* We use char because int might match the return type of a gcc2 | |
21340 | builtin and then its argument prototype would still apply. */ | |
21341 | char jpeg_read_header (); | |
21342 | int | |
21343 | main () | |
21344 | { | |
21345 | jpeg_read_header (); | |
21346 | ; | |
21347 | return 0; | |
21348 | } | |
21349 | _ACEOF | |
21350 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21351 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21352 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21353 | ac_status=$? |
ac1cb8d3 VS |
21354 | grep -v '^ *+' conftest.er1 >conftest.err |
21355 | rm -f conftest.er1 | |
21356 | cat conftest.err >&5 | |
a848cd7e SC |
21357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21358 | (exit $ac_status); } && | |
c228d3a4 RN |
21359 | { ac_try='test -z "$ac_c_werror_flag" |
21360 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21362 | (eval $ac_try) 2>&5 | |
21363 | ac_status=$? | |
21364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21365 | (exit $ac_status); }; } && | |
21366 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21368 | (eval $ac_try) 2>&5 | |
21369 | ac_status=$? | |
21370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21371 | (exit $ac_status); }; }; then | |
21372 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
21373 | else | |
21374 | echo "$as_me: failed program was:" >&5 | |
21375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21376 | ||
21377 | ac_cv_lib_jpeg_jpeg_read_header=no | |
21378 | fi | |
ac1cb8d3 VS |
21379 | rm -f conftest.err conftest.$ac_objext \ |
21380 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21381 | LIBS=$ac_check_lib_save_LIBS |
21382 | fi | |
21383 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
21384 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
21385 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
21386 | JPEG_LINK=" -ljpeg" | |
21387 | fi | |
21388 | ||
21389 | fi | |
21390 | ||
21391 | if test "x$JPEG_LINK" = "x" ; then | |
21392 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
21393 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
21394 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
21395 | { (exit 1); exit 1; }; } | |
21396 | else | |
21397 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
21398 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
21399 | wxUSE_LIBJPEG=builtin | |
21400 | fi | |
21401 | else | |
21402 | wxUSE_LIBJPEG=sys | |
21403 | fi | |
21404 | fi | |
21405 | fi | |
21406 | fi | |
21407 | ||
21408 | ||
21409 | TIFF_LINK= | |
21410 | TIFF_PREREQ_LINKS=-lm | |
21411 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
21412 | cat >>confdefs.h <<\_ACEOF | |
21413 | #define wxUSE_LIBTIFF 1 | |
21414 | _ACEOF | |
21415 | ||
21416 | ||
21417 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
21418 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
21419 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
21420 | fi | |
21421 | if test "$wxUSE_ZLIB" = "sys"; then | |
21422 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
21423 | fi | |
21424 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21425 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
21426 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
21427 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21429 | fi | |
21430 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
21431 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
21432 | else | |
21433 | # Is the header compilable? | |
21434 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
21435 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
21436 | cat >conftest.$ac_ext <<_ACEOF | |
21437 | /* confdefs.h. */ | |
21438 | _ACEOF | |
21439 | cat confdefs.h >>conftest.$ac_ext | |
21440 | cat >>conftest.$ac_ext <<_ACEOF | |
21441 | /* end confdefs.h. */ | |
21442 | $ac_includes_default | |
21443 | #include <tiffio.h> | |
21444 | _ACEOF | |
21445 | rm -f conftest.$ac_objext | |
21446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21447 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21448 | ac_status=$? |
ac1cb8d3 VS |
21449 | grep -v '^ *+' conftest.er1 >conftest.err |
21450 | rm -f conftest.er1 | |
21451 | cat conftest.err >&5 | |
a848cd7e SC |
21452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21453 | (exit $ac_status); } && | |
c228d3a4 RN |
21454 | { ac_try='test -z "$ac_c_werror_flag" |
21455 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21457 | (eval $ac_try) 2>&5 | |
21458 | ac_status=$? | |
21459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21460 | (exit $ac_status); }; } && | |
21461 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21463 | (eval $ac_try) 2>&5 | |
21464 | ac_status=$? | |
21465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21466 | (exit $ac_status); }; }; then | |
21467 | ac_header_compiler=yes | |
21468 | else | |
21469 | echo "$as_me: failed program was:" >&5 | |
21470 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21471 | ||
21472 | ac_header_compiler=no | |
21473 | fi | |
ac1cb8d3 | 21474 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21475 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21476 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21477 | ||
21478 | # Is the header present? | |
21479 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
21480 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
21481 | cat >conftest.$ac_ext <<_ACEOF | |
21482 | /* confdefs.h. */ | |
21483 | _ACEOF | |
21484 | cat confdefs.h >>conftest.$ac_ext | |
21485 | cat >>conftest.$ac_ext <<_ACEOF | |
21486 | /* end confdefs.h. */ | |
21487 | #include <tiffio.h> | |
21488 | _ACEOF | |
21489 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21490 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21491 | ac_status=$? | |
21492 | grep -v '^ *+' conftest.er1 >conftest.err | |
21493 | rm -f conftest.er1 | |
21494 | cat conftest.err >&5 | |
21495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21496 | (exit $ac_status); } >/dev/null; then | |
21497 | if test -s conftest.err; then | |
21498 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21499 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21500 | else |
21501 | ac_cpp_err= | |
21502 | fi | |
21503 | else | |
21504 | ac_cpp_err=yes | |
21505 | fi | |
21506 | if test -z "$ac_cpp_err"; then | |
21507 | ac_header_preproc=yes | |
21508 | else | |
21509 | echo "$as_me: failed program was:" >&5 | |
21510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21511 | ||
21512 | ac_header_preproc=no | |
21513 | fi | |
21514 | rm -f conftest.err conftest.$ac_ext | |
21515 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21516 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21517 | ||
21518 | # So? What about this header? | |
ac1cb8d3 VS |
21519 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21520 | yes:no: ) | |
a848cd7e SC |
21521 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21522 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21523 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
21524 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
21525 | ac_header_preproc=yes | |
a848cd7e | 21526 | ;; |
ac1cb8d3 | 21527 | no:yes:* ) |
a848cd7e SC |
21528 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
21529 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21530 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
21531 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
21532 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
21533 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
21534 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21535 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21536 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
21537 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21538 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
21539 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21540 | ( |
21541 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21542 | ## ----------------------------------------- ## |
21543 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21544 | ## ----------------------------------------- ## | |
a848cd7e SC |
21545 | _ASBOX |
21546 | ) | | |
21547 | sed "s/^/$as_me: WARNING: /" >&2 | |
21548 | ;; | |
21549 | esac | |
21550 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
21551 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
21552 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21554 | else | |
21555 | ac_cv_header_tiffio_h=$ac_header_preproc | |
21556 | fi | |
21557 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
21558 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
21559 | ||
21560 | fi | |
21561 | if test $ac_cv_header_tiffio_h = yes; then | |
21562 | ||
21563 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
21564 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
21565 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
21566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21567 | else | |
21568 | ac_check_lib_save_LIBS=$LIBS | |
21569 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
21570 | cat >conftest.$ac_ext <<_ACEOF | |
21571 | /* confdefs.h. */ | |
21572 | _ACEOF | |
21573 | cat confdefs.h >>conftest.$ac_ext | |
21574 | cat >>conftest.$ac_ext <<_ACEOF | |
21575 | /* end confdefs.h. */ | |
21576 | ||
21577 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21578 | #ifdef __cplusplus | |
21579 | extern "C" | |
21580 | #endif | |
21581 | /* We use char because int might match the return type of a gcc2 | |
21582 | builtin and then its argument prototype would still apply. */ | |
21583 | char TIFFError (); | |
21584 | int | |
21585 | main () | |
21586 | { | |
21587 | TIFFError (); | |
21588 | ; | |
21589 | return 0; | |
21590 | } | |
21591 | _ACEOF | |
21592 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21593 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21594 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21595 | ac_status=$? |
ac1cb8d3 VS |
21596 | grep -v '^ *+' conftest.er1 >conftest.err |
21597 | rm -f conftest.er1 | |
21598 | cat conftest.err >&5 | |
a848cd7e SC |
21599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21600 | (exit $ac_status); } && | |
c228d3a4 RN |
21601 | { ac_try='test -z "$ac_c_werror_flag" |
21602 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21604 | (eval $ac_try) 2>&5 | |
21605 | ac_status=$? | |
21606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21607 | (exit $ac_status); }; } && | |
21608 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21610 | (eval $ac_try) 2>&5 | |
21611 | ac_status=$? | |
21612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21613 | (exit $ac_status); }; }; then | |
21614 | ac_cv_lib_tiff_TIFFError=yes | |
21615 | else | |
21616 | echo "$as_me: failed program was:" >&5 | |
21617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21618 | ||
21619 | ac_cv_lib_tiff_TIFFError=no | |
21620 | fi | |
ac1cb8d3 VS |
21621 | rm -f conftest.err conftest.$ac_objext \ |
21622 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21623 | LIBS=$ac_check_lib_save_LIBS |
21624 | fi | |
21625 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
21626 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
21627 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
21628 | TIFF_LINK=" -ltiff" | |
21629 | fi | |
21630 | ||
21631 | ||
21632 | ||
21633 | fi | |
21634 | ||
21635 | ||
21636 | ||
21637 | if test "x$TIFF_LINK" = "x" ; then | |
21638 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
21639 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
21640 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
21641 | { (exit 1); exit 1; }; } | |
21642 | else | |
21643 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
21644 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
21645 | wxUSE_LIBTIFF=builtin | |
21646 | fi | |
21647 | else | |
21648 | wxUSE_LIBTIFF=sys | |
21649 | fi | |
21650 | fi | |
21651 | fi | |
21652 | ||
21653 | ||
21654 | if test "$wxUSE_EXPAT" != "no"; then | |
21655 | wxUSE_XML=yes | |
21656 | cat >>confdefs.h <<\_ACEOF | |
21657 | #define wxUSE_EXPAT 1 | |
21658 | _ACEOF | |
21659 | ||
21660 | cat >>confdefs.h <<\_ACEOF | |
21661 | #define wxUSE_XML 1 | |
21662 | _ACEOF | |
21663 | ||
21664 | ||
21665 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
21666 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21667 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
21668 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
21669 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21671 | fi | |
21672 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
21673 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
21674 | else | |
21675 | # Is the header compilable? | |
21676 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
21677 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
21678 | cat >conftest.$ac_ext <<_ACEOF | |
21679 | /* confdefs.h. */ | |
21680 | _ACEOF | |
21681 | cat confdefs.h >>conftest.$ac_ext | |
21682 | cat >>conftest.$ac_ext <<_ACEOF | |
21683 | /* end confdefs.h. */ | |
21684 | $ac_includes_default | |
21685 | #include <expat.h> | |
21686 | _ACEOF | |
21687 | rm -f conftest.$ac_objext | |
21688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21689 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21690 | ac_status=$? |
ac1cb8d3 VS |
21691 | grep -v '^ *+' conftest.er1 >conftest.err |
21692 | rm -f conftest.er1 | |
21693 | cat conftest.err >&5 | |
a848cd7e SC |
21694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21695 | (exit $ac_status); } && | |
c228d3a4 RN |
21696 | { ac_try='test -z "$ac_c_werror_flag" |
21697 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21699 | (eval $ac_try) 2>&5 | |
21700 | ac_status=$? | |
21701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21702 | (exit $ac_status); }; } && | |
21703 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21705 | (eval $ac_try) 2>&5 | |
21706 | ac_status=$? | |
21707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21708 | (exit $ac_status); }; }; then | |
21709 | ac_header_compiler=yes | |
21710 | else | |
21711 | echo "$as_me: failed program was:" >&5 | |
21712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21713 | ||
21714 | ac_header_compiler=no | |
21715 | fi | |
ac1cb8d3 | 21716 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21717 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21718 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21719 | ||
21720 | # Is the header present? | |
21721 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
21722 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
21723 | cat >conftest.$ac_ext <<_ACEOF | |
21724 | /* confdefs.h. */ | |
21725 | _ACEOF | |
21726 | cat confdefs.h >>conftest.$ac_ext | |
21727 | cat >>conftest.$ac_ext <<_ACEOF | |
21728 | /* end confdefs.h. */ | |
21729 | #include <expat.h> | |
21730 | _ACEOF | |
21731 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21732 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21733 | ac_status=$? | |
21734 | grep -v '^ *+' conftest.er1 >conftest.err | |
21735 | rm -f conftest.er1 | |
21736 | cat conftest.err >&5 | |
21737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21738 | (exit $ac_status); } >/dev/null; then | |
21739 | if test -s conftest.err; then | |
21740 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21741 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21742 | else |
21743 | ac_cpp_err= | |
21744 | fi | |
21745 | else | |
21746 | ac_cpp_err=yes | |
21747 | fi | |
21748 | if test -z "$ac_cpp_err"; then | |
21749 | ac_header_preproc=yes | |
21750 | else | |
21751 | echo "$as_me: failed program was:" >&5 | |
21752 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21753 | ||
21754 | ac_header_preproc=no | |
21755 | fi | |
21756 | rm -f conftest.err conftest.$ac_ext | |
21757 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21758 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21759 | ||
21760 | # So? What about this header? | |
ac1cb8d3 VS |
21761 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21762 | yes:no: ) | |
a848cd7e SC |
21763 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21764 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21765 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
21766 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
21767 | ac_header_preproc=yes | |
a848cd7e | 21768 | ;; |
ac1cb8d3 | 21769 | no:yes:* ) |
a848cd7e SC |
21770 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
21771 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21772 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
21773 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
21774 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
21775 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
21776 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21777 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21778 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
21779 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21780 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
21781 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21782 | ( |
21783 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21784 | ## ----------------------------------------- ## |
21785 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21786 | ## ----------------------------------------- ## | |
a848cd7e SC |
21787 | _ASBOX |
21788 | ) | | |
21789 | sed "s/^/$as_me: WARNING: /" >&2 | |
21790 | ;; | |
21791 | esac | |
21792 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
21793 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
21794 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21796 | else | |
21797 | ac_cv_header_expat_h=$ac_header_preproc | |
21798 | fi | |
21799 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
21800 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
21801 | ||
21802 | fi | |
21803 | if test $ac_cv_header_expat_h = yes; then | |
21804 | found_expat_h=1 | |
21805 | fi | |
21806 | ||
21807 | ||
21808 | if test "x$found_expat_h" = "x1"; then | |
21809 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
21810 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
21811 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
21812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21813 | else | |
21814 | ||
21815 | ||
21816 | ||
21817 | ac_ext=cc | |
21818 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21819 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21820 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21821 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21822 | ||
21823 | cat >conftest.$ac_ext <<_ACEOF | |
21824 | /* confdefs.h. */ | |
21825 | _ACEOF | |
21826 | cat confdefs.h >>conftest.$ac_ext | |
21827 | cat >>conftest.$ac_ext <<_ACEOF | |
21828 | /* end confdefs.h. */ | |
21829 | #include <expat.h> | |
21830 | int | |
21831 | main () | |
21832 | { | |
21833 | ||
21834 | ; | |
21835 | return 0; | |
21836 | } | |
21837 | _ACEOF | |
21838 | rm -f conftest.$ac_objext | |
21839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21840 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21841 | ac_status=$? |
ac1cb8d3 VS |
21842 | grep -v '^ *+' conftest.er1 >conftest.err |
21843 | rm -f conftest.er1 | |
21844 | cat conftest.err >&5 | |
a848cd7e SC |
21845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21846 | (exit $ac_status); } && | |
c228d3a4 RN |
21847 | { ac_try='test -z "$ac_cxx_werror_flag" |
21848 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21850 | (eval $ac_try) 2>&5 | |
21851 | ac_status=$? | |
21852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21853 | (exit $ac_status); }; } && | |
21854 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21856 | (eval $ac_try) 2>&5 | |
21857 | ac_status=$? | |
21858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21859 | (exit $ac_status); }; }; then | |
21860 | wx_cv_expat_is_not_broken=yes | |
21861 | else | |
21862 | echo "$as_me: failed program was:" >&5 | |
21863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21864 | ||
21865 | wx_cv_expat_is_not_broken=no | |
21866 | ||
21867 | fi | |
ac1cb8d3 | 21868 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21869 | ac_ext=c |
21870 | ac_cpp='$CPP $CPPFLAGS' | |
21871 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21872 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21873 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21874 | ||
21875 | ||
21876 | ||
21877 | fi | |
21878 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
21879 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
21880 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
21881 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
21882 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
21883 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
21884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21885 | else | |
21886 | ac_check_lib_save_LIBS=$LIBS | |
21887 | LIBS="-lexpat $LIBS" | |
21888 | cat >conftest.$ac_ext <<_ACEOF | |
21889 | /* confdefs.h. */ | |
21890 | _ACEOF | |
21891 | cat confdefs.h >>conftest.$ac_ext | |
21892 | cat >>conftest.$ac_ext <<_ACEOF | |
21893 | /* end confdefs.h. */ | |
21894 | ||
21895 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21896 | #ifdef __cplusplus | |
21897 | extern "C" | |
21898 | #endif | |
21899 | /* We use char because int might match the return type of a gcc2 | |
21900 | builtin and then its argument prototype would still apply. */ | |
21901 | char XML_ParserCreate (); | |
21902 | int | |
21903 | main () | |
21904 | { | |
21905 | XML_ParserCreate (); | |
21906 | ; | |
21907 | return 0; | |
21908 | } | |
21909 | _ACEOF | |
21910 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21911 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21912 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21913 | ac_status=$? |
ac1cb8d3 VS |
21914 | grep -v '^ *+' conftest.er1 >conftest.err |
21915 | rm -f conftest.er1 | |
21916 | cat conftest.err >&5 | |
a848cd7e SC |
21917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21918 | (exit $ac_status); } && | |
c228d3a4 RN |
21919 | { ac_try='test -z "$ac_c_werror_flag" |
21920 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21922 | (eval $ac_try) 2>&5 | |
21923 | ac_status=$? | |
21924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21925 | (exit $ac_status); }; } && | |
21926 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21928 | (eval $ac_try) 2>&5 | |
21929 | ac_status=$? | |
21930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21931 | (exit $ac_status); }; }; then | |
21932 | ac_cv_lib_expat_XML_ParserCreate=yes | |
21933 | else | |
21934 | echo "$as_me: failed program was:" >&5 | |
21935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21936 | ||
21937 | ac_cv_lib_expat_XML_ParserCreate=no | |
21938 | fi | |
ac1cb8d3 VS |
21939 | rm -f conftest.err conftest.$ac_objext \ |
21940 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21941 | LIBS=$ac_check_lib_save_LIBS |
21942 | fi | |
21943 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
21944 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
21945 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
21946 | EXPAT_LINK=" -lexpat" | |
21947 | fi | |
21948 | ||
21949 | fi | |
21950 | fi | |
21951 | if test "x$EXPAT_LINK" = "x" ; then | |
21952 | if test "$wxUSE_EXPAT" = "sys" ; then | |
21953 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
21954 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
21955 | { (exit 1); exit 1; }; } | |
21956 | else | |
21957 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
21958 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
21959 | wxUSE_EXPAT=builtin | |
21960 | fi | |
21961 | else | |
21962 | wxUSE_EXPAT=sys | |
21963 | fi | |
21964 | fi | |
21965 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
21966 | ||
21967 | ||
21968 | subdirs="$subdirs src/expat" | |
21969 | ||
21970 | fi | |
21971 | fi | |
21972 | ||
21973 | ||
21974 | ||
21975 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
21976 | ||
21977 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21978 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
21979 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
21980 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21982 | fi | |
21983 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
21984 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
21985 | else | |
21986 | # Is the header compilable? | |
21987 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
21988 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
21989 | cat >conftest.$ac_ext <<_ACEOF | |
21990 | /* confdefs.h. */ | |
21991 | _ACEOF | |
21992 | cat confdefs.h >>conftest.$ac_ext | |
21993 | cat >>conftest.$ac_ext <<_ACEOF | |
21994 | /* end confdefs.h. */ | |
21995 | $ac_includes_default | |
21996 | #include <mspack.h> | |
21997 | _ACEOF | |
21998 | rm -f conftest.$ac_objext | |
21999 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22000 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22001 | ac_status=$? |
ac1cb8d3 VS |
22002 | grep -v '^ *+' conftest.er1 >conftest.err |
22003 | rm -f conftest.er1 | |
22004 | cat conftest.err >&5 | |
a848cd7e SC |
22005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22006 | (exit $ac_status); } && | |
c228d3a4 RN |
22007 | { ac_try='test -z "$ac_c_werror_flag" |
22008 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22010 | (eval $ac_try) 2>&5 | |
22011 | ac_status=$? | |
22012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22013 | (exit $ac_status); }; } && | |
22014 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22016 | (eval $ac_try) 2>&5 | |
22017 | ac_status=$? | |
22018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22019 | (exit $ac_status); }; }; then | |
22020 | ac_header_compiler=yes | |
22021 | else | |
22022 | echo "$as_me: failed program was:" >&5 | |
22023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22024 | ||
22025 | ac_header_compiler=no | |
22026 | fi | |
ac1cb8d3 | 22027 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22028 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22029 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22030 | ||
22031 | # Is the header present? | |
22032 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
22033 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
22034 | cat >conftest.$ac_ext <<_ACEOF | |
22035 | /* confdefs.h. */ | |
22036 | _ACEOF | |
22037 | cat confdefs.h >>conftest.$ac_ext | |
22038 | cat >>conftest.$ac_ext <<_ACEOF | |
22039 | /* end confdefs.h. */ | |
22040 | #include <mspack.h> | |
22041 | _ACEOF | |
22042 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22043 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22044 | ac_status=$? | |
22045 | grep -v '^ *+' conftest.er1 >conftest.err | |
22046 | rm -f conftest.er1 | |
22047 | cat conftest.err >&5 | |
22048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22049 | (exit $ac_status); } >/dev/null; then | |
22050 | if test -s conftest.err; then | |
22051 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22052 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22053 | else |
22054 | ac_cpp_err= | |
22055 | fi | |
22056 | else | |
22057 | ac_cpp_err=yes | |
22058 | fi | |
22059 | if test -z "$ac_cpp_err"; then | |
22060 | ac_header_preproc=yes | |
22061 | else | |
22062 | echo "$as_me: failed program was:" >&5 | |
22063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22064 | ||
22065 | ac_header_preproc=no | |
22066 | fi | |
22067 | rm -f conftest.err conftest.$ac_ext | |
22068 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22069 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22070 | ||
22071 | # So? What about this header? | |
ac1cb8d3 VS |
22072 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22073 | yes:no: ) | |
a848cd7e SC |
22074 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22075 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22076 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
22077 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
22078 | ac_header_preproc=yes | |
a848cd7e | 22079 | ;; |
ac1cb8d3 | 22080 | no:yes:* ) |
a848cd7e SC |
22081 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
22082 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22083 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
22084 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
22085 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
22086 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
22087 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22088 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22089 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
22090 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22091 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
22092 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22093 | ( |
22094 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22095 | ## ----------------------------------------- ## |
22096 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22097 | ## ----------------------------------------- ## | |
a848cd7e SC |
22098 | _ASBOX |
22099 | ) | | |
22100 | sed "s/^/$as_me: WARNING: /" >&2 | |
22101 | ;; | |
22102 | esac | |
22103 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
22104 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
22105 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
22106 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22107 | else | |
22108 | ac_cv_header_mspack_h=$ac_header_preproc | |
22109 | fi | |
22110 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
22111 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
22112 | ||
22113 | fi | |
22114 | if test $ac_cv_header_mspack_h = yes; then | |
22115 | found_mspack_h=1 | |
22116 | fi | |
22117 | ||
22118 | ||
22119 | if test "x$found_mspack_h" = "x1"; then | |
22120 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
22121 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
22122 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
22123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22124 | else | |
22125 | ac_check_lib_save_LIBS=$LIBS | |
22126 | LIBS="-lmspack $LIBS" | |
22127 | cat >conftest.$ac_ext <<_ACEOF | |
22128 | /* confdefs.h. */ | |
22129 | _ACEOF | |
22130 | cat confdefs.h >>conftest.$ac_ext | |
22131 | cat >>conftest.$ac_ext <<_ACEOF | |
22132 | /* end confdefs.h. */ | |
22133 | ||
22134 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22135 | #ifdef __cplusplus | |
22136 | extern "C" | |
22137 | #endif | |
22138 | /* We use char because int might match the return type of a gcc2 | |
22139 | builtin and then its argument prototype would still apply. */ | |
22140 | char mspack_create_chm_decompressor (); | |
22141 | int | |
22142 | main () | |
22143 | { | |
22144 | mspack_create_chm_decompressor (); | |
22145 | ; | |
22146 | return 0; | |
22147 | } | |
22148 | _ACEOF | |
22149 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22150 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22151 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22152 | ac_status=$? |
ac1cb8d3 VS |
22153 | grep -v '^ *+' conftest.er1 >conftest.err |
22154 | rm -f conftest.er1 | |
22155 | cat conftest.err >&5 | |
a848cd7e SC |
22156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22157 | (exit $ac_status); } && | |
c228d3a4 RN |
22158 | { ac_try='test -z "$ac_c_werror_flag" |
22159 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22161 | (eval $ac_try) 2>&5 | |
22162 | ac_status=$? | |
22163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22164 | (exit $ac_status); }; } && | |
22165 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22167 | (eval $ac_try) 2>&5 | |
22168 | ac_status=$? | |
22169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22170 | (exit $ac_status); }; }; then | |
22171 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
22172 | else | |
22173 | echo "$as_me: failed program was:" >&5 | |
22174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22175 | ||
22176 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
22177 | fi | |
ac1cb8d3 VS |
22178 | rm -f conftest.err conftest.$ac_objext \ |
22179 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22180 | LIBS=$ac_check_lib_save_LIBS |
22181 | fi | |
22182 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
22183 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
22184 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
22185 | MSPACK_LINK=" -lmspack" | |
22186 | fi | |
22187 | ||
22188 | fi | |
22189 | if test "x$MSPACK_LINK" = "x" ; then | |
22190 | wxUSE_LIBMSPACK=no | |
22191 | else | |
22192 | cat >>confdefs.h <<\_ACEOF | |
22193 | #define wxUSE_LIBMSPACK 1 | |
22194 | _ACEOF | |
22195 | ||
22196 | fi | |
22197 | fi | |
22198 | ||
22199 | ||
22200 | ||
22201 | AFMINSTALL= | |
22202 | WIN32INSTALL= | |
22203 | ||
22204 | TOOLKIT= | |
22205 | TOOLKIT_INCLUDE= | |
22206 | WIDGET_SET= | |
22207 | ||
22208 | if test "$USE_WIN32" = 1 ; then | |
22209 | ||
22210 | for ac_header in w32api.h | |
22211 | do | |
22212 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22213 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22214 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22215 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22216 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22218 | fi | |
22219 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22220 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22221 | else | |
22222 | # Is the header compilable? | |
22223 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
22224 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
22225 | cat >conftest.$ac_ext <<_ACEOF | |
22226 | /* confdefs.h. */ | |
22227 | _ACEOF | |
22228 | cat confdefs.h >>conftest.$ac_ext | |
22229 | cat >>conftest.$ac_ext <<_ACEOF | |
22230 | /* end confdefs.h. */ | |
22231 | $ac_includes_default | |
22232 | #include <$ac_header> | |
22233 | _ACEOF | |
22234 | rm -f conftest.$ac_objext | |
22235 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22236 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22237 | ac_status=$? |
ac1cb8d3 VS |
22238 | grep -v '^ *+' conftest.er1 >conftest.err |
22239 | rm -f conftest.er1 | |
22240 | cat conftest.err >&5 | |
a848cd7e SC |
22241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22242 | (exit $ac_status); } && | |
c228d3a4 RN |
22243 | { ac_try='test -z "$ac_c_werror_flag" |
22244 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22246 | (eval $ac_try) 2>&5 | |
22247 | ac_status=$? | |
22248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22249 | (exit $ac_status); }; } && | |
22250 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22252 | (eval $ac_try) 2>&5 | |
22253 | ac_status=$? | |
22254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22255 | (exit $ac_status); }; }; then | |
22256 | ac_header_compiler=yes | |
22257 | else | |
22258 | echo "$as_me: failed program was:" >&5 | |
22259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22260 | ||
22261 | ac_header_compiler=no | |
22262 | fi | |
ac1cb8d3 | 22263 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22264 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22265 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22266 | ||
22267 | # Is the header present? | |
22268 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
22269 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
22270 | cat >conftest.$ac_ext <<_ACEOF | |
22271 | /* confdefs.h. */ | |
22272 | _ACEOF | |
22273 | cat confdefs.h >>conftest.$ac_ext | |
22274 | cat >>conftest.$ac_ext <<_ACEOF | |
22275 | /* end confdefs.h. */ | |
22276 | #include <$ac_header> | |
22277 | _ACEOF | |
22278 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22279 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22280 | ac_status=$? | |
22281 | grep -v '^ *+' conftest.er1 >conftest.err | |
22282 | rm -f conftest.er1 | |
22283 | cat conftest.err >&5 | |
22284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22285 | (exit $ac_status); } >/dev/null; then | |
22286 | if test -s conftest.err; then | |
22287 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22288 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22289 | else |
22290 | ac_cpp_err= | |
22291 | fi | |
22292 | else | |
22293 | ac_cpp_err=yes | |
22294 | fi | |
22295 | if test -z "$ac_cpp_err"; then | |
22296 | ac_header_preproc=yes | |
22297 | else | |
22298 | echo "$as_me: failed program was:" >&5 | |
22299 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22300 | ||
22301 | ac_header_preproc=no | |
22302 | fi | |
22303 | rm -f conftest.err conftest.$ac_ext | |
22304 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22305 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22306 | ||
22307 | # So? What about this header? | |
ac1cb8d3 VS |
22308 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22309 | yes:no: ) | |
a848cd7e SC |
22310 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22311 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22312 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22313 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22314 | ac_header_preproc=yes | |
a848cd7e | 22315 | ;; |
ac1cb8d3 | 22316 | no:yes:* ) |
a848cd7e SC |
22317 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22318 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22319 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22320 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22321 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22322 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22323 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22324 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22325 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22326 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22327 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22328 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22329 | ( |
22330 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22331 | ## ----------------------------------------- ## |
22332 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22333 | ## ----------------------------------------- ## | |
a848cd7e SC |
22334 | _ASBOX |
22335 | ) | | |
22336 | sed "s/^/$as_me: WARNING: /" >&2 | |
22337 | ;; | |
22338 | esac | |
22339 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22340 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22341 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22343 | else | |
ac1cb8d3 | 22344 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
22345 | fi |
22346 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22347 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22348 | ||
22349 | fi | |
22350 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
22351 | cat >>confdefs.h <<_ACEOF | |
22352 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22353 | _ACEOF | |
22354 | ||
22355 | fi | |
22356 | ||
22357 | done | |
22358 | ||
22359 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22360 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
22361 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
22362 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22364 | fi | |
22365 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
22366 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
22367 | else | |
22368 | # Is the header compilable? | |
22369 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
22370 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
22371 | cat >conftest.$ac_ext <<_ACEOF | |
22372 | /* confdefs.h. */ | |
22373 | _ACEOF | |
22374 | cat confdefs.h >>conftest.$ac_ext | |
22375 | cat >>conftest.$ac_ext <<_ACEOF | |
22376 | /* end confdefs.h. */ | |
22377 | $ac_includes_default | |
22378 | #include <windows.h> | |
22379 | _ACEOF | |
22380 | rm -f conftest.$ac_objext | |
22381 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22382 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22383 | ac_status=$? |
ac1cb8d3 VS |
22384 | grep -v '^ *+' conftest.er1 >conftest.err |
22385 | rm -f conftest.er1 | |
22386 | cat conftest.err >&5 | |
a848cd7e SC |
22387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22388 | (exit $ac_status); } && | |
c228d3a4 RN |
22389 | { ac_try='test -z "$ac_c_werror_flag" |
22390 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22392 | (eval $ac_try) 2>&5 | |
22393 | ac_status=$? | |
22394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22395 | (exit $ac_status); }; } && | |
22396 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22398 | (eval $ac_try) 2>&5 | |
22399 | ac_status=$? | |
22400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22401 | (exit $ac_status); }; }; then | |
22402 | ac_header_compiler=yes | |
22403 | else | |
22404 | echo "$as_me: failed program was:" >&5 | |
22405 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22406 | ||
22407 | ac_header_compiler=no | |
22408 | fi | |
ac1cb8d3 | 22409 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22410 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22411 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22412 | ||
22413 | # Is the header present? | |
22414 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
22415 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
22416 | cat >conftest.$ac_ext <<_ACEOF | |
22417 | /* confdefs.h. */ | |
22418 | _ACEOF | |
22419 | cat confdefs.h >>conftest.$ac_ext | |
22420 | cat >>conftest.$ac_ext <<_ACEOF | |
22421 | /* end confdefs.h. */ | |
22422 | #include <windows.h> | |
22423 | _ACEOF | |
22424 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22425 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22426 | ac_status=$? | |
22427 | grep -v '^ *+' conftest.er1 >conftest.err | |
22428 | rm -f conftest.er1 | |
22429 | cat conftest.err >&5 | |
22430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22431 | (exit $ac_status); } >/dev/null; then | |
22432 | if test -s conftest.err; then | |
22433 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22434 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22435 | else |
22436 | ac_cpp_err= | |
22437 | fi | |
22438 | else | |
22439 | ac_cpp_err=yes | |
22440 | fi | |
22441 | if test -z "$ac_cpp_err"; then | |
22442 | ac_header_preproc=yes | |
22443 | else | |
22444 | echo "$as_me: failed program was:" >&5 | |
22445 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22446 | ||
22447 | ac_header_preproc=no | |
22448 | fi | |
22449 | rm -f conftest.err conftest.$ac_ext | |
22450 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22451 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22452 | ||
22453 | # So? What about this header? | |
ac1cb8d3 VS |
22454 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22455 | yes:no: ) | |
a848cd7e SC |
22456 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22457 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22458 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
22459 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
22460 | ac_header_preproc=yes | |
a848cd7e | 22461 | ;; |
ac1cb8d3 | 22462 | no:yes:* ) |
a848cd7e SC |
22463 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
22464 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22465 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
22466 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
22467 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
22468 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
22469 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22470 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22471 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
22472 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22473 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
22474 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22475 | ( |
22476 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22477 | ## ----------------------------------------- ## |
22478 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22479 | ## ----------------------------------------- ## | |
a848cd7e SC |
22480 | _ASBOX |
22481 | ) | | |
22482 | sed "s/^/$as_me: WARNING: /" >&2 | |
22483 | ;; | |
22484 | esac | |
22485 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
22486 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
22487 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22489 | else | |
22490 | ac_cv_header_windows_h=$ac_header_preproc | |
22491 | fi | |
22492 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
22493 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
22494 | ||
22495 | fi | |
22496 | if test $ac_cv_header_windows_h = yes; then | |
22497 | : | |
22498 | else | |
22499 | ||
22500 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
22501 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
22502 | { (exit 1); exit 1; }; } | |
22503 | ||
22504 | fi | |
22505 | ||
22506 | ||
22507 | ||
22508 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
22509 | ||
22510 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
22511 | LIBS="$LIBS -loleacc" | |
22512 | fi | |
22513 | ||
22514 | case "${host}" in | |
22515 | *-*-cygwin* ) | |
22516 | LIBS="$LIBS -lkernel32 -luser32" | |
22517 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
22518 | esac | |
22519 | ||
22520 | if test "$wxUSE_ODBC" = "sys" ; then | |
22521 | wxUSE_ODBC = "yes" | |
22522 | fi | |
22523 | if test "$wxUSE_ODBC" = "yes" ; then | |
22524 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
22525 | cat >>confdefs.h <<\_ACEOF | |
22526 | #define wxUSE_ODBC 1 | |
22527 | _ACEOF | |
22528 | ||
22529 | fi | |
22530 | ||
22531 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
22532 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
22533 | ||
22534 | WIN32INSTALL=win32install | |
22535 | fi | |
22536 | ||
22537 | if test "$wxUSE_GUI" = "yes"; then | |
22538 | USE_GUI=1 | |
22539 | ||
22540 | GUI_TK_LIBRARY= | |
22541 | ||
22542 | WXGTK12= | |
22543 | WXGTK127= | |
22544 | WXGTK20= | |
22545 | WXGPE= | |
22546 | ||
207bc66c RN |
22547 | if test "$wxUSE_COCOA" = 1 ; then |
22548 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
22549 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
22550 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
22551 | wxUSE_PRINTING_ARCHITECTURE=no | |
22552 | fi | |
22553 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
22554 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
22555 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
22556 | wxUSE_DRAG_AND_DROP=no | |
22557 | fi | |
22558 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
22559 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
22560 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
22561 | wxUSE_DRAGIMAGE=no | |
22562 | fi | |
22563 | fi | |
22564 | ||
a848cd7e SC |
22565 | if test "$wxUSE_MSW" = 1 ; then |
22566 | TOOLKIT=MSW | |
22567 | GUIDIST=MSW_DIST | |
22568 | ||
ceec2216 | 22569 | case "${host}" in |
a848cd7e SC |
22570 | *-*-mingw32* ) |
22571 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
22572 | esac | |
22573 | fi | |
22574 | ||
22575 | if test "$wxUSE_GTK" = 1; then | |
22576 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
22577 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
22578 | ||
22579 | gtk_version_cached=1 | |
22580 | if test "${wx_cv_lib_gtk+set}" = set; then | |
22581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22582 | else | |
22583 | ||
22584 | gtk_version_cached=0 | |
22585 | echo "$as_me:$LINENO: result: " >&5 | |
22586 | echo "${ECHO_T}" >&6 | |
22587 | ||
22588 | GTK_MODULES= | |
22589 | if test "$wxUSE_THREADS" = "yes"; then | |
22590 | GTK_MODULES=gthread | |
22591 | fi | |
22592 | ||
22593 | wx_cv_lib_gtk= | |
22594 | if test "x$wxUSE_GTK2" = "xyes"; then | |
22595 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
22596 | if test "${enable_gtktest+set}" = set; then | |
22597 | enableval="$enable_gtktest" | |
22598 | ||
22599 | else | |
22600 | enable_gtktest=yes | |
22601 | fi; | |
22602 | ||
22603 | pkg_config_args=gtk+-2.0 | |
22604 | for module in . $GTK_MODULES | |
22605 | do | |
22606 | case "$module" in | |
22607 | gthread) | |
22608 | pkg_config_args="$pkg_config_args gthread-2.0" | |
22609 | ;; | |
22610 | esac | |
22611 | done | |
22612 | ||
22613 | no_gtk="" | |
22614 | ||
22615 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22616 | set dummy pkg-config; ac_word=$2 | |
22617 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22618 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22619 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22621 | else | |
22622 | case $PKG_CONFIG in | |
22623 | [\\/]* | ?:[\\/]*) | |
22624 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
22625 | ;; | |
22626 | *) | |
22627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22628 | for as_dir in $PATH | |
22629 | do | |
22630 | IFS=$as_save_IFS | |
22631 | test -z "$as_dir" && as_dir=. | |
22632 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22633 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22634 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22635 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22636 | break 2 | |
22637 | fi | |
22638 | done | |
22639 | done | |
22640 | ||
22641 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
22642 | ;; | |
22643 | esac | |
22644 | fi | |
22645 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
22646 | ||
22647 | if test -n "$PKG_CONFIG"; then | |
22648 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
22649 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
22650 | else | |
22651 | echo "$as_me:$LINENO: result: no" >&5 | |
22652 | echo "${ECHO_T}no" >&6 | |
22653 | fi | |
22654 | ||
22655 | ||
22656 | if test x$PKG_CONFIG != xno ; then | |
22657 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
22658 | : | |
22659 | else | |
c2218763 | 22660 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
22661 | no_gtk=yes |
22662 | PKG_CONFIG=no | |
22663 | fi | |
22664 | else | |
22665 | no_gtk=yes | |
22666 | fi | |
22667 | ||
22668 | min_gtk_version=2.0.0 | |
22669 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
22670 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
22671 | ||
22672 | if test x$PKG_CONFIG != xno ; then | |
22673 | ## don't try to run the test against uninstalled libtool libs | |
22674 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
22675 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
22676 | enable_gtktest=no | |
22677 | fi | |
22678 | ||
22679 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
22680 | : | |
22681 | else | |
22682 | no_gtk=yes | |
22683 | fi | |
22684 | fi | |
22685 | ||
22686 | if test x"$no_gtk" = x ; then | |
22687 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
22688 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
22689 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22690 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
22691 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22692 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
22693 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22694 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
22695 | if test "x$enable_gtktest" = "xyes" ; then | |
22696 | ac_save_CFLAGS="$CFLAGS" | |
22697 | ac_save_LIBS="$LIBS" | |
22698 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22699 | LIBS="$GTK_LIBS $LIBS" | |
22700 | rm -f conf.gtktest | |
22701 | if test "$cross_compiling" = yes; then | |
22702 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
22703 | else | |
22704 | cat >conftest.$ac_ext <<_ACEOF | |
22705 | /* confdefs.h. */ | |
22706 | _ACEOF | |
22707 | cat confdefs.h >>conftest.$ac_ext | |
22708 | cat >>conftest.$ac_ext <<_ACEOF | |
22709 | /* end confdefs.h. */ | |
22710 | ||
22711 | #include <gtk/gtk.h> | |
22712 | #include <stdio.h> | |
22713 | #include <stdlib.h> | |
22714 | ||
22715 | int | |
22716 | main () | |
22717 | { | |
22718 | int major, minor, micro; | |
22719 | char *tmp_version; | |
22720 | ||
22721 | system ("touch conf.gtktest"); | |
22722 | ||
22723 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
22724 | tmp_version = g_strdup("$min_gtk_version"); | |
22725 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
22726 | printf("%s, bad version string\n", "$min_gtk_version"); | |
22727 | exit(1); | |
22728 | } | |
22729 | ||
22730 | if ((gtk_major_version != $gtk_config_major_version) || | |
22731 | (gtk_minor_version != $gtk_config_minor_version) || | |
22732 | (gtk_micro_version != $gtk_config_micro_version)) | |
22733 | { | |
22734 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
22735 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
22736 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22737 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
22738 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
22739 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
22740 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
22741 | printf("*** required on your system.\n"); | |
22742 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
22743 | printf("*** to point to the correct configuration files\n"); | |
22744 | } | |
22745 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
22746 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
22747 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
22748 | { | |
22749 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
22750 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
22751 | printf("*** library (version %d.%d.%d)\n", | |
22752 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22753 | } | |
22754 | else | |
22755 | { | |
22756 | if ((gtk_major_version > major) || | |
22757 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
22758 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
22759 | { | |
22760 | return 0; | |
22761 | } | |
22762 | else | |
22763 | { | |
22764 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
22765 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22766 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
22767 | major, minor, micro); | |
22768 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
22769 | printf("***\n"); | |
22770 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
22771 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
22772 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
22773 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
22774 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
22775 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
22776 | printf("*** so that the correct libraries are found at run-time))\n"); | |
22777 | } | |
22778 | } | |
22779 | return 1; | |
22780 | } | |
22781 | ||
22782 | _ACEOF | |
22783 | rm -f conftest$ac_exeext | |
22784 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22785 | (eval $ac_link) 2>&5 | |
22786 | ac_status=$? | |
22787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22788 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22790 | (eval $ac_try) 2>&5 | |
22791 | ac_status=$? | |
22792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22793 | (exit $ac_status); }; }; then | |
22794 | : | |
22795 | else | |
22796 | echo "$as_me: program exited with status $ac_status" >&5 | |
22797 | echo "$as_me: failed program was:" >&5 | |
22798 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22799 | ||
22800 | ( exit $ac_status ) | |
22801 | no_gtk=yes | |
22802 | fi | |
ac1cb8d3 | 22803 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22804 | fi |
22805 | CFLAGS="$ac_save_CFLAGS" | |
22806 | LIBS="$ac_save_LIBS" | |
22807 | fi | |
22808 | fi | |
22809 | if test "x$no_gtk" = x ; then | |
22810 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
22811 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
22812 | wx_cv_lib_gtk=2.0 | |
22813 | else | |
22814 | echo "$as_me:$LINENO: result: no" >&5 | |
22815 | echo "${ECHO_T}no" >&6 | |
22816 | if test "$PKG_CONFIG" = "no" ; then | |
22817 | echo "*** A new enough version of pkg-config was not found." | |
22818 | echo "*** See http://pkgconfig.sourceforge.net" | |
22819 | else | |
22820 | if test -f conf.gtktest ; then | |
22821 | : | |
22822 | else | |
22823 | echo "*** Could not run GTK+ test program, checking why..." | |
22824 | ac_save_CFLAGS="$CFLAGS" | |
22825 | ac_save_LIBS="$LIBS" | |
22826 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22827 | LIBS="$LIBS $GTK_LIBS" | |
22828 | cat >conftest.$ac_ext <<_ACEOF | |
22829 | /* confdefs.h. */ | |
22830 | _ACEOF | |
22831 | cat confdefs.h >>conftest.$ac_ext | |
22832 | cat >>conftest.$ac_ext <<_ACEOF | |
22833 | /* end confdefs.h. */ | |
22834 | ||
22835 | #include <gtk/gtk.h> | |
22836 | #include <stdio.h> | |
22837 | ||
22838 | int | |
22839 | main () | |
22840 | { | |
22841 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
22842 | ; | |
22843 | return 0; | |
22844 | } | |
22845 | _ACEOF | |
22846 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22847 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22848 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22849 | ac_status=$? |
ac1cb8d3 VS |
22850 | grep -v '^ *+' conftest.er1 >conftest.err |
22851 | rm -f conftest.er1 | |
22852 | cat conftest.err >&5 | |
a848cd7e SC |
22853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22854 | (exit $ac_status); } && | |
c228d3a4 RN |
22855 | { ac_try='test -z "$ac_c_werror_flag" |
22856 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22858 | (eval $ac_try) 2>&5 | |
22859 | ac_status=$? | |
22860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22861 | (exit $ac_status); }; } && | |
22862 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22864 | (eval $ac_try) 2>&5 | |
22865 | ac_status=$? | |
22866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22867 | (exit $ac_status); }; }; then | |
22868 | echo "*** The test program compiled, but did not run. This usually means" | |
22869 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
22870 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
22871 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
22872 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
22873 | echo "*** is required on your system" | |
22874 | echo "***" | |
22875 | echo "*** If you have an old version installed, it is best to remove it, although" | |
22876 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
22877 | else | |
22878 | echo "$as_me: failed program was:" >&5 | |
22879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22880 | ||
22881 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
22882 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
22883 | fi | |
ac1cb8d3 VS |
22884 | rm -f conftest.err conftest.$ac_objext \ |
22885 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22886 | CFLAGS="$ac_save_CFLAGS" |
22887 | LIBS="$ac_save_LIBS" | |
22888 | fi | |
22889 | fi | |
22890 | GTK_CFLAGS="" | |
22891 | GTK_LIBS="" | |
22892 | : | |
22893 | fi | |
22894 | ||
22895 | ||
22896 | rm -f conf.gtktest | |
22897 | ||
22898 | else | |
22899 | ||
22900 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
22901 | if test "${with_gtk_prefix+set}" = set; then | |
22902 | withval="$with_gtk_prefix" | |
22903 | gtk_config_prefix="$withval" | |
22904 | else | |
22905 | gtk_config_prefix="" | |
22906 | fi; | |
22907 | ||
22908 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
22909 | if test "${with_gtk_exec_prefix+set}" = set; then | |
22910 | withval="$with_gtk_exec_prefix" | |
22911 | gtk_config_exec_prefix="$withval" | |
22912 | else | |
22913 | gtk_config_exec_prefix="" | |
22914 | fi; | |
22915 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
22916 | if test "${enable_gtktest+set}" = set; then | |
22917 | enableval="$enable_gtktest" | |
22918 | ||
22919 | else | |
22920 | enable_gtktest=yes | |
22921 | fi; | |
22922 | ||
22923 | for module in . $GTK_MODULES | |
22924 | do | |
22925 | case "$module" in | |
22926 | gthread) | |
22927 | gtk_config_args="$gtk_config_args gthread" | |
22928 | ;; | |
22929 | esac | |
22930 | done | |
22931 | ||
22932 | if test x$gtk_config_exec_prefix != x ; then | |
22933 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
22934 | if test x${GTK_CONFIG+set} != xset ; then | |
22935 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
22936 | fi | |
22937 | fi | |
22938 | if test x$gtk_config_prefix != x ; then | |
22939 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
22940 | if test x${GTK_CONFIG+set} != xset ; then | |
22941 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
22942 | fi | |
22943 | fi | |
22944 | ||
22945 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
22946 | set dummy gtk-config; ac_word=$2 | |
22947 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22948 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22949 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
22950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22951 | else | |
22952 | case $GTK_CONFIG in | |
22953 | [\\/]* | ?:[\\/]*) | |
22954 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
22955 | ;; | |
22956 | *) | |
22957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22958 | for as_dir in $PATH | |
22959 | do | |
22960 | IFS=$as_save_IFS | |
22961 | test -z "$as_dir" && as_dir=. | |
22962 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22963 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22964 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22965 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22966 | break 2 | |
22967 | fi | |
22968 | done | |
22969 | done | |
22970 | ||
22971 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
22972 | ;; | |
22973 | esac | |
22974 | fi | |
22975 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
22976 | ||
22977 | if test -n "$GTK_CONFIG"; then | |
22978 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
22979 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
22980 | else | |
22981 | echo "$as_me:$LINENO: result: no" >&5 | |
22982 | echo "${ECHO_T}no" >&6 | |
22983 | fi | |
22984 | ||
22985 | min_gtk_version=1.2.7 | |
22986 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
22987 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
22988 | no_gtk="" | |
22989 | if test "$GTK_CONFIG" = "no" ; then | |
22990 | no_gtk=yes | |
22991 | else | |
22992 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
22993 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
22994 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22995 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
22996 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22997 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
22998 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22999 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
23000 | if test "x$enable_gtktest" = "xyes" ; then | |
23001 | ac_save_CFLAGS="$CFLAGS" | |
23002 | ac_save_LIBS="$LIBS" | |
23003 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23004 | LIBS="$GTK_LIBS $LIBS" | |
23005 | rm -f conf.gtktest | |
23006 | if test "$cross_compiling" = yes; then | |
23007 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
23008 | else | |
23009 | cat >conftest.$ac_ext <<_ACEOF | |
23010 | /* confdefs.h. */ | |
23011 | _ACEOF | |
23012 | cat confdefs.h >>conftest.$ac_ext | |
23013 | cat >>conftest.$ac_ext <<_ACEOF | |
23014 | /* end confdefs.h. */ | |
23015 | ||
23016 | #include <gtk/gtk.h> | |
23017 | #include <stdio.h> | |
23018 | #include <stdlib.h> | |
23019 | ||
23020 | int | |
23021 | main () | |
23022 | { | |
23023 | int major, minor, micro; | |
23024 | char *tmp_version; | |
23025 | ||
23026 | system ("touch conf.gtktest"); | |
23027 | ||
23028 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
23029 | tmp_version = g_strdup("$min_gtk_version"); | |
23030 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
23031 | printf("%s, bad version string\n", "$min_gtk_version"); | |
23032 | exit(1); | |
23033 | } | |
23034 | ||
23035 | if ((gtk_major_version != $gtk_config_major_version) || | |
23036 | (gtk_minor_version != $gtk_config_minor_version) || | |
23037 | (gtk_micro_version != $gtk_config_micro_version)) | |
23038 | { | |
23039 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
23040 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
23041 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23042 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
23043 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
23044 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
23045 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
23046 | printf("*** required on your system.\n"); | |
23047 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
23048 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
23049 | printf("*** before re-running configure\n"); | |
23050 | } | |
23051 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
23052 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
23053 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
23054 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
23055 | { | |
23056 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
23057 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
23058 | printf("*** library (version %d.%d.%d)\n", | |
23059 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23060 | } | |
23061 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
23062 | else | |
23063 | { | |
23064 | if ((gtk_major_version > major) || | |
23065 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
23066 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
23067 | { | |
23068 | return 0; | |
23069 | } | |
23070 | else | |
23071 | { | |
23072 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
23073 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23074 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
23075 | major, minor, micro); | |
23076 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
23077 | printf("***\n"); | |
23078 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
23079 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
23080 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
23081 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
23082 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
23083 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
23084 | printf("*** so that the correct libraries are found at run-time))\n"); | |
23085 | } | |
23086 | } | |
23087 | return 1; | |
23088 | } | |
23089 | ||
23090 | _ACEOF | |
23091 | rm -f conftest$ac_exeext | |
23092 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23093 | (eval $ac_link) 2>&5 | |
23094 | ac_status=$? | |
23095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23096 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23098 | (eval $ac_try) 2>&5 | |
23099 | ac_status=$? | |
23100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23101 | (exit $ac_status); }; }; then | |
23102 | : | |
23103 | else | |
23104 | echo "$as_me: program exited with status $ac_status" >&5 | |
23105 | echo "$as_me: failed program was:" >&5 | |
23106 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23107 | ||
23108 | ( exit $ac_status ) | |
23109 | no_gtk=yes | |
23110 | fi | |
ac1cb8d3 | 23111 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23112 | fi |
23113 | CFLAGS="$ac_save_CFLAGS" | |
23114 | LIBS="$ac_save_LIBS" | |
23115 | fi | |
23116 | fi | |
23117 | if test "x$no_gtk" = x ; then | |
23118 | echo "$as_me:$LINENO: result: yes" >&5 | |
23119 | echo "${ECHO_T}yes" >&6 | |
23120 | wx_cv_lib_gtk=1.2.7 | |
23121 | else | |
23122 | echo "$as_me:$LINENO: result: no" >&5 | |
23123 | echo "${ECHO_T}no" >&6 | |
23124 | if test "$GTK_CONFIG" = "no" ; then | |
23125 | echo "*** The gtk-config script installed by GTK could not be found" | |
23126 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
23127 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
23128 | echo "*** full path to gtk-config." | |
23129 | else | |
23130 | if test -f conf.gtktest ; then | |
23131 | : | |
23132 | else | |
23133 | echo "*** Could not run GTK test program, checking why..." | |
23134 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23135 | LIBS="$LIBS $GTK_LIBS" | |
23136 | cat >conftest.$ac_ext <<_ACEOF | |
23137 | /* confdefs.h. */ | |
23138 | _ACEOF | |
23139 | cat confdefs.h >>conftest.$ac_ext | |
23140 | cat >>conftest.$ac_ext <<_ACEOF | |
23141 | /* end confdefs.h. */ | |
23142 | ||
23143 | #include <gtk/gtk.h> | |
23144 | #include <stdio.h> | |
23145 | ||
23146 | int | |
23147 | main () | |
23148 | { | |
23149 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
23150 | ; | |
23151 | return 0; | |
23152 | } | |
23153 | _ACEOF | |
23154 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23155 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23156 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23157 | ac_status=$? |
ac1cb8d3 VS |
23158 | grep -v '^ *+' conftest.er1 >conftest.err |
23159 | rm -f conftest.er1 | |
23160 | cat conftest.err >&5 | |
a848cd7e SC |
23161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23162 | (exit $ac_status); } && | |
c228d3a4 RN |
23163 | { ac_try='test -z "$ac_c_werror_flag" |
23164 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23166 | (eval $ac_try) 2>&5 | |
23167 | ac_status=$? | |
23168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23169 | (exit $ac_status); }; } && | |
23170 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23172 | (eval $ac_try) 2>&5 | |
23173 | ac_status=$? | |
23174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23175 | (exit $ac_status); }; }; then | |
23176 | echo "*** The test program compiled, but did not run. This usually means" | |
23177 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
23178 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
23179 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
23180 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
23181 | echo "*** is required on your system" | |
23182 | echo "***" | |
23183 | echo "*** If you have an old version installed, it is best to remove it, although" | |
23184 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
23185 | echo "***" | |
23186 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
23187 | echo "*** came with the system with the command" | |
23188 | echo "***" | |
23189 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
23190 | else | |
23191 | echo "$as_me: failed program was:" >&5 | |
23192 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23193 | ||
23194 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
23195 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
23196 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
23197 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
23198 | fi | |
ac1cb8d3 VS |
23199 | rm -f conftest.err conftest.$ac_objext \ |
23200 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23201 | CFLAGS="$ac_save_CFLAGS" |
23202 | LIBS="$ac_save_LIBS" | |
23203 | fi | |
23204 | fi | |
23205 | GTK_CFLAGS="" | |
23206 | GTK_LIBS="" | |
23207 | : | |
23208 | fi | |
23209 | ||
23210 | ||
23211 | rm -f conf.gtktest | |
23212 | ||
23213 | ||
23214 | if test -z "$wx_cv_lib_gtk"; then | |
23215 | ||
23216 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
23217 | if test "${with_gtk_prefix+set}" = set; then | |
23218 | withval="$with_gtk_prefix" | |
23219 | gtk_config_prefix="$withval" | |
23220 | else | |
23221 | gtk_config_prefix="" | |
23222 | fi; | |
23223 | ||
23224 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
23225 | if test "${with_gtk_exec_prefix+set}" = set; then | |
23226 | withval="$with_gtk_exec_prefix" | |
23227 | gtk_config_exec_prefix="$withval" | |
23228 | else | |
23229 | gtk_config_exec_prefix="" | |
23230 | fi; | |
23231 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
23232 | if test "${enable_gtktest+set}" = set; then | |
23233 | enableval="$enable_gtktest" | |
23234 | ||
23235 | else | |
23236 | enable_gtktest=yes | |
23237 | fi; | |
23238 | ||
23239 | for module in . $GTK_MODULES | |
23240 | do | |
23241 | case "$module" in | |
23242 | gthread) | |
23243 | gtk_config_args="$gtk_config_args gthread" | |
23244 | ;; | |
23245 | esac | |
23246 | done | |
23247 | ||
23248 | if test x$gtk_config_exec_prefix != x ; then | |
23249 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
23250 | if test x${GTK_CONFIG+set} != xset ; then | |
23251 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
23252 | fi | |
23253 | fi | |
23254 | if test x$gtk_config_prefix != x ; then | |
23255 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
23256 | if test x${GTK_CONFIG+set} != xset ; then | |
23257 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
23258 | fi | |
23259 | fi | |
23260 | ||
23261 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
23262 | set dummy gtk-config; ac_word=$2 | |
23263 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23264 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23265 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
23266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23267 | else | |
23268 | case $GTK_CONFIG in | |
23269 | [\\/]* | ?:[\\/]*) | |
23270 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
23271 | ;; | |
23272 | *) | |
23273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23274 | for as_dir in $PATH | |
23275 | do | |
23276 | IFS=$as_save_IFS | |
23277 | test -z "$as_dir" && as_dir=. | |
23278 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23279 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23280 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23281 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23282 | break 2 | |
23283 | fi | |
23284 | done | |
23285 | done | |
23286 | ||
23287 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
23288 | ;; | |
23289 | esac | |
23290 | fi | |
23291 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
23292 | ||
23293 | if test -n "$GTK_CONFIG"; then | |
23294 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
23295 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
23296 | else | |
23297 | echo "$as_me:$LINENO: result: no" >&5 | |
23298 | echo "${ECHO_T}no" >&6 | |
23299 | fi | |
23300 | ||
23301 | min_gtk_version=1.2.3 | |
23302 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
23303 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
23304 | no_gtk="" | |
23305 | if test "$GTK_CONFIG" = "no" ; then | |
23306 | no_gtk=yes | |
23307 | else | |
23308 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
23309 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
23310 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23311 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
23312 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23313 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
23314 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23315 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
23316 | if test "x$enable_gtktest" = "xyes" ; then | |
23317 | ac_save_CFLAGS="$CFLAGS" | |
23318 | ac_save_LIBS="$LIBS" | |
23319 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23320 | LIBS="$GTK_LIBS $LIBS" | |
23321 | rm -f conf.gtktest | |
23322 | if test "$cross_compiling" = yes; then | |
23323 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
23324 | else | |
23325 | cat >conftest.$ac_ext <<_ACEOF | |
23326 | /* confdefs.h. */ | |
23327 | _ACEOF | |
23328 | cat confdefs.h >>conftest.$ac_ext | |
23329 | cat >>conftest.$ac_ext <<_ACEOF | |
23330 | /* end confdefs.h. */ | |
23331 | ||
23332 | #include <gtk/gtk.h> | |
23333 | #include <stdio.h> | |
23334 | #include <stdlib.h> | |
23335 | ||
23336 | int | |
23337 | main () | |
23338 | { | |
23339 | int major, minor, micro; | |
23340 | char *tmp_version; | |
23341 | ||
23342 | system ("touch conf.gtktest"); | |
23343 | ||
23344 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
23345 | tmp_version = g_strdup("$min_gtk_version"); | |
23346 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
23347 | printf("%s, bad version string\n", "$min_gtk_version"); | |
23348 | exit(1); | |
23349 | } | |
23350 | ||
23351 | if ((gtk_major_version != $gtk_config_major_version) || | |
23352 | (gtk_minor_version != $gtk_config_minor_version) || | |
23353 | (gtk_micro_version != $gtk_config_micro_version)) | |
23354 | { | |
23355 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
23356 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
23357 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23358 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
23359 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
23360 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
23361 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
23362 | printf("*** required on your system.\n"); | |
23363 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
23364 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
23365 | printf("*** before re-running configure\n"); | |
23366 | } | |
23367 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
23368 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
23369 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
23370 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
23371 | { | |
23372 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
23373 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
23374 | printf("*** library (version %d.%d.%d)\n", | |
23375 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23376 | } | |
23377 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
23378 | else | |
23379 | { | |
23380 | if ((gtk_major_version > major) || | |
23381 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
23382 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
23383 | { | |
23384 | return 0; | |
23385 | } | |
23386 | else | |
23387 | { | |
23388 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
23389 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23390 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
23391 | major, minor, micro); | |
23392 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
23393 | printf("***\n"); | |
23394 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
23395 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
23396 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
23397 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
23398 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
23399 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
23400 | printf("*** so that the correct libraries are found at run-time))\n"); | |
23401 | } | |
23402 | } | |
23403 | return 1; | |
23404 | } | |
23405 | ||
23406 | _ACEOF | |
23407 | rm -f conftest$ac_exeext | |
23408 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23409 | (eval $ac_link) 2>&5 | |
23410 | ac_status=$? | |
23411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23412 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23414 | (eval $ac_try) 2>&5 | |
23415 | ac_status=$? | |
23416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23417 | (exit $ac_status); }; }; then | |
23418 | : | |
23419 | else | |
23420 | echo "$as_me: program exited with status $ac_status" >&5 | |
23421 | echo "$as_me: failed program was:" >&5 | |
23422 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23423 | ||
23424 | ( exit $ac_status ) | |
23425 | no_gtk=yes | |
23426 | fi | |
ac1cb8d3 | 23427 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23428 | fi |
23429 | CFLAGS="$ac_save_CFLAGS" | |
23430 | LIBS="$ac_save_LIBS" | |
23431 | fi | |
23432 | fi | |
23433 | if test "x$no_gtk" = x ; then | |
23434 | echo "$as_me:$LINENO: result: yes" >&5 | |
23435 | echo "${ECHO_T}yes" >&6 | |
23436 | wx_cv_lib_gtk=1.2.3 | |
23437 | else | |
23438 | echo "$as_me:$LINENO: result: no" >&5 | |
23439 | echo "${ECHO_T}no" >&6 | |
23440 | if test "$GTK_CONFIG" = "no" ; then | |
23441 | echo "*** The gtk-config script installed by GTK could not be found" | |
23442 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
23443 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
23444 | echo "*** full path to gtk-config." | |
23445 | else | |
23446 | if test -f conf.gtktest ; then | |
23447 | : | |
23448 | else | |
23449 | echo "*** Could not run GTK test program, checking why..." | |
23450 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23451 | LIBS="$LIBS $GTK_LIBS" | |
23452 | cat >conftest.$ac_ext <<_ACEOF | |
23453 | /* confdefs.h. */ | |
23454 | _ACEOF | |
23455 | cat confdefs.h >>conftest.$ac_ext | |
23456 | cat >>conftest.$ac_ext <<_ACEOF | |
23457 | /* end confdefs.h. */ | |
23458 | ||
23459 | #include <gtk/gtk.h> | |
23460 | #include <stdio.h> | |
23461 | ||
23462 | int | |
23463 | main () | |
23464 | { | |
23465 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
23466 | ; | |
23467 | return 0; | |
23468 | } | |
23469 | _ACEOF | |
23470 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23471 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23472 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23473 | ac_status=$? |
ac1cb8d3 VS |
23474 | grep -v '^ *+' conftest.er1 >conftest.err |
23475 | rm -f conftest.er1 | |
23476 | cat conftest.err >&5 | |
a848cd7e SC |
23477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23478 | (exit $ac_status); } && | |
c228d3a4 RN |
23479 | { ac_try='test -z "$ac_c_werror_flag" |
23480 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23482 | (eval $ac_try) 2>&5 | |
23483 | ac_status=$? | |
23484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23485 | (exit $ac_status); }; } && | |
23486 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23488 | (eval $ac_try) 2>&5 | |
23489 | ac_status=$? | |
23490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23491 | (exit $ac_status); }; }; then | |
23492 | echo "*** The test program compiled, but did not run. This usually means" | |
23493 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
23494 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
23495 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
23496 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
23497 | echo "*** is required on your system" | |
23498 | echo "***" | |
23499 | echo "*** If you have an old version installed, it is best to remove it, although" | |
23500 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
23501 | echo "***" | |
23502 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
23503 | echo "*** came with the system with the command" | |
23504 | echo "***" | |
23505 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
23506 | else | |
23507 | echo "$as_me: failed program was:" >&5 | |
23508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23509 | ||
23510 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
23511 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
23512 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
23513 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
23514 | fi | |
ac1cb8d3 VS |
23515 | rm -f conftest.err conftest.$ac_objext \ |
23516 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23517 | CFLAGS="$ac_save_CFLAGS" |
23518 | LIBS="$ac_save_LIBS" | |
23519 | fi | |
23520 | fi | |
23521 | GTK_CFLAGS="" | |
23522 | GTK_LIBS="" | |
23523 | : | |
23524 | fi | |
23525 | ||
23526 | ||
23527 | rm -f conf.gtktest | |
23528 | ||
23529 | fi | |
23530 | fi | |
23531 | ||
23532 | if test -z "$wx_cv_lib_gtk"; then | |
23533 | wx_cv_lib_gtk=none | |
23534 | else | |
23535 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
23536 | wx_cv_libs_gtk=$GTK_LIBS | |
23537 | fi | |
23538 | ||
23539 | ||
23540 | fi | |
23541 | ||
23542 | ||
23543 | if test "$gtk_version_cached" = 1; then | |
23544 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
23545 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
23546 | fi | |
23547 | ||
23548 | case "$wx_cv_lib_gtk" in | |
23549 | 2.0) WXGTK20=1 | |
23550 | TOOLKIT_VERSION=2 | |
23551 | ;; | |
23552 | 1.2.7) WXGTK127=1 | |
23553 | WXGTK12=1 | |
23554 | ;; | |
23555 | 1.2.3) WXGTK12=1 | |
23556 | ;; | |
23557 | *) { { echo "$as_me:$LINENO: error: | |
23558 | Please check that gtk-config is in path, the directory | |
23559 | where GTK+ libraries are installed (returned by | |
23560 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
23561 | equivalent variable and GTK+ is version 1.2.3 or above. | |
23562 | " >&5 | |
23563 | echo "$as_me: error: | |
23564 | Please check that gtk-config is in path, the directory | |
23565 | where GTK+ libraries are installed (returned by | |
23566 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
23567 | equivalent variable and GTK+ is version 1.2.3 or above. | |
23568 | " >&2;} | |
23569 | { (exit 1); exit 1; }; } | |
23570 | ;; | |
23571 | esac | |
23572 | ||
23573 | if test "$WXGTK20" = 1; then | |
23574 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
23575 | ||
23576 | succeeded=no | |
23577 | ||
23578 | if test -z "$PKG_CONFIG"; then | |
23579 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
23580 | set dummy pkg-config; ac_word=$2 | |
23581 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23582 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23583 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
23584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23585 | else | |
23586 | case $PKG_CONFIG in | |
23587 | [\\/]* | ?:[\\/]*) | |
23588 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
23589 | ;; | |
23590 | *) | |
23591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23592 | for as_dir in $PATH | |
23593 | do | |
23594 | IFS=$as_save_IFS | |
23595 | test -z "$as_dir" && as_dir=. | |
23596 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23597 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23598 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23599 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23600 | break 2 | |
23601 | fi | |
23602 | done | |
23603 | done | |
23604 | ||
23605 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
23606 | ;; | |
23607 | esac | |
23608 | fi | |
23609 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
23610 | ||
23611 | if test -n "$PKG_CONFIG"; then | |
23612 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
23613 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
23614 | else | |
23615 | echo "$as_me:$LINENO: result: no" >&5 | |
23616 | echo "${ECHO_T}no" >&6 | |
23617 | fi | |
23618 | ||
23619 | fi | |
23620 | ||
23621 | if test "$PKG_CONFIG" = "no" ; then | |
23622 | echo "*** The pkg-config script could not be found. Make sure it is" | |
23623 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
23624 | echo "*** to the full path to pkg-config." | |
23625 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
23626 | else | |
23627 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
23628 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
23629 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
23630 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
23631 | ||
23632 | if $PKG_CONFIG --exists "pangoft2" ; then | |
23633 | echo "$as_me:$LINENO: result: yes" >&5 | |
23634 | echo "${ECHO_T}yes" >&6 | |
23635 | succeeded=yes | |
23636 | ||
23637 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
23638 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
23639 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
23640 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
23641 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
23642 | ||
23643 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
23644 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
23645 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
23646 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
23647 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
23648 | else | |
23649 | PANGOFT2_CFLAGS="" | |
23650 | PANGOFT2_LIBS="" | |
23651 | ## If we have a custom action on failure, don't print errors, but | |
23652 | ## do set a variable so people can do so. | |
23653 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
23654 | ||
23655 | fi | |
23656 | ||
23657 | ||
23658 | ||
23659 | else | |
23660 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
23661 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
23662 | fi | |
23663 | fi | |
23664 | ||
23665 | if test $succeeded = yes; then | |
23666 | ||
23667 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
ceec2216 RL |
23668 | # FIXME: GTK_LIBS already has a lot of what this is |
23669 | # about to add, but we go ahead and just add | |
23670 | # it all again anyway. | |
23671 | # This is not a good way to manage things. And simply | |
23672 | # uniq'ing the list later is hardly better. | |
a848cd7e SC |
23673 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
23674 | ||
23675 | else | |
23676 | ||
23677 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
23678 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
23679 | wxUSE_PRINTING_ARCHITECTURE="no" | |
23680 | ||
23681 | ||
23682 | fi | |
23683 | ||
23684 | fi | |
304205f1 VS |
23685 | |
23686 | save_CFLAGS="$CFLAGS" | |
23687 | save_LIBS="$LIBS" | |
23688 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23689 | LIBS="$LIBS $GTK_LIBS" | |
23690 | ||
23691 | for ac_func in pango_font_family_is_monospace | |
23692 | do | |
23693 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23694 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23695 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23696 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23698 | else | |
23699 | cat >conftest.$ac_ext <<_ACEOF | |
23700 | /* confdefs.h. */ | |
23701 | _ACEOF | |
23702 | cat confdefs.h >>conftest.$ac_ext | |
23703 | cat >>conftest.$ac_ext <<_ACEOF | |
23704 | /* end confdefs.h. */ | |
23705 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
23706 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23707 | #define $ac_func innocuous_$ac_func | |
23708 | ||
23709 | /* System header to define __stub macros and hopefully few prototypes, | |
23710 | which can conflict with char $ac_func (); below. | |
23711 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23712 | <limits.h> exists even on freestanding compilers. */ | |
23713 | ||
23714 | #ifdef __STDC__ | |
23715 | # include <limits.h> | |
23716 | #else | |
23717 | # include <assert.h> | |
23718 | #endif | |
23719 | ||
23720 | #undef $ac_func | |
23721 | ||
23722 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23723 | #ifdef __cplusplus | |
23724 | extern "C" | |
23725 | { | |
23726 | #endif | |
23727 | /* We use char because int might match the return type of a gcc2 | |
23728 | builtin and then its argument prototype would still apply. */ | |
23729 | char $ac_func (); | |
23730 | /* The GNU C library defines this for functions which it implements | |
23731 | to always fail with ENOSYS. Some functions are actually named | |
23732 | something starting with __ and the normal name is an alias. */ | |
23733 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23734 | choke me | |
23735 | #else | |
23736 | char (*f) () = $ac_func; | |
23737 | #endif | |
23738 | #ifdef __cplusplus | |
23739 | } | |
23740 | #endif | |
23741 | ||
23742 | int | |
23743 | main () | |
23744 | { | |
23745 | return f != $ac_func; | |
23746 | ; | |
23747 | return 0; | |
23748 | } | |
23749 | _ACEOF | |
23750 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23751 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23752 | (eval $ac_link) 2>conftest.er1 | |
23753 | ac_status=$? | |
23754 | grep -v '^ *+' conftest.er1 >conftest.err | |
23755 | rm -f conftest.er1 | |
23756 | cat conftest.err >&5 | |
23757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23758 | (exit $ac_status); } && | |
c228d3a4 RN |
23759 | { ac_try='test -z "$ac_c_werror_flag" |
23760 | || test ! -s conftest.err' | |
304205f1 VS |
23761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23762 | (eval $ac_try) 2>&5 | |
23763 | ac_status=$? | |
23764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23765 | (exit $ac_status); }; } && | |
23766 | { ac_try='test -s conftest$ac_exeext' | |
23767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23768 | (eval $ac_try) 2>&5 | |
23769 | ac_status=$? | |
23770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23771 | (exit $ac_status); }; }; then | |
23772 | eval "$as_ac_var=yes" | |
23773 | else | |
23774 | echo "$as_me: failed program was:" >&5 | |
23775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23776 | ||
23777 | eval "$as_ac_var=no" | |
23778 | fi | |
23779 | rm -f conftest.err conftest.$ac_objext \ | |
23780 | conftest$ac_exeext conftest.$ac_ext | |
23781 | fi | |
23782 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23783 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23784 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23785 | cat >>confdefs.h <<_ACEOF | |
23786 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23787 | _ACEOF | |
23788 | ||
23789 | fi | |
23790 | done | |
23791 | ||
23792 | CFLAGS="$save_CFLAGS" | |
23793 | LIBS="$save_LIBS" | |
a848cd7e SC |
23794 | else |
23795 | if test "$wxUSE_UNICODE" = "yes"; then | |
23796 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
23797 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
23798 | wxUSE_UNICODE=no | |
23799 | fi | |
23800 | fi | |
23801 | ||
23802 | if test "$USE_DARWIN" != 1; then | |
23803 | ||
23804 | for ac_func in poll | |
23805 | do | |
23806 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23807 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23808 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23809 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23811 | else | |
23812 | cat >conftest.$ac_ext <<_ACEOF | |
23813 | /* confdefs.h. */ | |
23814 | _ACEOF | |
23815 | cat confdefs.h >>conftest.$ac_ext | |
23816 | cat >>conftest.$ac_ext <<_ACEOF | |
23817 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
23818 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
23819 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23820 | #define $ac_func innocuous_$ac_func | |
23821 | ||
a848cd7e SC |
23822 | /* System header to define __stub macros and hopefully few prototypes, |
23823 | which can conflict with char $ac_func (); below. | |
23824 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23825 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 23826 | |
a848cd7e SC |
23827 | #ifdef __STDC__ |
23828 | # include <limits.h> | |
23829 | #else | |
23830 | # include <assert.h> | |
23831 | #endif | |
ac1cb8d3 VS |
23832 | |
23833 | #undef $ac_func | |
23834 | ||
a848cd7e SC |
23835 | /* Override any gcc2 internal prototype to avoid an error. */ |
23836 | #ifdef __cplusplus | |
23837 | extern "C" | |
23838 | { | |
23839 | #endif | |
23840 | /* We use char because int might match the return type of a gcc2 | |
23841 | builtin and then its argument prototype would still apply. */ | |
23842 | char $ac_func (); | |
23843 | /* The GNU C library defines this for functions which it implements | |
23844 | to always fail with ENOSYS. Some functions are actually named | |
23845 | something starting with __ and the normal name is an alias. */ | |
23846 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23847 | choke me | |
23848 | #else | |
23849 | char (*f) () = $ac_func; | |
23850 | #endif | |
23851 | #ifdef __cplusplus | |
23852 | } | |
23853 | #endif | |
23854 | ||
23855 | int | |
23856 | main () | |
23857 | { | |
23858 | return f != $ac_func; | |
23859 | ; | |
23860 | return 0; | |
23861 | } | |
23862 | _ACEOF | |
23863 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23864 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23865 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23866 | ac_status=$? |
ac1cb8d3 VS |
23867 | grep -v '^ *+' conftest.er1 >conftest.err |
23868 | rm -f conftest.er1 | |
23869 | cat conftest.err >&5 | |
a848cd7e SC |
23870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23871 | (exit $ac_status); } && | |
c228d3a4 RN |
23872 | { ac_try='test -z "$ac_c_werror_flag" |
23873 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23875 | (eval $ac_try) 2>&5 | |
23876 | ac_status=$? | |
23877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23878 | (exit $ac_status); }; } && | |
23879 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23881 | (eval $ac_try) 2>&5 | |
23882 | ac_status=$? | |
23883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23884 | (exit $ac_status); }; }; then | |
23885 | eval "$as_ac_var=yes" | |
23886 | else | |
23887 | echo "$as_me: failed program was:" >&5 | |
23888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23889 | ||
23890 | eval "$as_ac_var=no" | |
23891 | fi | |
ac1cb8d3 VS |
23892 | rm -f conftest.err conftest.$ac_objext \ |
23893 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23894 | fi |
23895 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23896 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23897 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23898 | cat >>confdefs.h <<_ACEOF | |
23899 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23900 | _ACEOF | |
23901 | ||
23902 | fi | |
23903 | done | |
23904 | ||
23905 | fi | |
23906 | ||
23907 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
23908 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
23909 | ||
23910 | AFMINSTALL=afminstall | |
23911 | TOOLKIT=GTK | |
23912 | GUIDIST=GTK_DIST | |
23913 | ||
23914 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
23915 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
23916 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
23917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23918 | else | |
23919 | ac_check_lib_save_LIBS=$LIBS | |
23920 | LIBS="-lgdk $LIBS" | |
23921 | cat >conftest.$ac_ext <<_ACEOF | |
23922 | /* confdefs.h. */ | |
23923 | _ACEOF | |
23924 | cat confdefs.h >>conftest.$ac_ext | |
23925 | cat >>conftest.$ac_ext <<_ACEOF | |
23926 | /* end confdefs.h. */ | |
23927 | ||
23928 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23929 | #ifdef __cplusplus | |
23930 | extern "C" | |
23931 | #endif | |
23932 | /* We use char because int might match the return type of a gcc2 | |
23933 | builtin and then its argument prototype would still apply. */ | |
23934 | char gdk_im_open (); | |
23935 | int | |
23936 | main () | |
23937 | { | |
23938 | gdk_im_open (); | |
23939 | ; | |
23940 | return 0; | |
23941 | } | |
23942 | _ACEOF | |
23943 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23944 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23945 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23946 | ac_status=$? |
ac1cb8d3 VS |
23947 | grep -v '^ *+' conftest.er1 >conftest.err |
23948 | rm -f conftest.er1 | |
23949 | cat conftest.err >&5 | |
a848cd7e SC |
23950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23951 | (exit $ac_status); } && | |
c228d3a4 RN |
23952 | { ac_try='test -z "$ac_c_werror_flag" |
23953 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23955 | (eval $ac_try) 2>&5 | |
23956 | ac_status=$? | |
23957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23958 | (exit $ac_status); }; } && | |
23959 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23961 | (eval $ac_try) 2>&5 | |
23962 | ac_status=$? | |
23963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23964 | (exit $ac_status); }; }; then | |
23965 | ac_cv_lib_gdk_gdk_im_open=yes | |
23966 | else | |
23967 | echo "$as_me: failed program was:" >&5 | |
23968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23969 | ||
23970 | ac_cv_lib_gdk_gdk_im_open=no | |
23971 | fi | |
ac1cb8d3 VS |
23972 | rm -f conftest.err conftest.$ac_objext \ |
23973 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23974 | LIBS=$ac_check_lib_save_LIBS |
23975 | fi | |
23976 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
23977 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
23978 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
23979 | cat >>confdefs.h <<\_ACEOF | |
23980 | #define HAVE_XIM 1 | |
23981 | _ACEOF | |
23982 | ||
23983 | fi | |
23984 | ||
23985 | ||
23986 | ||
23987 | if test "$wxUSE_GPE" = "yes"; then | |
23988 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
23989 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
23990 | ||
23991 | ac_find_libraries= | |
23992 | for ac_dir in $SEARCH_LIB /usr/lib; | |
23993 | do | |
23994 | for ac_extension in a so sl dylib; do | |
23995 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then | |
23996 | ac_find_libraries=$ac_dir | |
23997 | break 2 | |
23998 | fi | |
23999 | done | |
24000 | done | |
24001 | ||
24002 | if test "$ac_find_libraries" != "" ; then | |
24003 | ||
24004 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
24005 | result=$? | |
24006 | if test $result = 0; then | |
24007 | ac_path_to_link="" | |
24008 | else | |
24009 | ac_path_to_link=" -L$ac_find_libraries" | |
24010 | fi | |
24011 | ||
24012 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
24013 | WXGPE=1 | |
24014 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
24015 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
24016 | else | |
24017 | echo "$as_me:$LINENO: result: not found" >&5 | |
24018 | echo "${ECHO_T}not found" >&6 | |
24019 | fi | |
24020 | ||
24021 | fi | |
24022 | fi | |
24023 | ||
24024 | if test "$wxUSE_MGL" = 1; then | |
24025 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
24026 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
24027 | if test "x$MGL_ROOT" = x ; then | |
24028 | echo "$as_me:$LINENO: result: not found" >&5 | |
24029 | echo "${ECHO_T}not found" >&6 | |
24030 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
24031 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
24032 | { (exit 1); exit 1; }; } | |
24033 | else | |
24034 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
24035 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
24036 | fi | |
24037 | ||
24038 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
24039 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
24040 | case "${host}" in | |
24041 | *-*-linux* ) | |
24042 | if test "x$wxUSE_SHARED" = xyes ; then | |
24043 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
24044 | else | |
24045 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
24046 | fi | |
24047 | ;; | |
24048 | *-pc-msdosdjgpp ) | |
24049 | mgl_os_candidates="dos32/dj2" | |
24050 | ;; | |
24051 | *) | |
24052 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
24053 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
24054 | { (exit 1); exit 1; }; } | |
24055 | esac | |
24056 | ||
24057 | mgl_lib_type="" | |
24058 | mgl_os="" | |
24059 | ||
24060 | for mgl_os_i in $mgl_os_candidates ; do | |
24061 | if test "x$mgl_os" = x ; then | |
24062 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
24063 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
24064 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
24065 | mgl_lib_type=debug | |
24066 | mgl_os=$mgl_os_i | |
24067 | fi | |
24068 | fi | |
24069 | if test "x$mgl_lib_type" = x ; then | |
24070 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
24071 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
24072 | mgl_lib_type=release | |
24073 | mgl_os=$mgl_os_i | |
24074 | fi | |
24075 | fi | |
24076 | fi | |
24077 | done | |
24078 | ||
24079 | if test "x$mgl_os" = x ; then | |
24080 | echo "$as_me:$LINENO: result: not found" >&5 | |
24081 | echo "${ECHO_T}not found" >&6 | |
24082 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
24083 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
24084 | { (exit 1); exit 1; }; } | |
24085 | fi | |
24086 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
24087 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
24088 | ||
24089 | wxUSE_UNIVERSAL="yes" | |
24090 | ||
24091 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
24092 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
24093 | ||
24094 | AFMINSTALL=afminstall | |
24095 | TOOLKIT=MGL | |
24096 | GUIDIST=MGL_DIST | |
24097 | fi | |
24098 | ||
24099 | if test "$wxUSE_MICROWIN" = 1; then | |
24100 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
24101 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
24102 | if test "x$MICROWINDOWS" = x ; then | |
24103 | echo "$as_me:$LINENO: result: not found" >&5 | |
24104 | echo "${ECHO_T}not found" >&6 | |
24105 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
24106 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
24107 | { (exit 1); exit 1; }; } | |
24108 | else | |
24109 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
24110 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
24111 | fi | |
24112 | ||
24113 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
24114 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
24115 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
24116 | else | |
24117 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
24118 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
24119 | { (exit 1); exit 1; }; } | |
24120 | fi | |
24121 | ||
24122 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
24123 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
24124 | ||
24125 | wxUSE_UNIVERSAL="yes" | |
24126 | ||
24127 | AFMINSTALL=afminstall | |
24128 | TOOLKIT=MICROWIN | |
24129 | GUIDIST=MICROWIN_DIST | |
24130 | ||
24131 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
24132 | fi | |
24133 | ||
74b84332 | 24134 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
c228d3a4 | 24135 | echo "$as_me:$LINENO: checking for X" >&5 |
a848cd7e SC |
24136 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
24137 | ||
24138 | ||
24139 | # Check whether --with-x or --without-x was given. | |
24140 | if test "${with_x+set}" = set; then | |
24141 | withval="$with_x" | |
24142 | ||
24143 | fi; | |
24144 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
24145 | if test "x$with_x" = xno; then | |
24146 | # The user explicitly disabled X. | |
24147 | have_x=disabled | |
24148 | else | |
24149 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
24150 | # Both variables are already set. | |
24151 | have_x=yes | |
24152 | else | |
24153 | if test "${ac_cv_have_x+set}" = set; then | |
24154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24155 | else | |
24156 | # One or both of the vars are not set, and there is no cached value. | |
24157 | ac_x_includes=no ac_x_libraries=no | |
24158 | rm -fr conftest.dir | |
24159 | if mkdir conftest.dir; then | |
24160 | cd conftest.dir | |
24161 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
24162 | cat >Imakefile <<'_ACEOF' | |
24163 | acfindx: | |
24164 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
24165 | _ACEOF | |
24166 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
24167 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
24168 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
24169 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
24170 | for ac_extension in a so sl; do | |
24171 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
24172 | test -f $ac_im_libdir/libX11.$ac_extension; then |
24173 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
24174 | fi |
24175 | done | |
24176 | # Screen out bogus values from the imake configuration. They are | |
24177 | # bogus both because they are the default anyway, and because | |
24178 | # using them would break gcc on systems where it needs fixed includes. | |
24179 | case $ac_im_incroot in | |
24180 | /usr/include) ;; | |
24181 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
24182 | esac | |
24183 | case $ac_im_usrlibdir in | |
24184 | /usr/lib | /lib) ;; | |
24185 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
24186 | esac | |
24187 | fi | |
24188 | cd .. | |
24189 | rm -fr conftest.dir | |
24190 | fi | |
24191 | ||
24192 | # Standard set of common directories for X headers. | |
24193 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
24194 | ac_x_header_dirs=' | |
24195 | /usr/X11/include | |
24196 | /usr/X11R6/include | |
24197 | /usr/X11R5/include | |
24198 | /usr/X11R4/include | |
24199 | ||
24200 | /usr/include/X11 | |
24201 | /usr/include/X11R6 | |
24202 | /usr/include/X11R5 | |
24203 | /usr/include/X11R4 | |
24204 | ||
24205 | /usr/local/X11/include | |
24206 | /usr/local/X11R6/include | |
24207 | /usr/local/X11R5/include | |
24208 | /usr/local/X11R4/include | |
24209 | ||
24210 | /usr/local/include/X11 | |
24211 | /usr/local/include/X11R6 | |
24212 | /usr/local/include/X11R5 | |
24213 | /usr/local/include/X11R4 | |
24214 | ||
24215 | /usr/X386/include | |
24216 | /usr/x386/include | |
24217 | /usr/XFree86/include/X11 | |
24218 | ||
24219 | /usr/include | |
24220 | /usr/local/include | |
24221 | /usr/unsupported/include | |
24222 | /usr/athena/include | |
24223 | /usr/local/x11r5/include | |
24224 | /usr/lpp/Xamples/include | |
24225 | ||
24226 | /usr/openwin/include | |
24227 | /usr/openwin/share/include' | |
24228 | ||
24229 | if test "$ac_x_includes" = no; then | |
c228d3a4 | 24230 | # Guess where to find include files, by looking for Intrinsic.h. |
a848cd7e SC |
24231 | # First, try using that file with no special directory specified. |
24232 | cat >conftest.$ac_ext <<_ACEOF | |
24233 | /* confdefs.h. */ | |
24234 | _ACEOF | |
24235 | cat confdefs.h >>conftest.$ac_ext | |
24236 | cat >>conftest.$ac_ext <<_ACEOF | |
24237 | /* end confdefs.h. */ | |
24238 | #include <X11/Intrinsic.h> | |
24239 | _ACEOF | |
24240 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24241 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24242 | ac_status=$? | |
24243 | grep -v '^ *+' conftest.er1 >conftest.err | |
24244 | rm -f conftest.er1 | |
24245 | cat conftest.err >&5 | |
24246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24247 | (exit $ac_status); } >/dev/null; then | |
24248 | if test -s conftest.err; then | |
24249 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24250 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24251 | else |
24252 | ac_cpp_err= | |
24253 | fi | |
24254 | else | |
24255 | ac_cpp_err=yes | |
24256 | fi | |
24257 | if test -z "$ac_cpp_err"; then | |
24258 | # We can compile using X headers with no special include directory. | |
24259 | ac_x_includes= | |
24260 | else | |
24261 | echo "$as_me: failed program was:" >&5 | |
24262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24263 | ||
24264 | for ac_dir in $ac_x_header_dirs; do | |
24265 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
24266 | ac_x_includes=$ac_dir | |
24267 | break | |
24268 | fi | |
24269 | done | |
24270 | fi | |
24271 | rm -f conftest.err conftest.$ac_ext | |
24272 | fi # $ac_x_includes = no | |
24273 | ||
24274 | if test "$ac_x_libraries" = no; then | |
24275 | # Check for the libraries. | |
24276 | # See if we find them without any special options. | |
24277 | # Don't add to $LIBS permanently. | |
24278 | ac_save_LIBS=$LIBS | |
24279 | LIBS="-lXt $LIBS" | |
24280 | cat >conftest.$ac_ext <<_ACEOF | |
24281 | /* confdefs.h. */ | |
24282 | _ACEOF | |
24283 | cat confdefs.h >>conftest.$ac_ext | |
24284 | cat >>conftest.$ac_ext <<_ACEOF | |
24285 | /* end confdefs.h. */ | |
24286 | #include <X11/Intrinsic.h> | |
24287 | int | |
24288 | main () | |
24289 | { | |
24290 | XtMalloc (0) | |
24291 | ; | |
24292 | return 0; | |
24293 | } | |
24294 | _ACEOF | |
24295 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24296 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24297 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24298 | ac_status=$? |
ac1cb8d3 VS |
24299 | grep -v '^ *+' conftest.er1 >conftest.err |
24300 | rm -f conftest.er1 | |
24301 | cat conftest.err >&5 | |
a848cd7e SC |
24302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24303 | (exit $ac_status); } && | |
c228d3a4 RN |
24304 | { ac_try='test -z "$ac_c_werror_flag" |
24305 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24307 | (eval $ac_try) 2>&5 | |
24308 | ac_status=$? | |
24309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24310 | (exit $ac_status); }; } && | |
24311 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24313 | (eval $ac_try) 2>&5 | |
24314 | ac_status=$? | |
24315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24316 | (exit $ac_status); }; }; then | |
24317 | LIBS=$ac_save_LIBS | |
24318 | # We can link X programs with no special library path. | |
24319 | ac_x_libraries= | |
24320 | else | |
24321 | echo "$as_me: failed program was:" >&5 | |
24322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24323 | ||
24324 | LIBS=$ac_save_LIBS | |
24325 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
24326 | do | |
24327 | # Don't even attempt the hair of trying to link an X program! | |
24328 | for ac_extension in a so sl; do | |
24329 | if test -r $ac_dir/libXt.$ac_extension; then | |
24330 | ac_x_libraries=$ac_dir | |
24331 | break 2 | |
24332 | fi | |
24333 | done | |
24334 | done | |
24335 | fi | |
ac1cb8d3 VS |
24336 | rm -f conftest.err conftest.$ac_objext \ |
24337 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24338 | fi # $ac_x_libraries = no |
24339 | ||
24340 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
24341 | # Didn't find X anywhere. Cache the known absence of X. | |
24342 | ac_cv_have_x="have_x=no" | |
24343 | else | |
24344 | # Record where we found X for the cache. | |
24345 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 24346 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
24347 | fi |
24348 | fi | |
24349 | ||
24350 | fi | |
24351 | eval "$ac_cv_have_x" | |
24352 | fi # $with_x != no | |
24353 | ||
24354 | if test "$have_x" != yes; then | |
24355 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
24356 | echo "${ECHO_T}$have_x" >&6 | |
24357 | no_x=yes | |
24358 | else | |
24359 | # If each of the values was on the command line, it overrides each guess. | |
24360 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
24361 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
24362 | # Update the cache value to reflect the command line values. | |
24363 | ac_cv_have_x="have_x=yes \ | |
24364 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
c228d3a4 RN |
24365 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
24366 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
a848cd7e SC |
24367 | fi |
24368 | ||
24369 | if test "$no_x" = yes; then | |
24370 | # Not all programs may use this symbol, but it does not hurt to define it. | |
24371 | ||
24372 | cat >>confdefs.h <<\_ACEOF | |
24373 | #define X_DISPLAY_MISSING 1 | |
24374 | _ACEOF | |
24375 | ||
24376 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
24377 | else | |
24378 | if test -n "$x_includes"; then | |
24379 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
24380 | fi | |
24381 | ||
24382 | # It would also be nice to do this for all -L options, not just this one. | |
24383 | if test -n "$x_libraries"; then | |
24384 | X_LIBS="$X_LIBS -L$x_libraries" | |
24385 | # For Solaris; some versions of Sun CC require a space after -R and | |
24386 | # others require no space. Words are not sufficient . . . . | |
24387 | case `(uname -sr) 2>/dev/null` in | |
24388 | "SunOS 5"*) | |
24389 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
24390 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
24391 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
24392 | cat >conftest.$ac_ext <<_ACEOF | |
24393 | /* confdefs.h. */ | |
24394 | _ACEOF | |
24395 | cat confdefs.h >>conftest.$ac_ext | |
24396 | cat >>conftest.$ac_ext <<_ACEOF | |
24397 | /* end confdefs.h. */ | |
24398 | ||
24399 | int | |
24400 | main () | |
24401 | { | |
24402 | ||
24403 | ; | |
24404 | return 0; | |
24405 | } | |
24406 | _ACEOF | |
24407 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24408 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24409 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24410 | ac_status=$? |
ac1cb8d3 VS |
24411 | grep -v '^ *+' conftest.er1 >conftest.err |
24412 | rm -f conftest.er1 | |
24413 | cat conftest.err >&5 | |
a848cd7e SC |
24414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24415 | (exit $ac_status); } && | |
c228d3a4 RN |
24416 | { ac_try='test -z "$ac_c_werror_flag" |
24417 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24419 | (eval $ac_try) 2>&5 | |
24420 | ac_status=$? | |
24421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24422 | (exit $ac_status); }; } && | |
24423 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24425 | (eval $ac_try) 2>&5 | |
24426 | ac_status=$? | |
24427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24428 | (exit $ac_status); }; }; then | |
24429 | ac_R_nospace=yes | |
24430 | else | |
24431 | echo "$as_me: failed program was:" >&5 | |
24432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24433 | ||
24434 | ac_R_nospace=no | |
24435 | fi | |
ac1cb8d3 VS |
24436 | rm -f conftest.err conftest.$ac_objext \ |
24437 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24438 | if test $ac_R_nospace = yes; then |
24439 | echo "$as_me:$LINENO: result: no" >&5 | |
24440 | echo "${ECHO_T}no" >&6 | |
24441 | X_LIBS="$X_LIBS -R$x_libraries" | |
24442 | else | |
24443 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
24444 | cat >conftest.$ac_ext <<_ACEOF | |
24445 | /* confdefs.h. */ | |
24446 | _ACEOF | |
24447 | cat confdefs.h >>conftest.$ac_ext | |
24448 | cat >>conftest.$ac_ext <<_ACEOF | |
24449 | /* end confdefs.h. */ | |
24450 | ||
24451 | int | |
24452 | main () | |
24453 | { | |
24454 | ||
24455 | ; | |
24456 | return 0; | |
24457 | } | |
24458 | _ACEOF | |
24459 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24460 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24461 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24462 | ac_status=$? |
ac1cb8d3 VS |
24463 | grep -v '^ *+' conftest.er1 >conftest.err |
24464 | rm -f conftest.er1 | |
24465 | cat conftest.err >&5 | |
a848cd7e SC |
24466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24467 | (exit $ac_status); } && | |
c228d3a4 RN |
24468 | { ac_try='test -z "$ac_c_werror_flag" |
24469 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24471 | (eval $ac_try) 2>&5 | |
24472 | ac_status=$? | |
24473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24474 | (exit $ac_status); }; } && | |
24475 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24477 | (eval $ac_try) 2>&5 | |
24478 | ac_status=$? | |
24479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24480 | (exit $ac_status); }; }; then | |
24481 | ac_R_space=yes | |
24482 | else | |
24483 | echo "$as_me: failed program was:" >&5 | |
24484 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24485 | ||
24486 | ac_R_space=no | |
24487 | fi | |
ac1cb8d3 VS |
24488 | rm -f conftest.err conftest.$ac_objext \ |
24489 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24490 | if test $ac_R_space = yes; then |
24491 | echo "$as_me:$LINENO: result: yes" >&5 | |
24492 | echo "${ECHO_T}yes" >&6 | |
24493 | X_LIBS="$X_LIBS -R $x_libraries" | |
24494 | else | |
24495 | echo "$as_me:$LINENO: result: neither works" >&5 | |
24496 | echo "${ECHO_T}neither works" >&6 | |
24497 | fi | |
24498 | fi | |
24499 | LIBS=$ac_xsave_LIBS | |
24500 | esac | |
24501 | fi | |
24502 | ||
24503 | # Check for system-dependent libraries X programs must link with. | |
24504 | # Do this before checking for the system-independent R6 libraries | |
24505 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
24506 | ||
24507 | if test "$ISC" = yes; then | |
24508 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
24509 | else | |
24510 | # Martyn Johnson says this is needed for Ultrix, if the X | |
24511 | # libraries were built with DECnet support. And Karl Berry says | |
24512 | # the Alpha needs dnet_stub (dnet does not exist). | |
24513 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
24514 | cat >conftest.$ac_ext <<_ACEOF | |
24515 | /* confdefs.h. */ | |
24516 | _ACEOF | |
24517 | cat confdefs.h >>conftest.$ac_ext | |
24518 | cat >>conftest.$ac_ext <<_ACEOF | |
24519 | /* end confdefs.h. */ | |
24520 | ||
24521 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24522 | #ifdef __cplusplus | |
24523 | extern "C" | |
24524 | #endif | |
24525 | /* We use char because int might match the return type of a gcc2 | |
24526 | builtin and then its argument prototype would still apply. */ | |
24527 | char XOpenDisplay (); | |
24528 | int | |
24529 | main () | |
24530 | { | |
24531 | XOpenDisplay (); | |
24532 | ; | |
24533 | return 0; | |
24534 | } | |
24535 | _ACEOF | |
24536 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24537 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24538 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24539 | ac_status=$? |
ac1cb8d3 VS |
24540 | grep -v '^ *+' conftest.er1 >conftest.err |
24541 | rm -f conftest.er1 | |
24542 | cat conftest.err >&5 | |
a848cd7e SC |
24543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24544 | (exit $ac_status); } && | |
c228d3a4 RN |
24545 | { ac_try='test -z "$ac_c_werror_flag" |
24546 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24548 | (eval $ac_try) 2>&5 | |
24549 | ac_status=$? | |
24550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24551 | (exit $ac_status); }; } && | |
24552 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24554 | (eval $ac_try) 2>&5 | |
24555 | ac_status=$? | |
24556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24557 | (exit $ac_status); }; }; then | |
24558 | : | |
24559 | else | |
24560 | echo "$as_me: failed program was:" >&5 | |
24561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24562 | ||
24563 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
24564 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
24565 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
24566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24567 | else | |
24568 | ac_check_lib_save_LIBS=$LIBS | |
24569 | LIBS="-ldnet $LIBS" | |
24570 | cat >conftest.$ac_ext <<_ACEOF | |
24571 | /* confdefs.h. */ | |
24572 | _ACEOF | |
24573 | cat confdefs.h >>conftest.$ac_ext | |
24574 | cat >>conftest.$ac_ext <<_ACEOF | |
24575 | /* end confdefs.h. */ | |
24576 | ||
24577 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24578 | #ifdef __cplusplus | |
24579 | extern "C" | |
24580 | #endif | |
24581 | /* We use char because int might match the return type of a gcc2 | |
24582 | builtin and then its argument prototype would still apply. */ | |
24583 | char dnet_ntoa (); | |
24584 | int | |
24585 | main () | |
24586 | { | |
24587 | dnet_ntoa (); | |
24588 | ; | |
24589 | return 0; | |
24590 | } | |
24591 | _ACEOF | |
24592 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24593 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24594 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24595 | ac_status=$? |
ac1cb8d3 VS |
24596 | grep -v '^ *+' conftest.er1 >conftest.err |
24597 | rm -f conftest.er1 | |
24598 | cat conftest.err >&5 | |
a848cd7e SC |
24599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24600 | (exit $ac_status); } && | |
c228d3a4 RN |
24601 | { ac_try='test -z "$ac_c_werror_flag" |
24602 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24604 | (eval $ac_try) 2>&5 | |
24605 | ac_status=$? | |
24606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24607 | (exit $ac_status); }; } && | |
24608 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24610 | (eval $ac_try) 2>&5 | |
24611 | ac_status=$? | |
24612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24613 | (exit $ac_status); }; }; then | |
24614 | ac_cv_lib_dnet_dnet_ntoa=yes | |
24615 | else | |
24616 | echo "$as_me: failed program was:" >&5 | |
24617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24618 | ||
24619 | ac_cv_lib_dnet_dnet_ntoa=no | |
24620 | fi | |
ac1cb8d3 VS |
24621 | rm -f conftest.err conftest.$ac_objext \ |
24622 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24623 | LIBS=$ac_check_lib_save_LIBS |
24624 | fi | |
24625 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
24626 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
24627 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
24628 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
24629 | fi | |
24630 | ||
24631 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
24632 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
24633 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
24634 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
24635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24636 | else | |
24637 | ac_check_lib_save_LIBS=$LIBS | |
24638 | LIBS="-ldnet_stub $LIBS" | |
24639 | cat >conftest.$ac_ext <<_ACEOF | |
24640 | /* confdefs.h. */ | |
24641 | _ACEOF | |
24642 | cat confdefs.h >>conftest.$ac_ext | |
24643 | cat >>conftest.$ac_ext <<_ACEOF | |
24644 | /* end confdefs.h. */ | |
24645 | ||
24646 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24647 | #ifdef __cplusplus | |
24648 | extern "C" | |
24649 | #endif | |
24650 | /* We use char because int might match the return type of a gcc2 | |
24651 | builtin and then its argument prototype would still apply. */ | |
24652 | char dnet_ntoa (); | |
24653 | int | |
24654 | main () | |
24655 | { | |
24656 | dnet_ntoa (); | |
24657 | ; | |
24658 | return 0; | |
24659 | } | |
24660 | _ACEOF | |
24661 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24662 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24663 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24664 | ac_status=$? |
ac1cb8d3 VS |
24665 | grep -v '^ *+' conftest.er1 >conftest.err |
24666 | rm -f conftest.er1 | |
24667 | cat conftest.err >&5 | |
a848cd7e SC |
24668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24669 | (exit $ac_status); } && | |
c228d3a4 RN |
24670 | { ac_try='test -z "$ac_c_werror_flag" |
24671 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24673 | (eval $ac_try) 2>&5 | |
24674 | ac_status=$? | |
24675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24676 | (exit $ac_status); }; } && | |
24677 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24679 | (eval $ac_try) 2>&5 | |
24680 | ac_status=$? | |
24681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24682 | (exit $ac_status); }; }; then | |
24683 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
24684 | else | |
24685 | echo "$as_me: failed program was:" >&5 | |
24686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24687 | ||
24688 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
24689 | fi | |
ac1cb8d3 VS |
24690 | rm -f conftest.err conftest.$ac_objext \ |
24691 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24692 | LIBS=$ac_check_lib_save_LIBS |
24693 | fi | |
24694 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
24695 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
24696 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
24697 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
24698 | fi | |
24699 | ||
24700 | fi | |
24701 | fi | |
ac1cb8d3 VS |
24702 | rm -f conftest.err conftest.$ac_objext \ |
24703 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24704 | LIBS="$ac_xsave_LIBS" |
24705 | ||
24706 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
24707 | # to get the SysV transport functions. | |
24708 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
24709 | # needs -lnsl. | |
24710 | # The nsl library prevents programs from opening the X display | |
24711 | # on Irix 5.2, according to T.E. Dickey. | |
24712 | # The functions gethostbyname, getservbyname, and inet_addr are | |
24713 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
24714 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
24715 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
24716 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
24717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24718 | else | |
24719 | cat >conftest.$ac_ext <<_ACEOF | |
24720 | /* confdefs.h. */ | |
24721 | _ACEOF | |
24722 | cat confdefs.h >>conftest.$ac_ext | |
24723 | cat >>conftest.$ac_ext <<_ACEOF | |
24724 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24725 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
24726 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24727 | #define gethostbyname innocuous_gethostbyname | |
24728 | ||
a848cd7e SC |
24729 | /* System header to define __stub macros and hopefully few prototypes, |
24730 | which can conflict with char gethostbyname (); below. | |
24731 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24732 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24733 | |
a848cd7e SC |
24734 | #ifdef __STDC__ |
24735 | # include <limits.h> | |
24736 | #else | |
24737 | # include <assert.h> | |
24738 | #endif | |
ac1cb8d3 VS |
24739 | |
24740 | #undef gethostbyname | |
24741 | ||
a848cd7e SC |
24742 | /* Override any gcc2 internal prototype to avoid an error. */ |
24743 | #ifdef __cplusplus | |
24744 | extern "C" | |
24745 | { | |
24746 | #endif | |
24747 | /* We use char because int might match the return type of a gcc2 | |
24748 | builtin and then its argument prototype would still apply. */ | |
24749 | char gethostbyname (); | |
24750 | /* The GNU C library defines this for functions which it implements | |
24751 | to always fail with ENOSYS. Some functions are actually named | |
24752 | something starting with __ and the normal name is an alias. */ | |
24753 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
24754 | choke me | |
24755 | #else | |
24756 | char (*f) () = gethostbyname; | |
24757 | #endif | |
24758 | #ifdef __cplusplus | |
24759 | } | |
24760 | #endif | |
24761 | ||
24762 | int | |
24763 | main () | |
24764 | { | |
24765 | return f != gethostbyname; | |
24766 | ; | |
24767 | return 0; | |
24768 | } | |
24769 | _ACEOF | |
24770 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24771 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24772 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24773 | ac_status=$? |
ac1cb8d3 VS |
24774 | grep -v '^ *+' conftest.er1 >conftest.err |
24775 | rm -f conftest.er1 | |
24776 | cat conftest.err >&5 | |
a848cd7e SC |
24777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24778 | (exit $ac_status); } && | |
c228d3a4 RN |
24779 | { ac_try='test -z "$ac_c_werror_flag" |
24780 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24782 | (eval $ac_try) 2>&5 | |
24783 | ac_status=$? | |
24784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24785 | (exit $ac_status); }; } && | |
24786 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24788 | (eval $ac_try) 2>&5 | |
24789 | ac_status=$? | |
24790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24791 | (exit $ac_status); }; }; then | |
24792 | ac_cv_func_gethostbyname=yes | |
24793 | else | |
24794 | echo "$as_me: failed program was:" >&5 | |
24795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24796 | ||
24797 | ac_cv_func_gethostbyname=no | |
24798 | fi | |
ac1cb8d3 VS |
24799 | rm -f conftest.err conftest.$ac_objext \ |
24800 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24801 | fi |
24802 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
24803 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
24804 | ||
24805 | if test $ac_cv_func_gethostbyname = no; then | |
24806 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
24807 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
24808 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
24809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24810 | else | |
24811 | ac_check_lib_save_LIBS=$LIBS | |
24812 | LIBS="-lnsl $LIBS" | |
24813 | cat >conftest.$ac_ext <<_ACEOF | |
24814 | /* confdefs.h. */ | |
24815 | _ACEOF | |
24816 | cat confdefs.h >>conftest.$ac_ext | |
24817 | cat >>conftest.$ac_ext <<_ACEOF | |
24818 | /* end confdefs.h. */ | |
24819 | ||
24820 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24821 | #ifdef __cplusplus | |
24822 | extern "C" | |
24823 | #endif | |
24824 | /* We use char because int might match the return type of a gcc2 | |
24825 | builtin and then its argument prototype would still apply. */ | |
24826 | char gethostbyname (); | |
24827 | int | |
24828 | main () | |
24829 | { | |
24830 | gethostbyname (); | |
24831 | ; | |
24832 | return 0; | |
24833 | } | |
24834 | _ACEOF | |
24835 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
24837 | (eval $ac_link) 2>conftest.er1 |
24838 | ac_status=$? | |
24839 | grep -v '^ *+' conftest.er1 >conftest.err | |
24840 | rm -f conftest.er1 | |
24841 | cat conftest.err >&5 | |
24842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24843 | (exit $ac_status); } && | |
c228d3a4 RN |
24844 | { ac_try='test -z "$ac_c_werror_flag" |
24845 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24847 | (eval $ac_try) 2>&5 | |
24848 | ac_status=$? | |
24849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24850 | (exit $ac_status); }; } && | |
24851 | { ac_try='test -s conftest$ac_exeext' | |
24852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24853 | (eval $ac_try) 2>&5 | |
24854 | ac_status=$? | |
24855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24856 | (exit $ac_status); }; }; then | |
24857 | ac_cv_lib_nsl_gethostbyname=yes | |
24858 | else | |
24859 | echo "$as_me: failed program was:" >&5 | |
24860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24861 | ||
24862 | ac_cv_lib_nsl_gethostbyname=no | |
24863 | fi | |
24864 | rm -f conftest.err conftest.$ac_objext \ | |
24865 | conftest$ac_exeext conftest.$ac_ext | |
24866 | LIBS=$ac_check_lib_save_LIBS | |
24867 | fi | |
24868 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
24869 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
24870 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
24871 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
24872 | fi | |
24873 | ||
24874 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
24875 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
24876 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
24877 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
24878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24879 | else | |
24880 | ac_check_lib_save_LIBS=$LIBS | |
24881 | LIBS="-lbsd $LIBS" | |
24882 | cat >conftest.$ac_ext <<_ACEOF | |
24883 | /* confdefs.h. */ | |
24884 | _ACEOF | |
24885 | cat confdefs.h >>conftest.$ac_ext | |
24886 | cat >>conftest.$ac_ext <<_ACEOF | |
24887 | /* end confdefs.h. */ | |
24888 | ||
24889 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24890 | #ifdef __cplusplus | |
24891 | extern "C" | |
24892 | #endif | |
24893 | /* We use char because int might match the return type of a gcc2 | |
24894 | builtin and then its argument prototype would still apply. */ | |
24895 | char gethostbyname (); | |
24896 | int | |
24897 | main () | |
24898 | { | |
24899 | gethostbyname (); | |
24900 | ; | |
24901 | return 0; | |
24902 | } | |
24903 | _ACEOF | |
24904 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24905 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24906 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 24907 | ac_status=$? |
ac1cb8d3 VS |
24908 | grep -v '^ *+' conftest.er1 >conftest.err |
24909 | rm -f conftest.er1 | |
24910 | cat conftest.err >&5 | |
a848cd7e SC |
24911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24912 | (exit $ac_status); } && | |
c228d3a4 RN |
24913 | { ac_try='test -z "$ac_c_werror_flag" |
24914 | || test ! -s conftest.err' | |
a848cd7e SC |
24915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24916 | (eval $ac_try) 2>&5 | |
24917 | ac_status=$? | |
24918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
24919 | (exit $ac_status); }; } && |
24920 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24922 | (eval $ac_try) 2>&5 | |
24923 | ac_status=$? | |
24924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24925 | (exit $ac_status); }; }; then | |
24926 | ac_cv_lib_bsd_gethostbyname=yes | |
24927 | else | |
24928 | echo "$as_me: failed program was:" >&5 | |
24929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24930 | ||
24931 | ac_cv_lib_bsd_gethostbyname=no | |
24932 | fi | |
ac1cb8d3 VS |
24933 | rm -f conftest.err conftest.$ac_objext \ |
24934 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24935 | LIBS=$ac_check_lib_save_LIBS |
24936 | fi | |
24937 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
24938 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
24939 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
24940 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
24941 | fi | |
24942 | ||
24943 | fi | |
24944 | fi | |
24945 | ||
24946 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
24947 | # socket/setsockopt and other routines are undefined under SCO ODT | |
24948 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
24949 | # on later versions), says Simon Leinen: it contains gethostby* | |
24950 | # variants that don't use the name server (or something). -lsocket | |
24951 | # must be given before -lnsl if both are needed. We assume that | |
24952 | # if connect needs -lnsl, so does gethostbyname. | |
24953 | echo "$as_me:$LINENO: checking for connect" >&5 | |
24954 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
24955 | if test "${ac_cv_func_connect+set}" = set; then | |
24956 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24957 | else | |
24958 | cat >conftest.$ac_ext <<_ACEOF | |
24959 | /* confdefs.h. */ | |
24960 | _ACEOF | |
24961 | cat confdefs.h >>conftest.$ac_ext | |
24962 | cat >>conftest.$ac_ext <<_ACEOF | |
24963 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24964 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
24965 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24966 | #define connect innocuous_connect | |
24967 | ||
a848cd7e SC |
24968 | /* System header to define __stub macros and hopefully few prototypes, |
24969 | which can conflict with char connect (); below. | |
24970 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24971 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24972 | |
a848cd7e SC |
24973 | #ifdef __STDC__ |
24974 | # include <limits.h> | |
24975 | #else | |
24976 | # include <assert.h> | |
24977 | #endif | |
ac1cb8d3 VS |
24978 | |
24979 | #undef connect | |
24980 | ||
a848cd7e SC |
24981 | /* Override any gcc2 internal prototype to avoid an error. */ |
24982 | #ifdef __cplusplus | |
24983 | extern "C" | |
24984 | { | |
24985 | #endif | |
24986 | /* We use char because int might match the return type of a gcc2 | |
24987 | builtin and then its argument prototype would still apply. */ | |
24988 | char connect (); | |
24989 | /* The GNU C library defines this for functions which it implements | |
24990 | to always fail with ENOSYS. Some functions are actually named | |
24991 | something starting with __ and the normal name is an alias. */ | |
24992 | #if defined (__stub_connect) || defined (__stub___connect) | |
24993 | choke me | |
24994 | #else | |
24995 | char (*f) () = connect; | |
24996 | #endif | |
24997 | #ifdef __cplusplus | |
24998 | } | |
24999 | #endif | |
25000 | ||
25001 | int | |
25002 | main () | |
25003 | { | |
25004 | return f != connect; | |
25005 | ; | |
25006 | return 0; | |
25007 | } | |
25008 | _ACEOF | |
25009 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25010 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25011 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25012 | ac_status=$? |
ac1cb8d3 VS |
25013 | grep -v '^ *+' conftest.er1 >conftest.err |
25014 | rm -f conftest.er1 | |
25015 | cat conftest.err >&5 | |
a848cd7e SC |
25016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25017 | (exit $ac_status); } && | |
c228d3a4 RN |
25018 | { ac_try='test -z "$ac_c_werror_flag" |
25019 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25021 | (eval $ac_try) 2>&5 | |
25022 | ac_status=$? | |
25023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25024 | (exit $ac_status); }; } && | |
25025 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25027 | (eval $ac_try) 2>&5 | |
25028 | ac_status=$? | |
25029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25030 | (exit $ac_status); }; }; then | |
25031 | ac_cv_func_connect=yes | |
25032 | else | |
25033 | echo "$as_me: failed program was:" >&5 | |
25034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25035 | ||
25036 | ac_cv_func_connect=no | |
25037 | fi | |
ac1cb8d3 VS |
25038 | rm -f conftest.err conftest.$ac_objext \ |
25039 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25040 | fi |
25041 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
25042 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
25043 | ||
25044 | if test $ac_cv_func_connect = no; then | |
25045 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
25046 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
25047 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
25048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25049 | else | |
25050 | ac_check_lib_save_LIBS=$LIBS | |
25051 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
25052 | cat >conftest.$ac_ext <<_ACEOF | |
25053 | /* confdefs.h. */ | |
25054 | _ACEOF | |
25055 | cat confdefs.h >>conftest.$ac_ext | |
25056 | cat >>conftest.$ac_ext <<_ACEOF | |
25057 | /* end confdefs.h. */ | |
25058 | ||
25059 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25060 | #ifdef __cplusplus | |
25061 | extern "C" | |
25062 | #endif | |
25063 | /* We use char because int might match the return type of a gcc2 | |
25064 | builtin and then its argument prototype would still apply. */ | |
25065 | char connect (); | |
25066 | int | |
25067 | main () | |
25068 | { | |
25069 | connect (); | |
25070 | ; | |
25071 | return 0; | |
25072 | } | |
25073 | _ACEOF | |
25074 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25075 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25076 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25077 | ac_status=$? |
ac1cb8d3 VS |
25078 | grep -v '^ *+' conftest.er1 >conftest.err |
25079 | rm -f conftest.er1 | |
25080 | cat conftest.err >&5 | |
a848cd7e SC |
25081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25082 | (exit $ac_status); } && | |
c228d3a4 RN |
25083 | { ac_try='test -z "$ac_c_werror_flag" |
25084 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25086 | (eval $ac_try) 2>&5 | |
25087 | ac_status=$? | |
25088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25089 | (exit $ac_status); }; } && | |
25090 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25092 | (eval $ac_try) 2>&5 | |
25093 | ac_status=$? | |
25094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25095 | (exit $ac_status); }; }; then | |
25096 | ac_cv_lib_socket_connect=yes | |
25097 | else | |
25098 | echo "$as_me: failed program was:" >&5 | |
25099 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25100 | ||
25101 | ac_cv_lib_socket_connect=no | |
25102 | fi | |
ac1cb8d3 VS |
25103 | rm -f conftest.err conftest.$ac_objext \ |
25104 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25105 | LIBS=$ac_check_lib_save_LIBS |
25106 | fi | |
25107 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
25108 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
25109 | if test $ac_cv_lib_socket_connect = yes; then | |
25110 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
25111 | fi | |
25112 | ||
25113 | fi | |
25114 | ||
25115 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
25116 | echo "$as_me:$LINENO: checking for remove" >&5 | |
25117 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
25118 | if test "${ac_cv_func_remove+set}" = set; then | |
25119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25120 | else | |
25121 | cat >conftest.$ac_ext <<_ACEOF | |
25122 | /* confdefs.h. */ | |
25123 | _ACEOF | |
25124 | cat confdefs.h >>conftest.$ac_ext | |
25125 | cat >>conftest.$ac_ext <<_ACEOF | |
25126 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25127 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
25128 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25129 | #define remove innocuous_remove | |
25130 | ||
a848cd7e SC |
25131 | /* System header to define __stub macros and hopefully few prototypes, |
25132 | which can conflict with char remove (); below. | |
25133 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25134 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25135 | |
a848cd7e SC |
25136 | #ifdef __STDC__ |
25137 | # include <limits.h> | |
25138 | #else | |
25139 | # include <assert.h> | |
25140 | #endif | |
ac1cb8d3 VS |
25141 | |
25142 | #undef remove | |
25143 | ||
a848cd7e SC |
25144 | /* Override any gcc2 internal prototype to avoid an error. */ |
25145 | #ifdef __cplusplus | |
25146 | extern "C" | |
25147 | { | |
25148 | #endif | |
25149 | /* We use char because int might match the return type of a gcc2 | |
25150 | builtin and then its argument prototype would still apply. */ | |
25151 | char remove (); | |
25152 | /* The GNU C library defines this for functions which it implements | |
25153 | to always fail with ENOSYS. Some functions are actually named | |
25154 | something starting with __ and the normal name is an alias. */ | |
25155 | #if defined (__stub_remove) || defined (__stub___remove) | |
25156 | choke me | |
25157 | #else | |
25158 | char (*f) () = remove; | |
25159 | #endif | |
25160 | #ifdef __cplusplus | |
25161 | } | |
25162 | #endif | |
25163 | ||
25164 | int | |
25165 | main () | |
25166 | { | |
25167 | return f != remove; | |
25168 | ; | |
25169 | return 0; | |
25170 | } | |
25171 | _ACEOF | |
25172 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25173 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25174 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25175 | ac_status=$? |
ac1cb8d3 VS |
25176 | grep -v '^ *+' conftest.er1 >conftest.err |
25177 | rm -f conftest.er1 | |
25178 | cat conftest.err >&5 | |
a848cd7e SC |
25179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25180 | (exit $ac_status); } && | |
c228d3a4 RN |
25181 | { ac_try='test -z "$ac_c_werror_flag" |
25182 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25184 | (eval $ac_try) 2>&5 | |
25185 | ac_status=$? | |
25186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25187 | (exit $ac_status); }; } && | |
25188 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25190 | (eval $ac_try) 2>&5 | |
25191 | ac_status=$? | |
25192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25193 | (exit $ac_status); }; }; then | |
25194 | ac_cv_func_remove=yes | |
25195 | else | |
25196 | echo "$as_me: failed program was:" >&5 | |
25197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25198 | ||
25199 | ac_cv_func_remove=no | |
25200 | fi | |
ac1cb8d3 VS |
25201 | rm -f conftest.err conftest.$ac_objext \ |
25202 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25203 | fi |
25204 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
25205 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
25206 | ||
25207 | if test $ac_cv_func_remove = no; then | |
25208 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
25209 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
25210 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
25211 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25212 | else | |
25213 | ac_check_lib_save_LIBS=$LIBS | |
25214 | LIBS="-lposix $LIBS" | |
25215 | cat >conftest.$ac_ext <<_ACEOF | |
25216 | /* confdefs.h. */ | |
25217 | _ACEOF | |
25218 | cat confdefs.h >>conftest.$ac_ext | |
25219 | cat >>conftest.$ac_ext <<_ACEOF | |
25220 | /* end confdefs.h. */ | |
25221 | ||
25222 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25223 | #ifdef __cplusplus | |
25224 | extern "C" | |
25225 | #endif | |
25226 | /* We use char because int might match the return type of a gcc2 | |
25227 | builtin and then its argument prototype would still apply. */ | |
25228 | char remove (); | |
25229 | int | |
25230 | main () | |
25231 | { | |
25232 | remove (); | |
25233 | ; | |
25234 | return 0; | |
25235 | } | |
25236 | _ACEOF | |
25237 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25238 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25239 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25240 | ac_status=$? |
ac1cb8d3 VS |
25241 | grep -v '^ *+' conftest.er1 >conftest.err |
25242 | rm -f conftest.er1 | |
25243 | cat conftest.err >&5 | |
a848cd7e SC |
25244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25245 | (exit $ac_status); } && | |
c228d3a4 RN |
25246 | { ac_try='test -z "$ac_c_werror_flag" |
25247 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25249 | (eval $ac_try) 2>&5 | |
25250 | ac_status=$? | |
25251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25252 | (exit $ac_status); }; } && | |
25253 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25255 | (eval $ac_try) 2>&5 | |
25256 | ac_status=$? | |
25257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25258 | (exit $ac_status); }; }; then | |
25259 | ac_cv_lib_posix_remove=yes | |
25260 | else | |
25261 | echo "$as_me: failed program was:" >&5 | |
25262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25263 | ||
25264 | ac_cv_lib_posix_remove=no | |
25265 | fi | |
ac1cb8d3 VS |
25266 | rm -f conftest.err conftest.$ac_objext \ |
25267 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25268 | LIBS=$ac_check_lib_save_LIBS |
25269 | fi | |
25270 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
25271 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
25272 | if test $ac_cv_lib_posix_remove = yes; then | |
25273 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
25274 | fi | |
25275 | ||
25276 | fi | |
25277 | ||
25278 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
25279 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
25280 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
25281 | if test "${ac_cv_func_shmat+set}" = set; then | |
25282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25283 | else | |
25284 | cat >conftest.$ac_ext <<_ACEOF | |
25285 | /* confdefs.h. */ | |
25286 | _ACEOF | |
25287 | cat confdefs.h >>conftest.$ac_ext | |
25288 | cat >>conftest.$ac_ext <<_ACEOF | |
25289 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25290 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
25291 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25292 | #define shmat innocuous_shmat | |
25293 | ||
a848cd7e SC |
25294 | /* System header to define __stub macros and hopefully few prototypes, |
25295 | which can conflict with char shmat (); below. | |
25296 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25297 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25298 | |
a848cd7e SC |
25299 | #ifdef __STDC__ |
25300 | # include <limits.h> | |
25301 | #else | |
25302 | # include <assert.h> | |
25303 | #endif | |
ac1cb8d3 VS |
25304 | |
25305 | #undef shmat | |
25306 | ||
a848cd7e SC |
25307 | /* Override any gcc2 internal prototype to avoid an error. */ |
25308 | #ifdef __cplusplus | |
25309 | extern "C" | |
25310 | { | |
25311 | #endif | |
25312 | /* We use char because int might match the return type of a gcc2 | |
25313 | builtin and then its argument prototype would still apply. */ | |
25314 | char shmat (); | |
25315 | /* The GNU C library defines this for functions which it implements | |
25316 | to always fail with ENOSYS. Some functions are actually named | |
25317 | something starting with __ and the normal name is an alias. */ | |
25318 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
25319 | choke me | |
25320 | #else | |
25321 | char (*f) () = shmat; | |
25322 | #endif | |
25323 | #ifdef __cplusplus | |
25324 | } | |
25325 | #endif | |
25326 | ||
25327 | int | |
25328 | main () | |
25329 | { | |
25330 | return f != shmat; | |
25331 | ; | |
25332 | return 0; | |
25333 | } | |
25334 | _ACEOF | |
25335 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25336 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25337 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25338 | ac_status=$? |
ac1cb8d3 VS |
25339 | grep -v '^ *+' conftest.er1 >conftest.err |
25340 | rm -f conftest.er1 | |
25341 | cat conftest.err >&5 | |
a848cd7e SC |
25342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25343 | (exit $ac_status); } && | |
c228d3a4 RN |
25344 | { ac_try='test -z "$ac_c_werror_flag" |
25345 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25347 | (eval $ac_try) 2>&5 | |
25348 | ac_status=$? | |
25349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25350 | (exit $ac_status); }; } && | |
25351 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25353 | (eval $ac_try) 2>&5 | |
25354 | ac_status=$? | |
25355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25356 | (exit $ac_status); }; }; then | |
25357 | ac_cv_func_shmat=yes | |
25358 | else | |
25359 | echo "$as_me: failed program was:" >&5 | |
25360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25361 | ||
25362 | ac_cv_func_shmat=no | |
25363 | fi | |
ac1cb8d3 VS |
25364 | rm -f conftest.err conftest.$ac_objext \ |
25365 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25366 | fi |
25367 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
25368 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
25369 | ||
25370 | if test $ac_cv_func_shmat = no; then | |
25371 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
25372 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
25373 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
25374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25375 | else | |
25376 | ac_check_lib_save_LIBS=$LIBS | |
25377 | LIBS="-lipc $LIBS" | |
25378 | cat >conftest.$ac_ext <<_ACEOF | |
25379 | /* confdefs.h. */ | |
25380 | _ACEOF | |
25381 | cat confdefs.h >>conftest.$ac_ext | |
25382 | cat >>conftest.$ac_ext <<_ACEOF | |
25383 | /* end confdefs.h. */ | |
25384 | ||
25385 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25386 | #ifdef __cplusplus | |
25387 | extern "C" | |
25388 | #endif | |
25389 | /* We use char because int might match the return type of a gcc2 | |
25390 | builtin and then its argument prototype would still apply. */ | |
25391 | char shmat (); | |
25392 | int | |
25393 | main () | |
25394 | { | |
25395 | shmat (); | |
25396 | ; | |
25397 | return 0; | |
25398 | } | |
25399 | _ACEOF | |
25400 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25401 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25402 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25403 | ac_status=$? |
ac1cb8d3 VS |
25404 | grep -v '^ *+' conftest.er1 >conftest.err |
25405 | rm -f conftest.er1 | |
25406 | cat conftest.err >&5 | |
a848cd7e SC |
25407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25408 | (exit $ac_status); } && | |
c228d3a4 RN |
25409 | { ac_try='test -z "$ac_c_werror_flag" |
25410 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25412 | (eval $ac_try) 2>&5 | |
25413 | ac_status=$? | |
25414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25415 | (exit $ac_status); }; } && | |
25416 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25418 | (eval $ac_try) 2>&5 | |
25419 | ac_status=$? | |
25420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25421 | (exit $ac_status); }; }; then | |
25422 | ac_cv_lib_ipc_shmat=yes | |
25423 | else | |
25424 | echo "$as_me: failed program was:" >&5 | |
25425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25426 | ||
25427 | ac_cv_lib_ipc_shmat=no | |
25428 | fi | |
ac1cb8d3 VS |
25429 | rm -f conftest.err conftest.$ac_objext \ |
25430 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25431 | LIBS=$ac_check_lib_save_LIBS |
25432 | fi | |
25433 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
25434 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
25435 | if test $ac_cv_lib_ipc_shmat = yes; then | |
25436 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
25437 | fi | |
25438 | ||
25439 | fi | |
25440 | fi | |
25441 | ||
25442 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
25443 | ac_save_LDFLAGS=$LDFLAGS | |
25444 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
25445 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
25446 | # check for ICE first), but we must link in the order -lSM -lICE or | |
25447 | # we get undefined symbols. So assume we have SM if we have ICE. | |
25448 | # These have to be linked with before -lX11, unlike the other | |
25449 | # libraries we check for below, so use a different variable. | |
25450 | # John Interrante, Karl Berry | |
25451 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
25452 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
25453 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
25454 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25455 | else | |
25456 | ac_check_lib_save_LIBS=$LIBS | |
25457 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
25458 | cat >conftest.$ac_ext <<_ACEOF | |
25459 | /* confdefs.h. */ | |
25460 | _ACEOF | |
25461 | cat confdefs.h >>conftest.$ac_ext | |
25462 | cat >>conftest.$ac_ext <<_ACEOF | |
25463 | /* end confdefs.h. */ | |
25464 | ||
25465 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25466 | #ifdef __cplusplus | |
25467 | extern "C" | |
25468 | #endif | |
25469 | /* We use char because int might match the return type of a gcc2 | |
25470 | builtin and then its argument prototype would still apply. */ | |
25471 | char IceConnectionNumber (); | |
25472 | int | |
25473 | main () | |
25474 | { | |
25475 | IceConnectionNumber (); | |
25476 | ; | |
25477 | return 0; | |
25478 | } | |
25479 | _ACEOF | |
25480 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25481 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25482 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25483 | ac_status=$? |
ac1cb8d3 VS |
25484 | grep -v '^ *+' conftest.er1 >conftest.err |
25485 | rm -f conftest.er1 | |
25486 | cat conftest.err >&5 | |
a848cd7e SC |
25487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25488 | (exit $ac_status); } && | |
c228d3a4 RN |
25489 | { ac_try='test -z "$ac_c_werror_flag" |
25490 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25492 | (eval $ac_try) 2>&5 | |
25493 | ac_status=$? | |
25494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25495 | (exit $ac_status); }; } && | |
25496 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25498 | (eval $ac_try) 2>&5 | |
25499 | ac_status=$? | |
25500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25501 | (exit $ac_status); }; }; then | |
25502 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
25503 | else | |
25504 | echo "$as_me: failed program was:" >&5 | |
25505 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25506 | ||
25507 | ac_cv_lib_ICE_IceConnectionNumber=no | |
25508 | fi | |
ac1cb8d3 VS |
25509 | rm -f conftest.err conftest.$ac_objext \ |
25510 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25511 | LIBS=$ac_check_lib_save_LIBS |
25512 | fi | |
25513 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
25514 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
25515 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
25516 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
25517 | fi | |
25518 | ||
25519 | LDFLAGS=$ac_save_LDFLAGS | |
25520 | ||
25521 | fi | |
25522 | ||
25523 | ||
25524 | if test "$no_x" = "yes"; then | |
25525 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 | |
25526 | echo "$as_me: error: X11 not found" >&2;} | |
25527 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
25528 | fi | |
25529 | ||
74b84332 VS |
25530 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
25531 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
25532 | AFMINSTALL=afminstall |
25533 | COMPILED_X_PROGRAM=0 | |
25534 | ||
74b84332 VS |
25535 | fi |
25536 | ||
25537 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
25538 | if test "$wxUSE_NANOX" = "yes"; then |
25539 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
25540 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
25541 | if test "x$MICROWIN" = x ; then | |
25542 | echo "$as_me:$LINENO: result: not found" >&5 | |
25543 | echo "${ECHO_T}not found" >&6 | |
25544 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
25545 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
25546 | { (exit 1); exit 1; }; } | |
25547 | else | |
25548 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
25549 | echo "${ECHO_T}$MICROWIN" >&6 | |
25550 | cat >>confdefs.h <<\_ACEOF | |
25551 | #define wxUSE_NANOX 1 | |
25552 | _ACEOF | |
25553 | ||
25554 | fi | |
25555 | fi | |
25556 | ||
25557 | if test "$wxUSE_UNICODE" = "yes"; then | |
25558 | ||
25559 | succeeded=no | |
25560 | ||
25561 | if test -z "$PKG_CONFIG"; then | |
25562 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25563 | set dummy pkg-config; ac_word=$2 | |
25564 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25565 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25566 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25568 | else | |
25569 | case $PKG_CONFIG in | |
25570 | [\\/]* | ?:[\\/]*) | |
25571 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25572 | ;; | |
25573 | *) | |
25574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25575 | for as_dir in $PATH | |
25576 | do | |
25577 | IFS=$as_save_IFS | |
25578 | test -z "$as_dir" && as_dir=. | |
25579 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25580 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25581 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25582 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25583 | break 2 | |
25584 | fi | |
25585 | done | |
25586 | done | |
25587 | ||
25588 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25589 | ;; | |
25590 | esac | |
25591 | fi | |
25592 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25593 | ||
25594 | if test -n "$PKG_CONFIG"; then | |
25595 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25596 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25597 | else | |
25598 | echo "$as_me:$LINENO: result: no" >&5 | |
25599 | echo "${ECHO_T}no" >&6 | |
25600 | fi | |
25601 | ||
25602 | fi | |
25603 | ||
25604 | if test "$PKG_CONFIG" = "no" ; then | |
25605 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25606 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25607 | echo "*** to the full path to pkg-config." | |
25608 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25609 | else | |
25610 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25611 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25612 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
25613 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
25614 | ||
25615 | if $PKG_CONFIG --exists "pangox" ; then | |
25616 | echo "$as_me:$LINENO: result: yes" >&5 | |
25617 | echo "${ECHO_T}yes" >&6 | |
25618 | succeeded=yes | |
25619 | ||
25620 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
25621 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
25622 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
25623 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
25624 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
25625 | ||
25626 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
25627 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
25628 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
25629 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
25630 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
25631 | else | |
25632 | PANGOX_CFLAGS="" | |
25633 | PANGOX_LIBS="" | |
25634 | ## If we have a custom action on failure, don't print errors, but | |
25635 | ## do set a variable so people can do so. | |
25636 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
25637 | ||
25638 | fi | |
25639 | ||
25640 | ||
25641 | ||
25642 | else | |
25643 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25644 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25645 | fi | |
25646 | fi | |
25647 | ||
25648 | if test $succeeded = yes; then | |
25649 | ||
25650 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
25651 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
25652 | ||
25653 | else | |
25654 | ||
25655 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
25656 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
25657 | { (exit 1); exit 1; }; } | |
25658 | ||
25659 | ||
25660 | fi | |
25661 | ||
25662 | ||
25663 | succeeded=no | |
25664 | ||
25665 | if test -z "$PKG_CONFIG"; then | |
25666 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25667 | set dummy pkg-config; ac_word=$2 | |
25668 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25669 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25670 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25672 | else | |
25673 | case $PKG_CONFIG in | |
25674 | [\\/]* | ?:[\\/]*) | |
25675 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25676 | ;; | |
25677 | *) | |
25678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25679 | for as_dir in $PATH | |
25680 | do | |
25681 | IFS=$as_save_IFS | |
25682 | test -z "$as_dir" && as_dir=. | |
25683 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25684 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25685 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25686 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25687 | break 2 | |
25688 | fi | |
25689 | done | |
25690 | done | |
25691 | ||
25692 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25693 | ;; | |
25694 | esac | |
25695 | fi | |
25696 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25697 | ||
25698 | if test -n "$PKG_CONFIG"; then | |
25699 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25700 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25701 | else | |
25702 | echo "$as_me:$LINENO: result: no" >&5 | |
25703 | echo "${ECHO_T}no" >&6 | |
25704 | fi | |
25705 | ||
25706 | fi | |
25707 | ||
25708 | if test "$PKG_CONFIG" = "no" ; then | |
25709 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25710 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25711 | echo "*** to the full path to pkg-config." | |
25712 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25713 | else | |
25714 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25715 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25716 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
25717 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
25718 | ||
25719 | if $PKG_CONFIG --exists "pangoft2" ; then | |
25720 | echo "$as_me:$LINENO: result: yes" >&5 | |
25721 | echo "${ECHO_T}yes" >&6 | |
25722 | succeeded=yes | |
25723 | ||
25724 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
25725 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
25726 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
25727 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
25728 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
25729 | ||
25730 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
25731 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
25732 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
25733 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
25734 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
25735 | else | |
25736 | PANGOFT2_CFLAGS="" | |
25737 | PANGOFT2_LIBS="" | |
25738 | ## If we have a custom action on failure, don't print errors, but | |
25739 | ## do set a variable so people can do so. | |
25740 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
25741 | ||
25742 | fi | |
25743 | ||
25744 | ||
25745 | ||
25746 | else | |
25747 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25748 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25749 | fi | |
25750 | fi | |
25751 | ||
25752 | if test $succeeded = yes; then | |
25753 | ||
25754 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
25755 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
25756 | ||
25757 | else | |
25758 | ||
25759 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
25760 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
25761 | wxUSE_PRINTING_ARCHITECTURE="no" | |
25762 | ||
25763 | ||
25764 | fi | |
25765 | ||
25766 | ||
25767 | succeeded=no | |
25768 | ||
25769 | if test -z "$PKG_CONFIG"; then | |
25770 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25771 | set dummy pkg-config; ac_word=$2 | |
25772 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25773 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25774 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25776 | else | |
25777 | case $PKG_CONFIG in | |
25778 | [\\/]* | ?:[\\/]*) | |
25779 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25780 | ;; | |
25781 | *) | |
25782 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25783 | for as_dir in $PATH | |
25784 | do | |
25785 | IFS=$as_save_IFS | |
25786 | test -z "$as_dir" && as_dir=. | |
25787 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25788 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25789 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25790 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25791 | break 2 | |
25792 | fi | |
25793 | done | |
25794 | done | |
25795 | ||
25796 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25797 | ;; | |
25798 | esac | |
25799 | fi | |
25800 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25801 | ||
25802 | if test -n "$PKG_CONFIG"; then | |
25803 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25804 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25805 | else | |
25806 | echo "$as_me:$LINENO: result: no" >&5 | |
25807 | echo "${ECHO_T}no" >&6 | |
25808 | fi | |
25809 | ||
25810 | fi | |
25811 | ||
25812 | if test "$PKG_CONFIG" = "no" ; then | |
25813 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25814 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25815 | echo "*** to the full path to pkg-config." | |
25816 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25817 | else | |
25818 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25819 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25820 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
25821 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
25822 | ||
25823 | if $PKG_CONFIG --exists "pangoxft" ; then | |
25824 | echo "$as_me:$LINENO: result: yes" >&5 | |
25825 | echo "${ECHO_T}yes" >&6 | |
25826 | succeeded=yes | |
25827 | ||
25828 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
25829 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
25830 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
25831 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
25832 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
25833 | ||
25834 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
25835 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
25836 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
25837 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
25838 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
25839 | else | |
25840 | PANGOXFT_CFLAGS="" | |
25841 | PANGOXFT_LIBS="" | |
25842 | ## If we have a custom action on failure, don't print errors, but | |
25843 | ## do set a variable so people can do so. | |
25844 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
25845 | ||
25846 | fi | |
25847 | ||
25848 | ||
25849 | ||
25850 | else | |
25851 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25852 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25853 | fi | |
25854 | fi | |
25855 | ||
25856 | if test $succeeded = yes; then | |
25857 | ||
25858 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" | |
25859 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
25860 | ||
25861 | else | |
25862 | ||
25863 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
25864 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
25865 | ||
25866 | ||
25867 | fi | |
25868 | ||
304205f1 VS |
25869 | save_CFLAGS="$CFLAGS" |
25870 | save_LIBS="$LIBS" | |
25871 | CFLAGS="$CFLAGS $PANGOX_CFLAGS" | |
25872 | LIBS="$LIBS $PANGOX_LIBS" | |
25873 | ||
25874 | for ac_func in pango_font_family_is_monospace | |
25875 | do | |
25876 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25877 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25878 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25879 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25881 | else | |
25882 | cat >conftest.$ac_ext <<_ACEOF | |
25883 | /* confdefs.h. */ | |
25884 | _ACEOF | |
25885 | cat confdefs.h >>conftest.$ac_ext | |
25886 | cat >>conftest.$ac_ext <<_ACEOF | |
25887 | /* end confdefs.h. */ | |
25888 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
25889 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25890 | #define $ac_func innocuous_$ac_func | |
25891 | ||
25892 | /* System header to define __stub macros and hopefully few prototypes, | |
25893 | which can conflict with char $ac_func (); below. | |
25894 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25895 | <limits.h> exists even on freestanding compilers. */ | |
25896 | ||
25897 | #ifdef __STDC__ | |
25898 | # include <limits.h> | |
25899 | #else | |
25900 | # include <assert.h> | |
25901 | #endif | |
25902 | ||
25903 | #undef $ac_func | |
25904 | ||
25905 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25906 | #ifdef __cplusplus | |
25907 | extern "C" | |
25908 | { | |
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 $ac_func (); | |
25913 | /* The GNU C library defines this for functions which it implements | |
25914 | to always fail with ENOSYS. Some functions are actually named | |
25915 | something starting with __ and the normal name is an alias. */ | |
25916 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25917 | choke me | |
25918 | #else | |
25919 | char (*f) () = $ac_func; | |
25920 | #endif | |
25921 | #ifdef __cplusplus | |
25922 | } | |
25923 | #endif | |
25924 | ||
25925 | int | |
25926 | main () | |
25927 | { | |
25928 | return f != $ac_func; | |
25929 | ; | |
25930 | return 0; | |
25931 | } | |
25932 | _ACEOF | |
25933 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25934 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25935 | (eval $ac_link) 2>conftest.er1 | |
25936 | ac_status=$? | |
25937 | grep -v '^ *+' conftest.er1 >conftest.err | |
25938 | rm -f conftest.er1 | |
25939 | cat conftest.err >&5 | |
25940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25941 | (exit $ac_status); } && | |
c228d3a4 RN |
25942 | { ac_try='test -z "$ac_c_werror_flag" |
25943 | || test ! -s conftest.err' | |
304205f1 VS |
25944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25945 | (eval $ac_try) 2>&5 | |
25946 | ac_status=$? | |
25947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25948 | (exit $ac_status); }; } && | |
25949 | { ac_try='test -s conftest$ac_exeext' | |
25950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25951 | (eval $ac_try) 2>&5 | |
25952 | ac_status=$? | |
25953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25954 | (exit $ac_status); }; }; then | |
25955 | eval "$as_ac_var=yes" | |
25956 | else | |
25957 | echo "$as_me: failed program was:" >&5 | |
25958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25959 | ||
25960 | eval "$as_ac_var=no" | |
25961 | fi | |
25962 | rm -f conftest.err conftest.$ac_objext \ | |
25963 | conftest$ac_exeext conftest.$ac_ext | |
25964 | fi | |
25965 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25966 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25967 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25968 | cat >>confdefs.h <<_ACEOF | |
25969 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25970 | _ACEOF | |
25971 | ||
25972 | fi | |
25973 | done | |
25974 | ||
25975 | CFLAGS="$save_CFLAGS" | |
25976 | LIBS="$save_LIBS" | |
a848cd7e SC |
25977 | fi |
25978 | ||
25979 | wxUSE_UNIVERSAL="yes" | |
25980 | ||
25981 | if test "$wxUSE_NANOX" = "yes"; then | |
25982 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
25983 | 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" | |
25984 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
25985 | else | |
25986 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
25987 | fi | |
25988 | ||
a848cd7e SC |
25989 | TOOLKIT=X11 |
25990 | GUIDIST=X11_DIST | |
25991 | fi | |
25992 | ||
25993 | if test "$wxUSE_MOTIF" = 1; then | |
74b84332 VS |
25994 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
25995 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 25996 | |
74b84332 VS |
25997 | ac_find_includes= |
25998 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
25999 | do | |
26000 | if test -f "$ac_dir/Xm/Xm.h"; then | |
26001 | ac_find_includes=$ac_dir | |
26002 | break | |
26003 | fi | |
26004 | done | |
a848cd7e | 26005 | |
74b84332 VS |
26006 | if test "$ac_find_includes" != "" ; then |
26007 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
26008 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
26009 | ||
26010 | if test "x$ac_find_includes" = "x/usr/include"; then | |
26011 | ac_path_to_include="" | |
26012 | else | |
26013 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
26014 | result=$? | |
26015 | if test $result = 0; then | |
26016 | ac_path_to_include="" | |
26017 | else | |
26018 | ac_path_to_include=" -I$ac_find_includes" | |
26019 | fi | |
a848cd7e SC |
26020 | fi |
26021 | ||
74b84332 VS |
26022 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
26023 | else | |
26024 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
26025 | /* confdefs.h. */ |
26026 | _ACEOF | |
26027 | cat confdefs.h >>conftest.$ac_ext | |
26028 | cat >>conftest.$ac_ext <<_ACEOF | |
26029 | /* end confdefs.h. */ | |
26030 | ||
74b84332 VS |
26031 | #include <Xm/Xm.h> |
26032 | ||
a848cd7e SC |
26033 | int |
26034 | main () | |
26035 | { | |
26036 | ||
74b84332 VS |
26037 | int version; |
26038 | version = xmUseVersion; | |
26039 | ||
a848cd7e SC |
26040 | ; |
26041 | return 0; | |
26042 | } | |
26043 | _ACEOF | |
74b84332 VS |
26044 | rm -f conftest.$ac_objext |
26045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26046 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 26047 | ac_status=$? |
ac1cb8d3 VS |
26048 | grep -v '^ *+' conftest.er1 >conftest.err |
26049 | rm -f conftest.er1 | |
26050 | cat conftest.err >&5 | |
a848cd7e SC |
26051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26052 | (exit $ac_status); } && | |
c228d3a4 RN |
26053 | { ac_try='test -z "$ac_c_werror_flag" |
26054 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26056 | (eval $ac_try) 2>&5 | |
26057 | ac_status=$? | |
26058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26059 | (exit $ac_status); }; } && | |
74b84332 | 26060 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
26061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26062 | (eval $ac_try) 2>&5 | |
26063 | ac_status=$? | |
26064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26065 | (exit $ac_status); }; }; then | |
74b84332 VS |
26066 | |
26067 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
26068 | echo "${ECHO_T}found in default search path" >&6 | |
26069 | COMPILED_X_PROGRAM=1 | |
26070 | ||
a848cd7e SC |
26071 | else |
26072 | echo "$as_me: failed program was:" >&5 | |
26073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26074 | ||
a848cd7e | 26075 | |
74b84332 VS |
26076 | echo "$as_me:$LINENO: result: no" >&5 |
26077 | echo "${ECHO_T}no" >&6 | |
26078 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
26079 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
26080 | { (exit 1); exit 1; }; } | |
a848cd7e | 26081 | |
a848cd7e | 26082 | |
a848cd7e | 26083 | fi |
74b84332 VS |
26084 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
26085 | fi | |
26086 | ||
26087 | if test "$COMPILED_X_PROGRAM" = 0; then | |
26088 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
26089 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
26090 | ||
26091 | ac_find_libraries= | |
26092 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26093 | do | |
26094 | for ac_extension in a so sl dylib; do | |
26095 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
26096 | ac_find_libraries=$ac_dir | |
26097 | break 2 | |
a848cd7e | 26098 | fi |
74b84332 VS |
26099 | done |
26100 | done | |
a848cd7e | 26101 | |
74b84332 VS |
26102 | if test "$ac_find_libraries" != "" ; then |
26103 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
26104 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
a848cd7e | 26105 | |
74b84332 VS |
26106 | |
26107 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
26108 | result=$? | |
26109 | if test $result = 0; then | |
26110 | ac_path_to_link="" | |
a848cd7e | 26111 | else |
74b84332 VS |
26112 | ac_path_to_link=" -L$ac_find_libraries" |
26113 | fi | |
26114 | ||
26115 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
26116 | else | |
26117 | save_CFLAGS=$CFLAGS | |
26118 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26119 | ||
26120 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
26121 | /* confdefs.h. */ |
26122 | _ACEOF | |
26123 | cat confdefs.h >>conftest.$ac_ext | |
26124 | cat >>conftest.$ac_ext <<_ACEOF | |
26125 | /* end confdefs.h. */ | |
26126 | ||
74b84332 VS |
26127 | #include <Xm/Xm.h> |
26128 | ||
a848cd7e SC |
26129 | int |
26130 | main () | |
26131 | { | |
74b84332 VS |
26132 | |
26133 | int version; | |
26134 | version = xmUseVersion; | |
26135 | ||
a848cd7e SC |
26136 | ; |
26137 | return 0; | |
26138 | } | |
26139 | _ACEOF | |
74b84332 VS |
26140 | rm -f conftest.$ac_objext |
26141 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26142 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 26143 | ac_status=$? |
ac1cb8d3 VS |
26144 | grep -v '^ *+' conftest.er1 >conftest.err |
26145 | rm -f conftest.er1 | |
26146 | cat conftest.err >&5 | |
a848cd7e SC |
26147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26148 | (exit $ac_status); } && | |
c228d3a4 RN |
26149 | { ac_try='test -z "$ac_c_werror_flag" |
26150 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26152 | (eval $ac_try) 2>&5 | |
26153 | ac_status=$? | |
26154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26155 | (exit $ac_status); }; } && | |
74b84332 | 26156 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
26157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26158 | (eval $ac_try) 2>&5 | |
26159 | ac_status=$? | |
26160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26161 | (exit $ac_status); }; }; then | |
74b84332 VS |
26162 | |
26163 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
26164 | echo "${ECHO_T}found in default search path" >&6 | |
26165 | COMPILED_X_PROGRAM=1 | |
26166 | ||
a848cd7e SC |
26167 | else |
26168 | echo "$as_me: failed program was:" >&5 | |
26169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26170 | ||
74b84332 VS |
26171 | |
26172 | echo "$as_me:$LINENO: result: no" >&5 | |
26173 | echo "${ECHO_T}no" >&6 | |
26174 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
26175 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
26176 | { (exit 1); exit 1; }; } | |
26177 | ||
26178 | ||
26179 | fi | |
26180 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26181 | ||
26182 | CFLAGS=$save_CFLAGS | |
26183 | fi | |
26184 | fi | |
26185 | ||
26186 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
26187 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
26188 | libp_link="" | |
26189 | libsm_ice_link="" | |
26190 | libs_found=0 | |
26191 | for libp in "" " -lXp"; do | |
26192 | if test "$libs_found" = "0"; then | |
26193 | for libsm_ice in "" " -lSM -lICE"; do | |
26194 | if test "$libs_found" = "0"; then | |
26195 | save_LIBS="$LIBS" | |
26196 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
26197 | save_CFLAGS=$CFLAGS | |
26198 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26199 | ||
26200 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
26201 | /* confdefs.h. */ |
26202 | _ACEOF | |
26203 | cat confdefs.h >>conftest.$ac_ext | |
26204 | cat >>conftest.$ac_ext <<_ACEOF | |
26205 | /* end confdefs.h. */ | |
26206 | ||
74b84332 VS |
26207 | #include <Xm/Xm.h> |
26208 | #include <Xm/List.h> | |
26209 | ||
a848cd7e SC |
26210 | int |
26211 | main () | |
26212 | { | |
74b84332 VS |
26213 | |
26214 | XmString string = NULL; | |
26215 | Widget w = NULL; | |
26216 | int position = 0; | |
26217 | XmListAddItem(w, string, position); | |
26218 | ||
a848cd7e SC |
26219 | ; |
26220 | return 0; | |
26221 | } | |
26222 | _ACEOF | |
26223 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26224 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26225 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26226 | ac_status=$? |
ac1cb8d3 VS |
26227 | grep -v '^ *+' conftest.er1 >conftest.err |
26228 | rm -f conftest.er1 | |
26229 | cat conftest.err >&5 | |
a848cd7e SC |
26230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26231 | (exit $ac_status); } && | |
c228d3a4 RN |
26232 | { ac_try='test -z "$ac_c_werror_flag" |
26233 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26235 | (eval $ac_try) 2>&5 | |
26236 | ac_status=$? | |
26237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26238 | (exit $ac_status); }; } && | |
26239 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26241 | (eval $ac_try) 2>&5 | |
26242 | ac_status=$? | |
26243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26244 | (exit $ac_status); }; }; then | |
26245 | ||
26246 | libp_link="$libp" | |
26247 | libsm_ice_link="$libsm_ice" | |
26248 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
26249 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
26250 | libs_found=1 | |
26251 | ||
26252 | else | |
26253 | echo "$as_me: failed program was:" >&5 | |
26254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26255 | ||
26256 | ||
26257 | ||
26258 | fi | |
ac1cb8d3 VS |
26259 | rm -f conftest.err conftest.$ac_objext \ |
26260 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26261 | |
26262 | LIBS="$save_LIBS" | |
26263 | CFLAGS=$save_CFLAGS | |
26264 | fi | |
26265 | done | |
26266 | fi | |
26267 | done | |
26268 | ||
26269 | if test "$libs_found" = "0"; then | |
26270 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
26271 | echo "${ECHO_T}can't find the right libraries" >&6 | |
26272 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
26273 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
26274 | { (exit 1); exit 1; }; } | |
26275 | fi | |
26276 | ||
26277 | save_CFLAGS=$CFLAGS | |
26278 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26279 | echo "$as_me:$LINENO: checking for Motif 2" >&5 | |
26280 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
26281 | cat >conftest.$ac_ext <<_ACEOF | |
26282 | /* confdefs.h. */ | |
26283 | _ACEOF | |
26284 | cat confdefs.h >>conftest.$ac_ext | |
26285 | cat >>conftest.$ac_ext <<_ACEOF | |
26286 | /* end confdefs.h. */ | |
26287 | ||
26288 | #include <Xm/Xm.h> | |
26289 | ||
26290 | int | |
26291 | main () | |
26292 | { | |
26293 | ||
26294 | #if XmVersion < 2000 | |
26295 | #error "Not Motif 2" | |
26296 | #endif | |
26297 | ||
26298 | ; | |
26299 | return 0; | |
26300 | } | |
26301 | _ACEOF | |
26302 | rm -f conftest.$ac_objext | |
26303 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26304 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26305 | ac_status=$? |
ac1cb8d3 VS |
26306 | grep -v '^ *+' conftest.er1 >conftest.err |
26307 | rm -f conftest.er1 | |
26308 | cat conftest.err >&5 | |
a848cd7e SC |
26309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26310 | (exit $ac_status); } && | |
c228d3a4 RN |
26311 | { ac_try='test -z "$ac_c_werror_flag" |
26312 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26314 | (eval $ac_try) 2>&5 | |
26315 | ac_status=$? | |
26316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26317 | (exit $ac_status); }; } && | |
26318 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26320 | (eval $ac_try) 2>&5 | |
26321 | ac_status=$? | |
26322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26323 | (exit $ac_status); }; }; then | |
26324 | ||
26325 | cat >>confdefs.h <<\_ACEOF | |
26326 | #define __WXMOTIF20__ 1 | |
26327 | _ACEOF | |
26328 | ||
26329 | echo "$as_me:$LINENO: result: found" >&5 | |
26330 | echo "${ECHO_T}found" >&6 | |
26331 | ||
26332 | else | |
26333 | echo "$as_me: failed program was:" >&5 | |
26334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26335 | ||
26336 | ||
26337 | cat >>confdefs.h <<\_ACEOF | |
26338 | #define __WXMOTIF20__ 0 | |
26339 | _ACEOF | |
26340 | ||
26341 | echo "$as_me:$LINENO: result: not found" >&5 | |
26342 | echo "${ECHO_T}not found" >&6 | |
26343 | ||
26344 | fi | |
ac1cb8d3 | 26345 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26346 | CFLAGS=$save_CFLAGS |
26347 | ||
26348 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
a848cd7e SC |
26349 | TOOLKIT=MOTIF |
26350 | GUIDIST=MOTIF_DIST | |
26351 | fi | |
26352 | ||
74b84332 | 26353 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
26354 | if test "$wxUSE_LIBXPM" = "sys"; then |
26355 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
26356 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
26357 | ||
26358 | ac_find_libraries= | |
26359 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26360 | do | |
26361 | for ac_extension in a so sl dylib; do | |
26362 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
26363 | ac_find_libraries=$ac_dir | |
26364 | break 2 | |
26365 | fi | |
26366 | done | |
26367 | done | |
26368 | ||
26369 | if test "$ac_find_libraries" != "" ; then | |
26370 | ||
26371 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
26372 | result=$? | |
26373 | if test $result = 0; then | |
26374 | ac_path_to_link="" | |
26375 | else | |
26376 | ac_path_to_link=" -L$ac_find_libraries" | |
26377 | fi | |
26378 | ||
26379 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
26380 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
26381 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
26382 | ||
26383 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
26384 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
26385 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
26386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26387 | else | |
26388 | ||
26389 | save_CFLAGS=$CFLAGS | |
26390 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26391 | ||
26392 | cat >conftest.$ac_ext <<_ACEOF | |
26393 | /* confdefs.h. */ | |
26394 | _ACEOF | |
26395 | cat confdefs.h >>conftest.$ac_ext | |
26396 | cat >>conftest.$ac_ext <<_ACEOF | |
26397 | /* end confdefs.h. */ | |
26398 | ||
26399 | #include <X11/xpm.h> | |
26400 | ||
26401 | int | |
26402 | main () | |
26403 | { | |
26404 | ||
26405 | int version; | |
26406 | version = XpmLibraryVersion(); | |
26407 | ||
26408 | ; | |
26409 | return 0; | |
26410 | } | |
26411 | _ACEOF | |
26412 | rm -f conftest.$ac_objext | |
26413 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26414 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26415 | ac_status=$? |
ac1cb8d3 VS |
26416 | grep -v '^ *+' conftest.er1 >conftest.err |
26417 | rm -f conftest.er1 | |
26418 | cat conftest.err >&5 | |
a848cd7e SC |
26419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26420 | (exit $ac_status); } && | |
c228d3a4 RN |
26421 | { ac_try='test -z "$ac_c_werror_flag" |
26422 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26424 | (eval $ac_try) 2>&5 | |
26425 | ac_status=$? | |
26426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26427 | (exit $ac_status); }; } && | |
26428 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26430 | (eval $ac_try) 2>&5 | |
26431 | ac_status=$? | |
26432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26433 | (exit $ac_status); }; }; then | |
26434 | wx_cv_x11_xpm_h=yes | |
26435 | else | |
26436 | echo "$as_me: failed program was:" >&5 | |
26437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26438 | ||
26439 | wx_cv_x11_xpm_h=no | |
26440 | ||
26441 | fi | |
ac1cb8d3 | 26442 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26443 | |
26444 | CFLAGS=$save_CFLAGS | |
26445 | ||
26446 | ||
26447 | fi | |
26448 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
26449 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
26450 | ||
26451 | if test $wx_cv_x11_xpm_h = "yes"; then | |
26452 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
26453 | cat >>confdefs.h <<\_ACEOF | |
26454 | #define wxHAVE_LIB_XPM 1 | |
26455 | _ACEOF | |
26456 | ||
26457 | else | |
26458 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
26459 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
26460 | fi | |
26461 | fi | |
26462 | ||
26463 | fi | |
26464 | ||
26465 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
26466 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
26467 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
26468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26469 | else | |
26470 | ac_check_lib_save_LIBS=$LIBS | |
26471 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
26472 | cat >conftest.$ac_ext <<_ACEOF | |
26473 | /* confdefs.h. */ | |
26474 | _ACEOF | |
26475 | cat confdefs.h >>conftest.$ac_ext | |
26476 | cat >>conftest.$ac_ext <<_ACEOF | |
26477 | /* end confdefs.h. */ | |
26478 | ||
26479 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26480 | #ifdef __cplusplus | |
26481 | extern "C" | |
26482 | #endif | |
26483 | /* We use char because int might match the return type of a gcc2 | |
26484 | builtin and then its argument prototype would still apply. */ | |
26485 | char XShapeQueryExtension (); | |
26486 | int | |
26487 | main () | |
26488 | { | |
26489 | XShapeQueryExtension (); | |
26490 | ; | |
26491 | return 0; | |
26492 | } | |
26493 | _ACEOF | |
26494 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26495 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26496 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26497 | ac_status=$? |
ac1cb8d3 VS |
26498 | grep -v '^ *+' conftest.er1 >conftest.err |
26499 | rm -f conftest.er1 | |
26500 | cat conftest.err >&5 | |
a848cd7e SC |
26501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26502 | (exit $ac_status); } && | |
c228d3a4 RN |
26503 | { ac_try='test -z "$ac_c_werror_flag" |
26504 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26506 | (eval $ac_try) 2>&5 | |
26507 | ac_status=$? | |
26508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26509 | (exit $ac_status); }; } && | |
26510 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26512 | (eval $ac_try) 2>&5 | |
26513 | ac_status=$? | |
26514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26515 | (exit $ac_status); }; }; then | |
26516 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
26517 | else | |
26518 | echo "$as_me: failed program was:" >&5 | |
26519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26520 | ||
26521 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
26522 | fi | |
ac1cb8d3 VS |
26523 | rm -f conftest.err conftest.$ac_objext \ |
26524 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26525 | LIBS=$ac_check_lib_save_LIBS |
26526 | fi | |
26527 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
26528 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
26529 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
26530 | ||
26531 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
26532 | wxHAVE_XEXT_LIB=1 | |
26533 | ||
26534 | fi | |
26535 | ||
26536 | ||
26537 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
26538 | save_CFLAGS="$CFLAGS" | |
26539 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26540 | ||
26541 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
26542 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
26543 | cat >conftest.$ac_ext <<_ACEOF | |
26544 | /* confdefs.h. */ | |
26545 | _ACEOF | |
26546 | cat confdefs.h >>conftest.$ac_ext | |
26547 | cat >>conftest.$ac_ext <<_ACEOF | |
26548 | /* end confdefs.h. */ | |
26549 | ||
26550 | #include <X11/Xlib.h> | |
26551 | #include <X11/extensions/shape.h> | |
26552 | ||
26553 | int | |
26554 | main () | |
26555 | { | |
26556 | ||
26557 | int dummy1, dummy2; | |
26558 | XShapeQueryExtension((Display*)NULL, | |
26559 | (int*)NULL, (int*)NULL); | |
26560 | ||
26561 | ; | |
26562 | return 0; | |
26563 | } | |
26564 | _ACEOF | |
26565 | rm -f conftest.$ac_objext | |
26566 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26567 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26568 | ac_status=$? |
ac1cb8d3 VS |
26569 | grep -v '^ *+' conftest.er1 >conftest.err |
26570 | rm -f conftest.er1 | |
26571 | cat conftest.err >&5 | |
a848cd7e SC |
26572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26573 | (exit $ac_status); } && | |
c228d3a4 RN |
26574 | { ac_try='test -z "$ac_c_werror_flag" |
26575 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26577 | (eval $ac_try) 2>&5 | |
26578 | ac_status=$? | |
26579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26580 | (exit $ac_status); }; } && | |
26581 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26583 | (eval $ac_try) 2>&5 | |
26584 | ac_status=$? | |
26585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26586 | (exit $ac_status); }; }; then | |
26587 | ||
26588 | cat >>confdefs.h <<\_ACEOF | |
26589 | #define HAVE_XSHAPE 1 | |
26590 | _ACEOF | |
26591 | ||
26592 | echo "$as_me:$LINENO: result: found" >&5 | |
26593 | echo "${ECHO_T}found" >&6 | |
26594 | ||
26595 | else | |
26596 | echo "$as_me: failed program was:" >&5 | |
26597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26598 | ||
26599 | ||
26600 | echo "$as_me:$LINENO: result: not found" >&5 | |
26601 | echo "${ECHO_T}not found" >&6 | |
26602 | ||
26603 | fi | |
ac1cb8d3 | 26604 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26605 | CFLAGS="$save_CFLAGS" |
26606 | ||
26607 | fi | |
26608 | fi | |
26609 | ||
26610 | if test "$wxUSE_MAC" = 1; then | |
26611 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
26612 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
26613 | if test "$GCC" = yes; then | |
26614 | echo "$as_me:$LINENO: result: gcc" >&5 | |
26615 | echo "${ECHO_T}gcc" >&6 | |
26616 | CPPFLAGS_PASCAL="-fpascal-strings" | |
26617 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
26618 | echo "$as_me:$LINENO: result: xlc" >&5 | |
26619 | echo "${ECHO_T}xlc" >&6 | |
26620 | CPPFLAGS_PASCAL="-qmacpstr" | |
26621 | else | |
26622 | echo "$as_me:$LINENO: result: none" >&5 | |
26623 | echo "${ECHO_T}none" >&6 | |
26624 | fi | |
26625 | ||
26626 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon" | |
26627 | ||
a848cd7e SC |
26628 | TOOLKIT=MAC |
26629 | GUIDIST=MACX_DIST | |
dd21ced8 | 26630 | WXBASEPORT="_carbon" |
a848cd7e SC |
26631 | fi |
26632 | ||
26633 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
26634 | TOOLKIT=COCOA |
26635 | GUIDIST=COCOA_DIST | |
26636 | fi | |
26637 | ||
26638 | if test "$wxUSE_PM" = 1; then | |
26639 | TOOLKIT=PM | |
de59c161 RD |
26640 | GUIDIST=PM_DIST |
26641 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
26642 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
26643 | if test "${wx_cv_spbcdata+set}" = set; then | |
26644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26645 | else | |
26646 | ||
26647 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
26648 | /* confdefs.h. */ |
26649 | _ACEOF | |
26650 | cat confdefs.h >>conftest.$ac_ext | |
26651 | cat >>conftest.$ac_ext <<_ACEOF | |
26652 | /* end confdefs.h. */ | |
26653 | ||
26654 | #define INCL_PM | |
26655 | #include <os2.h> | |
26656 | ||
26657 | int | |
26658 | main () | |
26659 | { | |
26660 | ||
26661 | SPBCDATA test; | |
26662 | ||
26663 | ; | |
26664 | return 0; | |
26665 | } | |
26666 | _ACEOF | |
26667 | rm -f conftest.$ac_objext | |
26668 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26669 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 26670 | ac_status=$? |
ac1cb8d3 VS |
26671 | grep -v '^ *+' conftest.er1 >conftest.err |
26672 | rm -f conftest.er1 | |
26673 | cat conftest.err >&5 | |
de59c161 RD |
26674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26675 | (exit $ac_status); } && | |
c228d3a4 RN |
26676 | { ac_try='test -z "$ac_c_werror_flag" |
26677 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26679 | (eval $ac_try) 2>&5 | |
26680 | ac_status=$? | |
26681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26682 | (exit $ac_status); }; } && | |
26683 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
26684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26685 | (eval $ac_try) 2>&5 | |
26686 | ac_status=$? | |
26687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26688 | (exit $ac_status); }; }; then | |
26689 | wx_cv_spbcdata=yes | |
26690 | else | |
26691 | echo "$as_me: failed program was:" >&5 | |
26692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26693 | ||
26694 | wx_cv_spbcdata=no | |
26695 | ||
26696 | fi | |
ac1cb8d3 | 26697 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
26698 | |
26699 | ||
26700 | fi | |
26701 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
26702 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
26703 | ||
26704 | if test $wx_cv_spbcdata = "yes"; then | |
26705 | cat >>confdefs.h <<\_ACEOF | |
26706 | #define HAVE_SPBCDATA 1 | |
26707 | _ACEOF | |
26708 | ||
26709 | fi | |
a848cd7e SC |
26710 | fi |
26711 | ||
26712 | if test "$TOOLKIT" = "PM" ; then | |
26713 | TOOLKIT_DIR="os2" | |
26714 | else | |
26715 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
26716 | fi | |
26717 | ||
a848cd7e | 26718 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
26719 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
26720 | WIDGET_SET=univ | |
a848cd7e SC |
26721 | fi |
26722 | ||
26723 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
26724 | DISTDIR="wx\$(TOOLKIT)" | |
26725 | else | |
26726 | USE_GUI=0 | |
26727 | ||
26728 | TOOLKIT_DIR="base" | |
26729 | ||
26730 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 26731 | TOOLKIT="MSW" |
a848cd7e SC |
26732 | fi |
26733 | ||
a848cd7e SC |
26734 | GUIDIST="BASE_DIST" |
26735 | DISTDIR="wxBase" | |
26736 | fi | |
26737 | ||
26738 | ||
26739 | ||
26740 | ||
26741 | IODBC_C_SRC="" | |
26742 | ||
26743 | ||
26744 | if test "$TOOLKIT" != "MSW" ; then | |
26745 | ||
26746 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
26747 | ||
26748 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26749 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
26750 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
26751 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26753 | fi | |
26754 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
26755 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
26756 | else | |
26757 | # Is the header compilable? | |
26758 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
26759 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
26760 | cat >conftest.$ac_ext <<_ACEOF | |
26761 | /* confdefs.h. */ | |
26762 | _ACEOF | |
26763 | cat confdefs.h >>conftest.$ac_ext | |
26764 | cat >>conftest.$ac_ext <<_ACEOF | |
26765 | /* end confdefs.h. */ | |
26766 | $ac_includes_default | |
26767 | #include <sql.h> | |
26768 | _ACEOF | |
26769 | rm -f conftest.$ac_objext | |
26770 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26771 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26772 | ac_status=$? |
ac1cb8d3 VS |
26773 | grep -v '^ *+' conftest.er1 >conftest.err |
26774 | rm -f conftest.er1 | |
26775 | cat conftest.err >&5 | |
a848cd7e SC |
26776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26777 | (exit $ac_status); } && | |
c228d3a4 RN |
26778 | { ac_try='test -z "$ac_c_werror_flag" |
26779 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26781 | (eval $ac_try) 2>&5 | |
26782 | ac_status=$? | |
26783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26784 | (exit $ac_status); }; } && | |
26785 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26787 | (eval $ac_try) 2>&5 | |
26788 | ac_status=$? | |
26789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26790 | (exit $ac_status); }; }; then | |
26791 | ac_header_compiler=yes | |
26792 | else | |
26793 | echo "$as_me: failed program was:" >&5 | |
26794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26795 | ||
26796 | ac_header_compiler=no | |
26797 | fi | |
ac1cb8d3 | 26798 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26799 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26800 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26801 | ||
26802 | # Is the header present? | |
26803 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
26804 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
26805 | cat >conftest.$ac_ext <<_ACEOF | |
26806 | /* confdefs.h. */ | |
26807 | _ACEOF | |
26808 | cat confdefs.h >>conftest.$ac_ext | |
26809 | cat >>conftest.$ac_ext <<_ACEOF | |
26810 | /* end confdefs.h. */ | |
26811 | #include <sql.h> | |
26812 | _ACEOF | |
26813 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26814 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26815 | ac_status=$? | |
26816 | grep -v '^ *+' conftest.er1 >conftest.err | |
26817 | rm -f conftest.er1 | |
26818 | cat conftest.err >&5 | |
26819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26820 | (exit $ac_status); } >/dev/null; then | |
26821 | if test -s conftest.err; then | |
26822 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 26823 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
26824 | else |
26825 | ac_cpp_err= | |
26826 | fi | |
26827 | else | |
26828 | ac_cpp_err=yes | |
26829 | fi | |
26830 | if test -z "$ac_cpp_err"; then | |
26831 | ac_header_preproc=yes | |
26832 | else | |
26833 | echo "$as_me: failed program was:" >&5 | |
26834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26835 | ||
26836 | ac_header_preproc=no | |
26837 | fi | |
26838 | rm -f conftest.err conftest.$ac_ext | |
26839 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26840 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26841 | ||
26842 | # So? What about this header? | |
ac1cb8d3 VS |
26843 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
26844 | yes:no: ) | |
a848cd7e SC |
26845 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26846 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26847 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
26848 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
26849 | ac_header_preproc=yes | |
a848cd7e | 26850 | ;; |
ac1cb8d3 | 26851 | no:yes:* ) |
a848cd7e SC |
26852 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
26853 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26854 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
26855 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
26856 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
26857 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
26858 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26859 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26860 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
26861 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26862 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
26863 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26864 | ( |
26865 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26866 | ## ----------------------------------------- ## |
26867 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26868 | ## ----------------------------------------- ## | |
a848cd7e SC |
26869 | _ASBOX |
26870 | ) | | |
26871 | sed "s/^/$as_me: WARNING: /" >&2 | |
26872 | ;; | |
26873 | esac | |
26874 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
26875 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
26876 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26878 | else | |
26879 | ac_cv_header_sql_h=$ac_header_preproc | |
26880 | fi | |
26881 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
26882 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
26883 | ||
26884 | fi | |
26885 | if test $ac_cv_header_sql_h = yes; then | |
26886 | found_sql_h=1 | |
26887 | fi | |
26888 | ||
26889 | ||
26890 | if test "x$found_sql_h" = "x1" ; then | |
26891 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
26892 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
26893 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
26894 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26895 | else | |
26896 | ac_check_lib_save_LIBS=$LIBS | |
26897 | LIBS="-liodbc $LIBS" | |
26898 | cat >conftest.$ac_ext <<_ACEOF | |
26899 | /* confdefs.h. */ | |
26900 | _ACEOF | |
26901 | cat confdefs.h >>conftest.$ac_ext | |
26902 | cat >>conftest.$ac_ext <<_ACEOF | |
26903 | /* end confdefs.h. */ | |
26904 | ||
26905 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26906 | #ifdef __cplusplus | |
26907 | extern "C" | |
26908 | #endif | |
26909 | /* We use char because int might match the return type of a gcc2 | |
26910 | builtin and then its argument prototype would still apply. */ | |
26911 | char SQLAllocEnv (); | |
26912 | int | |
26913 | main () | |
26914 | { | |
26915 | SQLAllocEnv (); | |
26916 | ; | |
26917 | return 0; | |
26918 | } | |
26919 | _ACEOF | |
26920 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26921 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26922 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26923 | ac_status=$? |
ac1cb8d3 VS |
26924 | grep -v '^ *+' conftest.er1 >conftest.err |
26925 | rm -f conftest.er1 | |
26926 | cat conftest.err >&5 | |
a848cd7e SC |
26927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26928 | (exit $ac_status); } && | |
c228d3a4 RN |
26929 | { ac_try='test -z "$ac_c_werror_flag" |
26930 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26932 | (eval $ac_try) 2>&5 | |
26933 | ac_status=$? | |
26934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26935 | (exit $ac_status); }; } && | |
26936 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26938 | (eval $ac_try) 2>&5 | |
26939 | ac_status=$? | |
26940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26941 | (exit $ac_status); }; }; then | |
26942 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
26943 | else | |
26944 | echo "$as_me: failed program was:" >&5 | |
26945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26946 | ||
26947 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
26948 | fi | |
ac1cb8d3 VS |
26949 | rm -f conftest.err conftest.$ac_objext \ |
26950 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26951 | LIBS=$ac_check_lib_save_LIBS |
26952 | fi | |
26953 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
26954 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
26955 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
26956 | ODBC_LINK=" -liodbc" | |
26957 | else | |
26958 | ||
26959 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
26960 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
26961 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
26962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26963 | else | |
26964 | ac_check_lib_save_LIBS=$LIBS | |
26965 | LIBS="-lunixodbc $LIBS" | |
26966 | cat >conftest.$ac_ext <<_ACEOF | |
26967 | /* confdefs.h. */ | |
26968 | _ACEOF | |
26969 | cat confdefs.h >>conftest.$ac_ext | |
26970 | cat >>conftest.$ac_ext <<_ACEOF | |
26971 | /* end confdefs.h. */ | |
26972 | ||
26973 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26974 | #ifdef __cplusplus | |
26975 | extern "C" | |
26976 | #endif | |
26977 | /* We use char because int might match the return type of a gcc2 | |
26978 | builtin and then its argument prototype would still apply. */ | |
26979 | char SQLAllocEnv (); | |
26980 | int | |
26981 | main () | |
26982 | { | |
26983 | SQLAllocEnv (); | |
26984 | ; | |
26985 | return 0; | |
26986 | } | |
26987 | _ACEOF | |
26988 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26989 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26990 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26991 | ac_status=$? |
ac1cb8d3 VS |
26992 | grep -v '^ *+' conftest.er1 >conftest.err |
26993 | rm -f conftest.er1 | |
26994 | cat conftest.err >&5 | |
a848cd7e SC |
26995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26996 | (exit $ac_status); } && | |
c228d3a4 RN |
26997 | { ac_try='test -z "$ac_c_werror_flag" |
26998 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27000 | (eval $ac_try) 2>&5 | |
27001 | ac_status=$? | |
27002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27003 | (exit $ac_status); }; } && | |
27004 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27006 | (eval $ac_try) 2>&5 | |
27007 | ac_status=$? | |
27008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27009 | (exit $ac_status); }; }; then | |
27010 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
27011 | else | |
27012 | echo "$as_me: failed program was:" >&5 | |
27013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27014 | ||
27015 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
27016 | fi | |
ac1cb8d3 VS |
27017 | rm -f conftest.err conftest.$ac_objext \ |
27018 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27019 | LIBS=$ac_check_lib_save_LIBS |
27020 | fi | |
27021 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
27022 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
27023 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
27024 | ODBC_LINK=" -lunixodbc" | |
27025 | else | |
27026 | ||
27027 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
27028 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
27029 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
27030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27031 | else | |
27032 | ac_check_lib_save_LIBS=$LIBS | |
27033 | LIBS="-lodbc $LIBS" | |
27034 | cat >conftest.$ac_ext <<_ACEOF | |
27035 | /* confdefs.h. */ | |
27036 | _ACEOF | |
27037 | cat confdefs.h >>conftest.$ac_ext | |
27038 | cat >>conftest.$ac_ext <<_ACEOF | |
27039 | /* end confdefs.h. */ | |
27040 | ||
27041 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27042 | #ifdef __cplusplus | |
27043 | extern "C" | |
27044 | #endif | |
27045 | /* We use char because int might match the return type of a gcc2 | |
27046 | builtin and then its argument prototype would still apply. */ | |
27047 | char SQLAllocEnv (); | |
27048 | int | |
27049 | main () | |
27050 | { | |
27051 | SQLAllocEnv (); | |
27052 | ; | |
27053 | return 0; | |
27054 | } | |
27055 | _ACEOF | |
27056 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27057 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27058 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27059 | ac_status=$? |
ac1cb8d3 VS |
27060 | grep -v '^ *+' conftest.er1 >conftest.err |
27061 | rm -f conftest.er1 | |
27062 | cat conftest.err >&5 | |
a848cd7e SC |
27063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27064 | (exit $ac_status); } && | |
c228d3a4 RN |
27065 | { ac_try='test -z "$ac_c_werror_flag" |
27066 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27068 | (eval $ac_try) 2>&5 | |
27069 | ac_status=$? | |
27070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27071 | (exit $ac_status); }; } && | |
27072 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27074 | (eval $ac_try) 2>&5 | |
27075 | ac_status=$? | |
27076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27077 | (exit $ac_status); }; }; then | |
27078 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
27079 | else | |
27080 | echo "$as_me: failed program was:" >&5 | |
27081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27082 | ||
27083 | ac_cv_lib_odbc_SQLAllocEnv=no | |
27084 | fi | |
ac1cb8d3 VS |
27085 | rm -f conftest.err conftest.$ac_objext \ |
27086 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27087 | LIBS=$ac_check_lib_save_LIBS |
27088 | fi | |
27089 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
27090 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
27091 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
27092 | ODBC_LINK=" -lodbc" | |
27093 | fi | |
27094 | ||
27095 | ||
27096 | fi | |
27097 | ||
27098 | ||
27099 | fi | |
27100 | ||
27101 | fi | |
27102 | if test "x$ODBC_LINK" = "x" ; then | |
27103 | if test "$wxUSE_ODBC" = "sys" ; then | |
27104 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
27105 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
27106 | { (exit 1); exit 1; }; } | |
27107 | else | |
27108 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
27109 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
27110 | wxUSE_ODBC=builtin | |
27111 | fi | |
27112 | else | |
27113 | wxUSE_ODBC=sys | |
27114 | fi | |
27115 | fi | |
27116 | if test "$wxUSE_ODBC" != "no" ; then | |
27117 | cat >>confdefs.h <<\_ACEOF | |
27118 | #define wxUSE_ODBC 1 | |
27119 | _ACEOF | |
27120 | ||
27121 | if test "$wxUSE_ODBC" = "builtin" ; then | |
27122 | cat >>confdefs.h <<\_ACEOF | |
27123 | #define wxUSE_BUILTIN_IODBC 1 | |
27124 | _ACEOF | |
27125 | ||
27126 | fi | |
27127 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
27128 | ||
27129 | WXODBCFLAG="-D_IODBC_" | |
27130 | fi | |
27131 | fi | |
27132 | ||
a848cd7e | 27133 | |
01cb68df | 27134 | |
a848cd7e | 27135 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 27136 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
27137 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
27138 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
27139 | ||
27140 | ac_find_libraries= | |
27141 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27142 | do | |
27143 | for ac_extension in a so sl dylib; do | |
27144 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
27145 | ac_find_libraries=$ac_dir | |
27146 | break 2 | |
27147 | fi | |
27148 | done | |
27149 | done | |
27150 | ||
27151 | if test "$ac_find_libraries" != "" ; then | |
27152 | ||
27153 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27154 | result=$? | |
27155 | if test $result = 0; then | |
27156 | ac_path_to_link="" | |
27157 | else | |
27158 | ac_path_to_link=" -L$ac_find_libraries" | |
27159 | fi | |
27160 | ||
27161 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
27162 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
27163 | fi | |
27164 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
27165 | echo "$as_me:$LINENO: result: yes" >&5 | |
27166 | echo "${ECHO_T}yes" >&6 | |
27167 | ||
27168 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
27169 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
27170 | ||
27171 | ac_find_libraries= | |
27172 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27173 | do | |
27174 | for ac_extension in a so sl dylib; do | |
27175 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then | |
27176 | ac_find_libraries=$ac_dir | |
27177 | break 2 | |
27178 | fi | |
27179 | done | |
27180 | done | |
27181 | ||
27182 | if test "$ac_find_libraries" != "" ; then | |
27183 | echo "$as_me:$LINENO: result: yes" >&5 | |
27184 | echo "${ECHO_T}yes" >&6 | |
27185 | ||
27186 | for ac_header in X11/extensions/xf86vmode.h | |
27187 | do | |
27188 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
27189 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27190 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27191 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27193 | else | |
27194 | cat >conftest.$ac_ext <<_ACEOF | |
27195 | /* confdefs.h. */ | |
27196 | _ACEOF | |
27197 | cat confdefs.h >>conftest.$ac_ext | |
27198 | cat >>conftest.$ac_ext <<_ACEOF | |
27199 | /* end confdefs.h. */ | |
27200 | ||
27201 | #if HAVE_X11_XLIB_H | |
27202 | #include <X11/Xlib.h> | |
27203 | #endif | |
27204 | ||
27205 | ||
27206 | #include <$ac_header> | |
27207 | _ACEOF | |
27208 | rm -f conftest.$ac_objext | |
27209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27210 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27211 | ac_status=$? |
ac1cb8d3 VS |
27212 | grep -v '^ *+' conftest.er1 >conftest.err |
27213 | rm -f conftest.er1 | |
27214 | cat conftest.err >&5 | |
a848cd7e SC |
27215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27216 | (exit $ac_status); } && | |
c228d3a4 RN |
27217 | { ac_try='test -z "$ac_c_werror_flag" |
27218 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27220 | (eval $ac_try) 2>&5 | |
27221 | ac_status=$? | |
27222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27223 | (exit $ac_status); }; } && | |
27224 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27226 | (eval $ac_try) 2>&5 | |
27227 | ac_status=$? | |
27228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27229 | (exit $ac_status); }; }; then | |
27230 | eval "$as_ac_Header=yes" | |
27231 | else | |
27232 | echo "$as_me: failed program was:" >&5 | |
27233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27234 | ||
27235 | eval "$as_ac_Header=no" | |
27236 | fi | |
ac1cb8d3 | 27237 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27238 | fi |
27239 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27240 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27241 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
27242 | cat >>confdefs.h <<_ACEOF | |
27243 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27244 | _ACEOF | |
27245 | ||
27246 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
27247 | ||
27248 | fi | |
27249 | ||
27250 | done | |
27251 | ||
27252 | else | |
27253 | echo "$as_me:$LINENO: result: no" >&5 | |
27254 | echo "${ECHO_T}no" >&6 | |
27255 | fi | |
27256 | ||
27257 | else | |
27258 | echo "$as_me:$LINENO: result: no" >&5 | |
27259 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
27260 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
27261 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
27262 | wxUSE_DISPLAY="no" |
27263 | fi | |
01cb68df RG |
27264 | elif test "$wxUSE_MSW" = 1; then |
27265 | ||
27266 | ||
27267 | for ac_header in multimon.h ddraw.h | |
27268 | do | |
27269 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
27270 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27271 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27272 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27273 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27275 | fi | |
27276 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27277 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27278 | else | |
27279 | # Is the header compilable? | |
27280 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
27281 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
27282 | cat >conftest.$ac_ext <<_ACEOF | |
27283 | /* confdefs.h. */ | |
27284 | _ACEOF | |
27285 | cat confdefs.h >>conftest.$ac_ext | |
27286 | cat >>conftest.$ac_ext <<_ACEOF | |
27287 | /* end confdefs.h. */ | |
27288 | $ac_includes_default | |
27289 | #include <$ac_header> | |
27290 | _ACEOF | |
27291 | rm -f conftest.$ac_objext | |
27292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27293 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 27294 | ac_status=$? |
ac1cb8d3 VS |
27295 | grep -v '^ *+' conftest.er1 >conftest.err |
27296 | rm -f conftest.er1 | |
27297 | cat conftest.err >&5 | |
01cb68df RG |
27298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27299 | (exit $ac_status); } && | |
c228d3a4 RN |
27300 | { ac_try='test -z "$ac_c_werror_flag" |
27301 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27303 | (eval $ac_try) 2>&5 | |
27304 | ac_status=$? | |
27305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27306 | (exit $ac_status); }; } && | |
27307 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
27308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27309 | (eval $ac_try) 2>&5 | |
27310 | ac_status=$? | |
27311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27312 | (exit $ac_status); }; }; then | |
27313 | ac_header_compiler=yes | |
27314 | else | |
27315 | echo "$as_me: failed program was:" >&5 | |
27316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27317 | ||
27318 | ac_header_compiler=no | |
27319 | fi | |
ac1cb8d3 | 27320 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
27321 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27322 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27323 | ||
27324 | # Is the header present? | |
27325 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
27326 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
27327 | cat >conftest.$ac_ext <<_ACEOF | |
27328 | /* confdefs.h. */ | |
27329 | _ACEOF | |
27330 | cat confdefs.h >>conftest.$ac_ext | |
27331 | cat >>conftest.$ac_ext <<_ACEOF | |
27332 | /* end confdefs.h. */ | |
27333 | #include <$ac_header> | |
27334 | _ACEOF | |
27335 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27336 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27337 | ac_status=$? | |
27338 | grep -v '^ *+' conftest.er1 >conftest.err | |
27339 | rm -f conftest.er1 | |
27340 | cat conftest.err >&5 | |
27341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27342 | (exit $ac_status); } >/dev/null; then | |
27343 | if test -s conftest.err; then | |
27344 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27345 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
01cb68df RG |
27346 | else |
27347 | ac_cpp_err= | |
27348 | fi | |
27349 | else | |
27350 | ac_cpp_err=yes | |
27351 | fi | |
27352 | if test -z "$ac_cpp_err"; then | |
27353 | ac_header_preproc=yes | |
27354 | else | |
27355 | echo "$as_me: failed program was:" >&5 | |
27356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27357 | ||
27358 | ac_header_preproc=no | |
27359 | fi | |
27360 | rm -f conftest.err conftest.$ac_ext | |
27361 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27362 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27363 | ||
27364 | # So? What about this header? | |
ac1cb8d3 VS |
27365 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
27366 | yes:no: ) | |
01cb68df RG |
27367 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
27368 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27369 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
27370 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
27371 | ac_header_preproc=yes | |
01cb68df | 27372 | ;; |
ac1cb8d3 | 27373 | no:yes:* ) |
01cb68df RG |
27374 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
27375 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27376 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
27377 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
27378 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
27379 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
27380 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
27381 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
01cb68df RG |
27382 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
27383 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27384 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
27385 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
01cb68df RG |
27386 | ( |
27387 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27388 | ## ----------------------------------------- ## |
27389 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27390 | ## ----------------------------------------- ## | |
01cb68df RG |
27391 | _ASBOX |
27392 | ) | | |
27393 | sed "s/^/$as_me: WARNING: /" >&2 | |
27394 | ;; | |
27395 | esac | |
27396 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27397 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27398 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27400 | else | |
ac1cb8d3 | 27401 | eval "$as_ac_Header=\$ac_header_preproc" |
01cb68df RG |
27402 | fi |
27403 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27404 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27405 | ||
27406 | fi | |
27407 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
27408 | cat >>confdefs.h <<_ACEOF | |
27409 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27410 | _ACEOF | |
27411 | ||
27412 | else | |
27413 | ||
27414 | wxUSE_DISPLAY="no" | |
dcc1b6ad VS |
27415 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 |
27416 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} | |
01cb68df RG |
27417 | |
27418 | fi | |
27419 | ||
27420 | done | |
27421 | ||
a848cd7e SC |
27422 | fi |
27423 | fi | |
27424 | ||
27425 | ||
27426 | USE_OPENGL=0 | |
27427 | if test "$wxUSE_OPENGL" = "yes"; then | |
27428 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
27429 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
27430 | elif test "$wxUSE_MSW" = 1; then | |
27431 | OPENGL_LIBS="-lopengl32 -lglu32" | |
27432 | else | |
27433 | ||
27434 | ||
27435 | ac_find_includes= | |
27436 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
27437 | do | |
27438 | if test -f "$ac_dir/GL/gl.h"; then | |
27439 | ac_find_includes=$ac_dir | |
27440 | break | |
27441 | fi | |
27442 | done | |
27443 | ||
27444 | if test "$ac_find_includes" != "" ; then | |
27445 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
27446 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
27447 | ||
27448 | if test "x$ac_find_includes" = "x/usr/include"; then | |
27449 | ac_path_to_include="" | |
27450 | else | |
27451 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
27452 | result=$? | |
27453 | if test $result = 0; then | |
27454 | ac_path_to_include="" | |
27455 | else | |
27456 | ac_path_to_include=" -I$ac_find_includes" | |
27457 | fi | |
27458 | fi | |
27459 | ||
27460 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
27461 | fi | |
27462 | ||
27463 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27464 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27465 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27466 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27468 | fi | |
27469 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
27470 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27471 | else | |
27472 | # Is the header compilable? | |
27473 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
27474 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
27475 | cat >conftest.$ac_ext <<_ACEOF | |
27476 | /* confdefs.h. */ | |
27477 | _ACEOF | |
27478 | cat confdefs.h >>conftest.$ac_ext | |
27479 | cat >>conftest.$ac_ext <<_ACEOF | |
27480 | /* end confdefs.h. */ | |
27481 | $ac_includes_default | |
27482 | #include <GL/gl.h> | |
27483 | _ACEOF | |
27484 | rm -f conftest.$ac_objext | |
27485 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27486 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27487 | ac_status=$? |
ac1cb8d3 VS |
27488 | grep -v '^ *+' conftest.er1 >conftest.err |
27489 | rm -f conftest.er1 | |
27490 | cat conftest.err >&5 | |
a848cd7e SC |
27491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27492 | (exit $ac_status); } && | |
c228d3a4 RN |
27493 | { ac_try='test -z "$ac_c_werror_flag" |
27494 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27496 | (eval $ac_try) 2>&5 | |
27497 | ac_status=$? | |
27498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27499 | (exit $ac_status); }; } && | |
27500 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27502 | (eval $ac_try) 2>&5 | |
27503 | ac_status=$? | |
27504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27505 | (exit $ac_status); }; }; then | |
27506 | ac_header_compiler=yes | |
27507 | else | |
27508 | echo "$as_me: failed program was:" >&5 | |
27509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27510 | ||
27511 | ac_header_compiler=no | |
27512 | fi | |
ac1cb8d3 | 27513 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27514 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27515 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27516 | ||
27517 | # Is the header present? | |
27518 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
27519 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
27520 | cat >conftest.$ac_ext <<_ACEOF | |
27521 | /* confdefs.h. */ | |
27522 | _ACEOF | |
27523 | cat confdefs.h >>conftest.$ac_ext | |
27524 | cat >>conftest.$ac_ext <<_ACEOF | |
27525 | /* end confdefs.h. */ | |
27526 | #include <GL/gl.h> | |
27527 | _ACEOF | |
27528 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27529 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27530 | ac_status=$? | |
27531 | grep -v '^ *+' conftest.er1 >conftest.err | |
27532 | rm -f conftest.er1 | |
27533 | cat conftest.err >&5 | |
27534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27535 | (exit $ac_status); } >/dev/null; then | |
27536 | if test -s conftest.err; then | |
27537 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27538 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
27539 | else |
27540 | ac_cpp_err= | |
27541 | fi | |
27542 | else | |
27543 | ac_cpp_err=yes | |
27544 | fi | |
27545 | if test -z "$ac_cpp_err"; then | |
27546 | ac_header_preproc=yes | |
27547 | else | |
27548 | echo "$as_me: failed program was:" >&5 | |
27549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27550 | ||
27551 | ac_header_preproc=no | |
27552 | fi | |
27553 | rm -f conftest.err conftest.$ac_ext | |
27554 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27555 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27556 | ||
27557 | # So? What about this header? | |
ac1cb8d3 VS |
27558 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
27559 | yes:no: ) | |
a848cd7e SC |
27560 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
27561 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27562 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
27563 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
27564 | ac_header_preproc=yes | |
a848cd7e | 27565 | ;; |
ac1cb8d3 | 27566 | no:yes:* ) |
a848cd7e SC |
27567 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
27568 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27569 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
27570 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
27571 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
27572 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
27573 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
27574 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
27575 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
27576 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27577 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
27578 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
27579 | ( |
27580 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27581 | ## ----------------------------------------- ## |
27582 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27583 | ## ----------------------------------------- ## | |
a848cd7e SC |
27584 | _ASBOX |
27585 | ) | | |
27586 | sed "s/^/$as_me: WARNING: /" >&2 | |
27587 | ;; | |
27588 | esac | |
27589 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27590 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27591 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27593 | else | |
27594 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
27595 | fi | |
27596 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
27597 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27598 | ||
27599 | fi | |
27600 | if test $ac_cv_header_GL_gl_h = yes; then | |
27601 | ||
27602 | found_gl=0 | |
27603 | ||
27604 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
27605 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
27606 | ||
27607 | ac_find_libraries= | |
27608 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27609 | do | |
27610 | for ac_extension in a so sl dylib; do | |
27611 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
27612 | ac_find_libraries=$ac_dir | |
27613 | break 2 | |
27614 | fi | |
27615 | done | |
27616 | done | |
27617 | ||
27618 | if test "$ac_find_libraries" != "" ; then | |
27619 | ||
27620 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27621 | result=$? | |
27622 | if test $result = 0; then | |
27623 | ac_path_to_link="" | |
27624 | else | |
27625 | ac_path_to_link=" -L$ac_find_libraries" | |
27626 | fi | |
27627 | ||
27628 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
27629 | LDFLAGS_GL="$ac_path_to_link" | |
27630 | fi | |
27631 | ||
27632 | ||
27633 | ac_find_libraries= | |
27634 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27635 | do | |
27636 | for ac_extension in a so sl dylib; do | |
27637 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
27638 | ac_find_libraries=$ac_dir | |
27639 | break 2 | |
27640 | fi | |
27641 | done | |
27642 | done | |
27643 | ||
27644 | if test "$ac_find_libraries" != "" ; then | |
27645 | ||
27646 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27647 | result=$? | |
27648 | if test $result = 0; then | |
27649 | ac_path_to_link="" | |
27650 | else | |
27651 | ac_path_to_link=" -L$ac_find_libraries" | |
27652 | fi | |
27653 | ||
27654 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
27655 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
27656 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
27657 | fi | |
27658 | ||
27659 | found_gl=1 | |
27660 | OPENGL_LIBS="-lGL -lGLU" | |
27661 | echo "$as_me:$LINENO: result: yes" >&5 | |
27662 | echo "${ECHO_T}yes" >&6 | |
27663 | fi | |
27664 | fi | |
27665 | ||
27666 | if test "$found_gl" != 1; then | |
27667 | echo "$as_me:$LINENO: result: no" >&5 | |
27668 | echo "${ECHO_T}no" >&6 | |
27669 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
27670 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
27671 | ||
27672 | ac_find_libraries= | |
27673 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27674 | do | |
27675 | for ac_extension in a so sl dylib; do | |
27676 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
27677 | ac_find_libraries=$ac_dir | |
27678 | break 2 | |
27679 | fi | |
27680 | done | |
27681 | done | |
27682 | ||
27683 | if test "$ac_find_libraries" != "" ; then | |
27684 | ||
27685 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27686 | result=$? | |
27687 | if test $result = 0; then | |
27688 | ac_path_to_link="" | |
27689 | else | |
27690 | ac_path_to_link=" -L$ac_find_libraries" | |
27691 | fi | |
27692 | ||
27693 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
27694 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
27695 | echo "$as_me:$LINENO: result: yes" >&5 | |
27696 | echo "${ECHO_T}yes" >&6 | |
27697 | else | |
27698 | echo "$as_me:$LINENO: result: no" >&5 | |
27699 | echo "${ECHO_T}no" >&6 | |
27700 | fi | |
27701 | fi | |
27702 | ||
27703 | fi | |
27704 | ||
27705 | ||
27706 | ||
27707 | if test "x$OPENGL_LIBS" = "x"; then | |
27708 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
27709 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
27710 | { (exit 1); exit 1; }; } | |
27711 | fi | |
27712 | fi | |
27713 | ||
27714 | if test "$wxUSE_OPENGL" = "yes"; then | |
27715 | USE_OPENGL=1 | |
27716 | cat >>confdefs.h <<\_ACEOF | |
27717 | #define wxUSE_OPENGL 1 | |
27718 | _ACEOF | |
27719 | ||
27720 | cat >>confdefs.h <<\_ACEOF | |
27721 | #define wxUSE_GLCANVAS 1 | |
27722 | _ACEOF | |
27723 | ||
27724 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
27725 | fi | |
27726 | fi | |
27727 | ||
a848cd7e SC |
27728 | |
27729 | if test -n "$TOOLKIT" ; then | |
27730 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
27731 | fi | |
27732 | ||
a848cd7e SC |
27733 | |
27734 | ||
27735 | if test "$wxUSE_SHARED" = "yes"; then | |
27736 | case "${host}" in | |
27737 | *-pc-msdosdjgpp ) | |
27738 | wxUSE_SHARED=no | |
27739 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
27740 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
27741 | ;; | |
27742 | esac | |
27743 | fi | |
27744 | ||
a848cd7e | 27745 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
27746 | |
27747 | ||
27748 | found_versioning=no | |
27749 | ||
27750 | ||
27751 | if test $found_versioning = no ; then | |
27752 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
27753 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
27754 | if test "${wx_cv_version_script+set}" = set; then | |
27755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27756 | else | |
27757 | ||
27758 | echo "VER_1 { *; };" >conftest.sym | |
27759 | echo "int main() { return 0; }" >conftest.cpp | |
27760 | ||
27761 | if { ac_try=' | |
27762 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
27763 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
27764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27765 | (eval $ac_try) 2>&5 | |
27766 | ac_status=$? | |
27767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27768 | (exit $ac_status); }; } ; then | |
27769 | if test -s conftest.stderr ; then | |
27770 | wx_cv_version_script=no | |
27771 | else | |
27772 | wx_cv_version_script=yes | |
27773 | fi | |
27774 | else | |
27775 | wx_cv_version_script=no | |
27776 | fi | |
27777 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
27778 | ||
27779 | fi | |
27780 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
27781 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
27782 | if test $wx_cv_version_script = yes ; then | |
27783 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
27784 | fi | |
27785 | fi | |
27786 | ||
27787 | ||
27788 | case "${host}" in | |
27789 | *-*-linux* | *-*-gnu* ) | |
27790 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
27791 | ;; | |
27792 | ||
27793 | *-*-solaris2* ) | |
27794 | if test "$GCC" = yes ; then | |
27795 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
27796 | ||
27797 | saveLdflags="$LDFLAGS" | |
27798 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
27799 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
27800 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
27801 | cat >conftest.$ac_ext <<_ACEOF | |
27802 | /* confdefs.h. */ | |
27803 | _ACEOF | |
27804 | cat confdefs.h >>conftest.$ac_ext | |
27805 | cat >>conftest.$ac_ext <<_ACEOF | |
27806 | /* end confdefs.h. */ | |
27807 | ||
27808 | int | |
27809 | main () | |
27810 | { | |
27811 | ||
27812 | ; | |
27813 | return 0; | |
27814 | } | |
27815 | _ACEOF | |
27816 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27817 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27818 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27819 | ac_status=$? |
ac1cb8d3 VS |
27820 | grep -v '^ *+' conftest.er1 >conftest.err |
27821 | rm -f conftest.er1 | |
27822 | cat conftest.err >&5 | |
a848cd7e SC |
27823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27824 | (exit $ac_status); } && | |
c228d3a4 RN |
27825 | { ac_try='test -z "$ac_c_werror_flag" |
27826 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27828 | (eval $ac_try) 2>&5 | |
27829 | ac_status=$? | |
27830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27831 | (exit $ac_status); }; } && | |
27832 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27834 | (eval $ac_try) 2>&5 | |
27835 | ac_status=$? | |
27836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27837 | (exit $ac_status); }; }; then | |
27838 | ||
27839 | echo "$as_me:$LINENO: result: yes" >&5 | |
27840 | echo "${ECHO_T}yes" >&6 | |
27841 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
27842 | ||
27843 | else | |
27844 | echo "$as_me: failed program was:" >&5 | |
27845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27846 | ||
27847 | ||
27848 | echo "$as_me:$LINENO: result: no" >&5 | |
27849 | echo "${ECHO_T}no" >&6 | |
27850 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
27851 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
27852 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
27853 | cat >conftest.$ac_ext <<_ACEOF | |
27854 | /* confdefs.h. */ | |
27855 | _ACEOF | |
27856 | cat confdefs.h >>conftest.$ac_ext | |
27857 | cat >>conftest.$ac_ext <<_ACEOF | |
27858 | /* end confdefs.h. */ | |
27859 | ||
27860 | int | |
27861 | main () | |
27862 | { | |
27863 | ||
27864 | ; | |
27865 | return 0; | |
27866 | } | |
27867 | _ACEOF | |
27868 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27869 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27870 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27871 | ac_status=$? |
ac1cb8d3 VS |
27872 | grep -v '^ *+' conftest.er1 >conftest.err |
27873 | rm -f conftest.er1 | |
27874 | cat conftest.err >&5 | |
a848cd7e SC |
27875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27876 | (exit $ac_status); } && | |
c228d3a4 RN |
27877 | { ac_try='test -z "$ac_c_werror_flag" |
27878 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27880 | (eval $ac_try) 2>&5 | |
27881 | ac_status=$? | |
27882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27883 | (exit $ac_status); }; } && | |
27884 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27886 | (eval $ac_try) 2>&5 | |
27887 | ac_status=$? | |
27888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27889 | (exit $ac_status); }; }; then | |
27890 | ||
27891 | echo "$as_me:$LINENO: result: yes" >&5 | |
27892 | echo "${ECHO_T}yes" >&6 | |
27893 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" | |
27894 | else | |
27895 | echo "$as_me: failed program was:" >&5 | |
27896 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27897 | ||
27898 | ||
27899 | echo "$as_me:$LINENO: result: no" >&5 | |
27900 | echo "${ECHO_T}no" >&6 | |
27901 | ||
27902 | fi | |
ac1cb8d3 VS |
27903 | rm -f conftest.err conftest.$ac_objext \ |
27904 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27905 | |
27906 | fi | |
ac1cb8d3 VS |
27907 | rm -f conftest.err conftest.$ac_objext \ |
27908 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27909 | LDFLAGS="$saveLdflags" |
27910 | else | |
a848cd7e SC |
27911 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
27912 | fi | |
27913 | ;; | |
27914 | ||
27915 | powerpc-*-darwin* ) | |
27916 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
27917 | cat <<EOF >change-install-names | |
27918 | #!/bin/sh | |
27919 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
27920 | inst_cmd="install_name_tool " | |
27921 | for i in \${libnames} ; do | |
27922 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
27923 | done | |
27924 | \${inst_cmd} \${3} | |
27925 | EOF | |
27926 | chmod +x change-install-names | |
27927 | ;; | |
27928 | ||
27929 | *-*-cygwin* | *-*-mingw32* ) | |
27930 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
27931 | ;; | |
27932 | ||
27933 | esac | |
ceec2216 RL |
27934 | fi |
27935 | ||
27936 | if test "$wxUSE_SHARED" = "no"; then | |
27937 | config_linkage_component="-static" | |
27938 | SHARED=0 | |
27939 | else | |
27940 | SHARED=1 | |
27941 | fi | |
a848cd7e | 27942 | |
a848cd7e | 27943 | |
ceec2216 RL |
27944 | UNICODE=0 |
27945 | lib_unicode_suffix= | |
27946 | WX_CHARTYPE="ansi" | |
27947 | if test "$wxUSE_UNICODE" = "yes"; then | |
27948 | lib_unicode_suffix=u | |
27949 | WX_CHARTYPE="unicode" | |
27950 | UNICODE=1 | |
a848cd7e SC |
27951 | fi |
27952 | ||
ceec2216 RL |
27953 | lib_debug_suffix= |
27954 | WX_DEBUGTYPE="release" | |
27955 | DEBUG_FLAG=0 | |
27956 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
27957 | lib_debug_suffix=d | |
27958 | WX_DEBUGTYPE="debug" | |
27959 | DEBUG_FLAG=1 | |
27960 | fi | |
a848cd7e | 27961 | |
ceec2216 RL |
27962 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
27963 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 27964 | |
ceec2216 RL |
27965 | DEBUG_INFO=0 |
27966 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
27967 | DEBUG_INFO=1 | |
27968 | fi | |
a848cd7e | 27969 | |
ceec2216 | 27970 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 27971 | |
ceec2216 | 27972 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 27973 | |
ceec2216 | 27974 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 27975 | |
ceec2216 RL |
27976 | if test "$cross_compiling" = "yes"; then |
27977 | HOST_SUFFIX="-$host_alias" | |
27978 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
27979 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
27980 | fi |
27981 | ||
dd21ced8 | 27982 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
ceec2216 RL |
27983 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
27984 | ||
27985 | ||
27986 | ||
a848cd7e | 27987 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
ceec2216 RL |
27988 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${WX_CURRENT}.r" |
27989 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${WX_CURRENT}.rsrc" | |
27990 | ||
a848cd7e | 27991 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
27992 | |
27993 | # Extract the first word of "Rez", so it can be a program name with args. | |
27994 | set dummy Rez; ac_word=$2 | |
27995 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27996 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27997 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
27998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27999 | else | |
28000 | if test -n "$RESCOMP"; then | |
28001 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
28002 | else | |
28003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28004 | for as_dir in $PATH | |
28005 | do | |
28006 | IFS=$as_save_IFS | |
28007 | test -z "$as_dir" && as_dir=. | |
28008 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28009 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28010 | ac_cv_prog_RESCOMP="Rez" | |
28011 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28012 | break 2 | |
28013 | fi | |
28014 | done | |
28015 | done | |
28016 | ||
28017 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
28018 | fi | |
28019 | fi | |
28020 | RESCOMP=$ac_cv_prog_RESCOMP | |
28021 | if test -n "$RESCOMP"; then | |
28022 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
28023 | echo "${ECHO_T}$RESCOMP" >&6 | |
28024 | else | |
28025 | echo "$as_me:$LINENO: result: no" >&5 | |
28026 | echo "${ECHO_T}no" >&6 | |
28027 | fi | |
28028 | ||
28029 | # Extract the first word of "DeRez", so it can be a program name with args. | |
28030 | set dummy DeRez; ac_word=$2 | |
28031 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28032 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28033 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
28034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28035 | else | |
28036 | if test -n "$DEREZ"; then | |
28037 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
28038 | else | |
28039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28040 | for as_dir in $PATH | |
28041 | do | |
28042 | IFS=$as_save_IFS | |
28043 | test -z "$as_dir" && as_dir=. | |
28044 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28045 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28046 | ac_cv_prog_DEREZ="DeRez" | |
28047 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28048 | break 2 | |
28049 | fi | |
28050 | done | |
28051 | done | |
28052 | ||
28053 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
28054 | fi | |
28055 | fi | |
28056 | DEREZ=$ac_cv_prog_DEREZ | |
28057 | if test -n "$DEREZ"; then | |
28058 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
28059 | echo "${ECHO_T}$DEREZ" >&6 | |
28060 | else | |
28061 | echo "$as_me:$LINENO: result: no" >&5 | |
28062 | echo "${ECHO_T}no" >&6 | |
28063 | fi | |
28064 | ||
28065 | # Extract the first word of "SetFile", so it can be a program name with args. | |
28066 | set dummy SetFile; ac_word=$2 | |
28067 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28068 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28069 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
28070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28071 | else | |
28072 | if test -n "$SETFILE"; then | |
28073 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
28074 | else | |
28075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28076 | for as_dir in $PATH | |
28077 | do | |
28078 | IFS=$as_save_IFS | |
28079 | test -z "$as_dir" && as_dir=. | |
28080 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28081 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28082 | ac_cv_prog_SETFILE="SetFile" | |
28083 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28084 | break 2 | |
28085 | fi | |
28086 | done | |
28087 | done | |
28088 | ||
28089 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
28090 | fi | |
28091 | fi | |
28092 | SETFILE=$ac_cv_prog_SETFILE | |
28093 | if test -n "$SETFILE"; then | |
28094 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
28095 | echo "${ECHO_T}$SETFILE" >&6 | |
28096 | else | |
28097 | echo "$as_me:$LINENO: result: no" >&5 | |
28098 | echo "${ECHO_T}no" >&6 | |
28099 | fi | |
28100 | ||
28101 | ||
28102 | MACSETFILE="\$(SETFILE)" | |
28103 | ||
28104 | if test "$wxUSE_MAC" = 1; then | |
28105 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" | |
28106 | ||
28107 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
28108 | else | |
28109 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
28110 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
28111 | fi | |
28112 | else | |
28113 | MACSETFILE="@#" | |
28114 | MACRESWXCONFIG="#" | |
28115 | ||
28116 | if test "$wxUSE_PM" = 1; then | |
28117 | MACRESCOMP="emxbind -ep" | |
28118 | else | |
28119 | MACRESCOMP="@#" | |
28120 | fi | |
28121 | fi | |
28122 | ||
28123 | ||
28124 | ||
28125 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
28126 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
28127 | if test "${ac_cv_type_mode_t+set}" = set; then | |
28128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28129 | else | |
28130 | cat >conftest.$ac_ext <<_ACEOF | |
28131 | /* confdefs.h. */ | |
28132 | _ACEOF | |
28133 | cat confdefs.h >>conftest.$ac_ext | |
28134 | cat >>conftest.$ac_ext <<_ACEOF | |
28135 | /* end confdefs.h. */ | |
28136 | $ac_includes_default | |
28137 | int | |
28138 | main () | |
28139 | { | |
28140 | if ((mode_t *) 0) | |
28141 | return 0; | |
28142 | if (sizeof (mode_t)) | |
28143 | return 0; | |
28144 | ; | |
28145 | return 0; | |
28146 | } | |
28147 | _ACEOF | |
28148 | rm -f conftest.$ac_objext | |
28149 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28150 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28151 | ac_status=$? |
ac1cb8d3 VS |
28152 | grep -v '^ *+' conftest.er1 >conftest.err |
28153 | rm -f conftest.er1 | |
28154 | cat conftest.err >&5 | |
a848cd7e SC |
28155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28156 | (exit $ac_status); } && | |
c228d3a4 RN |
28157 | { ac_try='test -z "$ac_c_werror_flag" |
28158 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28160 | (eval $ac_try) 2>&5 | |
28161 | ac_status=$? | |
28162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28163 | (exit $ac_status); }; } && | |
28164 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28166 | (eval $ac_try) 2>&5 | |
28167 | ac_status=$? | |
28168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28169 | (exit $ac_status); }; }; then | |
28170 | ac_cv_type_mode_t=yes | |
28171 | else | |
28172 | echo "$as_me: failed program was:" >&5 | |
28173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28174 | ||
28175 | ac_cv_type_mode_t=no | |
28176 | fi | |
ac1cb8d3 | 28177 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28178 | fi |
28179 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
28180 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
28181 | if test $ac_cv_type_mode_t = yes; then | |
28182 | : | |
28183 | else | |
28184 | ||
28185 | cat >>confdefs.h <<_ACEOF | |
28186 | #define mode_t int | |
28187 | _ACEOF | |
28188 | ||
28189 | fi | |
28190 | ||
28191 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
28192 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
28193 | if test "${ac_cv_type_off_t+set}" = set; then | |
28194 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28195 | else | |
28196 | cat >conftest.$ac_ext <<_ACEOF | |
28197 | /* confdefs.h. */ | |
28198 | _ACEOF | |
28199 | cat confdefs.h >>conftest.$ac_ext | |
28200 | cat >>conftest.$ac_ext <<_ACEOF | |
28201 | /* end confdefs.h. */ | |
28202 | $ac_includes_default | |
28203 | int | |
28204 | main () | |
28205 | { | |
28206 | if ((off_t *) 0) | |
28207 | return 0; | |
28208 | if (sizeof (off_t)) | |
28209 | return 0; | |
28210 | ; | |
28211 | return 0; | |
28212 | } | |
28213 | _ACEOF | |
28214 | rm -f conftest.$ac_objext | |
28215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28216 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28217 | ac_status=$? |
ac1cb8d3 VS |
28218 | grep -v '^ *+' conftest.er1 >conftest.err |
28219 | rm -f conftest.er1 | |
28220 | cat conftest.err >&5 | |
a848cd7e SC |
28221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28222 | (exit $ac_status); } && | |
c228d3a4 RN |
28223 | { ac_try='test -z "$ac_c_werror_flag" |
28224 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28226 | (eval $ac_try) 2>&5 | |
28227 | ac_status=$? | |
28228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28229 | (exit $ac_status); }; } && | |
28230 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28232 | (eval $ac_try) 2>&5 | |
28233 | ac_status=$? | |
28234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28235 | (exit $ac_status); }; }; then | |
28236 | ac_cv_type_off_t=yes | |
28237 | else | |
28238 | echo "$as_me: failed program was:" >&5 | |
28239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28240 | ||
28241 | ac_cv_type_off_t=no | |
28242 | fi | |
ac1cb8d3 | 28243 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28244 | fi |
28245 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
28246 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
28247 | if test $ac_cv_type_off_t = yes; then | |
28248 | : | |
28249 | else | |
28250 | ||
28251 | cat >>confdefs.h <<_ACEOF | |
28252 | #define off_t long | |
28253 | _ACEOF | |
28254 | ||
28255 | fi | |
28256 | ||
28257 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
28258 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
28259 | if test "${ac_cv_type_pid_t+set}" = set; then | |
28260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28261 | else | |
28262 | cat >conftest.$ac_ext <<_ACEOF | |
28263 | /* confdefs.h. */ | |
28264 | _ACEOF | |
28265 | cat confdefs.h >>conftest.$ac_ext | |
28266 | cat >>conftest.$ac_ext <<_ACEOF | |
28267 | /* end confdefs.h. */ | |
28268 | $ac_includes_default | |
28269 | int | |
28270 | main () | |
28271 | { | |
28272 | if ((pid_t *) 0) | |
28273 | return 0; | |
28274 | if (sizeof (pid_t)) | |
28275 | return 0; | |
28276 | ; | |
28277 | return 0; | |
28278 | } | |
28279 | _ACEOF | |
28280 | rm -f conftest.$ac_objext | |
28281 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28282 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28283 | ac_status=$? |
ac1cb8d3 VS |
28284 | grep -v '^ *+' conftest.er1 >conftest.err |
28285 | rm -f conftest.er1 | |
28286 | cat conftest.err >&5 | |
a848cd7e SC |
28287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28288 | (exit $ac_status); } && | |
c228d3a4 RN |
28289 | { ac_try='test -z "$ac_c_werror_flag" |
28290 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28292 | (eval $ac_try) 2>&5 | |
28293 | ac_status=$? | |
28294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28295 | (exit $ac_status); }; } && | |
28296 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28298 | (eval $ac_try) 2>&5 | |
28299 | ac_status=$? | |
28300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28301 | (exit $ac_status); }; }; then | |
28302 | ac_cv_type_pid_t=yes | |
28303 | else | |
28304 | echo "$as_me: failed program was:" >&5 | |
28305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28306 | ||
28307 | ac_cv_type_pid_t=no | |
28308 | fi | |
ac1cb8d3 | 28309 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28310 | fi |
28311 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
28312 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
28313 | if test $ac_cv_type_pid_t = yes; then | |
28314 | : | |
28315 | else | |
28316 | ||
28317 | cat >>confdefs.h <<_ACEOF | |
28318 | #define pid_t int | |
28319 | _ACEOF | |
28320 | ||
28321 | fi | |
28322 | ||
28323 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
28324 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
28325 | if test "${ac_cv_type_size_t+set}" = set; then | |
28326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28327 | else | |
28328 | cat >conftest.$ac_ext <<_ACEOF | |
28329 | /* confdefs.h. */ | |
28330 | _ACEOF | |
28331 | cat confdefs.h >>conftest.$ac_ext | |
28332 | cat >>conftest.$ac_ext <<_ACEOF | |
28333 | /* end confdefs.h. */ | |
28334 | $ac_includes_default | |
28335 | int | |
28336 | main () | |
28337 | { | |
28338 | if ((size_t *) 0) | |
28339 | return 0; | |
28340 | if (sizeof (size_t)) | |
28341 | return 0; | |
28342 | ; | |
28343 | return 0; | |
28344 | } | |
28345 | _ACEOF | |
28346 | rm -f conftest.$ac_objext | |
28347 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28348 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28349 | ac_status=$? |
ac1cb8d3 VS |
28350 | grep -v '^ *+' conftest.er1 >conftest.err |
28351 | rm -f conftest.er1 | |
28352 | cat conftest.err >&5 | |
a848cd7e SC |
28353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28354 | (exit $ac_status); } && | |
c228d3a4 RN |
28355 | { ac_try='test -z "$ac_c_werror_flag" |
28356 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28358 | (eval $ac_try) 2>&5 | |
28359 | ac_status=$? | |
28360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28361 | (exit $ac_status); }; } && | |
28362 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28364 | (eval $ac_try) 2>&5 | |
28365 | ac_status=$? | |
28366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28367 | (exit $ac_status); }; }; then | |
28368 | ac_cv_type_size_t=yes | |
28369 | else | |
28370 | echo "$as_me: failed program was:" >&5 | |
28371 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28372 | ||
28373 | ac_cv_type_size_t=no | |
28374 | fi | |
ac1cb8d3 | 28375 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28376 | fi |
28377 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
28378 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
28379 | if test $ac_cv_type_size_t = yes; then | |
28380 | : | |
28381 | else | |
28382 | ||
28383 | cat >>confdefs.h <<_ACEOF | |
28384 | #define size_t unsigned | |
28385 | _ACEOF | |
28386 | ||
28387 | fi | |
28388 | ||
28389 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
28390 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
28391 | if test "${ac_cv_type_uid_t+set}" = set; then | |
28392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28393 | else | |
28394 | cat >conftest.$ac_ext <<_ACEOF | |
28395 | /* confdefs.h. */ | |
28396 | _ACEOF | |
28397 | cat confdefs.h >>conftest.$ac_ext | |
28398 | cat >>conftest.$ac_ext <<_ACEOF | |
28399 | /* end confdefs.h. */ | |
28400 | #include <sys/types.h> | |
28401 | ||
28402 | _ACEOF | |
28403 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
28404 | $EGREP "uid_t" >/dev/null 2>&1; then | |
28405 | ac_cv_type_uid_t=yes | |
28406 | else | |
28407 | ac_cv_type_uid_t=no | |
28408 | fi | |
28409 | rm -f conftest* | |
28410 | ||
28411 | fi | |
28412 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
28413 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
28414 | if test $ac_cv_type_uid_t = no; then | |
28415 | ||
28416 | cat >>confdefs.h <<\_ACEOF | |
28417 | #define uid_t int | |
28418 | _ACEOF | |
28419 | ||
28420 | ||
28421 | cat >>confdefs.h <<\_ACEOF | |
28422 | #define gid_t int | |
28423 | _ACEOF | |
28424 | ||
28425 | fi | |
28426 | ||
28427 | ||
28428 | ||
28429 | ||
28430 | ac_ext=cc | |
28431 | ac_cpp='$CXXCPP $CPPFLAGS' | |
28432 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28433 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28434 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28435 | ||
28436 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
28437 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
28438 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
28439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28440 | else | |
28441 | ||
28442 | cat >conftest.$ac_ext <<_ACEOF | |
28443 | /* confdefs.h. */ | |
28444 | _ACEOF | |
28445 | cat confdefs.h >>conftest.$ac_ext | |
28446 | cat >>conftest.$ac_ext <<_ACEOF | |
28447 | /* end confdefs.h. */ | |
28448 | #include <stddef.h> | |
28449 | int | |
28450 | main () | |
28451 | { | |
28452 | ||
28453 | return 0; } | |
28454 | ||
28455 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
28456 | ||
28457 | int bar() { | |
28458 | ||
28459 | ; | |
28460 | return 0; | |
28461 | } | |
28462 | _ACEOF | |
28463 | rm -f conftest.$ac_objext | |
28464 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28465 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28466 | ac_status=$? |
ac1cb8d3 VS |
28467 | grep -v '^ *+' conftest.er1 >conftest.err |
28468 | rm -f conftest.er1 | |
28469 | cat conftest.err >&5 | |
a848cd7e SC |
28470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28471 | (exit $ac_status); } && | |
c228d3a4 RN |
28472 | { ac_try='test -z "$ac_cxx_werror_flag" |
28473 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28475 | (eval $ac_try) 2>&5 | |
28476 | ac_status=$? | |
28477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28478 | (exit $ac_status); }; } && | |
28479 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28481 | (eval $ac_try) 2>&5 | |
28482 | ac_status=$? | |
28483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28484 | (exit $ac_status); }; }; then | |
28485 | wx_cv_size_t_is_uint=no | |
28486 | else | |
28487 | echo "$as_me: failed program was:" >&5 | |
28488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28489 | ||
28490 | wx_cv_size_t_is_uint=yes | |
28491 | ||
28492 | fi | |
ac1cb8d3 | 28493 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28494 | |
28495 | ||
28496 | fi | |
28497 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
28498 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
28499 | ||
28500 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
28501 | cat >>confdefs.h <<\_ACEOF | |
28502 | #define wxSIZE_T_IS_UINT 1 | |
28503 | _ACEOF | |
28504 | ||
28505 | else | |
28506 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
28507 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
28508 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
28509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28510 | else | |
28511 | cat >conftest.$ac_ext <<_ACEOF | |
28512 | /* confdefs.h. */ | |
28513 | _ACEOF | |
28514 | cat confdefs.h >>conftest.$ac_ext | |
28515 | cat >>conftest.$ac_ext <<_ACEOF | |
28516 | /* end confdefs.h. */ | |
28517 | #include <stddef.h> | |
28518 | int | |
28519 | main () | |
28520 | { | |
28521 | ||
28522 | return 0; } | |
28523 | ||
28524 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
28525 | ||
28526 | int bar() { | |
28527 | ||
28528 | ; | |
28529 | return 0; | |
28530 | } | |
28531 | _ACEOF | |
28532 | rm -f conftest.$ac_objext | |
28533 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28534 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28535 | ac_status=$? |
ac1cb8d3 VS |
28536 | grep -v '^ *+' conftest.er1 >conftest.err |
28537 | rm -f conftest.er1 | |
28538 | cat conftest.err >&5 | |
a848cd7e SC |
28539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28540 | (exit $ac_status); } && | |
c228d3a4 RN |
28541 | { ac_try='test -z "$ac_cxx_werror_flag" |
28542 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28544 | (eval $ac_try) 2>&5 | |
28545 | ac_status=$? | |
28546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28547 | (exit $ac_status); }; } && | |
28548 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28550 | (eval $ac_try) 2>&5 | |
28551 | ac_status=$? | |
28552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28553 | (exit $ac_status); }; }; then | |
28554 | wx_cv_size_t_is_ulong=no | |
28555 | else | |
28556 | echo "$as_me: failed program was:" >&5 | |
28557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28558 | ||
28559 | wx_cv_size_t_is_ulong=yes | |
28560 | ||
28561 | fi | |
ac1cb8d3 | 28562 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28563 | |
28564 | fi | |
28565 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
28566 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
28567 | ||
28568 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
28569 | cat >>confdefs.h <<\_ACEOF | |
28570 | #define wxSIZE_T_IS_ULONG 1 | |
28571 | _ACEOF | |
28572 | ||
28573 | fi | |
28574 | fi | |
28575 | ||
28576 | ac_ext=c | |
28577 | ac_cpp='$CPP $CPPFLAGS' | |
28578 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28579 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28580 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
28581 | ||
28582 | ||
28583 | ||
28584 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
28585 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
28586 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
28587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28588 | else | |
28589 | ||
28590 | cat >conftest.$ac_ext <<_ACEOF | |
28591 | /* confdefs.h. */ | |
28592 | _ACEOF | |
28593 | cat confdefs.h >>conftest.$ac_ext | |
28594 | cat >>conftest.$ac_ext <<_ACEOF | |
28595 | /* end confdefs.h. */ | |
28596 | #include <pwd.h> | |
28597 | int | |
28598 | main () | |
28599 | { | |
28600 | ||
28601 | char *p; | |
28602 | struct passwd *pw; | |
28603 | p = pw->pw_gecos; | |
28604 | ||
28605 | ; | |
28606 | return 0; | |
28607 | } | |
28608 | _ACEOF | |
28609 | rm -f conftest.$ac_objext | |
28610 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28611 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28612 | ac_status=$? |
ac1cb8d3 VS |
28613 | grep -v '^ *+' conftest.er1 >conftest.err |
28614 | rm -f conftest.er1 | |
28615 | cat conftest.err >&5 | |
a848cd7e SC |
28616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28617 | (exit $ac_status); } && | |
c228d3a4 RN |
28618 | { ac_try='test -z "$ac_c_werror_flag" |
28619 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28621 | (eval $ac_try) 2>&5 | |
28622 | ac_status=$? | |
28623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28624 | (exit $ac_status); }; } && | |
28625 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28627 | (eval $ac_try) 2>&5 | |
28628 | ac_status=$? | |
28629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28630 | (exit $ac_status); }; }; then | |
28631 | ||
28632 | wx_cv_struct_pw_gecos=yes | |
28633 | ||
28634 | else | |
28635 | echo "$as_me: failed program was:" >&5 | |
28636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28637 | ||
28638 | ||
28639 | wx_cv_struct_pw_gecos=no | |
28640 | ||
28641 | ||
28642 | fi | |
ac1cb8d3 | 28643 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28644 | |
28645 | ||
28646 | fi | |
28647 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
28648 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
28649 | ||
28650 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
28651 | cat >>confdefs.h <<\_ACEOF | |
28652 | #define HAVE_PW_GECOS 1 | |
28653 | _ACEOF | |
28654 | ||
28655 | fi | |
28656 | ||
28657 | ||
28658 | if test "$wx_cv_sizeof_wchar_t" != "0"; then | |
28659 | cat >>confdefs.h <<\_ACEOF | |
28660 | #define wxUSE_WCHAR_T 1 | |
28661 | _ACEOF | |
28662 | ||
28663 | ||
28664 | WCSLEN_FOUND=0 | |
28665 | WCHAR_LINK= | |
28666 | ||
28667 | for ac_func in wcslen | |
28668 | do | |
28669 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28670 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28671 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28672 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28674 | else | |
28675 | cat >conftest.$ac_ext <<_ACEOF | |
28676 | /* confdefs.h. */ | |
28677 | _ACEOF | |
28678 | cat confdefs.h >>conftest.$ac_ext | |
28679 | cat >>conftest.$ac_ext <<_ACEOF | |
28680 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28681 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28682 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28683 | #define $ac_func innocuous_$ac_func | |
28684 | ||
a848cd7e SC |
28685 | /* System header to define __stub macros and hopefully few prototypes, |
28686 | which can conflict with char $ac_func (); below. | |
28687 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28688 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28689 | |
a848cd7e SC |
28690 | #ifdef __STDC__ |
28691 | # include <limits.h> | |
28692 | #else | |
28693 | # include <assert.h> | |
28694 | #endif | |
ac1cb8d3 VS |
28695 | |
28696 | #undef $ac_func | |
28697 | ||
a848cd7e SC |
28698 | /* Override any gcc2 internal prototype to avoid an error. */ |
28699 | #ifdef __cplusplus | |
28700 | extern "C" | |
28701 | { | |
28702 | #endif | |
28703 | /* We use char because int might match the return type of a gcc2 | |
28704 | builtin and then its argument prototype would still apply. */ | |
28705 | char $ac_func (); | |
28706 | /* The GNU C library defines this for functions which it implements | |
28707 | to always fail with ENOSYS. Some functions are actually named | |
28708 | something starting with __ and the normal name is an alias. */ | |
28709 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28710 | choke me | |
28711 | #else | |
28712 | char (*f) () = $ac_func; | |
28713 | #endif | |
28714 | #ifdef __cplusplus | |
28715 | } | |
28716 | #endif | |
28717 | ||
28718 | int | |
28719 | main () | |
28720 | { | |
28721 | return f != $ac_func; | |
28722 | ; | |
28723 | return 0; | |
28724 | } | |
28725 | _ACEOF | |
28726 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28727 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28728 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28729 | ac_status=$? |
ac1cb8d3 VS |
28730 | grep -v '^ *+' conftest.er1 >conftest.err |
28731 | rm -f conftest.er1 | |
28732 | cat conftest.err >&5 | |
a848cd7e SC |
28733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28734 | (exit $ac_status); } && | |
c228d3a4 RN |
28735 | { ac_try='test -z "$ac_c_werror_flag" |
28736 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28738 | (eval $ac_try) 2>&5 | |
28739 | ac_status=$? | |
28740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28741 | (exit $ac_status); }; } && | |
28742 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28744 | (eval $ac_try) 2>&5 | |
28745 | ac_status=$? | |
28746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28747 | (exit $ac_status); }; }; then | |
28748 | eval "$as_ac_var=yes" | |
28749 | else | |
28750 | echo "$as_me: failed program was:" >&5 | |
28751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28752 | ||
28753 | eval "$as_ac_var=no" | |
28754 | fi | |
ac1cb8d3 VS |
28755 | rm -f conftest.err conftest.$ac_objext \ |
28756 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28757 | fi |
28758 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28759 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28760 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28761 | cat >>confdefs.h <<_ACEOF | |
28762 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28763 | _ACEOF | |
28764 | WCSLEN_FOUND=1 | |
28765 | fi | |
28766 | done | |
28767 | ||
28768 | ||
28769 | if test "$WCSLEN_FOUND" = 0; then | |
28770 | if test "$TOOLKIT" = "MSW"; then | |
28771 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
28772 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
28773 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
28774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28775 | else | |
28776 | ac_check_lib_save_LIBS=$LIBS | |
28777 | LIBS="-lmsvcrt $LIBS" | |
28778 | cat >conftest.$ac_ext <<_ACEOF | |
28779 | /* confdefs.h. */ | |
28780 | _ACEOF | |
28781 | cat confdefs.h >>conftest.$ac_ext | |
28782 | cat >>conftest.$ac_ext <<_ACEOF | |
28783 | /* end confdefs.h. */ | |
28784 | ||
28785 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28786 | #ifdef __cplusplus | |
28787 | extern "C" | |
28788 | #endif | |
28789 | /* We use char because int might match the return type of a gcc2 | |
28790 | builtin and then its argument prototype would still apply. */ | |
28791 | char wcslen (); | |
28792 | int | |
28793 | main () | |
28794 | { | |
28795 | wcslen (); | |
28796 | ; | |
28797 | return 0; | |
28798 | } | |
28799 | _ACEOF | |
28800 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28802 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28803 | ac_status=$? |
ac1cb8d3 VS |
28804 | grep -v '^ *+' conftest.er1 >conftest.err |
28805 | rm -f conftest.er1 | |
28806 | cat conftest.err >&5 | |
a848cd7e SC |
28807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28808 | (exit $ac_status); } && | |
c228d3a4 RN |
28809 | { ac_try='test -z "$ac_c_werror_flag" |
28810 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28812 | (eval $ac_try) 2>&5 | |
28813 | ac_status=$? | |
28814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28815 | (exit $ac_status); }; } && | |
28816 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28818 | (eval $ac_try) 2>&5 | |
28819 | ac_status=$? | |
28820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28821 | (exit $ac_status); }; }; then | |
28822 | ac_cv_lib_msvcrt_wcslen=yes | |
28823 | else | |
28824 | echo "$as_me: failed program was:" >&5 | |
28825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28826 | ||
28827 | ac_cv_lib_msvcrt_wcslen=no | |
28828 | fi | |
ac1cb8d3 VS |
28829 | rm -f conftest.err conftest.$ac_objext \ |
28830 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28831 | LIBS=$ac_check_lib_save_LIBS |
28832 | fi | |
28833 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
28834 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
28835 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
28836 | WCHAR_OK=1 | |
28837 | fi | |
28838 | ||
28839 | else | |
28840 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
28841 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
28842 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
28843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28844 | else | |
28845 | ac_check_lib_save_LIBS=$LIBS | |
28846 | LIBS="-lw $LIBS" | |
28847 | cat >conftest.$ac_ext <<_ACEOF | |
28848 | /* confdefs.h. */ | |
28849 | _ACEOF | |
28850 | cat confdefs.h >>conftest.$ac_ext | |
28851 | cat >>conftest.$ac_ext <<_ACEOF | |
28852 | /* end confdefs.h. */ | |
28853 | ||
28854 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28855 | #ifdef __cplusplus | |
28856 | extern "C" | |
28857 | #endif | |
28858 | /* We use char because int might match the return type of a gcc2 | |
28859 | builtin and then its argument prototype would still apply. */ | |
28860 | char wcslen (); | |
28861 | int | |
28862 | main () | |
28863 | { | |
28864 | wcslen (); | |
28865 | ; | |
28866 | return 0; | |
28867 | } | |
28868 | _ACEOF | |
28869 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28870 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28871 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28872 | ac_status=$? |
ac1cb8d3 VS |
28873 | grep -v '^ *+' conftest.er1 >conftest.err |
28874 | rm -f conftest.er1 | |
28875 | cat conftest.err >&5 | |
a848cd7e SC |
28876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28877 | (exit $ac_status); } && | |
c228d3a4 RN |
28878 | { ac_try='test -z "$ac_c_werror_flag" |
28879 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28881 | (eval $ac_try) 2>&5 | |
28882 | ac_status=$? | |
28883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28884 | (exit $ac_status); }; } && | |
28885 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
28891 | ac_cv_lib_w_wcslen=yes | |
28892 | else | |
28893 | echo "$as_me: failed program was:" >&5 | |
28894 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28895 | ||
28896 | ac_cv_lib_w_wcslen=no | |
28897 | fi | |
ac1cb8d3 VS |
28898 | rm -f conftest.err conftest.$ac_objext \ |
28899 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28900 | LIBS=$ac_check_lib_save_LIBS |
28901 | fi | |
28902 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
28903 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
28904 | if test $ac_cv_lib_w_wcslen = yes; then | |
28905 | ||
28906 | WCHAR_LINK=" -lw" | |
28907 | WCSLEN_FOUND=1 | |
28908 | ||
28909 | fi | |
28910 | ||
28911 | fi | |
28912 | fi | |
28913 | ||
28914 | if test "$WCSLEN_FOUND" = 1; then | |
28915 | cat >>confdefs.h <<\_ACEOF | |
28916 | #define HAVE_WCSLEN 1 | |
28917 | _ACEOF | |
28918 | ||
28919 | fi | |
28920 | ||
473276a9 VS |
28921 | if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then |
28922 | CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE " | |
28923 | fi | |
28924 | ||
a848cd7e SC |
28925 | |
28926 | for ac_func in wcsrtombs | |
28927 | do | |
28928 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28929 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28930 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28931 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28933 | else | |
28934 | cat >conftest.$ac_ext <<_ACEOF | |
28935 | /* confdefs.h. */ | |
28936 | _ACEOF | |
28937 | cat confdefs.h >>conftest.$ac_ext | |
28938 | cat >>conftest.$ac_ext <<_ACEOF | |
28939 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28940 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28941 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28942 | #define $ac_func innocuous_$ac_func | |
28943 | ||
a848cd7e SC |
28944 | /* System header to define __stub macros and hopefully few prototypes, |
28945 | which can conflict with char $ac_func (); below. | |
28946 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28947 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28948 | |
a848cd7e SC |
28949 | #ifdef __STDC__ |
28950 | # include <limits.h> | |
28951 | #else | |
28952 | # include <assert.h> | |
28953 | #endif | |
ac1cb8d3 VS |
28954 | |
28955 | #undef $ac_func | |
28956 | ||
a848cd7e SC |
28957 | /* Override any gcc2 internal prototype to avoid an error. */ |
28958 | #ifdef __cplusplus | |
28959 | extern "C" | |
28960 | { | |
28961 | #endif | |
28962 | /* We use char because int might match the return type of a gcc2 | |
28963 | builtin and then its argument prototype would still apply. */ | |
28964 | char $ac_func (); | |
28965 | /* The GNU C library defines this for functions which it implements | |
28966 | to always fail with ENOSYS. Some functions are actually named | |
28967 | something starting with __ and the normal name is an alias. */ | |
28968 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28969 | choke me | |
28970 | #else | |
28971 | char (*f) () = $ac_func; | |
28972 | #endif | |
28973 | #ifdef __cplusplus | |
28974 | } | |
28975 | #endif | |
28976 | ||
28977 | int | |
28978 | main () | |
28979 | { | |
28980 | return f != $ac_func; | |
28981 | ; | |
28982 | return 0; | |
28983 | } | |
28984 | _ACEOF | |
28985 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28986 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28987 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28988 | ac_status=$? |
ac1cb8d3 VS |
28989 | grep -v '^ *+' conftest.er1 >conftest.err |
28990 | rm -f conftest.er1 | |
28991 | cat conftest.err >&5 | |
a848cd7e SC |
28992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28993 | (exit $ac_status); } && | |
c228d3a4 RN |
28994 | { ac_try='test -z "$ac_c_werror_flag" |
28995 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28997 | (eval $ac_try) 2>&5 | |
28998 | ac_status=$? | |
28999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29000 | (exit $ac_status); }; } && | |
29001 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29003 | (eval $ac_try) 2>&5 | |
29004 | ac_status=$? | |
29005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29006 | (exit $ac_status); }; }; then | |
29007 | eval "$as_ac_var=yes" | |
29008 | else | |
29009 | echo "$as_me: failed program was:" >&5 | |
29010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29011 | ||
29012 | eval "$as_ac_var=no" | |
29013 | fi | |
ac1cb8d3 VS |
29014 | rm -f conftest.err conftest.$ac_objext \ |
29015 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29016 | fi |
29017 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29018 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29019 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29020 | cat >>confdefs.h <<_ACEOF | |
29021 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29022 | _ACEOF | |
29023 | ||
29024 | fi | |
29025 | done | |
29026 | ||
29027 | else | |
29028 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
29029 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
29030 | fi | |
29031 | ||
29032 | ||
29033 | ||
29034 | ac_ext=cc | |
29035 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29036 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29037 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29038 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29039 | ||
29040 | ||
29041 | ||
29042 | for ac_func in vsnprintf | |
29043 | do | |
29044 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29045 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29046 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29047 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29049 | else | |
29050 | cat >conftest.$ac_ext <<_ACEOF | |
29051 | /* confdefs.h. */ | |
29052 | _ACEOF | |
29053 | cat confdefs.h >>conftest.$ac_ext | |
29054 | cat >>conftest.$ac_ext <<_ACEOF | |
29055 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29056 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29057 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29058 | #define $ac_func innocuous_$ac_func | |
29059 | ||
a848cd7e SC |
29060 | /* System header to define __stub macros and hopefully few prototypes, |
29061 | which can conflict with char $ac_func (); below. | |
29062 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29063 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29064 | |
a848cd7e SC |
29065 | #ifdef __STDC__ |
29066 | # include <limits.h> | |
29067 | #else | |
29068 | # include <assert.h> | |
29069 | #endif | |
ac1cb8d3 VS |
29070 | |
29071 | #undef $ac_func | |
29072 | ||
a848cd7e SC |
29073 | /* Override any gcc2 internal prototype to avoid an error. */ |
29074 | #ifdef __cplusplus | |
29075 | extern "C" | |
29076 | { | |
29077 | #endif | |
29078 | /* We use char because int might match the return type of a gcc2 | |
29079 | builtin and then its argument prototype would still apply. */ | |
29080 | char $ac_func (); | |
29081 | /* The GNU C library defines this for functions which it implements | |
29082 | to always fail with ENOSYS. Some functions are actually named | |
29083 | something starting with __ and the normal name is an alias. */ | |
29084 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29085 | choke me | |
29086 | #else | |
29087 | char (*f) () = $ac_func; | |
29088 | #endif | |
29089 | #ifdef __cplusplus | |
29090 | } | |
29091 | #endif | |
29092 | ||
29093 | int | |
29094 | main () | |
29095 | { | |
29096 | return f != $ac_func; | |
29097 | ; | |
29098 | return 0; | |
29099 | } | |
29100 | _ACEOF | |
29101 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29102 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29103 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29104 | ac_status=$? |
ac1cb8d3 VS |
29105 | grep -v '^ *+' conftest.er1 >conftest.err |
29106 | rm -f conftest.er1 | |
29107 | cat conftest.err >&5 | |
a848cd7e SC |
29108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29109 | (exit $ac_status); } && | |
c228d3a4 RN |
29110 | { ac_try='test -z "$ac_cxx_werror_flag" |
29111 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29113 | (eval $ac_try) 2>&5 | |
29114 | ac_status=$? | |
29115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29116 | (exit $ac_status); }; } && | |
29117 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29119 | (eval $ac_try) 2>&5 | |
29120 | ac_status=$? | |
29121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29122 | (exit $ac_status); }; }; then | |
29123 | eval "$as_ac_var=yes" | |
29124 | else | |
29125 | echo "$as_me: failed program was:" >&5 | |
29126 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29127 | ||
29128 | eval "$as_ac_var=no" | |
29129 | fi | |
ac1cb8d3 VS |
29130 | rm -f conftest.err conftest.$ac_objext \ |
29131 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29132 | fi |
29133 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29134 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29135 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29136 | cat >>confdefs.h <<_ACEOF | |
29137 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29138 | _ACEOF | |
29139 | ||
29140 | fi | |
29141 | done | |
29142 | ||
29143 | ||
29144 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
29145 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
29146 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
29147 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
29148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29149 | else | |
29150 | ||
29151 | cat >conftest.$ac_ext <<_ACEOF | |
29152 | /* confdefs.h. */ | |
29153 | _ACEOF | |
29154 | cat confdefs.h >>conftest.$ac_ext | |
29155 | cat >>conftest.$ac_ext <<_ACEOF | |
29156 | /* end confdefs.h. */ | |
29157 | ||
29158 | #include <stdio.h> | |
29159 | #include <stdarg.h> | |
29160 | ||
29161 | int | |
29162 | main () | |
29163 | { | |
29164 | ||
29165 | char *buf; | |
29166 | va_list ap; | |
29167 | vsnprintf(buf, 10u, "%s", ap); | |
29168 | ||
29169 | ; | |
29170 | return 0; | |
29171 | } | |
29172 | _ACEOF | |
29173 | rm -f conftest.$ac_objext | |
29174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29175 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29176 | ac_status=$? |
ac1cb8d3 VS |
29177 | grep -v '^ *+' conftest.er1 >conftest.err |
29178 | rm -f conftest.er1 | |
29179 | cat conftest.err >&5 | |
a848cd7e SC |
29180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29181 | (exit $ac_status); } && | |
c228d3a4 RN |
29182 | { ac_try='test -z "$ac_cxx_werror_flag" |
29183 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29185 | (eval $ac_try) 2>&5 | |
29186 | ac_status=$? | |
29187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29188 | (exit $ac_status); }; } && | |
29189 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29191 | (eval $ac_try) 2>&5 | |
29192 | ac_status=$? | |
29193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29194 | (exit $ac_status); }; }; then | |
29195 | wx_cv_func_vsnprintf_decl=yes | |
29196 | else | |
29197 | echo "$as_me: failed program was:" >&5 | |
29198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29199 | ||
29200 | wx_cv_func_vsnprintf_decl=no | |
29201 | ||
29202 | fi | |
ac1cb8d3 | 29203 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29204 | |
29205 | ||
29206 | fi | |
29207 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
29208 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
29209 | ||
29210 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
29211 | cat >>confdefs.h <<\_ACEOF | |
29212 | #define HAVE_VSNPRINTF_DECL 1 | |
29213 | _ACEOF | |
29214 | ||
29215 | fi | |
29216 | fi | |
29217 | ||
29218 | if test "$wxUSE_UNICODE" = yes; then | |
29219 | ||
29220 | ||
29221 | ||
fbe47c7b VS |
29222 | |
29223 | ||
29224 | ||
29225 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
29226 | do |
29227 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29228 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29229 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29230 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29232 | else | |
29233 | cat >conftest.$ac_ext <<_ACEOF | |
29234 | /* confdefs.h. */ | |
29235 | _ACEOF | |
29236 | cat confdefs.h >>conftest.$ac_ext | |
29237 | cat >>conftest.$ac_ext <<_ACEOF | |
29238 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29239 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29240 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29241 | #define $ac_func innocuous_$ac_func | |
29242 | ||
a848cd7e SC |
29243 | /* System header to define __stub macros and hopefully few prototypes, |
29244 | which can conflict with char $ac_func (); below. | |
29245 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29246 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29247 | |
a848cd7e SC |
29248 | #ifdef __STDC__ |
29249 | # include <limits.h> | |
29250 | #else | |
29251 | # include <assert.h> | |
29252 | #endif | |
ac1cb8d3 VS |
29253 | |
29254 | #undef $ac_func | |
29255 | ||
a848cd7e SC |
29256 | /* Override any gcc2 internal prototype to avoid an error. */ |
29257 | #ifdef __cplusplus | |
29258 | extern "C" | |
29259 | { | |
29260 | #endif | |
29261 | /* We use char because int might match the return type of a gcc2 | |
29262 | builtin and then its argument prototype would still apply. */ | |
29263 | char $ac_func (); | |
29264 | /* The GNU C library defines this for functions which it implements | |
29265 | to always fail with ENOSYS. Some functions are actually named | |
29266 | something starting with __ and the normal name is an alias. */ | |
29267 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29268 | choke me | |
29269 | #else | |
29270 | char (*f) () = $ac_func; | |
29271 | #endif | |
29272 | #ifdef __cplusplus | |
29273 | } | |
29274 | #endif | |
29275 | ||
29276 | int | |
29277 | main () | |
29278 | { | |
29279 | return f != $ac_func; | |
29280 | ; | |
29281 | return 0; | |
29282 | } | |
29283 | _ACEOF | |
29284 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29285 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29286 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29287 | ac_status=$? |
ac1cb8d3 VS |
29288 | grep -v '^ *+' conftest.er1 >conftest.err |
29289 | rm -f conftest.er1 | |
29290 | cat conftest.err >&5 | |
a848cd7e SC |
29291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29292 | (exit $ac_status); } && | |
c228d3a4 RN |
29293 | { ac_try='test -z "$ac_cxx_werror_flag" |
29294 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29296 | (eval $ac_try) 2>&5 | |
29297 | ac_status=$? | |
29298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29299 | (exit $ac_status); }; } && | |
29300 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29302 | (eval $ac_try) 2>&5 | |
29303 | ac_status=$? | |
29304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29305 | (exit $ac_status); }; }; then | |
29306 | eval "$as_ac_var=yes" | |
29307 | else | |
29308 | echo "$as_me: failed program was:" >&5 | |
29309 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29310 | ||
29311 | eval "$as_ac_var=no" | |
29312 | fi | |
ac1cb8d3 VS |
29313 | rm -f conftest.err conftest.$ac_objext \ |
29314 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29315 | fi |
29316 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29317 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29318 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29319 | cat >>confdefs.h <<_ACEOF | |
29320 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29321 | _ACEOF | |
29322 | ||
29323 | fi | |
29324 | done | |
29325 | ||
29326 | ||
29327 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
29328 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
29329 | cat >conftest.$ac_ext <<_ACEOF | |
29330 | /* confdefs.h. */ | |
29331 | _ACEOF | |
29332 | cat confdefs.h >>conftest.$ac_ext | |
29333 | cat >>conftest.$ac_ext <<_ACEOF | |
29334 | /* end confdefs.h. */ | |
29335 | #include <wchar.h> | |
29336 | int | |
29337 | main () | |
29338 | { | |
29339 | &_vsnwprintf; | |
29340 | ; | |
29341 | return 0; | |
29342 | } | |
29343 | _ACEOF | |
29344 | rm -f conftest.$ac_objext | |
29345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29346 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29347 | ac_status=$? |
ac1cb8d3 VS |
29348 | grep -v '^ *+' conftest.er1 >conftest.err |
29349 | rm -f conftest.er1 | |
29350 | cat conftest.err >&5 | |
a848cd7e SC |
29351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29352 | (exit $ac_status); } && | |
c228d3a4 RN |
29353 | { ac_try='test -z "$ac_cxx_werror_flag" |
29354 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29356 | (eval $ac_try) 2>&5 | |
29357 | ac_status=$? | |
29358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29359 | (exit $ac_status); }; } && | |
29360 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29362 | (eval $ac_try) 2>&5 | |
29363 | ac_status=$? | |
29364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29365 | (exit $ac_status); }; }; then | |
29366 | echo "$as_me:$LINENO: result: yes" >&5 | |
29367 | echo "${ECHO_T}yes" >&6 | |
29368 | cat >>confdefs.h <<\_ACEOF | |
29369 | #define HAVE__VSNWPRINTF 1 | |
29370 | _ACEOF | |
29371 | ||
29372 | else | |
29373 | echo "$as_me: failed program was:" >&5 | |
29374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29375 | ||
29376 | echo "$as_me:$LINENO: result: no" >&5 | |
29377 | echo "${ECHO_T}no" >&6 | |
29378 | fi | |
ac1cb8d3 | 29379 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
29380 | fi |
29381 | ||
29382 | ac_ext=c | |
29383 | ac_cpp='$CPP $CPPFLAGS' | |
29384 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29385 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29386 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29387 | ||
29388 | ||
29389 | ||
29390 | ||
29391 | if test "$TOOLKIT" != "MSW"; then | |
29392 | ||
29393 | ||
29394 | ||
29395 | ||
29396 | ac_ext=cc | |
29397 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29398 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29399 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29400 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29401 | ||
29402 | ||
29403 | ||
29404 | ||
29405 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
29406 | if test "${with_libiconv_prefix+set}" = set; then | |
29407 | withval="$with_libiconv_prefix" | |
29408 | ||
29409 | for dir in `echo "$withval" | tr : ' '`; do | |
29410 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
29411 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
29412 | done | |
29413 | ||
29414 | fi; | |
29415 | ||
29416 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
29417 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
29418 | if test "${am_cv_func_iconv+set}" = set; then | |
29419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29420 | else | |
29421 | ||
29422 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
29423 | am_cv_lib_iconv=no | |
29424 | cat >conftest.$ac_ext <<_ACEOF | |
29425 | /* confdefs.h. */ | |
29426 | _ACEOF | |
29427 | cat confdefs.h >>conftest.$ac_ext | |
29428 | cat >>conftest.$ac_ext <<_ACEOF | |
29429 | /* end confdefs.h. */ | |
29430 | #include <stdlib.h> | |
29431 | #include <iconv.h> | |
29432 | int | |
29433 | main () | |
29434 | { | |
29435 | iconv_t cd = iconv_open("",""); | |
29436 | iconv(cd,NULL,NULL,NULL,NULL); | |
29437 | iconv_close(cd); | |
29438 | ; | |
29439 | return 0; | |
29440 | } | |
29441 | _ACEOF | |
29442 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29443 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29444 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29445 | ac_status=$? |
ac1cb8d3 VS |
29446 | grep -v '^ *+' conftest.er1 >conftest.err |
29447 | rm -f conftest.er1 | |
29448 | cat conftest.err >&5 | |
a848cd7e SC |
29449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29450 | (exit $ac_status); } && | |
c228d3a4 RN |
29451 | { ac_try='test -z "$ac_cxx_werror_flag" |
29452 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29454 | (eval $ac_try) 2>&5 | |
29455 | ac_status=$? | |
29456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29457 | (exit $ac_status); }; } && | |
29458 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29460 | (eval $ac_try) 2>&5 | |
29461 | ac_status=$? | |
29462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29463 | (exit $ac_status); }; }; then | |
29464 | am_cv_func_iconv=yes | |
29465 | else | |
29466 | echo "$as_me: failed program was:" >&5 | |
29467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29468 | ||
29469 | fi | |
ac1cb8d3 VS |
29470 | rm -f conftest.err conftest.$ac_objext \ |
29471 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29472 | if test "$am_cv_func_iconv" != yes; then |
29473 | am_save_LIBS="$LIBS" | |
29474 | LIBS="$LIBS -liconv" | |
29475 | cat >conftest.$ac_ext <<_ACEOF | |
29476 | /* confdefs.h. */ | |
29477 | _ACEOF | |
29478 | cat confdefs.h >>conftest.$ac_ext | |
29479 | cat >>conftest.$ac_ext <<_ACEOF | |
29480 | /* end confdefs.h. */ | |
29481 | #include <stdlib.h> | |
29482 | #include <iconv.h> | |
29483 | int | |
29484 | main () | |
29485 | { | |
29486 | iconv_t cd = iconv_open("",""); | |
29487 | iconv(cd,NULL,NULL,NULL,NULL); | |
29488 | iconv_close(cd); | |
29489 | ; | |
29490 | return 0; | |
29491 | } | |
29492 | _ACEOF | |
29493 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29494 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29495 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29496 | ac_status=$? |
ac1cb8d3 VS |
29497 | grep -v '^ *+' conftest.er1 >conftest.err |
29498 | rm -f conftest.er1 | |
29499 | cat conftest.err >&5 | |
a848cd7e SC |
29500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29501 | (exit $ac_status); } && | |
c228d3a4 RN |
29502 | { ac_try='test -z "$ac_cxx_werror_flag" |
29503 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29505 | (eval $ac_try) 2>&5 | |
29506 | ac_status=$? | |
29507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29508 | (exit $ac_status); }; } && | |
29509 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29511 | (eval $ac_try) 2>&5 | |
29512 | ac_status=$? | |
29513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29514 | (exit $ac_status); }; }; then | |
29515 | am_cv_lib_iconv=yes | |
29516 | am_cv_func_iconv=yes | |
29517 | else | |
29518 | echo "$as_me: failed program was:" >&5 | |
29519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29520 | ||
29521 | fi | |
ac1cb8d3 VS |
29522 | rm -f conftest.err conftest.$ac_objext \ |
29523 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29524 | LIBS="$am_save_LIBS" |
29525 | fi | |
29526 | ||
29527 | fi | |
29528 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
29529 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
29530 | if test "$am_cv_func_iconv" = yes; then | |
29531 | ||
29532 | cat >>confdefs.h <<\_ACEOF | |
29533 | #define HAVE_ICONV 1 | |
29534 | _ACEOF | |
29535 | ||
29536 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
29537 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
29538 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
29539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29540 | else | |
29541 | cat >conftest.$ac_ext <<_ACEOF | |
29542 | /* confdefs.h. */ | |
29543 | _ACEOF | |
29544 | cat confdefs.h >>conftest.$ac_ext | |
29545 | cat >>conftest.$ac_ext <<_ACEOF | |
29546 | /* end confdefs.h. */ | |
29547 | ||
29548 | #include <stdlib.h> | |
29549 | #include <iconv.h> | |
29550 | extern | |
29551 | #ifdef __cplusplus | |
29552 | "C" | |
29553 | #endif | |
29554 | #if defined(__STDC__) || defined(__cplusplus) | |
29555 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
29556 | #else | |
29557 | size_t iconv(); | |
29558 | #endif | |
29559 | ||
29560 | int | |
29561 | main () | |
29562 | { | |
29563 | ||
29564 | ; | |
29565 | return 0; | |
29566 | } | |
29567 | _ACEOF | |
29568 | rm -f conftest.$ac_objext | |
29569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29570 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29571 | ac_status=$? |
ac1cb8d3 VS |
29572 | grep -v '^ *+' conftest.er1 >conftest.err |
29573 | rm -f conftest.er1 | |
29574 | cat conftest.err >&5 | |
a848cd7e SC |
29575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29576 | (exit $ac_status); } && | |
c228d3a4 RN |
29577 | { ac_try='test -z "$ac_cxx_werror_flag" |
29578 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29580 | (eval $ac_try) 2>&5 | |
29581 | ac_status=$? | |
29582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29583 | (exit $ac_status); }; } && | |
29584 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29586 | (eval $ac_try) 2>&5 | |
29587 | ac_status=$? | |
29588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29589 | (exit $ac_status); }; }; then | |
29590 | wx_cv_func_iconv_const="no" | |
29591 | else | |
29592 | echo "$as_me: failed program was:" >&5 | |
29593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29594 | ||
29595 | wx_cv_func_iconv_const="yes" | |
29596 | ||
29597 | fi | |
ac1cb8d3 | 29598 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29599 | |
29600 | fi | |
29601 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
29602 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
29603 | ||
29604 | iconv_const= | |
29605 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
29606 | iconv_const="const" | |
29607 | fi | |
29608 | ||
29609 | ||
29610 | cat >>confdefs.h <<_ACEOF | |
29611 | #define ICONV_CONST $iconv_const | |
29612 | _ACEOF | |
29613 | ||
29614 | fi | |
29615 | LIBICONV= | |
29616 | if test "$am_cv_lib_iconv" = yes; then | |
29617 | LIBICONV="-liconv" | |
29618 | fi | |
29619 | ||
29620 | ||
29621 | LIBS="$LIBICONV $LIBS" | |
29622 | ac_ext=c | |
29623 | ac_cpp='$CPP $CPPFLAGS' | |
29624 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29625 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29626 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29627 | ||
29628 | ||
29629 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
29630 | ||
29631 | for ac_func in sigaction | |
29632 | do | |
29633 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29634 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29635 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29636 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29638 | else | |
29639 | cat >conftest.$ac_ext <<_ACEOF | |
29640 | /* confdefs.h. */ | |
29641 | _ACEOF | |
29642 | cat confdefs.h >>conftest.$ac_ext | |
29643 | cat >>conftest.$ac_ext <<_ACEOF | |
29644 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29645 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29646 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29647 | #define $ac_func innocuous_$ac_func | |
29648 | ||
a848cd7e SC |
29649 | /* System header to define __stub macros and hopefully few prototypes, |
29650 | which can conflict with char $ac_func (); below. | |
29651 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29652 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29653 | |
a848cd7e SC |
29654 | #ifdef __STDC__ |
29655 | # include <limits.h> | |
29656 | #else | |
29657 | # include <assert.h> | |
29658 | #endif | |
ac1cb8d3 VS |
29659 | |
29660 | #undef $ac_func | |
29661 | ||
a848cd7e SC |
29662 | /* Override any gcc2 internal prototype to avoid an error. */ |
29663 | #ifdef __cplusplus | |
29664 | extern "C" | |
29665 | { | |
29666 | #endif | |
29667 | /* We use char because int might match the return type of a gcc2 | |
29668 | builtin and then its argument prototype would still apply. */ | |
29669 | char $ac_func (); | |
29670 | /* The GNU C library defines this for functions which it implements | |
29671 | to always fail with ENOSYS. Some functions are actually named | |
29672 | something starting with __ and the normal name is an alias. */ | |
29673 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29674 | choke me | |
29675 | #else | |
29676 | char (*f) () = $ac_func; | |
29677 | #endif | |
29678 | #ifdef __cplusplus | |
29679 | } | |
29680 | #endif | |
29681 | ||
29682 | int | |
29683 | main () | |
29684 | { | |
29685 | return f != $ac_func; | |
29686 | ; | |
29687 | return 0; | |
29688 | } | |
29689 | _ACEOF | |
29690 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29691 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29692 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29693 | ac_status=$? |
ac1cb8d3 VS |
29694 | grep -v '^ *+' conftest.er1 >conftest.err |
29695 | rm -f conftest.er1 | |
29696 | cat conftest.err >&5 | |
a848cd7e SC |
29697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29698 | (exit $ac_status); } && | |
c228d3a4 RN |
29699 | { ac_try='test -z "$ac_c_werror_flag" |
29700 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29702 | (eval $ac_try) 2>&5 | |
29703 | ac_status=$? | |
29704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29705 | (exit $ac_status); }; } && | |
29706 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29708 | (eval $ac_try) 2>&5 | |
29709 | ac_status=$? | |
29710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29711 | (exit $ac_status); }; }; then | |
29712 | eval "$as_ac_var=yes" | |
29713 | else | |
29714 | echo "$as_me: failed program was:" >&5 | |
29715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29716 | ||
29717 | eval "$as_ac_var=no" | |
29718 | fi | |
ac1cb8d3 VS |
29719 | rm -f conftest.err conftest.$ac_objext \ |
29720 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29721 | fi |
29722 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29723 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29724 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29725 | cat >>confdefs.h <<_ACEOF | |
29726 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29727 | _ACEOF | |
29728 | ||
29729 | fi | |
29730 | done | |
29731 | ||
29732 | ||
29733 | if test "$ac_cv_func_sigaction" = "no"; then | |
29734 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
29735 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
29736 | wxUSE_ON_FATAL_EXCEPTION=no | |
29737 | fi | |
29738 | ||
29739 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
29740 | ||
29741 | ||
29742 | ac_ext=cc | |
29743 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29744 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29745 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29746 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29747 | ||
29748 | ||
29749 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
29750 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
29751 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
29752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29753 | else | |
29754 | ||
29755 | cat >conftest.$ac_ext <<_ACEOF | |
29756 | /* confdefs.h. */ | |
29757 | _ACEOF | |
29758 | cat confdefs.h >>conftest.$ac_ext | |
29759 | cat >>conftest.$ac_ext <<_ACEOF | |
29760 | /* end confdefs.h. */ | |
29761 | #include <signal.h> | |
29762 | int | |
29763 | main () | |
29764 | { | |
29765 | ||
29766 | extern void testSigHandler(int); | |
29767 | ||
29768 | struct sigaction sa; | |
29769 | sa.sa_handler = testSigHandler; | |
29770 | ||
29771 | ; | |
29772 | return 0; | |
29773 | } | |
29774 | _ACEOF | |
29775 | rm -f conftest.$ac_objext | |
29776 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29777 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29778 | ac_status=$? |
ac1cb8d3 VS |
29779 | grep -v '^ *+' conftest.er1 >conftest.err |
29780 | rm -f conftest.er1 | |
29781 | cat conftest.err >&5 | |
a848cd7e SC |
29782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29783 | (exit $ac_status); } && | |
c228d3a4 RN |
29784 | { ac_try='test -z "$ac_cxx_werror_flag" |
29785 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29787 | (eval $ac_try) 2>&5 | |
29788 | ac_status=$? | |
29789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29790 | (exit $ac_status); }; } && | |
29791 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29793 | (eval $ac_try) 2>&5 | |
29794 | ac_status=$? | |
29795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29796 | (exit $ac_status); }; }; then | |
29797 | ||
29798 | wx_cv_type_sa_handler=int | |
29799 | ||
29800 | else | |
29801 | echo "$as_me: failed program was:" >&5 | |
29802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29803 | ||
29804 | ||
29805 | wx_cv_type_sa_handler=void | |
29806 | ||
29807 | fi | |
ac1cb8d3 | 29808 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29809 | |
29810 | fi | |
29811 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
29812 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
29813 | ||
29814 | ac_ext=c | |
29815 | ac_cpp='$CPP $CPPFLAGS' | |
29816 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29817 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29818 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29819 | ||
29820 | ||
29821 | cat >>confdefs.h <<_ACEOF | |
29822 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
29823 | _ACEOF | |
29824 | ||
29825 | fi | |
29826 | fi | |
29827 | ||
29828 | ||
29829 | ||
29830 | for ac_func in mkstemp mktemp | |
29831 | do | |
29832 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29833 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29834 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29835 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29836 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29837 | else | |
29838 | cat >conftest.$ac_ext <<_ACEOF | |
29839 | /* confdefs.h. */ | |
29840 | _ACEOF | |
29841 | cat confdefs.h >>conftest.$ac_ext | |
29842 | cat >>conftest.$ac_ext <<_ACEOF | |
29843 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29844 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29845 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29846 | #define $ac_func innocuous_$ac_func | |
29847 | ||
a848cd7e SC |
29848 | /* System header to define __stub macros and hopefully few prototypes, |
29849 | which can conflict with char $ac_func (); below. | |
29850 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29851 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29852 | |
a848cd7e SC |
29853 | #ifdef __STDC__ |
29854 | # include <limits.h> | |
29855 | #else | |
29856 | # include <assert.h> | |
29857 | #endif | |
ac1cb8d3 VS |
29858 | |
29859 | #undef $ac_func | |
29860 | ||
a848cd7e SC |
29861 | /* Override any gcc2 internal prototype to avoid an error. */ |
29862 | #ifdef __cplusplus | |
29863 | extern "C" | |
29864 | { | |
29865 | #endif | |
29866 | /* We use char because int might match the return type of a gcc2 | |
29867 | builtin and then its argument prototype would still apply. */ | |
29868 | char $ac_func (); | |
29869 | /* The GNU C library defines this for functions which it implements | |
29870 | to always fail with ENOSYS. Some functions are actually named | |
29871 | something starting with __ and the normal name is an alias. */ | |
29872 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29873 | choke me | |
29874 | #else | |
29875 | char (*f) () = $ac_func; | |
29876 | #endif | |
29877 | #ifdef __cplusplus | |
29878 | } | |
29879 | #endif | |
29880 | ||
29881 | int | |
29882 | main () | |
29883 | { | |
29884 | return f != $ac_func; | |
29885 | ; | |
29886 | return 0; | |
29887 | } | |
29888 | _ACEOF | |
29889 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29891 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29892 | ac_status=$? |
ac1cb8d3 VS |
29893 | grep -v '^ *+' conftest.er1 >conftest.err |
29894 | rm -f conftest.er1 | |
29895 | cat conftest.err >&5 | |
a848cd7e SC |
29896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29897 | (exit $ac_status); } && | |
c228d3a4 RN |
29898 | { ac_try='test -z "$ac_c_werror_flag" |
29899 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29901 | (eval $ac_try) 2>&5 | |
29902 | ac_status=$? | |
29903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29904 | (exit $ac_status); }; } && | |
29905 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29907 | (eval $ac_try) 2>&5 | |
29908 | ac_status=$? | |
29909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29910 | (exit $ac_status); }; }; then | |
29911 | eval "$as_ac_var=yes" | |
29912 | else | |
29913 | echo "$as_me: failed program was:" >&5 | |
29914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29915 | ||
29916 | eval "$as_ac_var=no" | |
29917 | fi | |
ac1cb8d3 VS |
29918 | rm -f conftest.err conftest.$ac_objext \ |
29919 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29920 | fi |
29921 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29922 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29923 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29924 | cat >>confdefs.h <<_ACEOF | |
29925 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29926 | _ACEOF | |
29927 | break | |
29928 | fi | |
29929 | done | |
29930 | ||
29931 | ||
29932 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
29933 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
29934 | if test "${wx_cv_func_statfs+set}" = set; then | |
29935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29936 | else | |
29937 | cat >conftest.$ac_ext <<_ACEOF | |
29938 | /* confdefs.h. */ | |
29939 | _ACEOF | |
29940 | cat confdefs.h >>conftest.$ac_ext | |
29941 | cat >>conftest.$ac_ext <<_ACEOF | |
29942 | /* end confdefs.h. */ | |
29943 | ||
29944 | #if defined(__BSD__) | |
29945 | #include <sys/param.h> | |
29946 | #include <sys/mount.h> | |
29947 | #else | |
29948 | #include <sys/vfs.h> | |
29949 | #endif | |
29950 | ||
29951 | int | |
29952 | main () | |
29953 | { | |
29954 | ||
29955 | long l; | |
29956 | struct statfs fs; | |
29957 | statfs("/", &fs); | |
29958 | l = fs.f_bsize; | |
29959 | l += fs.f_blocks; | |
29960 | l += fs.f_bavail; | |
29961 | ||
29962 | ; | |
29963 | return 0; | |
29964 | } | |
29965 | _ACEOF | |
29966 | rm -f conftest.$ac_objext | |
29967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29968 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29969 | ac_status=$? |
ac1cb8d3 VS |
29970 | grep -v '^ *+' conftest.er1 >conftest.err |
29971 | rm -f conftest.er1 | |
29972 | cat conftest.err >&5 | |
a848cd7e SC |
29973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29974 | (exit $ac_status); } && | |
c228d3a4 RN |
29975 | { ac_try='test -z "$ac_c_werror_flag" |
29976 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29978 | (eval $ac_try) 2>&5 | |
29979 | ac_status=$? | |
29980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29981 | (exit $ac_status); }; } && | |
29982 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29984 | (eval $ac_try) 2>&5 | |
29985 | ac_status=$? | |
29986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29987 | (exit $ac_status); }; }; then | |
29988 | ||
29989 | wx_cv_func_statfs=yes | |
29990 | ||
29991 | else | |
29992 | echo "$as_me: failed program was:" >&5 | |
29993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29994 | ||
29995 | ||
29996 | wx_cv_func_statfs=no | |
29997 | ||
29998 | ||
29999 | fi | |
ac1cb8d3 | 30000 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30001 | |
30002 | fi | |
30003 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
30004 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
30005 | ||
30006 | if test "$wx_cv_func_statfs" = "yes"; then | |
30007 | wx_cv_type_statvfs_t="struct statfs" | |
30008 | cat >>confdefs.h <<\_ACEOF | |
30009 | #define HAVE_STATFS 1 | |
30010 | _ACEOF | |
30011 | ||
30012 | else | |
30013 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
30014 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
30015 | if test "${wx_cv_func_statvfs+set}" = set; then | |
30016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30017 | else | |
30018 | cat >conftest.$ac_ext <<_ACEOF | |
30019 | /* confdefs.h. */ | |
30020 | _ACEOF | |
30021 | cat confdefs.h >>conftest.$ac_ext | |
30022 | cat >>conftest.$ac_ext <<_ACEOF | |
30023 | /* end confdefs.h. */ | |
30024 | ||
30025 | #include <stddef.h> | |
30026 | #include <sys/statvfs.h> | |
30027 | ||
30028 | int | |
30029 | main () | |
30030 | { | |
30031 | ||
30032 | statvfs("/", NULL); | |
30033 | ||
30034 | ; | |
30035 | return 0; | |
30036 | } | |
30037 | _ACEOF | |
30038 | rm -f conftest.$ac_objext | |
30039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30040 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30041 | ac_status=$? |
ac1cb8d3 VS |
30042 | grep -v '^ *+' conftest.er1 >conftest.err |
30043 | rm -f conftest.er1 | |
30044 | cat conftest.err >&5 | |
a848cd7e SC |
30045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30046 | (exit $ac_status); } && | |
c228d3a4 RN |
30047 | { ac_try='test -z "$ac_c_werror_flag" |
30048 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30050 | (eval $ac_try) 2>&5 | |
30051 | ac_status=$? | |
30052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30053 | (exit $ac_status); }; } && | |
30054 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30056 | (eval $ac_try) 2>&5 | |
30057 | ac_status=$? | |
30058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30059 | (exit $ac_status); }; }; then | |
30060 | wx_cv_func_statvfs=yes | |
30061 | else | |
30062 | echo "$as_me: failed program was:" >&5 | |
30063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30064 | ||
30065 | wx_cv_func_statvfs=no | |
30066 | ||
30067 | fi | |
ac1cb8d3 | 30068 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30069 | |
30070 | fi | |
30071 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
30072 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
30073 | ||
30074 | if test "$wx_cv_func_statvfs" = "yes"; then | |
30075 | ||
30076 | ||
30077 | ac_ext=cc | |
30078 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30079 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30080 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30081 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30082 | ||
30083 | ||
30084 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
30085 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
30086 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
30087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30088 | else | |
30089 | cat >conftest.$ac_ext <<_ACEOF | |
30090 | /* confdefs.h. */ | |
30091 | _ACEOF | |
30092 | cat confdefs.h >>conftest.$ac_ext | |
30093 | cat >>conftest.$ac_ext <<_ACEOF | |
30094 | /* end confdefs.h. */ | |
30095 | ||
30096 | #include <sys/statvfs.h> | |
30097 | ||
30098 | int | |
30099 | main () | |
30100 | { | |
30101 | ||
30102 | long l; | |
30103 | statvfs_t fs; | |
30104 | statvfs("/", &fs); | |
30105 | l = fs.f_bsize; | |
30106 | l += fs.f_blocks; | |
30107 | l += fs.f_bavail; | |
30108 | ||
30109 | ; | |
30110 | return 0; | |
30111 | } | |
30112 | _ACEOF | |
30113 | rm -f conftest.$ac_objext | |
30114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30115 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30116 | ac_status=$? |
ac1cb8d3 VS |
30117 | grep -v '^ *+' conftest.er1 >conftest.err |
30118 | rm -f conftest.er1 | |
30119 | cat conftest.err >&5 | |
a848cd7e SC |
30120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30121 | (exit $ac_status); } && | |
c228d3a4 RN |
30122 | { ac_try='test -z "$ac_cxx_werror_flag" |
30123 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30125 | (eval $ac_try) 2>&5 | |
30126 | ac_status=$? | |
30127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30128 | (exit $ac_status); }; } && | |
30129 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30131 | (eval $ac_try) 2>&5 | |
30132 | ac_status=$? | |
30133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30134 | (exit $ac_status); }; }; then | |
30135 | wx_cv_type_statvfs_t=statvfs_t | |
30136 | else | |
30137 | echo "$as_me: failed program was:" >&5 | |
30138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30139 | ||
30140 | ||
30141 | cat >conftest.$ac_ext <<_ACEOF | |
30142 | /* confdefs.h. */ | |
30143 | _ACEOF | |
30144 | cat confdefs.h >>conftest.$ac_ext | |
30145 | cat >>conftest.$ac_ext <<_ACEOF | |
30146 | /* end confdefs.h. */ | |
30147 | ||
30148 | #include <sys/statvfs.h> | |
30149 | ||
30150 | int | |
30151 | main () | |
30152 | { | |
30153 | ||
30154 | long l; | |
30155 | struct statvfs fs; | |
30156 | statvfs("/", &fs); | |
30157 | l = fs.f_bsize; | |
30158 | l += fs.f_blocks; | |
30159 | l += fs.f_bavail; | |
30160 | ||
30161 | ; | |
30162 | return 0; | |
30163 | } | |
30164 | _ACEOF | |
30165 | rm -f conftest.$ac_objext | |
30166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30167 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30168 | ac_status=$? |
ac1cb8d3 VS |
30169 | grep -v '^ *+' conftest.er1 >conftest.err |
30170 | rm -f conftest.er1 | |
30171 | cat conftest.err >&5 | |
a848cd7e SC |
30172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30173 | (exit $ac_status); } && | |
c228d3a4 RN |
30174 | { ac_try='test -z "$ac_cxx_werror_flag" |
30175 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30177 | (eval $ac_try) 2>&5 | |
30178 | ac_status=$? | |
30179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30180 | (exit $ac_status); }; } && | |
30181 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30183 | (eval $ac_try) 2>&5 | |
30184 | ac_status=$? | |
30185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30186 | (exit $ac_status); }; }; then | |
30187 | wx_cv_type_statvfs_t="struct statvfs" | |
30188 | else | |
30189 | echo "$as_me: failed program was:" >&5 | |
30190 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30191 | ||
30192 | wx_cv_type_statvfs_t="unknown" | |
30193 | ||
30194 | fi | |
ac1cb8d3 | 30195 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30196 | |
30197 | ||
30198 | fi | |
ac1cb8d3 | 30199 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30200 | |
30201 | fi | |
30202 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
30203 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
30204 | ||
30205 | ac_ext=c | |
30206 | ac_cpp='$CPP $CPPFLAGS' | |
30207 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30208 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30209 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30210 | ||
30211 | ||
30212 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
30213 | cat >>confdefs.h <<\_ACEOF | |
30214 | #define HAVE_STATVFS 1 | |
30215 | _ACEOF | |
30216 | ||
30217 | fi | |
30218 | else | |
30219 | wx_cv_type_statvfs_t="unknown" | |
30220 | fi | |
30221 | fi | |
30222 | ||
30223 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
30224 | cat >>confdefs.h <<_ACEOF | |
30225 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
30226 | _ACEOF | |
30227 | ||
30228 | else | |
30229 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
30230 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
30231 | fi | |
30232 | ||
30233 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
30234 | ||
30235 | ||
30236 | for ac_func in fcntl flock | |
30237 | do | |
30238 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30239 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30240 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30241 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30243 | else | |
30244 | cat >conftest.$ac_ext <<_ACEOF | |
30245 | /* confdefs.h. */ | |
30246 | _ACEOF | |
30247 | cat confdefs.h >>conftest.$ac_ext | |
30248 | cat >>conftest.$ac_ext <<_ACEOF | |
30249 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30250 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30251 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30252 | #define $ac_func innocuous_$ac_func | |
30253 | ||
a848cd7e SC |
30254 | /* System header to define __stub macros and hopefully few prototypes, |
30255 | which can conflict with char $ac_func (); below. | |
30256 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30257 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30258 | |
a848cd7e SC |
30259 | #ifdef __STDC__ |
30260 | # include <limits.h> | |
30261 | #else | |
30262 | # include <assert.h> | |
30263 | #endif | |
ac1cb8d3 VS |
30264 | |
30265 | #undef $ac_func | |
30266 | ||
a848cd7e SC |
30267 | /* Override any gcc2 internal prototype to avoid an error. */ |
30268 | #ifdef __cplusplus | |
30269 | extern "C" | |
30270 | { | |
30271 | #endif | |
30272 | /* We use char because int might match the return type of a gcc2 | |
30273 | builtin and then its argument prototype would still apply. */ | |
30274 | char $ac_func (); | |
30275 | /* The GNU C library defines this for functions which it implements | |
30276 | to always fail with ENOSYS. Some functions are actually named | |
30277 | something starting with __ and the normal name is an alias. */ | |
30278 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30279 | choke me | |
30280 | #else | |
30281 | char (*f) () = $ac_func; | |
30282 | #endif | |
30283 | #ifdef __cplusplus | |
30284 | } | |
30285 | #endif | |
30286 | ||
30287 | int | |
30288 | main () | |
30289 | { | |
30290 | return f != $ac_func; | |
30291 | ; | |
30292 | return 0; | |
30293 | } | |
30294 | _ACEOF | |
30295 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30296 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30297 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30298 | ac_status=$? |
ac1cb8d3 VS |
30299 | grep -v '^ *+' conftest.er1 >conftest.err |
30300 | rm -f conftest.er1 | |
30301 | cat conftest.err >&5 | |
a848cd7e SC |
30302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30303 | (exit $ac_status); } && | |
c228d3a4 RN |
30304 | { ac_try='test -z "$ac_c_werror_flag" |
30305 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30307 | (eval $ac_try) 2>&5 | |
30308 | ac_status=$? | |
30309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30310 | (exit $ac_status); }; } && | |
30311 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30313 | (eval $ac_try) 2>&5 | |
30314 | ac_status=$? | |
30315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30316 | (exit $ac_status); }; }; then | |
30317 | eval "$as_ac_var=yes" | |
30318 | else | |
30319 | echo "$as_me: failed program was:" >&5 | |
30320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30321 | ||
30322 | eval "$as_ac_var=no" | |
30323 | fi | |
ac1cb8d3 VS |
30324 | rm -f conftest.err conftest.$ac_objext \ |
30325 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30326 | fi |
30327 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30328 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30329 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30330 | cat >>confdefs.h <<_ACEOF | |
30331 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30332 | _ACEOF | |
30333 | break | |
30334 | fi | |
30335 | done | |
30336 | ||
30337 | ||
30338 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
30339 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
30340 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
30341 | wxUSE_SNGLINST_CHECKER=no | |
30342 | fi | |
30343 | fi | |
30344 | ||
30345 | ||
30346 | for ac_func in timegm | |
30347 | do | |
30348 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30349 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30350 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30351 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30353 | else | |
30354 | cat >conftest.$ac_ext <<_ACEOF | |
30355 | /* confdefs.h. */ | |
30356 | _ACEOF | |
30357 | cat confdefs.h >>conftest.$ac_ext | |
30358 | cat >>conftest.$ac_ext <<_ACEOF | |
30359 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30360 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30361 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30362 | #define $ac_func innocuous_$ac_func | |
30363 | ||
a848cd7e SC |
30364 | /* System header to define __stub macros and hopefully few prototypes, |
30365 | which can conflict with char $ac_func (); below. | |
30366 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30367 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30368 | |
a848cd7e SC |
30369 | #ifdef __STDC__ |
30370 | # include <limits.h> | |
30371 | #else | |
30372 | # include <assert.h> | |
30373 | #endif | |
ac1cb8d3 VS |
30374 | |
30375 | #undef $ac_func | |
30376 | ||
a848cd7e SC |
30377 | /* Override any gcc2 internal prototype to avoid an error. */ |
30378 | #ifdef __cplusplus | |
30379 | extern "C" | |
30380 | { | |
30381 | #endif | |
30382 | /* We use char because int might match the return type of a gcc2 | |
30383 | builtin and then its argument prototype would still apply. */ | |
30384 | char $ac_func (); | |
30385 | /* The GNU C library defines this for functions which it implements | |
30386 | to always fail with ENOSYS. Some functions are actually named | |
30387 | something starting with __ and the normal name is an alias. */ | |
30388 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30389 | choke me | |
30390 | #else | |
30391 | char (*f) () = $ac_func; | |
30392 | #endif | |
30393 | #ifdef __cplusplus | |
30394 | } | |
30395 | #endif | |
30396 | ||
30397 | int | |
30398 | main () | |
30399 | { | |
30400 | return f != $ac_func; | |
30401 | ; | |
30402 | return 0; | |
30403 | } | |
30404 | _ACEOF | |
30405 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30406 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30407 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30408 | ac_status=$? |
ac1cb8d3 VS |
30409 | grep -v '^ *+' conftest.er1 >conftest.err |
30410 | rm -f conftest.er1 | |
30411 | cat conftest.err >&5 | |
a848cd7e SC |
30412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30413 | (exit $ac_status); } && | |
c228d3a4 RN |
30414 | { ac_try='test -z "$ac_c_werror_flag" |
30415 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30417 | (eval $ac_try) 2>&5 | |
30418 | ac_status=$? | |
30419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30420 | (exit $ac_status); }; } && | |
30421 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30423 | (eval $ac_try) 2>&5 | |
30424 | ac_status=$? | |
30425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30426 | (exit $ac_status); }; }; then | |
30427 | eval "$as_ac_var=yes" | |
30428 | else | |
30429 | echo "$as_me: failed program was:" >&5 | |
30430 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30431 | ||
30432 | eval "$as_ac_var=no" | |
30433 | fi | |
ac1cb8d3 VS |
30434 | rm -f conftest.err conftest.$ac_objext \ |
30435 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30436 | fi |
30437 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30438 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30439 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30440 | cat >>confdefs.h <<_ACEOF | |
30441 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30442 | _ACEOF | |
30443 | ||
30444 | fi | |
30445 | done | |
30446 | ||
30447 | ||
30448 | ||
30449 | ||
30450 | for ac_func in putenv setenv | |
30451 | do | |
30452 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30453 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30454 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30455 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30457 | else | |
30458 | cat >conftest.$ac_ext <<_ACEOF | |
30459 | /* confdefs.h. */ | |
30460 | _ACEOF | |
30461 | cat confdefs.h >>conftest.$ac_ext | |
30462 | cat >>conftest.$ac_ext <<_ACEOF | |
30463 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30464 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30465 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30466 | #define $ac_func innocuous_$ac_func | |
30467 | ||
a848cd7e SC |
30468 | /* System header to define __stub macros and hopefully few prototypes, |
30469 | which can conflict with char $ac_func (); below. | |
30470 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30471 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30472 | |
a848cd7e SC |
30473 | #ifdef __STDC__ |
30474 | # include <limits.h> | |
30475 | #else | |
30476 | # include <assert.h> | |
30477 | #endif | |
ac1cb8d3 VS |
30478 | |
30479 | #undef $ac_func | |
30480 | ||
a848cd7e SC |
30481 | /* Override any gcc2 internal prototype to avoid an error. */ |
30482 | #ifdef __cplusplus | |
30483 | extern "C" | |
30484 | { | |
30485 | #endif | |
30486 | /* We use char because int might match the return type of a gcc2 | |
30487 | builtin and then its argument prototype would still apply. */ | |
30488 | char $ac_func (); | |
30489 | /* The GNU C library defines this for functions which it implements | |
30490 | to always fail with ENOSYS. Some functions are actually named | |
30491 | something starting with __ and the normal name is an alias. */ | |
30492 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30493 | choke me | |
30494 | #else | |
30495 | char (*f) () = $ac_func; | |
30496 | #endif | |
30497 | #ifdef __cplusplus | |
30498 | } | |
30499 | #endif | |
30500 | ||
30501 | int | |
30502 | main () | |
30503 | { | |
30504 | return f != $ac_func; | |
30505 | ; | |
30506 | return 0; | |
30507 | } | |
30508 | _ACEOF | |
30509 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30510 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30511 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30512 | ac_status=$? |
ac1cb8d3 VS |
30513 | grep -v '^ *+' conftest.er1 >conftest.err |
30514 | rm -f conftest.er1 | |
30515 | cat conftest.err >&5 | |
a848cd7e SC |
30516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30517 | (exit $ac_status); } && | |
c228d3a4 RN |
30518 | { ac_try='test -z "$ac_c_werror_flag" |
30519 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30521 | (eval $ac_try) 2>&5 | |
30522 | ac_status=$? | |
30523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30524 | (exit $ac_status); }; } && | |
30525 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30527 | (eval $ac_try) 2>&5 | |
30528 | ac_status=$? | |
30529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30530 | (exit $ac_status); }; }; then | |
30531 | eval "$as_ac_var=yes" | |
30532 | else | |
30533 | echo "$as_me: failed program was:" >&5 | |
30534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30535 | ||
30536 | eval "$as_ac_var=no" | |
30537 | fi | |
ac1cb8d3 VS |
30538 | rm -f conftest.err conftest.$ac_objext \ |
30539 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30540 | fi |
30541 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30542 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30543 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30544 | cat >>confdefs.h <<_ACEOF | |
30545 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30546 | _ACEOF | |
30547 | break | |
30548 | fi | |
30549 | done | |
30550 | ||
30551 | ||
30552 | HAVE_SOME_SLEEP_FUNC=0 | |
30553 | if test "$USE_BEOS" = 1; then | |
30554 | cat >>confdefs.h <<\_ACEOF | |
30555 | #define HAVE_SLEEP 1 | |
30556 | _ACEOF | |
30557 | ||
30558 | HAVE_SOME_SLEEP_FUNC=1 | |
30559 | fi | |
30560 | ||
30561 | if test "$USE_DARWIN" = 1; then | |
30562 | cat >>confdefs.h <<\_ACEOF | |
30563 | #define HAVE_USLEEP 1 | |
30564 | _ACEOF | |
30565 | ||
30566 | HAVE_SOME_SLEEP_FUNC=1 | |
30567 | fi | |
30568 | ||
30569 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
30570 | POSIX4_LINK= | |
30571 | ||
30572 | for ac_func in nanosleep | |
30573 | do | |
30574 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30575 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30576 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30577 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30579 | else | |
30580 | cat >conftest.$ac_ext <<_ACEOF | |
30581 | /* confdefs.h. */ | |
30582 | _ACEOF | |
30583 | cat confdefs.h >>conftest.$ac_ext | |
30584 | cat >>conftest.$ac_ext <<_ACEOF | |
30585 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30586 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30587 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30588 | #define $ac_func innocuous_$ac_func | |
30589 | ||
a848cd7e SC |
30590 | /* System header to define __stub macros and hopefully few prototypes, |
30591 | which can conflict with char $ac_func (); below. | |
30592 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30593 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30594 | |
a848cd7e SC |
30595 | #ifdef __STDC__ |
30596 | # include <limits.h> | |
30597 | #else | |
30598 | # include <assert.h> | |
30599 | #endif | |
ac1cb8d3 VS |
30600 | |
30601 | #undef $ac_func | |
30602 | ||
a848cd7e SC |
30603 | /* Override any gcc2 internal prototype to avoid an error. */ |
30604 | #ifdef __cplusplus | |
30605 | extern "C" | |
30606 | { | |
30607 | #endif | |
30608 | /* We use char because int might match the return type of a gcc2 | |
30609 | builtin and then its argument prototype would still apply. */ | |
30610 | char $ac_func (); | |
30611 | /* The GNU C library defines this for functions which it implements | |
30612 | to always fail with ENOSYS. Some functions are actually named | |
30613 | something starting with __ and the normal name is an alias. */ | |
30614 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30615 | choke me | |
30616 | #else | |
30617 | char (*f) () = $ac_func; | |
30618 | #endif | |
30619 | #ifdef __cplusplus | |
30620 | } | |
30621 | #endif | |
30622 | ||
30623 | int | |
30624 | main () | |
30625 | { | |
30626 | return f != $ac_func; | |
30627 | ; | |
30628 | return 0; | |
30629 | } | |
30630 | _ACEOF | |
30631 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30632 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30633 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30634 | ac_status=$? |
ac1cb8d3 VS |
30635 | grep -v '^ *+' conftest.er1 >conftest.err |
30636 | rm -f conftest.er1 | |
30637 | cat conftest.err >&5 | |
a848cd7e SC |
30638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30639 | (exit $ac_status); } && | |
c228d3a4 RN |
30640 | { ac_try='test -z "$ac_c_werror_flag" |
30641 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30643 | (eval $ac_try) 2>&5 | |
30644 | ac_status=$? | |
30645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30646 | (exit $ac_status); }; } && | |
30647 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30649 | (eval $ac_try) 2>&5 | |
30650 | ac_status=$? | |
30651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30652 | (exit $ac_status); }; }; then | |
30653 | eval "$as_ac_var=yes" | |
30654 | else | |
30655 | echo "$as_me: failed program was:" >&5 | |
30656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30657 | ||
30658 | eval "$as_ac_var=no" | |
30659 | fi | |
ac1cb8d3 VS |
30660 | rm -f conftest.err conftest.$ac_objext \ |
30661 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30662 | fi |
30663 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30664 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30665 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30666 | cat >>confdefs.h <<_ACEOF | |
30667 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30668 | _ACEOF | |
30669 | cat >>confdefs.h <<\_ACEOF | |
30670 | #define HAVE_NANOSLEEP 1 | |
30671 | _ACEOF | |
30672 | ||
30673 | else | |
30674 | ||
30675 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
30676 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
30677 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
30678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30679 | else | |
30680 | ac_check_lib_save_LIBS=$LIBS | |
30681 | LIBS="-lposix4 $LIBS" | |
30682 | cat >conftest.$ac_ext <<_ACEOF | |
30683 | /* confdefs.h. */ | |
30684 | _ACEOF | |
30685 | cat confdefs.h >>conftest.$ac_ext | |
30686 | cat >>conftest.$ac_ext <<_ACEOF | |
30687 | /* end confdefs.h. */ | |
30688 | ||
30689 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30690 | #ifdef __cplusplus | |
30691 | extern "C" | |
30692 | #endif | |
30693 | /* We use char because int might match the return type of a gcc2 | |
30694 | builtin and then its argument prototype would still apply. */ | |
30695 | char nanosleep (); | |
30696 | int | |
30697 | main () | |
30698 | { | |
30699 | nanosleep (); | |
30700 | ; | |
30701 | return 0; | |
30702 | } | |
30703 | _ACEOF | |
30704 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30705 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30706 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30707 | ac_status=$? |
ac1cb8d3 VS |
30708 | grep -v '^ *+' conftest.er1 >conftest.err |
30709 | rm -f conftest.er1 | |
30710 | cat conftest.err >&5 | |
a848cd7e SC |
30711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30712 | (exit $ac_status); } && | |
c228d3a4 RN |
30713 | { ac_try='test -z "$ac_c_werror_flag" |
30714 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30716 | (eval $ac_try) 2>&5 | |
30717 | ac_status=$? | |
30718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30719 | (exit $ac_status); }; } && | |
30720 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30722 | (eval $ac_try) 2>&5 | |
30723 | ac_status=$? | |
30724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30725 | (exit $ac_status); }; }; then | |
30726 | ac_cv_lib_posix4_nanosleep=yes | |
30727 | else | |
30728 | echo "$as_me: failed program was:" >&5 | |
30729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30730 | ||
30731 | ac_cv_lib_posix4_nanosleep=no | |
30732 | fi | |
ac1cb8d3 VS |
30733 | rm -f conftest.err conftest.$ac_objext \ |
30734 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30735 | LIBS=$ac_check_lib_save_LIBS |
30736 | fi | |
30737 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
30738 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
30739 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
30740 | ||
30741 | cat >>confdefs.h <<\_ACEOF | |
30742 | #define HAVE_NANOSLEEP 1 | |
30743 | _ACEOF | |
30744 | ||
30745 | POSIX4_LINK=" -lposix4" | |
30746 | ||
30747 | else | |
30748 | ||
30749 | ||
30750 | for ac_func in usleep | |
30751 | do | |
30752 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30753 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30754 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30755 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30757 | else | |
30758 | cat >conftest.$ac_ext <<_ACEOF | |
30759 | /* confdefs.h. */ | |
30760 | _ACEOF | |
30761 | cat confdefs.h >>conftest.$ac_ext | |
30762 | cat >>conftest.$ac_ext <<_ACEOF | |
30763 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30764 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30765 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30766 | #define $ac_func innocuous_$ac_func | |
30767 | ||
a848cd7e SC |
30768 | /* System header to define __stub macros and hopefully few prototypes, |
30769 | which can conflict with char $ac_func (); below. | |
30770 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30771 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30772 | |
a848cd7e SC |
30773 | #ifdef __STDC__ |
30774 | # include <limits.h> | |
30775 | #else | |
30776 | # include <assert.h> | |
30777 | #endif | |
ac1cb8d3 VS |
30778 | |
30779 | #undef $ac_func | |
30780 | ||
a848cd7e SC |
30781 | /* Override any gcc2 internal prototype to avoid an error. */ |
30782 | #ifdef __cplusplus | |
30783 | extern "C" | |
30784 | { | |
30785 | #endif | |
30786 | /* We use char because int might match the return type of a gcc2 | |
30787 | builtin and then its argument prototype would still apply. */ | |
30788 | char $ac_func (); | |
30789 | /* The GNU C library defines this for functions which it implements | |
30790 | to always fail with ENOSYS. Some functions are actually named | |
30791 | something starting with __ and the normal name is an alias. */ | |
30792 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30793 | choke me | |
30794 | #else | |
30795 | char (*f) () = $ac_func; | |
30796 | #endif | |
30797 | #ifdef __cplusplus | |
30798 | } | |
30799 | #endif | |
30800 | ||
30801 | int | |
30802 | main () | |
30803 | { | |
30804 | return f != $ac_func; | |
30805 | ; | |
30806 | return 0; | |
30807 | } | |
30808 | _ACEOF | |
30809 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30810 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30811 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30812 | ac_status=$? |
ac1cb8d3 VS |
30813 | grep -v '^ *+' conftest.er1 >conftest.err |
30814 | rm -f conftest.er1 | |
30815 | cat conftest.err >&5 | |
a848cd7e SC |
30816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30817 | (exit $ac_status); } && | |
c228d3a4 RN |
30818 | { ac_try='test -z "$ac_c_werror_flag" |
30819 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30821 | (eval $ac_try) 2>&5 | |
30822 | ac_status=$? | |
30823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30824 | (exit $ac_status); }; } && | |
30825 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30827 | (eval $ac_try) 2>&5 | |
30828 | ac_status=$? | |
30829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30830 | (exit $ac_status); }; }; then | |
30831 | eval "$as_ac_var=yes" | |
30832 | else | |
30833 | echo "$as_me: failed program was:" >&5 | |
30834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30835 | ||
30836 | eval "$as_ac_var=no" | |
30837 | fi | |
ac1cb8d3 VS |
30838 | rm -f conftest.err conftest.$ac_objext \ |
30839 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30840 | fi |
30841 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30842 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30843 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30844 | cat >>confdefs.h <<_ACEOF | |
30845 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30846 | _ACEOF | |
30847 | cat >>confdefs.h <<\_ACEOF | |
30848 | #define HAVE_USLEEP 1 | |
30849 | _ACEOF | |
30850 | ||
30851 | else | |
30852 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
30853 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
30854 | ||
30855 | fi | |
30856 | done | |
30857 | ||
30858 | ||
30859 | ||
30860 | fi | |
30861 | ||
30862 | ||
30863 | ||
30864 | fi | |
30865 | done | |
30866 | ||
30867 | fi | |
30868 | ||
30869 | ||
30870 | ||
30871 | for ac_func in uname gethostname | |
30872 | do | |
30873 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30874 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30875 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30876 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30878 | else | |
30879 | cat >conftest.$ac_ext <<_ACEOF | |
30880 | /* confdefs.h. */ | |
30881 | _ACEOF | |
30882 | cat confdefs.h >>conftest.$ac_ext | |
30883 | cat >>conftest.$ac_ext <<_ACEOF | |
30884 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30885 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30886 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30887 | #define $ac_func innocuous_$ac_func | |
30888 | ||
a848cd7e SC |
30889 | /* System header to define __stub macros and hopefully few prototypes, |
30890 | which can conflict with char $ac_func (); below. | |
30891 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30892 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30893 | |
a848cd7e SC |
30894 | #ifdef __STDC__ |
30895 | # include <limits.h> | |
30896 | #else | |
30897 | # include <assert.h> | |
30898 | #endif | |
ac1cb8d3 VS |
30899 | |
30900 | #undef $ac_func | |
30901 | ||
a848cd7e SC |
30902 | /* Override any gcc2 internal prototype to avoid an error. */ |
30903 | #ifdef __cplusplus | |
30904 | extern "C" | |
30905 | { | |
30906 | #endif | |
30907 | /* We use char because int might match the return type of a gcc2 | |
30908 | builtin and then its argument prototype would still apply. */ | |
30909 | char $ac_func (); | |
30910 | /* The GNU C library defines this for functions which it implements | |
30911 | to always fail with ENOSYS. Some functions are actually named | |
30912 | something starting with __ and the normal name is an alias. */ | |
30913 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30914 | choke me | |
30915 | #else | |
30916 | char (*f) () = $ac_func; | |
30917 | #endif | |
30918 | #ifdef __cplusplus | |
30919 | } | |
30920 | #endif | |
30921 | ||
30922 | int | |
30923 | main () | |
30924 | { | |
30925 | return f != $ac_func; | |
30926 | ; | |
30927 | return 0; | |
30928 | } | |
30929 | _ACEOF | |
30930 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30931 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30932 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30933 | ac_status=$? |
ac1cb8d3 VS |
30934 | grep -v '^ *+' conftest.er1 >conftest.err |
30935 | rm -f conftest.er1 | |
30936 | cat conftest.err >&5 | |
a848cd7e SC |
30937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30938 | (exit $ac_status); } && | |
c228d3a4 RN |
30939 | { ac_try='test -z "$ac_c_werror_flag" |
30940 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30942 | (eval $ac_try) 2>&5 | |
30943 | ac_status=$? | |
30944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30945 | (exit $ac_status); }; } && | |
30946 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30948 | (eval $ac_try) 2>&5 | |
30949 | ac_status=$? | |
30950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30951 | (exit $ac_status); }; }; then | |
30952 | eval "$as_ac_var=yes" | |
30953 | else | |
30954 | echo "$as_me: failed program was:" >&5 | |
30955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30956 | ||
30957 | eval "$as_ac_var=no" | |
30958 | fi | |
ac1cb8d3 VS |
30959 | rm -f conftest.err conftest.$ac_objext \ |
30960 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30961 | fi |
30962 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30963 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30964 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30965 | cat >>confdefs.h <<_ACEOF | |
30966 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30967 | _ACEOF | |
30968 | break | |
30969 | fi | |
30970 | done | |
30971 | ||
30972 | ||
30973 | ||
30974 | ||
30975 | ac_ext=cc | |
30976 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30977 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30978 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30979 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30980 | ||
30981 | ||
30982 | ||
30983 | for ac_func in strtok_r | |
30984 | do | |
30985 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30986 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30987 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30988 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30989 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30990 | else | |
30991 | cat >conftest.$ac_ext <<_ACEOF | |
30992 | /* confdefs.h. */ | |
30993 | _ACEOF | |
30994 | cat confdefs.h >>conftest.$ac_ext | |
30995 | cat >>conftest.$ac_ext <<_ACEOF | |
30996 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30997 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30998 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30999 | #define $ac_func innocuous_$ac_func | |
31000 | ||
a848cd7e SC |
31001 | /* System header to define __stub macros and hopefully few prototypes, |
31002 | which can conflict with char $ac_func (); below. | |
31003 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31004 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31005 | |
a848cd7e SC |
31006 | #ifdef __STDC__ |
31007 | # include <limits.h> | |
31008 | #else | |
31009 | # include <assert.h> | |
31010 | #endif | |
ac1cb8d3 VS |
31011 | |
31012 | #undef $ac_func | |
31013 | ||
a848cd7e SC |
31014 | /* Override any gcc2 internal prototype to avoid an error. */ |
31015 | #ifdef __cplusplus | |
31016 | extern "C" | |
31017 | { | |
31018 | #endif | |
31019 | /* We use char because int might match the return type of a gcc2 | |
31020 | builtin and then its argument prototype would still apply. */ | |
31021 | char $ac_func (); | |
31022 | /* The GNU C library defines this for functions which it implements | |
31023 | to always fail with ENOSYS. Some functions are actually named | |
31024 | something starting with __ and the normal name is an alias. */ | |
31025 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31026 | choke me | |
31027 | #else | |
31028 | char (*f) () = $ac_func; | |
31029 | #endif | |
31030 | #ifdef __cplusplus | |
31031 | } | |
31032 | #endif | |
31033 | ||
31034 | int | |
31035 | main () | |
31036 | { | |
31037 | return f != $ac_func; | |
31038 | ; | |
31039 | return 0; | |
31040 | } | |
31041 | _ACEOF | |
31042 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31043 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31044 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31045 | ac_status=$? |
ac1cb8d3 VS |
31046 | grep -v '^ *+' conftest.er1 >conftest.err |
31047 | rm -f conftest.er1 | |
31048 | cat conftest.err >&5 | |
a848cd7e SC |
31049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31050 | (exit $ac_status); } && | |
c228d3a4 RN |
31051 | { ac_try='test -z "$ac_cxx_werror_flag" |
31052 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31054 | (eval $ac_try) 2>&5 | |
31055 | ac_status=$? | |
31056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31057 | (exit $ac_status); }; } && | |
31058 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31060 | (eval $ac_try) 2>&5 | |
31061 | ac_status=$? | |
31062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31063 | (exit $ac_status); }; }; then | |
31064 | eval "$as_ac_var=yes" | |
31065 | else | |
31066 | echo "$as_me: failed program was:" >&5 | |
31067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31068 | ||
31069 | eval "$as_ac_var=no" | |
31070 | fi | |
ac1cb8d3 VS |
31071 | rm -f conftest.err conftest.$ac_objext \ |
31072 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31073 | fi |
31074 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31075 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31076 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31077 | cat >>confdefs.h <<_ACEOF | |
31078 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31079 | _ACEOF | |
31080 | ||
31081 | fi | |
31082 | done | |
31083 | ||
31084 | ||
31085 | ac_ext=c | |
31086 | ac_cpp='$CPP $CPPFLAGS' | |
31087 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31088 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31089 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31090 | ||
31091 | ||
31092 | INET_LINK= | |
31093 | ||
31094 | for ac_func in inet_addr | |
31095 | do | |
31096 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31097 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31098 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31099 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31101 | else | |
31102 | cat >conftest.$ac_ext <<_ACEOF | |
31103 | /* confdefs.h. */ | |
31104 | _ACEOF | |
31105 | cat confdefs.h >>conftest.$ac_ext | |
31106 | cat >>conftest.$ac_ext <<_ACEOF | |
31107 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31108 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31109 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31110 | #define $ac_func innocuous_$ac_func | |
31111 | ||
a848cd7e SC |
31112 | /* System header to define __stub macros and hopefully few prototypes, |
31113 | which can conflict with char $ac_func (); below. | |
31114 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31115 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31116 | |
a848cd7e SC |
31117 | #ifdef __STDC__ |
31118 | # include <limits.h> | |
31119 | #else | |
31120 | # include <assert.h> | |
31121 | #endif | |
ac1cb8d3 VS |
31122 | |
31123 | #undef $ac_func | |
31124 | ||
a848cd7e SC |
31125 | /* Override any gcc2 internal prototype to avoid an error. */ |
31126 | #ifdef __cplusplus | |
31127 | extern "C" | |
31128 | { | |
31129 | #endif | |
31130 | /* We use char because int might match the return type of a gcc2 | |
31131 | builtin and then its argument prototype would still apply. */ | |
31132 | char $ac_func (); | |
31133 | /* The GNU C library defines this for functions which it implements | |
31134 | to always fail with ENOSYS. Some functions are actually named | |
31135 | something starting with __ and the normal name is an alias. */ | |
31136 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31137 | choke me | |
31138 | #else | |
31139 | char (*f) () = $ac_func; | |
31140 | #endif | |
31141 | #ifdef __cplusplus | |
31142 | } | |
31143 | #endif | |
31144 | ||
31145 | int | |
31146 | main () | |
31147 | { | |
31148 | return f != $ac_func; | |
31149 | ; | |
31150 | return 0; | |
31151 | } | |
31152 | _ACEOF | |
31153 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31154 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31155 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31156 | ac_status=$? |
ac1cb8d3 VS |
31157 | grep -v '^ *+' conftest.er1 >conftest.err |
31158 | rm -f conftest.er1 | |
31159 | cat conftest.err >&5 | |
a848cd7e SC |
31160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31161 | (exit $ac_status); } && | |
c228d3a4 RN |
31162 | { ac_try='test -z "$ac_c_werror_flag" |
31163 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31165 | (eval $ac_try) 2>&5 | |
31166 | ac_status=$? | |
31167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31168 | (exit $ac_status); }; } && | |
31169 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31171 | (eval $ac_try) 2>&5 | |
31172 | ac_status=$? | |
31173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31174 | (exit $ac_status); }; }; then | |
31175 | eval "$as_ac_var=yes" | |
31176 | else | |
31177 | echo "$as_me: failed program was:" >&5 | |
31178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31179 | ||
31180 | eval "$as_ac_var=no" | |
31181 | fi | |
ac1cb8d3 VS |
31182 | rm -f conftest.err conftest.$ac_objext \ |
31183 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31184 | fi |
31185 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31186 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31187 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31188 | cat >>confdefs.h <<_ACEOF | |
31189 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31190 | _ACEOF | |
31191 | cat >>confdefs.h <<\_ACEOF | |
31192 | #define HAVE_INET_ADDR 1 | |
31193 | _ACEOF | |
31194 | ||
31195 | else | |
31196 | ||
31197 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
31198 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
31199 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
31200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31201 | else | |
31202 | ac_check_lib_save_LIBS=$LIBS | |
31203 | LIBS="-lnsl $LIBS" | |
31204 | cat >conftest.$ac_ext <<_ACEOF | |
31205 | /* confdefs.h. */ | |
31206 | _ACEOF | |
31207 | cat confdefs.h >>conftest.$ac_ext | |
31208 | cat >>conftest.$ac_ext <<_ACEOF | |
31209 | /* end confdefs.h. */ | |
31210 | ||
31211 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31212 | #ifdef __cplusplus | |
31213 | extern "C" | |
31214 | #endif | |
31215 | /* We use char because int might match the return type of a gcc2 | |
31216 | builtin and then its argument prototype would still apply. */ | |
31217 | char inet_addr (); | |
31218 | int | |
31219 | main () | |
31220 | { | |
31221 | inet_addr (); | |
31222 | ; | |
31223 | return 0; | |
31224 | } | |
31225 | _ACEOF | |
31226 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31227 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31228 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31229 | ac_status=$? |
ac1cb8d3 VS |
31230 | grep -v '^ *+' conftest.er1 >conftest.err |
31231 | rm -f conftest.er1 | |
31232 | cat conftest.err >&5 | |
a848cd7e SC |
31233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31234 | (exit $ac_status); } && | |
c228d3a4 RN |
31235 | { ac_try='test -z "$ac_c_werror_flag" |
31236 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31238 | (eval $ac_try) 2>&5 | |
31239 | ac_status=$? | |
31240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31241 | (exit $ac_status); }; } && | |
31242 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31244 | (eval $ac_try) 2>&5 | |
31245 | ac_status=$? | |
31246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31247 | (exit $ac_status); }; }; then | |
31248 | ac_cv_lib_nsl_inet_addr=yes | |
31249 | else | |
31250 | echo "$as_me: failed program was:" >&5 | |
31251 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31252 | ||
31253 | ac_cv_lib_nsl_inet_addr=no | |
31254 | fi | |
ac1cb8d3 VS |
31255 | rm -f conftest.err conftest.$ac_objext \ |
31256 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31257 | LIBS=$ac_check_lib_save_LIBS |
31258 | fi | |
31259 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
31260 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
31261 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
31262 | INET_LINK="nsl" | |
31263 | else | |
31264 | ||
31265 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
31266 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
31267 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
31268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31269 | else | |
31270 | ac_check_lib_save_LIBS=$LIBS | |
31271 | LIBS="-lresolv $LIBS" | |
31272 | cat >conftest.$ac_ext <<_ACEOF | |
31273 | /* confdefs.h. */ | |
31274 | _ACEOF | |
31275 | cat confdefs.h >>conftest.$ac_ext | |
31276 | cat >>conftest.$ac_ext <<_ACEOF | |
31277 | /* end confdefs.h. */ | |
31278 | ||
31279 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31280 | #ifdef __cplusplus | |
31281 | extern "C" | |
31282 | #endif | |
31283 | /* We use char because int might match the return type of a gcc2 | |
31284 | builtin and then its argument prototype would still apply. */ | |
31285 | char inet_addr (); | |
31286 | int | |
31287 | main () | |
31288 | { | |
31289 | inet_addr (); | |
31290 | ; | |
31291 | return 0; | |
31292 | } | |
31293 | _ACEOF | |
31294 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31295 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31296 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31297 | ac_status=$? |
ac1cb8d3 VS |
31298 | grep -v '^ *+' conftest.er1 >conftest.err |
31299 | rm -f conftest.er1 | |
31300 | cat conftest.err >&5 | |
a848cd7e SC |
31301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31302 | (exit $ac_status); } && | |
c228d3a4 RN |
31303 | { ac_try='test -z "$ac_c_werror_flag" |
31304 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31306 | (eval $ac_try) 2>&5 | |
31307 | ac_status=$? | |
31308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31309 | (exit $ac_status); }; } && | |
31310 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31312 | (eval $ac_try) 2>&5 | |
31313 | ac_status=$? | |
31314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31315 | (exit $ac_status); }; }; then | |
31316 | ac_cv_lib_resolv_inet_addr=yes | |
31317 | else | |
31318 | echo "$as_me: failed program was:" >&5 | |
31319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31320 | ||
31321 | ac_cv_lib_resolv_inet_addr=no | |
31322 | fi | |
ac1cb8d3 VS |
31323 | rm -f conftest.err conftest.$ac_objext \ |
31324 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31325 | LIBS=$ac_check_lib_save_LIBS |
31326 | fi | |
31327 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
31328 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
31329 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
31330 | INET_LINK="resolv" | |
31331 | else | |
31332 | ||
31333 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
31334 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
31335 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
31336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31337 | else | |
31338 | ac_check_lib_save_LIBS=$LIBS | |
31339 | LIBS="-lsocket $LIBS" | |
31340 | cat >conftest.$ac_ext <<_ACEOF | |
31341 | /* confdefs.h. */ | |
31342 | _ACEOF | |
31343 | cat confdefs.h >>conftest.$ac_ext | |
31344 | cat >>conftest.$ac_ext <<_ACEOF | |
31345 | /* end confdefs.h. */ | |
31346 | ||
31347 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31348 | #ifdef __cplusplus | |
31349 | extern "C" | |
31350 | #endif | |
31351 | /* We use char because int might match the return type of a gcc2 | |
31352 | builtin and then its argument prototype would still apply. */ | |
31353 | char inet_addr (); | |
31354 | int | |
31355 | main () | |
31356 | { | |
31357 | inet_addr (); | |
31358 | ; | |
31359 | return 0; | |
31360 | } | |
31361 | _ACEOF | |
31362 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31363 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31364 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31365 | ac_status=$? |
ac1cb8d3 VS |
31366 | grep -v '^ *+' conftest.er1 >conftest.err |
31367 | rm -f conftest.er1 | |
31368 | cat conftest.err >&5 | |
a848cd7e SC |
31369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31370 | (exit $ac_status); } && | |
c228d3a4 RN |
31371 | { ac_try='test -z "$ac_c_werror_flag" |
31372 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31374 | (eval $ac_try) 2>&5 | |
31375 | ac_status=$? | |
31376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31377 | (exit $ac_status); }; } && | |
31378 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31380 | (eval $ac_try) 2>&5 | |
31381 | ac_status=$? | |
31382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31383 | (exit $ac_status); }; }; then | |
31384 | ac_cv_lib_socket_inet_addr=yes | |
31385 | else | |
31386 | echo "$as_me: failed program was:" >&5 | |
31387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31388 | ||
31389 | ac_cv_lib_socket_inet_addr=no | |
31390 | fi | |
ac1cb8d3 VS |
31391 | rm -f conftest.err conftest.$ac_objext \ |
31392 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31393 | LIBS=$ac_check_lib_save_LIBS |
31394 | fi | |
31395 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
31396 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
31397 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
31398 | INET_LINK="socket" | |
31399 | ||
31400 | fi | |
31401 | ||
31402 | ||
31403 | ||
31404 | fi | |
31405 | ||
31406 | ||
31407 | ||
31408 | fi | |
31409 | ||
31410 | ||
31411 | ||
31412 | fi | |
31413 | done | |
31414 | ||
31415 | ||
31416 | ||
31417 | for ac_func in inet_aton | |
31418 | do | |
31419 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31420 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31421 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31422 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31424 | else | |
31425 | cat >conftest.$ac_ext <<_ACEOF | |
31426 | /* confdefs.h. */ | |
31427 | _ACEOF | |
31428 | cat confdefs.h >>conftest.$ac_ext | |
31429 | cat >>conftest.$ac_ext <<_ACEOF | |
31430 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31431 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31432 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31433 | #define $ac_func innocuous_$ac_func | |
31434 | ||
a848cd7e SC |
31435 | /* System header to define __stub macros and hopefully few prototypes, |
31436 | which can conflict with char $ac_func (); below. | |
31437 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31438 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31439 | |
a848cd7e SC |
31440 | #ifdef __STDC__ |
31441 | # include <limits.h> | |
31442 | #else | |
31443 | # include <assert.h> | |
31444 | #endif | |
ac1cb8d3 VS |
31445 | |
31446 | #undef $ac_func | |
31447 | ||
a848cd7e SC |
31448 | /* Override any gcc2 internal prototype to avoid an error. */ |
31449 | #ifdef __cplusplus | |
31450 | extern "C" | |
31451 | { | |
31452 | #endif | |
31453 | /* We use char because int might match the return type of a gcc2 | |
31454 | builtin and then its argument prototype would still apply. */ | |
31455 | char $ac_func (); | |
31456 | /* The GNU C library defines this for functions which it implements | |
31457 | to always fail with ENOSYS. Some functions are actually named | |
31458 | something starting with __ and the normal name is an alias. */ | |
31459 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31460 | choke me | |
31461 | #else | |
31462 | char (*f) () = $ac_func; | |
31463 | #endif | |
31464 | #ifdef __cplusplus | |
31465 | } | |
31466 | #endif | |
31467 | ||
31468 | int | |
31469 | main () | |
31470 | { | |
31471 | return f != $ac_func; | |
31472 | ; | |
31473 | return 0; | |
31474 | } | |
31475 | _ACEOF | |
31476 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31477 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31478 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31479 | ac_status=$? |
ac1cb8d3 VS |
31480 | grep -v '^ *+' conftest.er1 >conftest.err |
31481 | rm -f conftest.er1 | |
31482 | cat conftest.err >&5 | |
a848cd7e SC |
31483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31484 | (exit $ac_status); } && | |
c228d3a4 RN |
31485 | { ac_try='test -z "$ac_c_werror_flag" |
31486 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31488 | (eval $ac_try) 2>&5 | |
31489 | ac_status=$? | |
31490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31491 | (exit $ac_status); }; } && | |
31492 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31494 | (eval $ac_try) 2>&5 | |
31495 | ac_status=$? | |
31496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31497 | (exit $ac_status); }; }; then | |
31498 | eval "$as_ac_var=yes" | |
31499 | else | |
31500 | echo "$as_me: failed program was:" >&5 | |
31501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31502 | ||
31503 | eval "$as_ac_var=no" | |
31504 | fi | |
ac1cb8d3 VS |
31505 | rm -f conftest.err conftest.$ac_objext \ |
31506 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31507 | fi |
31508 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31509 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31510 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31511 | cat >>confdefs.h <<_ACEOF | |
31512 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31513 | _ACEOF | |
31514 | cat >>confdefs.h <<\_ACEOF | |
31515 | #define HAVE_INET_ATON 1 | |
31516 | _ACEOF | |
31517 | ||
31518 | else | |
31519 | ||
31520 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
31521 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
31522 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
31523 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
31524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31525 | else | |
31526 | ac_check_lib_save_LIBS=$LIBS | |
31527 | LIBS="-l$INET_LINK $LIBS" | |
31528 | cat >conftest.$ac_ext <<_ACEOF | |
31529 | /* confdefs.h. */ | |
31530 | _ACEOF | |
31531 | cat confdefs.h >>conftest.$ac_ext | |
31532 | cat >>conftest.$ac_ext <<_ACEOF | |
31533 | /* end confdefs.h. */ | |
31534 | ||
31535 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31536 | #ifdef __cplusplus | |
31537 | extern "C" | |
31538 | #endif | |
31539 | /* We use char because int might match the return type of a gcc2 | |
31540 | builtin and then its argument prototype would still apply. */ | |
31541 | char inet_aton (); | |
31542 | int | |
31543 | main () | |
31544 | { | |
31545 | inet_aton (); | |
31546 | ; | |
31547 | return 0; | |
31548 | } | |
31549 | _ACEOF | |
31550 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31551 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31552 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31553 | ac_status=$? |
ac1cb8d3 VS |
31554 | grep -v '^ *+' conftest.er1 >conftest.err |
31555 | rm -f conftest.er1 | |
31556 | cat conftest.err >&5 | |
a848cd7e SC |
31557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31558 | (exit $ac_status); } && | |
c228d3a4 RN |
31559 | { ac_try='test -z "$ac_c_werror_flag" |
31560 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31562 | (eval $ac_try) 2>&5 | |
31563 | ac_status=$? | |
31564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31565 | (exit $ac_status); }; } && | |
31566 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31568 | (eval $ac_try) 2>&5 | |
31569 | ac_status=$? | |
31570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31571 | (exit $ac_status); }; }; then | |
31572 | eval "$as_ac_Lib=yes" | |
31573 | else | |
31574 | echo "$as_me: failed program was:" >&5 | |
31575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31576 | ||
31577 | eval "$as_ac_Lib=no" | |
31578 | fi | |
ac1cb8d3 VS |
31579 | rm -f conftest.err conftest.$ac_objext \ |
31580 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31581 | LIBS=$ac_check_lib_save_LIBS |
31582 | fi | |
31583 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
31584 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
31585 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
31586 | cat >>confdefs.h <<\_ACEOF | |
31587 | #define HAVE_INET_ATON 1 | |
31588 | _ACEOF | |
31589 | ||
31590 | fi | |
31591 | ||
31592 | ||
31593 | fi | |
31594 | done | |
31595 | ||
31596 | ||
31597 | if test "x$INET_LINK" != "x"; then | |
31598 | cat >>confdefs.h <<\_ACEOF | |
31599 | #define HAVE_INET_ADDR 1 | |
31600 | _ACEOF | |
31601 | ||
31602 | INET_LINK=" -l$INET_LINK" | |
31603 | fi | |
31604 | ||
31605 | fi | |
31606 | ||
31607 | ||
31608 | ||
31609 | EXTRALIBS_ESD= | |
31610 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
31611 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
31612 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
31613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31614 | else | |
31615 | ac_check_lib_save_LIBS=$LIBS | |
31616 | LIBS="-lesd $LIBS" | |
31617 | cat >conftest.$ac_ext <<_ACEOF | |
31618 | /* confdefs.h. */ | |
31619 | _ACEOF | |
31620 | cat confdefs.h >>conftest.$ac_ext | |
31621 | cat >>conftest.$ac_ext <<_ACEOF | |
31622 | /* end confdefs.h. */ | |
31623 | ||
31624 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31625 | #ifdef __cplusplus | |
31626 | extern "C" | |
31627 | #endif | |
31628 | /* We use char because int might match the return type of a gcc2 | |
31629 | builtin and then its argument prototype would still apply. */ | |
31630 | char esd_close (); | |
31631 | int | |
31632 | main () | |
31633 | { | |
31634 | esd_close (); | |
31635 | ; | |
31636 | return 0; | |
31637 | } | |
31638 | _ACEOF | |
31639 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31640 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31641 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31642 | ac_status=$? |
ac1cb8d3 VS |
31643 | grep -v '^ *+' conftest.er1 >conftest.err |
31644 | rm -f conftest.er1 | |
31645 | cat conftest.err >&5 | |
a848cd7e SC |
31646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31647 | (exit $ac_status); } && | |
c228d3a4 RN |
31648 | { ac_try='test -z "$ac_c_werror_flag" |
31649 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31651 | (eval $ac_try) 2>&5 | |
31652 | ac_status=$? | |
31653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31654 | (exit $ac_status); }; } && | |
31655 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31657 | (eval $ac_try) 2>&5 | |
31658 | ac_status=$? | |
31659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31660 | (exit $ac_status); }; }; then | |
31661 | ac_cv_lib_esd_esd_close=yes | |
31662 | else | |
31663 | echo "$as_me: failed program was:" >&5 | |
31664 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31665 | ||
31666 | ac_cv_lib_esd_esd_close=no | |
31667 | fi | |
ac1cb8d3 VS |
31668 | rm -f conftest.err conftest.$ac_objext \ |
31669 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31670 | LIBS=$ac_check_lib_save_LIBS |
31671 | fi | |
31672 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
31673 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
31674 | if test $ac_cv_lib_esd_esd_close = yes; then | |
31675 | ||
31676 | ||
31677 | for ac_header in esd.h | |
31678 | do | |
31679 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31680 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31681 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31682 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31683 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31685 | fi | |
31686 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31687 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31688 | else | |
31689 | # Is the header compilable? | |
31690 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31691 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31692 | cat >conftest.$ac_ext <<_ACEOF | |
31693 | /* confdefs.h. */ | |
31694 | _ACEOF | |
31695 | cat confdefs.h >>conftest.$ac_ext | |
31696 | cat >>conftest.$ac_ext <<_ACEOF | |
31697 | /* end confdefs.h. */ | |
31698 | $ac_includes_default | |
31699 | #include <$ac_header> | |
31700 | _ACEOF | |
31701 | rm -f conftest.$ac_objext | |
31702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31703 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31704 | ac_status=$? |
ac1cb8d3 VS |
31705 | grep -v '^ *+' conftest.er1 >conftest.err |
31706 | rm -f conftest.er1 | |
31707 | cat conftest.err >&5 | |
a848cd7e SC |
31708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31709 | (exit $ac_status); } && | |
c228d3a4 RN |
31710 | { ac_try='test -z "$ac_c_werror_flag" |
31711 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31713 | (eval $ac_try) 2>&5 | |
31714 | ac_status=$? | |
31715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31716 | (exit $ac_status); }; } && | |
31717 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31719 | (eval $ac_try) 2>&5 | |
31720 | ac_status=$? | |
31721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31722 | (exit $ac_status); }; }; then | |
31723 | ac_header_compiler=yes | |
31724 | else | |
31725 | echo "$as_me: failed program was:" >&5 | |
31726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31727 | ||
31728 | ac_header_compiler=no | |
31729 | fi | |
ac1cb8d3 | 31730 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31731 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31732 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31733 | ||
31734 | # Is the header present? | |
31735 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31736 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31737 | cat >conftest.$ac_ext <<_ACEOF | |
31738 | /* confdefs.h. */ | |
31739 | _ACEOF | |
31740 | cat confdefs.h >>conftest.$ac_ext | |
31741 | cat >>conftest.$ac_ext <<_ACEOF | |
31742 | /* end confdefs.h. */ | |
31743 | #include <$ac_header> | |
31744 | _ACEOF | |
31745 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31746 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31747 | ac_status=$? | |
31748 | grep -v '^ *+' conftest.er1 >conftest.err | |
31749 | rm -f conftest.er1 | |
31750 | cat conftest.err >&5 | |
31751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31752 | (exit $ac_status); } >/dev/null; then | |
31753 | if test -s conftest.err; then | |
31754 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 31755 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
31756 | else |
31757 | ac_cpp_err= | |
31758 | fi | |
31759 | else | |
31760 | ac_cpp_err=yes | |
31761 | fi | |
31762 | if test -z "$ac_cpp_err"; then | |
31763 | ac_header_preproc=yes | |
31764 | else | |
31765 | echo "$as_me: failed program was:" >&5 | |
31766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31767 | ||
31768 | ac_header_preproc=no | |
31769 | fi | |
31770 | rm -f conftest.err conftest.$ac_ext | |
31771 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31772 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31773 | ||
31774 | # So? What about this header? | |
ac1cb8d3 VS |
31775 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
31776 | yes:no: ) | |
a848cd7e SC |
31777 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
31778 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
31779 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
31780 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
31781 | ac_header_preproc=yes | |
a848cd7e | 31782 | ;; |
ac1cb8d3 | 31783 | no:yes:* ) |
a848cd7e SC |
31784 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
31785 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
31786 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
31787 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31788 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
31789 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
31790 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
31791 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
31792 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
31793 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
31794 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
31795 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
31796 | ( |
31797 | cat <<\_ASBOX | |
ac1cb8d3 VS |
31798 | ## ----------------------------------------- ## |
31799 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
31800 | ## ----------------------------------------- ## | |
a848cd7e SC |
31801 | _ASBOX |
31802 | ) | | |
31803 | sed "s/^/$as_me: WARNING: /" >&2 | |
31804 | ;; | |
31805 | esac | |
31806 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31807 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31808 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31810 | else | |
ac1cb8d3 | 31811 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
31812 | fi |
31813 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31814 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31815 | ||
31816 | fi | |
31817 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
31818 | cat >>confdefs.h <<_ACEOF | |
31819 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31820 | _ACEOF | |
31821 | ||
31822 | EXTRALIBS_ESD="-lesd" | |
31823 | ||
31824 | fi | |
31825 | ||
31826 | done | |
31827 | ||
31828 | ||
31829 | fi | |
31830 | ||
31831 | ||
31832 | ||
31833 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
31834 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
31835 | cat >conftest.$ac_ext <<_ACEOF | |
31836 | /* confdefs.h. */ | |
31837 | _ACEOF | |
31838 | cat confdefs.h >>conftest.$ac_ext | |
31839 | cat >>conftest.$ac_ext <<_ACEOF | |
31840 | /* end confdefs.h. */ | |
31841 | #ifdef __linux__ | |
31842 | #include <linux/cdrom.h> | |
31843 | #else | |
31844 | /* For Solaris */ | |
31845 | #include <sys/cdio.h> | |
31846 | #endif | |
31847 | ||
31848 | int | |
31849 | main () | |
31850 | { | |
31851 | struct cdrom_tocentry entry, old_entry; | |
31852 | ; | |
31853 | return 0; | |
31854 | } | |
31855 | _ACEOF | |
31856 | rm -f conftest.$ac_objext | |
31857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31858 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31859 | ac_status=$? |
ac1cb8d3 VS |
31860 | grep -v '^ *+' conftest.er1 >conftest.err |
31861 | rm -f conftest.er1 | |
31862 | cat conftest.err >&5 | |
a848cd7e SC |
31863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31864 | (exit $ac_status); } && | |
c228d3a4 RN |
31865 | { ac_try='test -z "$ac_c_werror_flag" |
31866 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31868 | (eval $ac_try) 2>&5 | |
31869 | ac_status=$? | |
31870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31871 | (exit $ac_status); }; } && | |
31872 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31874 | (eval $ac_try) 2>&5 | |
31875 | ac_status=$? | |
31876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31877 | (exit $ac_status); }; }; then | |
31878 | echo "$as_me:$LINENO: result: yes" >&5 | |
31879 | echo "${ECHO_T}yes" >&6 | |
31880 | cat >>confdefs.h <<\_ACEOF | |
31881 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
31882 | _ACEOF | |
31883 | ||
31884 | else | |
31885 | echo "$as_me: failed program was:" >&5 | |
31886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31887 | ||
31888 | echo "$as_me:$LINENO: result: no" >&5 | |
31889 | echo "${ECHO_T}no" >&6 | |
31890 | fi | |
ac1cb8d3 | 31891 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31892 | |
31893 | ||
31894 | cat >confcache <<\_ACEOF | |
31895 | # This file is a shell script that caches the results of configure | |
31896 | # tests run on this system so they can be shared between configure | |
31897 | # scripts and configure runs, see configure's option --config-cache. | |
31898 | # It is not useful on other systems. If it contains results you don't | |
31899 | # want to keep, you may remove or edit it. | |
31900 | # | |
31901 | # config.status only pays attention to the cache file if you give it | |
31902 | # the --recheck option to rerun configure. | |
31903 | # | |
31904 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
31905 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
31906 | # following values. | |
31907 | ||
31908 | _ACEOF | |
31909 | ||
31910 | # The following way of writing the cache mishandles newlines in values, | |
31911 | # but we know of no workaround that is simple, portable, and efficient. | |
31912 | # So, don't put newlines in cache variables' values. | |
31913 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
31914 | # and sets the high bit in the cache file unless we assign to the vars. | |
31915 | { | |
31916 | (set) 2>&1 | | |
31917 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
31918 | *ac_space=\ *) | |
31919 | # `set' does not quote correctly, so add quotes (double-quote | |
31920 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
31921 | sed -n \ | |
ac1cb8d3 VS |
31922 | "s/'/'\\\\''/g; |
31923 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
31924 | ;; |
31925 | *) | |
31926 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
31927 | sed -n \ | |
ac1cb8d3 | 31928 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
31929 | ;; |
31930 | esac; | |
31931 | } | | |
31932 | sed ' | |
31933 | t clear | |
31934 | : clear | |
31935 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
31936 | t end | |
31937 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
31938 | : end' >>confcache | |
31939 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
31940 | if test -w $cache_file; then | |
31941 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
31942 | cat confcache >$cache_file | |
31943 | else | |
31944 | echo "not updating unwritable cache $cache_file" | |
31945 | fi | |
31946 | fi | |
31947 | rm -f confcache | |
31948 | ||
31949 | ||
31950 | CPP_MT_FLAG= | |
31951 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
31952 | ||
31953 | ||
31954 | THREADS_LINK= | |
31955 | THREADS_CFLAGS= | |
31956 | ||
31957 | if test "$wxUSE_THREADS" = "yes" ; then | |
31958 | if test "$USE_BEOS" = 1; then | |
31959 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
31960 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
31961 | wxUSE_THREADS="no" | |
31962 | fi | |
31963 | fi | |
31964 | ||
31965 | if test "$wxUSE_THREADS" = "yes" ; then | |
31966 | ||
31967 | ||
31968 | THREAD_OPTS="-pthread" | |
31969 | case "${host}" in | |
31970 | *-*-solaris2* | *-*-sunos4* ) | |
31971 | if test "x$GCC" = "xyes"; then | |
31972 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
31973 | else | |
31974 | THREAD_OPTS="-mt $THREAD_OPTS" | |
31975 | fi | |
31976 | ;; | |
31977 | *-*-freebsd*) | |
31978 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
31979 | ;; | |
31980 | *-*-darwin* | *-*-cygwin* ) | |
31981 | THREAD_OPTS="" | |
31982 | ;; | |
31983 | *-*-aix*) | |
31984 | THREAD_OPTS="pthreads" | |
31985 | ;; | |
31986 | *-hp-hpux* ) | |
31987 | if test "x$GCC" != "xyes"; then | |
31988 | THREAD_OPTS="" | |
31989 | fi | |
31990 | ;; | |
31991 | ||
31992 | *-*-irix* ) | |
31993 | if test "x$GCC" = "xyes"; then | |
31994 | THREAD_OPTS="" | |
31995 | fi | |
31996 | ;; | |
31997 | ||
31998 | *-*-*UnixWare*) | |
31999 | if test "x$GCC" != "xyes"; then | |
32000 | THREAD_OPTS="-Ethread" | |
32001 | fi | |
32002 | ;; | |
32003 | esac | |
32004 | ||
32005 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
32006 | ||
32007 | THREADS_OK=no | |
32008 | for flag in $THREAD_OPTS; do | |
32009 | case $flag in | |
32010 | none) | |
32011 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
32012 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
32013 | ;; | |
32014 | ||
32015 | -*) | |
32016 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
32017 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
32018 | THREADS_CFLAGS="$flag" | |
32019 | ;; | |
32020 | ||
32021 | *) | |
32022 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
32023 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
32024 | THREADS_LINK="-l$flag" | |
32025 | ;; | |
32026 | esac | |
32027 | ||
32028 | save_LIBS="$LIBS" | |
32029 | save_CFLAGS="$CFLAGS" | |
32030 | LIBS="$THREADS_LINK $LIBS" | |
32031 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
32032 | ||
32033 | cat >conftest.$ac_ext <<_ACEOF | |
32034 | /* confdefs.h. */ | |
32035 | _ACEOF | |
32036 | cat confdefs.h >>conftest.$ac_ext | |
32037 | cat >>conftest.$ac_ext <<_ACEOF | |
32038 | /* end confdefs.h. */ | |
32039 | #include <pthread.h> | |
32040 | int | |
32041 | main () | |
32042 | { | |
32043 | pthread_create(0,0,0,0); | |
32044 | ; | |
32045 | return 0; | |
32046 | } | |
32047 | _ACEOF | |
32048 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32049 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32050 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32051 | ac_status=$? |
ac1cb8d3 VS |
32052 | grep -v '^ *+' conftest.er1 >conftest.err |
32053 | rm -f conftest.er1 | |
32054 | cat conftest.err >&5 | |
a848cd7e SC |
32055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32056 | (exit $ac_status); } && | |
c228d3a4 RN |
32057 | { ac_try='test -z "$ac_c_werror_flag" |
32058 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32060 | (eval $ac_try) 2>&5 | |
32061 | ac_status=$? | |
32062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32063 | (exit $ac_status); }; } && | |
32064 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32066 | (eval $ac_try) 2>&5 | |
32067 | ac_status=$? | |
32068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32069 | (exit $ac_status); }; }; then | |
32070 | THREADS_OK=yes | |
32071 | else | |
32072 | echo "$as_me: failed program was:" >&5 | |
32073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32074 | ||
32075 | fi | |
ac1cb8d3 VS |
32076 | rm -f conftest.err conftest.$ac_objext \ |
32077 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32078 | |
32079 | LIBS="$save_LIBS" | |
32080 | CFLAGS="$save_CFLAGS" | |
32081 | ||
32082 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
32083 | echo "${ECHO_T}$THREADS_OK" >&6 | |
32084 | if test "x$THREADS_OK" = "xyes"; then | |
32085 | break; | |
32086 | fi | |
32087 | ||
32088 | THREADS_LINK="" | |
32089 | THREADS_CFLAGS="" | |
32090 | done | |
32091 | ||
32092 | if test "x$THREADS_OK" != "xyes"; then | |
32093 | wxUSE_THREADS=no | |
32094 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
32095 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
32096 | else | |
32097 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
32098 | LIBS="$THREADS_LINK $LIBS" | |
32099 | ||
32100 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
32101 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
32102 | flag=no | |
32103 | case "${host}" in | |
32104 | *-aix*) | |
32105 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
32106 | flag="-D_THREAD_SAFE" | |
32107 | ;; | |
32108 | *-freebsd*) | |
32109 | flag="-D_THREAD_SAFE" | |
32110 | ;; | |
32111 | *-hp-hpux* ) | |
32112 | flag="-D_REENTRANT" | |
32113 | if test "x$GCC" != "xyes"; then | |
32114 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
473276a9 VS |
32115 | |
32116 | LIBS="$LIBS -lcma" | |
a848cd7e SC |
32117 | fi |
32118 | ;; | |
32119 | *solaris* | alpha*-osf*) | |
32120 | flag="-D_REENTRANT" | |
32121 | ;; | |
32122 | esac | |
32123 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
32124 | echo "${ECHO_T}${flag}" >&6 | |
32125 | if test "x$flag" != xno; then | |
32126 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
32127 | fi | |
32128 | ||
32129 | if test "x$THREADS_CFLAGS" != "x"; then | |
32130 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
32131 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
32132 | fi | |
32133 | fi | |
32134 | fi | |
32135 | ||
32136 | if test "$wxUSE_THREADS" = "yes" ; then | |
32137 | ||
32138 | for ac_func in thr_setconcurrency | |
32139 | do | |
32140 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32141 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32142 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32143 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32145 | else | |
32146 | cat >conftest.$ac_ext <<_ACEOF | |
32147 | /* confdefs.h. */ | |
32148 | _ACEOF | |
32149 | cat confdefs.h >>conftest.$ac_ext | |
32150 | cat >>conftest.$ac_ext <<_ACEOF | |
32151 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32152 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32153 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32154 | #define $ac_func innocuous_$ac_func | |
32155 | ||
a848cd7e SC |
32156 | /* System header to define __stub macros and hopefully few prototypes, |
32157 | which can conflict with char $ac_func (); below. | |
32158 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32159 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32160 | |
a848cd7e SC |
32161 | #ifdef __STDC__ |
32162 | # include <limits.h> | |
32163 | #else | |
32164 | # include <assert.h> | |
32165 | #endif | |
ac1cb8d3 VS |
32166 | |
32167 | #undef $ac_func | |
32168 | ||
a848cd7e SC |
32169 | /* Override any gcc2 internal prototype to avoid an error. */ |
32170 | #ifdef __cplusplus | |
32171 | extern "C" | |
32172 | { | |
32173 | #endif | |
32174 | /* We use char because int might match the return type of a gcc2 | |
32175 | builtin and then its argument prototype would still apply. */ | |
32176 | char $ac_func (); | |
32177 | /* The GNU C library defines this for functions which it implements | |
32178 | to always fail with ENOSYS. Some functions are actually named | |
32179 | something starting with __ and the normal name is an alias. */ | |
32180 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32181 | choke me | |
32182 | #else | |
32183 | char (*f) () = $ac_func; | |
32184 | #endif | |
32185 | #ifdef __cplusplus | |
32186 | } | |
32187 | #endif | |
32188 | ||
32189 | int | |
32190 | main () | |
32191 | { | |
32192 | return f != $ac_func; | |
32193 | ; | |
32194 | return 0; | |
32195 | } | |
32196 | _ACEOF | |
32197 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32198 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32199 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32200 | ac_status=$? |
ac1cb8d3 VS |
32201 | grep -v '^ *+' conftest.er1 >conftest.err |
32202 | rm -f conftest.er1 | |
32203 | cat conftest.err >&5 | |
a848cd7e SC |
32204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32205 | (exit $ac_status); } && | |
c228d3a4 RN |
32206 | { ac_try='test -z "$ac_c_werror_flag" |
32207 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32209 | (eval $ac_try) 2>&5 | |
32210 | ac_status=$? | |
32211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32212 | (exit $ac_status); }; } && | |
32213 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32215 | (eval $ac_try) 2>&5 | |
32216 | ac_status=$? | |
32217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32218 | (exit $ac_status); }; }; then | |
32219 | eval "$as_ac_var=yes" | |
32220 | else | |
32221 | echo "$as_me: failed program was:" >&5 | |
32222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32223 | ||
32224 | eval "$as_ac_var=no" | |
32225 | fi | |
ac1cb8d3 VS |
32226 | rm -f conftest.err conftest.$ac_objext \ |
32227 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32228 | fi |
32229 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32230 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32231 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32232 | cat >>confdefs.h <<_ACEOF | |
32233 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32234 | _ACEOF | |
32235 | ||
32236 | fi | |
32237 | done | |
32238 | ||
32239 | ||
32240 | ||
32241 | for ac_header in sched.h | |
32242 | do | |
32243 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
32244 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32245 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32246 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32247 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32249 | fi | |
32250 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32251 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32252 | else | |
32253 | # Is the header compilable? | |
32254 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
32255 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
32256 | cat >conftest.$ac_ext <<_ACEOF | |
32257 | /* confdefs.h. */ | |
32258 | _ACEOF | |
32259 | cat confdefs.h >>conftest.$ac_ext | |
32260 | cat >>conftest.$ac_ext <<_ACEOF | |
32261 | /* end confdefs.h. */ | |
32262 | $ac_includes_default | |
32263 | #include <$ac_header> | |
32264 | _ACEOF | |
32265 | rm -f conftest.$ac_objext | |
32266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32267 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32268 | ac_status=$? |
ac1cb8d3 VS |
32269 | grep -v '^ *+' conftest.er1 >conftest.err |
32270 | rm -f conftest.er1 | |
32271 | cat conftest.err >&5 | |
a848cd7e SC |
32272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32273 | (exit $ac_status); } && | |
c228d3a4 RN |
32274 | { ac_try='test -z "$ac_c_werror_flag" |
32275 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32277 | (eval $ac_try) 2>&5 | |
32278 | ac_status=$? | |
32279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32280 | (exit $ac_status); }; } && | |
32281 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32283 | (eval $ac_try) 2>&5 | |
32284 | ac_status=$? | |
32285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32286 | (exit $ac_status); }; }; then | |
32287 | ac_header_compiler=yes | |
32288 | else | |
32289 | echo "$as_me: failed program was:" >&5 | |
32290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32291 | ||
32292 | ac_header_compiler=no | |
32293 | fi | |
ac1cb8d3 | 32294 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32295 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
32296 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32297 | ||
32298 | # Is the header present? | |
32299 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
32300 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
32301 | cat >conftest.$ac_ext <<_ACEOF | |
32302 | /* confdefs.h. */ | |
32303 | _ACEOF | |
32304 | cat confdefs.h >>conftest.$ac_ext | |
32305 | cat >>conftest.$ac_ext <<_ACEOF | |
32306 | /* end confdefs.h. */ | |
32307 | #include <$ac_header> | |
32308 | _ACEOF | |
32309 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32310 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32311 | ac_status=$? | |
32312 | grep -v '^ *+' conftest.er1 >conftest.err | |
32313 | rm -f conftest.er1 | |
32314 | cat conftest.err >&5 | |
32315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32316 | (exit $ac_status); } >/dev/null; then | |
32317 | if test -s conftest.err; then | |
32318 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 32319 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
32320 | else |
32321 | ac_cpp_err= | |
32322 | fi | |
32323 | else | |
32324 | ac_cpp_err=yes | |
32325 | fi | |
32326 | if test -z "$ac_cpp_err"; then | |
32327 | ac_header_preproc=yes | |
32328 | else | |
32329 | echo "$as_me: failed program was:" >&5 | |
32330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32331 | ||
32332 | ac_header_preproc=no | |
32333 | fi | |
32334 | rm -f conftest.err conftest.$ac_ext | |
32335 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32336 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32337 | ||
32338 | # So? What about this header? | |
ac1cb8d3 VS |
32339 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
32340 | yes:no: ) | |
a848cd7e SC |
32341 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
32342 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
32343 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
32344 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
32345 | ac_header_preproc=yes | |
a848cd7e | 32346 | ;; |
ac1cb8d3 | 32347 | no:yes:* ) |
a848cd7e SC |
32348 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
32349 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
32350 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
32351 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
32352 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
32353 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
32354 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
32355 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
32356 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
32357 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
32358 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
32359 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
32360 | ( |
32361 | cat <<\_ASBOX | |
ac1cb8d3 VS |
32362 | ## ----------------------------------------- ## |
32363 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
32364 | ## ----------------------------------------- ## | |
a848cd7e SC |
32365 | _ASBOX |
32366 | ) | | |
32367 | sed "s/^/$as_me: WARNING: /" >&2 | |
32368 | ;; | |
32369 | esac | |
32370 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32371 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32372 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32374 | else | |
ac1cb8d3 | 32375 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
32376 | fi |
32377 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32378 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32379 | ||
32380 | fi | |
32381 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
32382 | cat >>confdefs.h <<_ACEOF | |
32383 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32384 | _ACEOF | |
32385 | ||
32386 | fi | |
32387 | ||
32388 | done | |
32389 | ||
32390 | if test "$ac_cv_header_sched_h" = "yes"; then | |
32391 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
32392 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
32393 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
32394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32395 | else | |
32396 | cat >conftest.$ac_ext <<_ACEOF | |
32397 | /* confdefs.h. */ | |
32398 | _ACEOF | |
32399 | cat confdefs.h >>conftest.$ac_ext | |
32400 | cat >>conftest.$ac_ext <<_ACEOF | |
32401 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32402 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
32403 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32404 | #define sched_yield innocuous_sched_yield | |
32405 | ||
a848cd7e SC |
32406 | /* System header to define __stub macros and hopefully few prototypes, |
32407 | which can conflict with char sched_yield (); below. | |
32408 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32409 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32410 | |
a848cd7e SC |
32411 | #ifdef __STDC__ |
32412 | # include <limits.h> | |
32413 | #else | |
32414 | # include <assert.h> | |
32415 | #endif | |
ac1cb8d3 VS |
32416 | |
32417 | #undef sched_yield | |
32418 | ||
a848cd7e SC |
32419 | /* Override any gcc2 internal prototype to avoid an error. */ |
32420 | #ifdef __cplusplus | |
32421 | extern "C" | |
32422 | { | |
32423 | #endif | |
32424 | /* We use char because int might match the return type of a gcc2 | |
32425 | builtin and then its argument prototype would still apply. */ | |
32426 | char sched_yield (); | |
32427 | /* The GNU C library defines this for functions which it implements | |
32428 | to always fail with ENOSYS. Some functions are actually named | |
32429 | something starting with __ and the normal name is an alias. */ | |
32430 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
32431 | choke me | |
32432 | #else | |
32433 | char (*f) () = sched_yield; | |
32434 | #endif | |
32435 | #ifdef __cplusplus | |
32436 | } | |
32437 | #endif | |
32438 | ||
32439 | int | |
32440 | main () | |
32441 | { | |
32442 | return f != sched_yield; | |
32443 | ; | |
32444 | return 0; | |
32445 | } | |
32446 | _ACEOF | |
32447 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32448 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32449 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32450 | ac_status=$? |
ac1cb8d3 VS |
32451 | grep -v '^ *+' conftest.er1 >conftest.err |
32452 | rm -f conftest.er1 | |
32453 | cat conftest.err >&5 | |
a848cd7e SC |
32454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32455 | (exit $ac_status); } && | |
c228d3a4 RN |
32456 | { ac_try='test -z "$ac_c_werror_flag" |
32457 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32459 | (eval $ac_try) 2>&5 | |
32460 | ac_status=$? | |
32461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32462 | (exit $ac_status); }; } && | |
32463 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
32469 | ac_cv_func_sched_yield=yes | |
32470 | else | |
32471 | echo "$as_me: failed program was:" >&5 | |
32472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32473 | ||
32474 | ac_cv_func_sched_yield=no | |
32475 | fi | |
ac1cb8d3 VS |
32476 | rm -f conftest.err conftest.$ac_objext \ |
32477 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32478 | fi |
32479 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
32480 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
32481 | if test $ac_cv_func_sched_yield = yes; then | |
32482 | cat >>confdefs.h <<\_ACEOF | |
32483 | #define HAVE_SCHED_YIELD 1 | |
32484 | _ACEOF | |
32485 | ||
32486 | else | |
32487 | ||
32488 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
32489 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
32490 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
32491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32492 | else | |
32493 | ac_check_lib_save_LIBS=$LIBS | |
32494 | LIBS="-lposix4 $LIBS" | |
32495 | cat >conftest.$ac_ext <<_ACEOF | |
32496 | /* confdefs.h. */ | |
32497 | _ACEOF | |
32498 | cat confdefs.h >>conftest.$ac_ext | |
32499 | cat >>conftest.$ac_ext <<_ACEOF | |
32500 | /* end confdefs.h. */ | |
32501 | ||
32502 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32503 | #ifdef __cplusplus | |
32504 | extern "C" | |
32505 | #endif | |
32506 | /* We use char because int might match the return type of a gcc2 | |
32507 | builtin and then its argument prototype would still apply. */ | |
32508 | char sched_yield (); | |
32509 | int | |
32510 | main () | |
32511 | { | |
32512 | sched_yield (); | |
32513 | ; | |
32514 | return 0; | |
32515 | } | |
32516 | _ACEOF | |
32517 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32518 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32519 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32520 | ac_status=$? |
ac1cb8d3 VS |
32521 | grep -v '^ *+' conftest.er1 >conftest.err |
32522 | rm -f conftest.er1 | |
32523 | cat conftest.err >&5 | |
a848cd7e SC |
32524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32525 | (exit $ac_status); } && | |
c228d3a4 RN |
32526 | { ac_try='test -z "$ac_c_werror_flag" |
32527 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32529 | (eval $ac_try) 2>&5 | |
32530 | ac_status=$? | |
32531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32532 | (exit $ac_status); }; } && | |
32533 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32535 | (eval $ac_try) 2>&5 | |
32536 | ac_status=$? | |
32537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32538 | (exit $ac_status); }; }; then | |
32539 | ac_cv_lib_posix4_sched_yield=yes | |
32540 | else | |
32541 | echo "$as_me: failed program was:" >&5 | |
32542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32543 | ||
32544 | ac_cv_lib_posix4_sched_yield=no | |
32545 | fi | |
ac1cb8d3 VS |
32546 | rm -f conftest.err conftest.$ac_objext \ |
32547 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32548 | LIBS=$ac_check_lib_save_LIBS |
32549 | fi | |
32550 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
32551 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
32552 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
32553 | cat >>confdefs.h <<\_ACEOF | |
32554 | #define HAVE_SCHED_YIELD 1 | |
32555 | _ACEOF | |
32556 | POSIX4_LINK=" -lposix4" | |
32557 | else | |
32558 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
32559 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
32560 | ||
32561 | fi | |
32562 | ||
32563 | ||
32564 | ||
32565 | fi | |
32566 | ||
32567 | fi | |
32568 | ||
32569 | HAVE_PRIOR_FUNCS=0 | |
32570 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
32571 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
32572 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
32573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32574 | else | |
32575 | cat >conftest.$ac_ext <<_ACEOF | |
32576 | /* confdefs.h. */ | |
32577 | _ACEOF | |
32578 | cat confdefs.h >>conftest.$ac_ext | |
32579 | cat >>conftest.$ac_ext <<_ACEOF | |
32580 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32581 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
32582 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32583 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
32584 | ||
a848cd7e SC |
32585 | /* System header to define __stub macros and hopefully few prototypes, |
32586 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
32587 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32588 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32589 | |
a848cd7e SC |
32590 | #ifdef __STDC__ |
32591 | # include <limits.h> | |
32592 | #else | |
32593 | # include <assert.h> | |
32594 | #endif | |
ac1cb8d3 VS |
32595 | |
32596 | #undef pthread_attr_getschedpolicy | |
32597 | ||
a848cd7e SC |
32598 | /* Override any gcc2 internal prototype to avoid an error. */ |
32599 | #ifdef __cplusplus | |
32600 | extern "C" | |
32601 | { | |
32602 | #endif | |
32603 | /* We use char because int might match the return type of a gcc2 | |
32604 | builtin and then its argument prototype would still apply. */ | |
32605 | char pthread_attr_getschedpolicy (); | |
32606 | /* The GNU C library defines this for functions which it implements | |
32607 | to always fail with ENOSYS. Some functions are actually named | |
32608 | something starting with __ and the normal name is an alias. */ | |
32609 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
32610 | choke me | |
32611 | #else | |
32612 | char (*f) () = pthread_attr_getschedpolicy; | |
32613 | #endif | |
32614 | #ifdef __cplusplus | |
32615 | } | |
32616 | #endif | |
32617 | ||
32618 | int | |
32619 | main () | |
32620 | { | |
32621 | return f != pthread_attr_getschedpolicy; | |
32622 | ; | |
32623 | return 0; | |
32624 | } | |
32625 | _ACEOF | |
32626 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32627 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32628 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32629 | ac_status=$? |
ac1cb8d3 VS |
32630 | grep -v '^ *+' conftest.er1 >conftest.err |
32631 | rm -f conftest.er1 | |
32632 | cat conftest.err >&5 | |
a848cd7e SC |
32633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32634 | (exit $ac_status); } && | |
c228d3a4 RN |
32635 | { ac_try='test -z "$ac_c_werror_flag" |
32636 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32638 | (eval $ac_try) 2>&5 | |
32639 | ac_status=$? | |
32640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32641 | (exit $ac_status); }; } && | |
32642 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32644 | (eval $ac_try) 2>&5 | |
32645 | ac_status=$? | |
32646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32647 | (exit $ac_status); }; }; then | |
32648 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
32649 | else | |
32650 | echo "$as_me: failed program was:" >&5 | |
32651 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32652 | ||
32653 | ac_cv_func_pthread_attr_getschedpolicy=no | |
32654 | fi | |
ac1cb8d3 VS |
32655 | rm -f conftest.err conftest.$ac_objext \ |
32656 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32657 | fi |
32658 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
32659 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
32660 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
32661 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
32662 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
32663 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
32664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32665 | else | |
32666 | cat >conftest.$ac_ext <<_ACEOF | |
32667 | /* confdefs.h. */ | |
32668 | _ACEOF | |
32669 | cat confdefs.h >>conftest.$ac_ext | |
32670 | cat >>conftest.$ac_ext <<_ACEOF | |
32671 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32672 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
32673 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32674 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
32675 | ||
a848cd7e SC |
32676 | /* System header to define __stub macros and hopefully few prototypes, |
32677 | which can conflict with char pthread_attr_setschedparam (); below. | |
32678 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32679 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32680 | |
a848cd7e SC |
32681 | #ifdef __STDC__ |
32682 | # include <limits.h> | |
32683 | #else | |
32684 | # include <assert.h> | |
32685 | #endif | |
ac1cb8d3 VS |
32686 | |
32687 | #undef pthread_attr_setschedparam | |
32688 | ||
a848cd7e SC |
32689 | /* Override any gcc2 internal prototype to avoid an error. */ |
32690 | #ifdef __cplusplus | |
32691 | extern "C" | |
32692 | { | |
32693 | #endif | |
32694 | /* We use char because int might match the return type of a gcc2 | |
32695 | builtin and then its argument prototype would still apply. */ | |
32696 | char pthread_attr_setschedparam (); | |
32697 | /* The GNU C library defines this for functions which it implements | |
32698 | to always fail with ENOSYS. Some functions are actually named | |
32699 | something starting with __ and the normal name is an alias. */ | |
32700 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
32701 | choke me | |
32702 | #else | |
32703 | char (*f) () = pthread_attr_setschedparam; | |
32704 | #endif | |
32705 | #ifdef __cplusplus | |
32706 | } | |
32707 | #endif | |
32708 | ||
32709 | int | |
32710 | main () | |
32711 | { | |
32712 | return f != pthread_attr_setschedparam; | |
32713 | ; | |
32714 | return 0; | |
32715 | } | |
32716 | _ACEOF | |
32717 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32718 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32719 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32720 | ac_status=$? |
ac1cb8d3 VS |
32721 | grep -v '^ *+' conftest.er1 >conftest.err |
32722 | rm -f conftest.er1 | |
32723 | cat conftest.err >&5 | |
a848cd7e SC |
32724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32725 | (exit $ac_status); } && | |
c228d3a4 RN |
32726 | { ac_try='test -z "$ac_c_werror_flag" |
32727 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32729 | (eval $ac_try) 2>&5 | |
32730 | ac_status=$? | |
32731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32732 | (exit $ac_status); }; } && | |
32733 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32735 | (eval $ac_try) 2>&5 | |
32736 | ac_status=$? | |
32737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32738 | (exit $ac_status); }; }; then | |
32739 | ac_cv_func_pthread_attr_setschedparam=yes | |
32740 | else | |
32741 | echo "$as_me: failed program was:" >&5 | |
32742 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32743 | ||
32744 | ac_cv_func_pthread_attr_setschedparam=no | |
32745 | fi | |
ac1cb8d3 VS |
32746 | rm -f conftest.err conftest.$ac_objext \ |
32747 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32748 | fi |
32749 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
32750 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
32751 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
32752 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
32753 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
32754 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
32755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32756 | else | |
32757 | cat >conftest.$ac_ext <<_ACEOF | |
32758 | /* confdefs.h. */ | |
32759 | _ACEOF | |
32760 | cat confdefs.h >>conftest.$ac_ext | |
32761 | cat >>conftest.$ac_ext <<_ACEOF | |
32762 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32763 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
32764 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32765 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
32766 | ||
a848cd7e SC |
32767 | /* System header to define __stub macros and hopefully few prototypes, |
32768 | which can conflict with char sched_get_priority_max (); below. | |
32769 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32770 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32771 | |
a848cd7e SC |
32772 | #ifdef __STDC__ |
32773 | # include <limits.h> | |
32774 | #else | |
32775 | # include <assert.h> | |
32776 | #endif | |
ac1cb8d3 VS |
32777 | |
32778 | #undef sched_get_priority_max | |
32779 | ||
a848cd7e SC |
32780 | /* Override any gcc2 internal prototype to avoid an error. */ |
32781 | #ifdef __cplusplus | |
32782 | extern "C" | |
32783 | { | |
32784 | #endif | |
32785 | /* We use char because int might match the return type of a gcc2 | |
32786 | builtin and then its argument prototype would still apply. */ | |
32787 | char sched_get_priority_max (); | |
32788 | /* The GNU C library defines this for functions which it implements | |
32789 | to always fail with ENOSYS. Some functions are actually named | |
32790 | something starting with __ and the normal name is an alias. */ | |
32791 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
32792 | choke me | |
32793 | #else | |
32794 | char (*f) () = sched_get_priority_max; | |
32795 | #endif | |
32796 | #ifdef __cplusplus | |
32797 | } | |
32798 | #endif | |
32799 | ||
32800 | int | |
32801 | main () | |
32802 | { | |
32803 | return f != sched_get_priority_max; | |
32804 | ; | |
32805 | return 0; | |
32806 | } | |
32807 | _ACEOF | |
32808 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32809 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32810 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32811 | ac_status=$? |
ac1cb8d3 VS |
32812 | grep -v '^ *+' conftest.er1 >conftest.err |
32813 | rm -f conftest.er1 | |
32814 | cat conftest.err >&5 | |
a848cd7e SC |
32815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32816 | (exit $ac_status); } && | |
c228d3a4 RN |
32817 | { ac_try='test -z "$ac_c_werror_flag" |
32818 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32820 | (eval $ac_try) 2>&5 | |
32821 | ac_status=$? | |
32822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32823 | (exit $ac_status); }; } && | |
32824 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32826 | (eval $ac_try) 2>&5 | |
32827 | ac_status=$? | |
32828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32829 | (exit $ac_status); }; }; then | |
32830 | ac_cv_func_sched_get_priority_max=yes | |
32831 | else | |
32832 | echo "$as_me: failed program was:" >&5 | |
32833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32834 | ||
32835 | ac_cv_func_sched_get_priority_max=no | |
32836 | fi | |
ac1cb8d3 VS |
32837 | rm -f conftest.err conftest.$ac_objext \ |
32838 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32839 | fi |
32840 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
32841 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
32842 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
32843 | HAVE_PRIOR_FUNCS=1 | |
32844 | else | |
32845 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
32846 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
32847 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
32848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32849 | else | |
32850 | ac_check_lib_save_LIBS=$LIBS | |
32851 | LIBS="-lposix4 $LIBS" | |
32852 | cat >conftest.$ac_ext <<_ACEOF | |
32853 | /* confdefs.h. */ | |
32854 | _ACEOF | |
32855 | cat confdefs.h >>conftest.$ac_ext | |
32856 | cat >>conftest.$ac_ext <<_ACEOF | |
32857 | /* end confdefs.h. */ | |
32858 | ||
32859 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32860 | #ifdef __cplusplus | |
32861 | extern "C" | |
32862 | #endif | |
32863 | /* We use char because int might match the return type of a gcc2 | |
32864 | builtin and then its argument prototype would still apply. */ | |
32865 | char sched_get_priority_max (); | |
32866 | int | |
32867 | main () | |
32868 | { | |
32869 | sched_get_priority_max (); | |
32870 | ; | |
32871 | return 0; | |
32872 | } | |
32873 | _ACEOF | |
32874 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32875 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32876 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32877 | ac_status=$? |
ac1cb8d3 VS |
32878 | grep -v '^ *+' conftest.er1 >conftest.err |
32879 | rm -f conftest.er1 | |
32880 | cat conftest.err >&5 | |
a848cd7e SC |
32881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32882 | (exit $ac_status); } && | |
c228d3a4 RN |
32883 | { ac_try='test -z "$ac_c_werror_flag" |
32884 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32886 | (eval $ac_try) 2>&5 | |
32887 | ac_status=$? | |
32888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32889 | (exit $ac_status); }; } && | |
32890 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32892 | (eval $ac_try) 2>&5 | |
32893 | ac_status=$? | |
32894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32895 | (exit $ac_status); }; }; then | |
32896 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
32897 | else | |
32898 | echo "$as_me: failed program was:" >&5 | |
32899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32900 | ||
32901 | ac_cv_lib_posix4_sched_get_priority_max=no | |
32902 | fi | |
ac1cb8d3 VS |
32903 | rm -f conftest.err conftest.$ac_objext \ |
32904 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32905 | LIBS=$ac_check_lib_save_LIBS |
32906 | fi | |
32907 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
32908 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
32909 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
32910 | ||
32911 | HAVE_PRIOR_FUNCS=1 | |
32912 | POSIX4_LINK=" -lposix4" | |
32913 | ||
32914 | fi | |
32915 | ||
32916 | ||
32917 | fi | |
32918 | ||
32919 | ||
32920 | fi | |
32921 | ||
32922 | ||
32923 | fi | |
32924 | ||
32925 | ||
32926 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
32927 | cat >>confdefs.h <<\_ACEOF | |
32928 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
32929 | _ACEOF | |
32930 | ||
32931 | else | |
32932 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
32933 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
32934 | fi | |
32935 | ||
32936 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
32937 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
32938 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
32939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32940 | else | |
32941 | cat >conftest.$ac_ext <<_ACEOF | |
32942 | /* confdefs.h. */ | |
32943 | _ACEOF | |
32944 | cat confdefs.h >>conftest.$ac_ext | |
32945 | cat >>conftest.$ac_ext <<_ACEOF | |
32946 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32947 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
32948 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32949 | #define pthread_cancel innocuous_pthread_cancel | |
32950 | ||
a848cd7e SC |
32951 | /* System header to define __stub macros and hopefully few prototypes, |
32952 | which can conflict with char pthread_cancel (); below. | |
32953 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32954 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32955 | |
a848cd7e SC |
32956 | #ifdef __STDC__ |
32957 | # include <limits.h> | |
32958 | #else | |
32959 | # include <assert.h> | |
32960 | #endif | |
ac1cb8d3 VS |
32961 | |
32962 | #undef pthread_cancel | |
32963 | ||
a848cd7e SC |
32964 | /* Override any gcc2 internal prototype to avoid an error. */ |
32965 | #ifdef __cplusplus | |
32966 | extern "C" | |
32967 | { | |
32968 | #endif | |
32969 | /* We use char because int might match the return type of a gcc2 | |
32970 | builtin and then its argument prototype would still apply. */ | |
32971 | char pthread_cancel (); | |
32972 | /* The GNU C library defines this for functions which it implements | |
32973 | to always fail with ENOSYS. Some functions are actually named | |
32974 | something starting with __ and the normal name is an alias. */ | |
32975 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
32976 | choke me | |
32977 | #else | |
32978 | char (*f) () = pthread_cancel; | |
32979 | #endif | |
32980 | #ifdef __cplusplus | |
32981 | } | |
32982 | #endif | |
32983 | ||
32984 | int | |
32985 | main () | |
32986 | { | |
32987 | return f != pthread_cancel; | |
32988 | ; | |
32989 | return 0; | |
32990 | } | |
32991 | _ACEOF | |
32992 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32993 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32994 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32995 | ac_status=$? |
ac1cb8d3 VS |
32996 | grep -v '^ *+' conftest.er1 >conftest.err |
32997 | rm -f conftest.er1 | |
32998 | cat conftest.err >&5 | |
a848cd7e SC |
32999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33000 | (exit $ac_status); } && | |
c228d3a4 RN |
33001 | { ac_try='test -z "$ac_c_werror_flag" |
33002 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33004 | (eval $ac_try) 2>&5 | |
33005 | ac_status=$? | |
33006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33007 | (exit $ac_status); }; } && | |
33008 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33010 | (eval $ac_try) 2>&5 | |
33011 | ac_status=$? | |
33012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33013 | (exit $ac_status); }; }; then | |
33014 | ac_cv_func_pthread_cancel=yes | |
33015 | else | |
33016 | echo "$as_me: failed program was:" >&5 | |
33017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33018 | ||
33019 | ac_cv_func_pthread_cancel=no | |
33020 | fi | |
ac1cb8d3 VS |
33021 | rm -f conftest.err conftest.$ac_objext \ |
33022 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33023 | fi |
33024 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
33025 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
33026 | if test $ac_cv_func_pthread_cancel = yes; then | |
33027 | cat >>confdefs.h <<\_ACEOF | |
33028 | #define HAVE_PTHREAD_CANCEL 1 | |
33029 | _ACEOF | |
33030 | ||
33031 | else | |
33032 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
33033 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
33034 | fi | |
33035 | ||
33036 | ||
33037 | ||
33038 | ||
33039 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
33040 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
33041 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
33042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33043 | else | |
33044 | ||
33045 | cat >conftest.$ac_ext <<_ACEOF | |
33046 | /* confdefs.h. */ | |
33047 | _ACEOF | |
33048 | cat confdefs.h >>conftest.$ac_ext | |
33049 | cat >>conftest.$ac_ext <<_ACEOF | |
33050 | /* end confdefs.h. */ | |
33051 | #include <pthread.h> | |
33052 | int | |
33053 | main () | |
33054 | { | |
33055 | ||
33056 | pthread_mutexattr_t attr; | |
33057 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
33058 | ||
33059 | ; | |
33060 | return 0; | |
33061 | } | |
33062 | _ACEOF | |
33063 | rm -f conftest.$ac_objext | |
33064 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33065 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33066 | ac_status=$? |
ac1cb8d3 VS |
33067 | grep -v '^ *+' conftest.er1 >conftest.err |
33068 | rm -f conftest.er1 | |
33069 | cat conftest.err >&5 | |
a848cd7e SC |
33070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33071 | (exit $ac_status); } && | |
c228d3a4 RN |
33072 | { ac_try='test -z "$ac_c_werror_flag" |
33073 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33075 | (eval $ac_try) 2>&5 | |
33076 | ac_status=$? | |
33077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33078 | (exit $ac_status); }; } && | |
33079 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33081 | (eval $ac_try) 2>&5 | |
33082 | ac_status=$? | |
33083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33084 | (exit $ac_status); }; }; then | |
33085 | ||
33086 | wx_cv_type_pthread_mutexattr_t=yes | |
33087 | ||
33088 | else | |
33089 | echo "$as_me: failed program was:" >&5 | |
33090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33091 | ||
33092 | ||
33093 | wx_cv_type_pthread_mutexattr_t=no | |
33094 | ||
33095 | ||
33096 | fi | |
ac1cb8d3 | 33097 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33098 | |
33099 | fi | |
33100 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
33101 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
33102 | ||
33103 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
33104 | cat >>confdefs.h <<\_ACEOF | |
33105 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
33106 | _ACEOF | |
33107 | ||
33108 | else | |
33109 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
33110 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
33111 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
33112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33113 | else | |
33114 | ||
33115 | cat >conftest.$ac_ext <<_ACEOF | |
33116 | /* confdefs.h. */ | |
33117 | _ACEOF | |
33118 | cat confdefs.h >>conftest.$ac_ext | |
33119 | cat >>conftest.$ac_ext <<_ACEOF | |
33120 | /* end confdefs.h. */ | |
33121 | #include <pthread.h> | |
33122 | int | |
33123 | main () | |
33124 | { | |
33125 | ||
33126 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
33127 | ||
33128 | ; | |
33129 | return 0; | |
33130 | } | |
33131 | _ACEOF | |
33132 | rm -f conftest.$ac_objext | |
33133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33134 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33135 | ac_status=$? |
ac1cb8d3 VS |
33136 | grep -v '^ *+' conftest.er1 >conftest.err |
33137 | rm -f conftest.er1 | |
33138 | cat conftest.err >&5 | |
a848cd7e SC |
33139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33140 | (exit $ac_status); } && | |
c228d3a4 RN |
33141 | { ac_try='test -z "$ac_c_werror_flag" |
33142 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33144 | (eval $ac_try) 2>&5 | |
33145 | ac_status=$? | |
33146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33147 | (exit $ac_status); }; } && | |
33148 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33150 | (eval $ac_try) 2>&5 | |
33151 | ac_status=$? | |
33152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33153 | (exit $ac_status); }; }; then | |
33154 | ||
33155 | wx_cv_type_pthread_rec_mutex_init=yes | |
33156 | ||
33157 | else | |
33158 | echo "$as_me: failed program was:" >&5 | |
33159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33160 | ||
33161 | ||
33162 | wx_cv_type_pthread_rec_mutex_init=no | |
33163 | ||
33164 | ||
33165 | fi | |
ac1cb8d3 | 33166 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33167 | |
33168 | fi | |
33169 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
33170 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
33171 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
33172 | cat >>confdefs.h <<\_ACEOF | |
33173 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
33174 | _ACEOF | |
33175 | ||
33176 | else | |
33177 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
33178 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
33179 | fi | |
33180 | fi | |
33181 | fi | |
33182 | ||
33183 | else | |
33184 | if test "$wxUSE_THREADS" = "yes" ; then | |
33185 | case "${host}" in | |
33186 | *-*-mingw32* ) | |
33187 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
33188 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
33189 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
33190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33191 | else | |
33192 | ||
33193 | CFLAGS_OLD="$CFLAGS" | |
33194 | CFLAGS="$CFLAGS -mthreads" | |
33195 | cat >conftest.$ac_ext <<_ACEOF | |
33196 | /* confdefs.h. */ | |
33197 | _ACEOF | |
33198 | cat confdefs.h >>conftest.$ac_ext | |
33199 | cat >>conftest.$ac_ext <<_ACEOF | |
33200 | /* end confdefs.h. */ | |
33201 | ||
33202 | int | |
33203 | main () | |
33204 | { | |
33205 | ||
33206 | ; | |
33207 | return 0; | |
33208 | } | |
33209 | _ACEOF | |
33210 | rm -f conftest.$ac_objext | |
33211 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33212 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33213 | ac_status=$? |
ac1cb8d3 VS |
33214 | grep -v '^ *+' conftest.er1 >conftest.err |
33215 | rm -f conftest.er1 | |
33216 | cat conftest.err >&5 | |
a848cd7e SC |
33217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33218 | (exit $ac_status); } && | |
c228d3a4 RN |
33219 | { ac_try='test -z "$ac_c_werror_flag" |
33220 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33222 | (eval $ac_try) 2>&5 | |
33223 | ac_status=$? | |
33224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33225 | (exit $ac_status); }; } && | |
33226 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33228 | (eval $ac_try) 2>&5 | |
33229 | ac_status=$? | |
33230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33231 | (exit $ac_status); }; }; then | |
33232 | wx_cv_cflags_mthread=yes | |
33233 | else | |
33234 | echo "$as_me: failed program was:" >&5 | |
33235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33236 | ||
33237 | wx_cv_cflags_mthread=no | |
33238 | ||
33239 | fi | |
ac1cb8d3 | 33240 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33241 | |
33242 | ||
33243 | fi | |
33244 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
33245 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
33246 | ||
33247 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
33248 | CXXFLAGS="$CXXFLAGS -mthreads" | |
33249 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
33250 | LDFLAGS="$LDFLAGS -mthreads" | |
33251 | else | |
33252 | CFLAGS="$CFLAGS_OLD" | |
33253 | fi | |
33254 | ;; | |
33255 | *-pc-os2*emx ) | |
33256 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
33257 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
33258 | LDFLAGS="$LDFLAGS -Zmt" | |
33259 | ;; | |
33260 | esac | |
33261 | fi | |
33262 | fi | |
33263 | ||
33264 | if test "$wxUSE_THREADS" = "yes"; then | |
33265 | cat >>confdefs.h <<\_ACEOF | |
33266 | #define wxUSE_THREADS 1 | |
33267 | _ACEOF | |
33268 | ||
33269 | ||
33270 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
33271 | else | |
33272 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
33273 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
33274 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
33275 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
33276 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
33277 | echo "$as_me:$LINENO: result: yes" >&5 | |
33278 | echo "${ECHO_T}yes" >&6 | |
33279 | else | |
33280 | echo "$as_me:$LINENO: result: no" >&5 | |
33281 | echo "${ECHO_T}no" >&6 | |
33282 | fi | |
33283 | fi | |
33284 | fi | |
33285 | ||
33286 | if test "$WXGTK20" = 1 ; then | |
33287 | cat >>confdefs.h <<_ACEOF | |
33288 | #define __WXGTK20__ $WXGTK20 | |
33289 | _ACEOF | |
33290 | ||
33291 | WXGTK12=1 | |
33292 | fi | |
33293 | ||
33294 | if test "$WXGTK12" = 1 ; then | |
33295 | cat >>confdefs.h <<_ACEOF | |
33296 | #define __WXGTK12__ $WXGTK12 | |
33297 | _ACEOF | |
33298 | ||
33299 | fi | |
33300 | ||
33301 | if test "$WXGTK127" = 1 ; then | |
33302 | cat >>confdefs.h <<_ACEOF | |
33303 | #define __WXGTK127__ $WXGTK127 | |
33304 | _ACEOF | |
33305 | ||
33306 | fi | |
33307 | ||
33308 | if test "$WXGPE" = 1 ; then | |
33309 | cat >>confdefs.h <<_ACEOF | |
33310 | #define __WXGPE__ $WXGPE | |
33311 | _ACEOF | |
33312 | ||
33313 | fi | |
33314 | ||
33315 | WXDEBUG= | |
33316 | ||
33317 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
33318 | WXDEBUG="-g" | |
33319 | wxUSE_OPTIMISE=no | |
33320 | fi | |
33321 | ||
33322 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
33323 | wxUSE_DEBUG_INFO=yes | |
33324 | WXDEBUG="-ggdb" | |
33325 | fi | |
33326 | ||
33327 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
33328 | cat >>confdefs.h <<\_ACEOF | |
33329 | #define WXDEBUG 1 | |
33330 | _ACEOF | |
33331 | ||
33332 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
33333 | else | |
33334 | if test "$wxUSE_GTK" = 1 ; then | |
33335 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
33336 | fi | |
33337 | fi | |
33338 | ||
33339 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
33340 | cat >>confdefs.h <<\_ACEOF | |
33341 | #define wxUSE_MEMORY_TRACING 1 | |
33342 | _ACEOF | |
33343 | ||
33344 | cat >>confdefs.h <<\_ACEOF | |
33345 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
33346 | _ACEOF | |
33347 | ||
33348 | cat >>confdefs.h <<\_ACEOF | |
33349 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
33350 | _ACEOF | |
33351 | ||
33352 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
33353 | fi | |
33354 | ||
33355 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
33356 | DMALLOC_LIBS="-ldmalloc" | |
33357 | fi | |
33358 | ||
33359 | PROFILE= | |
33360 | if test "$wxUSE_PROFILE" = "yes" ; then | |
33361 | PROFILE=" -pg" | |
33362 | fi | |
33363 | ||
33364 | CODE_GEN_FLAGS= | |
33365 | CODE_GEN_FLAGS_CXX= | |
33366 | if test "$GCC" = "yes" ; then | |
33367 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
33368 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
33369 | fi | |
33370 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
33371 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
33372 | fi | |
33373 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
33374 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
33375 | fi | |
33376 | ||
33377 | case "${host}" in | |
33378 | powerpc*-*-aix* ) | |
33379 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
33380 | ;; | |
33381 | *-hppa* ) | |
33382 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
33383 | ;; | |
33384 | esac | |
33385 | fi | |
33386 | ||
33387 | OPTIMISE= | |
33388 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
33389 | if test "$GCC" = yes ; then | |
33390 | OPTIMISE="-O0" | |
33391 | fi | |
33392 | else | |
33393 | if test "$GCC" = yes ; then | |
33394 | OPTIMISE="-O2" | |
33395 | ||
33396 | case "${host}" in | |
33397 | i586-*-*|i686-*-* ) | |
33398 | OPTIMISE="${OPTIMISE} " | |
33399 | ;; | |
33400 | esac | |
33401 | else | |
33402 | OPTIMISE="-O" | |
33403 | fi | |
33404 | fi | |
33405 | ||
33406 | ||
33407 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then | |
33408 | cat >>confdefs.h <<\_ACEOF | |
33409 | #define WXWIN_COMPATIBILITY_2_2 1 | |
33410 | _ACEOF | |
33411 | ||
33412 | ||
33413 | WXWIN_COMPATIBILITY_2_4="yes" | |
33414 | fi | |
33415 | ||
33416 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then | |
33417 | cat >>confdefs.h <<\_ACEOF | |
33418 | #define WXWIN_COMPATIBILITY_2_4 1 | |
33419 | _ACEOF | |
33420 | ||
33421 | fi | |
33422 | ||
33423 | ||
33424 | if test "$wxUSE_GUI" = "yes"; then | |
33425 | cat >>confdefs.h <<\_ACEOF | |
33426 | #define wxUSE_GUI 1 | |
33427 | _ACEOF | |
33428 | ||
33429 | ||
33430 | else | |
33431 | cat >>confdefs.h <<\_ACEOF | |
33432 | #define wxUSE_NOGUI 1 | |
33433 | _ACEOF | |
33434 | ||
33435 | fi | |
33436 | ||
33437 | ||
33438 | if test "$wxUSE_UNIX" = "yes"; then | |
33439 | cat >>confdefs.h <<\_ACEOF | |
33440 | #define wxUSE_UNIX 1 | |
33441 | _ACEOF | |
33442 | ||
33443 | fi | |
33444 | ||
33445 | ||
33446 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
33447 | ||
33448 | HAVE_DL_FUNCS=0 | |
33449 | HAVE_SHL_FUNCS=0 | |
33450 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
33451 | if test "$USE_DARWIN" = 1; then | |
33452 | HAVE_DL_FUNCS=1 | |
33453 | else | |
33454 | ||
33455 | for ac_func in dlopen | |
33456 | do | |
33457 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33458 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33459 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33460 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33462 | else | |
33463 | cat >conftest.$ac_ext <<_ACEOF | |
33464 | /* confdefs.h. */ | |
33465 | _ACEOF | |
33466 | cat confdefs.h >>conftest.$ac_ext | |
33467 | cat >>conftest.$ac_ext <<_ACEOF | |
33468 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33469 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33470 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33471 | #define $ac_func innocuous_$ac_func | |
33472 | ||
a848cd7e SC |
33473 | /* System header to define __stub macros and hopefully few prototypes, |
33474 | which can conflict with char $ac_func (); below. | |
33475 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33476 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33477 | |
a848cd7e SC |
33478 | #ifdef __STDC__ |
33479 | # include <limits.h> | |
33480 | #else | |
33481 | # include <assert.h> | |
33482 | #endif | |
ac1cb8d3 VS |
33483 | |
33484 | #undef $ac_func | |
33485 | ||
a848cd7e SC |
33486 | /* Override any gcc2 internal prototype to avoid an error. */ |
33487 | #ifdef __cplusplus | |
33488 | extern "C" | |
33489 | { | |
33490 | #endif | |
33491 | /* We use char because int might match the return type of a gcc2 | |
33492 | builtin and then its argument prototype would still apply. */ | |
33493 | char $ac_func (); | |
33494 | /* The GNU C library defines this for functions which it implements | |
33495 | to always fail with ENOSYS. Some functions are actually named | |
33496 | something starting with __ and the normal name is an alias. */ | |
33497 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33498 | choke me | |
33499 | #else | |
33500 | char (*f) () = $ac_func; | |
33501 | #endif | |
33502 | #ifdef __cplusplus | |
33503 | } | |
33504 | #endif | |
33505 | ||
33506 | int | |
33507 | main () | |
33508 | { | |
33509 | return f != $ac_func; | |
33510 | ; | |
33511 | return 0; | |
33512 | } | |
33513 | _ACEOF | |
33514 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33515 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33516 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33517 | ac_status=$? |
ac1cb8d3 VS |
33518 | grep -v '^ *+' conftest.er1 >conftest.err |
33519 | rm -f conftest.er1 | |
33520 | cat conftest.err >&5 | |
a848cd7e SC |
33521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33522 | (exit $ac_status); } && | |
c228d3a4 RN |
33523 | { ac_try='test -z "$ac_c_werror_flag" |
33524 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33526 | (eval $ac_try) 2>&5 | |
33527 | ac_status=$? | |
33528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33529 | (exit $ac_status); }; } && | |
33530 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33532 | (eval $ac_try) 2>&5 | |
33533 | ac_status=$? | |
33534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33535 | (exit $ac_status); }; }; then | |
33536 | eval "$as_ac_var=yes" | |
33537 | else | |
33538 | echo "$as_me: failed program was:" >&5 | |
33539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33540 | ||
33541 | eval "$as_ac_var=no" | |
33542 | fi | |
ac1cb8d3 VS |
33543 | rm -f conftest.err conftest.$ac_objext \ |
33544 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33545 | fi |
33546 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33547 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33548 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33549 | cat >>confdefs.h <<_ACEOF | |
33550 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33551 | _ACEOF | |
33552 | ||
33553 | cat >>confdefs.h <<\_ACEOF | |
33554 | #define HAVE_DLOPEN 1 | |
33555 | _ACEOF | |
33556 | ||
33557 | HAVE_DL_FUNCS=1 | |
33558 | ||
33559 | else | |
33560 | ||
33561 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
33562 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
33563 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
33564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33565 | else | |
33566 | ac_check_lib_save_LIBS=$LIBS | |
33567 | LIBS="-ldl $LIBS" | |
33568 | cat >conftest.$ac_ext <<_ACEOF | |
33569 | /* confdefs.h. */ | |
33570 | _ACEOF | |
33571 | cat confdefs.h >>conftest.$ac_ext | |
33572 | cat >>conftest.$ac_ext <<_ACEOF | |
33573 | /* end confdefs.h. */ | |
33574 | ||
33575 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33576 | #ifdef __cplusplus | |
33577 | extern "C" | |
33578 | #endif | |
33579 | /* We use char because int might match the return type of a gcc2 | |
33580 | builtin and then its argument prototype would still apply. */ | |
33581 | char dlopen (); | |
33582 | int | |
33583 | main () | |
33584 | { | |
33585 | dlopen (); | |
33586 | ; | |
33587 | return 0; | |
33588 | } | |
33589 | _ACEOF | |
33590 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33591 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33592 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33593 | ac_status=$? |
ac1cb8d3 VS |
33594 | grep -v '^ *+' conftest.er1 >conftest.err |
33595 | rm -f conftest.er1 | |
33596 | cat conftest.err >&5 | |
a848cd7e SC |
33597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33598 | (exit $ac_status); } && | |
c228d3a4 RN |
33599 | { ac_try='test -z "$ac_c_werror_flag" |
33600 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33602 | (eval $ac_try) 2>&5 | |
33603 | ac_status=$? | |
33604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33605 | (exit $ac_status); }; } && | |
33606 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33608 | (eval $ac_try) 2>&5 | |
33609 | ac_status=$? | |
33610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33611 | (exit $ac_status); }; }; then | |
33612 | ac_cv_lib_dl_dlopen=yes | |
33613 | else | |
33614 | echo "$as_me: failed program was:" >&5 | |
33615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33616 | ||
33617 | ac_cv_lib_dl_dlopen=no | |
33618 | fi | |
ac1cb8d3 VS |
33619 | rm -f conftest.err conftest.$ac_objext \ |
33620 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33621 | LIBS=$ac_check_lib_save_LIBS |
33622 | fi | |
33623 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
33624 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
33625 | if test $ac_cv_lib_dl_dlopen = yes; then | |
33626 | ||
33627 | cat >>confdefs.h <<\_ACEOF | |
33628 | #define HAVE_DLOPEN 1 | |
33629 | _ACEOF | |
33630 | ||
33631 | HAVE_DL_FUNCS=1 | |
33632 | DL_LINK=" -ldl$DL_LINK" | |
33633 | ||
33634 | else | |
33635 | ||
33636 | ||
33637 | for ac_func in shl_load | |
33638 | do | |
33639 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33640 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33641 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33642 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33644 | else | |
33645 | cat >conftest.$ac_ext <<_ACEOF | |
33646 | /* confdefs.h. */ | |
33647 | _ACEOF | |
33648 | cat confdefs.h >>conftest.$ac_ext | |
33649 | cat >>conftest.$ac_ext <<_ACEOF | |
33650 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33651 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33652 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33653 | #define $ac_func innocuous_$ac_func | |
33654 | ||
a848cd7e SC |
33655 | /* System header to define __stub macros and hopefully few prototypes, |
33656 | which can conflict with char $ac_func (); below. | |
33657 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33658 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33659 | |
a848cd7e SC |
33660 | #ifdef __STDC__ |
33661 | # include <limits.h> | |
33662 | #else | |
33663 | # include <assert.h> | |
33664 | #endif | |
ac1cb8d3 VS |
33665 | |
33666 | #undef $ac_func | |
33667 | ||
a848cd7e SC |
33668 | /* Override any gcc2 internal prototype to avoid an error. */ |
33669 | #ifdef __cplusplus | |
33670 | extern "C" | |
33671 | { | |
33672 | #endif | |
33673 | /* We use char because int might match the return type of a gcc2 | |
33674 | builtin and then its argument prototype would still apply. */ | |
33675 | char $ac_func (); | |
33676 | /* The GNU C library defines this for functions which it implements | |
33677 | to always fail with ENOSYS. Some functions are actually named | |
33678 | something starting with __ and the normal name is an alias. */ | |
33679 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33680 | choke me | |
33681 | #else | |
33682 | char (*f) () = $ac_func; | |
33683 | #endif | |
33684 | #ifdef __cplusplus | |
33685 | } | |
33686 | #endif | |
33687 | ||
33688 | int | |
33689 | main () | |
33690 | { | |
33691 | return f != $ac_func; | |
33692 | ; | |
33693 | return 0; | |
33694 | } | |
33695 | _ACEOF | |
33696 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33697 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33698 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33699 | ac_status=$? |
ac1cb8d3 VS |
33700 | grep -v '^ *+' conftest.er1 >conftest.err |
33701 | rm -f conftest.er1 | |
33702 | cat conftest.err >&5 | |
a848cd7e SC |
33703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33704 | (exit $ac_status); } && | |
c228d3a4 RN |
33705 | { ac_try='test -z "$ac_c_werror_flag" |
33706 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33708 | (eval $ac_try) 2>&5 | |
33709 | ac_status=$? | |
33710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33711 | (exit $ac_status); }; } && | |
33712 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33714 | (eval $ac_try) 2>&5 | |
33715 | ac_status=$? | |
33716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33717 | (exit $ac_status); }; }; then | |
33718 | eval "$as_ac_var=yes" | |
33719 | else | |
33720 | echo "$as_me: failed program was:" >&5 | |
33721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33722 | ||
33723 | eval "$as_ac_var=no" | |
33724 | fi | |
ac1cb8d3 VS |
33725 | rm -f conftest.err conftest.$ac_objext \ |
33726 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33727 | fi |
33728 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33729 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33730 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33731 | cat >>confdefs.h <<_ACEOF | |
33732 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33733 | _ACEOF | |
33734 | ||
33735 | cat >>confdefs.h <<\_ACEOF | |
33736 | #define HAVE_SHL_LOAD 1 | |
33737 | _ACEOF | |
33738 | ||
33739 | HAVE_SHL_FUNCS=1 | |
33740 | ||
33741 | else | |
33742 | ||
33743 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
33744 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
33745 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
33746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33747 | else | |
33748 | ac_check_lib_save_LIBS=$LIBS | |
33749 | LIBS="-lshl_load $LIBS" | |
33750 | cat >conftest.$ac_ext <<_ACEOF | |
33751 | /* confdefs.h. */ | |
33752 | _ACEOF | |
33753 | cat confdefs.h >>conftest.$ac_ext | |
33754 | cat >>conftest.$ac_ext <<_ACEOF | |
33755 | /* end confdefs.h. */ | |
33756 | ||
33757 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33758 | #ifdef __cplusplus | |
33759 | extern "C" | |
33760 | #endif | |
33761 | /* We use char because int might match the return type of a gcc2 | |
33762 | builtin and then its argument prototype would still apply. */ | |
33763 | char dld (); | |
33764 | int | |
33765 | main () | |
33766 | { | |
33767 | dld (); | |
33768 | ; | |
33769 | return 0; | |
33770 | } | |
33771 | _ACEOF | |
33772 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33773 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33774 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33775 | ac_status=$? |
ac1cb8d3 VS |
33776 | grep -v '^ *+' conftest.er1 >conftest.err |
33777 | rm -f conftest.er1 | |
33778 | cat conftest.err >&5 | |
a848cd7e SC |
33779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33780 | (exit $ac_status); } && | |
c228d3a4 RN |
33781 | { ac_try='test -z "$ac_c_werror_flag" |
33782 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33784 | (eval $ac_try) 2>&5 | |
33785 | ac_status=$? | |
33786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33787 | (exit $ac_status); }; } && | |
33788 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33790 | (eval $ac_try) 2>&5 | |
33791 | ac_status=$? | |
33792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33793 | (exit $ac_status); }; }; then | |
33794 | ac_cv_lib_shl_load_dld=yes | |
33795 | else | |
33796 | echo "$as_me: failed program was:" >&5 | |
33797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33798 | ||
33799 | ac_cv_lib_shl_load_dld=no | |
33800 | fi | |
ac1cb8d3 VS |
33801 | rm -f conftest.err conftest.$ac_objext \ |
33802 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33803 | LIBS=$ac_check_lib_save_LIBS |
33804 | fi | |
33805 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
33806 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
33807 | if test $ac_cv_lib_shl_load_dld = yes; then | |
33808 | ||
33809 | HAVE_SHL_FUNCS=1 | |
33810 | DL_LINK=" -ldld$DL_LINK" | |
33811 | ||
33812 | fi | |
33813 | ||
33814 | ||
33815 | fi | |
33816 | done | |
33817 | ||
33818 | ||
33819 | fi | |
33820 | ||
33821 | ||
33822 | fi | |
33823 | done | |
33824 | ||
33825 | ||
33826 | if test "$HAVE_DL_FUNCS" = 1; then | |
33827 | ||
33828 | for ac_func in dlerror | |
33829 | do | |
33830 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33831 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33832 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33833 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33835 | else | |
33836 | cat >conftest.$ac_ext <<_ACEOF | |
33837 | /* confdefs.h. */ | |
33838 | _ACEOF | |
33839 | cat confdefs.h >>conftest.$ac_ext | |
33840 | cat >>conftest.$ac_ext <<_ACEOF | |
33841 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33842 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33843 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33844 | #define $ac_func innocuous_$ac_func | |
33845 | ||
a848cd7e SC |
33846 | /* System header to define __stub macros and hopefully few prototypes, |
33847 | which can conflict with char $ac_func (); below. | |
33848 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33849 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33850 | |
a848cd7e SC |
33851 | #ifdef __STDC__ |
33852 | # include <limits.h> | |
33853 | #else | |
33854 | # include <assert.h> | |
33855 | #endif | |
ac1cb8d3 VS |
33856 | |
33857 | #undef $ac_func | |
33858 | ||
a848cd7e SC |
33859 | /* Override any gcc2 internal prototype to avoid an error. */ |
33860 | #ifdef __cplusplus | |
33861 | extern "C" | |
33862 | { | |
33863 | #endif | |
33864 | /* We use char because int might match the return type of a gcc2 | |
33865 | builtin and then its argument prototype would still apply. */ | |
33866 | char $ac_func (); | |
33867 | /* The GNU C library defines this for functions which it implements | |
33868 | to always fail with ENOSYS. Some functions are actually named | |
33869 | something starting with __ and the normal name is an alias. */ | |
33870 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33871 | choke me | |
33872 | #else | |
33873 | char (*f) () = $ac_func; | |
33874 | #endif | |
33875 | #ifdef __cplusplus | |
33876 | } | |
33877 | #endif | |
33878 | ||
33879 | int | |
33880 | main () | |
33881 | { | |
33882 | return f != $ac_func; | |
33883 | ; | |
33884 | return 0; | |
33885 | } | |
33886 | _ACEOF | |
33887 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33888 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33889 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33890 | ac_status=$? |
ac1cb8d3 VS |
33891 | grep -v '^ *+' conftest.er1 >conftest.err |
33892 | rm -f conftest.er1 | |
33893 | cat conftest.err >&5 | |
a848cd7e SC |
33894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33895 | (exit $ac_status); } && | |
c228d3a4 RN |
33896 | { ac_try='test -z "$ac_c_werror_flag" |
33897 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33899 | (eval $ac_try) 2>&5 | |
33900 | ac_status=$? | |
33901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33902 | (exit $ac_status); }; } && | |
33903 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33905 | (eval $ac_try) 2>&5 | |
33906 | ac_status=$? | |
33907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33908 | (exit $ac_status); }; }; then | |
33909 | eval "$as_ac_var=yes" | |
33910 | else | |
33911 | echo "$as_me: failed program was:" >&5 | |
33912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33913 | ||
33914 | eval "$as_ac_var=no" | |
33915 | fi | |
ac1cb8d3 VS |
33916 | rm -f conftest.err conftest.$ac_objext \ |
33917 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33918 | fi |
33919 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33920 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33921 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33922 | cat >>confdefs.h <<_ACEOF | |
33923 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33924 | _ACEOF | |
33925 | cat >>confdefs.h <<\_ACEOF | |
33926 | #define HAVE_DLERROR 1 | |
33927 | _ACEOF | |
33928 | ||
33929 | else | |
33930 | ||
33931 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
33932 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
33933 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
33934 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33935 | else | |
33936 | ac_check_lib_save_LIBS=$LIBS | |
33937 | LIBS="-ldl $LIBS" | |
33938 | cat >conftest.$ac_ext <<_ACEOF | |
33939 | /* confdefs.h. */ | |
33940 | _ACEOF | |
33941 | cat confdefs.h >>conftest.$ac_ext | |
33942 | cat >>conftest.$ac_ext <<_ACEOF | |
33943 | /* end confdefs.h. */ | |
33944 | ||
33945 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33946 | #ifdef __cplusplus | |
33947 | extern "C" | |
33948 | #endif | |
33949 | /* We use char because int might match the return type of a gcc2 | |
33950 | builtin and then its argument prototype would still apply. */ | |
33951 | char dlerror (); | |
33952 | int | |
33953 | main () | |
33954 | { | |
33955 | dlerror (); | |
33956 | ; | |
33957 | return 0; | |
33958 | } | |
33959 | _ACEOF | |
33960 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33961 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33962 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33963 | ac_status=$? |
ac1cb8d3 VS |
33964 | grep -v '^ *+' conftest.er1 >conftest.err |
33965 | rm -f conftest.er1 | |
33966 | cat conftest.err >&5 | |
a848cd7e SC |
33967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33968 | (exit $ac_status); } && | |
c228d3a4 RN |
33969 | { ac_try='test -z "$ac_c_werror_flag" |
33970 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33972 | (eval $ac_try) 2>&5 | |
33973 | ac_status=$? | |
33974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33975 | (exit $ac_status); }; } && | |
33976 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33978 | (eval $ac_try) 2>&5 | |
33979 | ac_status=$? | |
33980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33981 | (exit $ac_status); }; }; then | |
33982 | ac_cv_lib_dl_dlerror=yes | |
33983 | else | |
33984 | echo "$as_me: failed program was:" >&5 | |
33985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33986 | ||
33987 | ac_cv_lib_dl_dlerror=no | |
33988 | fi | |
ac1cb8d3 VS |
33989 | rm -f conftest.err conftest.$ac_objext \ |
33990 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33991 | LIBS=$ac_check_lib_save_LIBS |
33992 | fi | |
33993 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
33994 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
33995 | if test $ac_cv_lib_dl_dlerror = yes; then | |
33996 | cat >>confdefs.h <<\_ACEOF | |
33997 | #define HAVE_DLERROR 1 | |
33998 | _ACEOF | |
33999 | ||
34000 | fi | |
34001 | ||
34002 | ||
34003 | ||
34004 | fi | |
34005 | done | |
34006 | ||
34007 | fi | |
34008 | fi | |
34009 | ||
34010 | if test "$HAVE_DL_FUNCS" = 0; then | |
34011 | if test "$HAVE_SHL_FUNCS" = 0; then | |
34012 | if test "$USE_UNIX" = 1; then | |
34013 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 | |
34014 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
34015 | wxUSE_DYNAMIC_LOADER=no | |
34016 | wxUSE_DYNLIB_CLASS=no | |
34017 | else | |
34018 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
34019 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
34020 | fi | |
34021 | fi | |
34022 | fi | |
34023 | fi | |
34024 | fi | |
34025 | ||
34026 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
34027 | cat >>confdefs.h <<\_ACEOF | |
34028 | #define wxUSE_DYNAMIC_LOADER 1 | |
34029 | _ACEOF | |
34030 | ||
34031 | fi | |
34032 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
34033 | cat >>confdefs.h <<\_ACEOF | |
34034 | #define wxUSE_DYNLIB_CLASS 1 | |
34035 | _ACEOF | |
34036 | ||
34037 | fi | |
34038 | ||
34039 | ||
34040 | ||
34041 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
34042 | if test "$wxUSE_SHARED" = "no" ; then | |
34043 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
34044 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
34045 | wxUSE_PLUGINS=no | |
34046 | fi | |
34047 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
34048 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
34049 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
34050 | wxUSE_PLUGINS=no | |
34051 | fi | |
34052 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
34053 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
34054 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
34055 | wxUSE_PLUGINS=no | |
34056 | fi | |
34057 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
34058 | cat >>confdefs.h <<\_ACEOF | |
34059 | #define wxUSE_PLUGINS 1 | |
34060 | _ACEOF | |
34061 | ||
34062 | fi | |
34063 | fi | |
34064 | ||
34065 | ||
34066 | if test "$wxUSE_STL" = "yes"; then | |
34067 | cat >>confdefs.h <<\_ACEOF | |
34068 | #define wxUSE_STL 1 | |
34069 | _ACEOF | |
34070 | ||
34071 | fi | |
34072 | ||
34073 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
34074 | cat >>confdefs.h <<\_ACEOF | |
34075 | #define wxUSE_APPLE_IEEE 1 | |
34076 | _ACEOF | |
34077 | ||
34078 | fi | |
34079 | ||
34080 | if test "$wxUSE_TIMER" = "yes"; then | |
34081 | cat >>confdefs.h <<\_ACEOF | |
34082 | #define wxUSE_TIMER 1 | |
34083 | _ACEOF | |
34084 | ||
34085 | fi | |
34086 | ||
34087 | WITH_PLUGIN_SDL=0 | |
34088 | if test "$wxUSE_SOUND" = "yes"; then | |
34089 | if test "$USE_UNIX" = "1" ; then | |
34090 | ||
34091 | for ac_header in sys/soundcard.h | |
34092 | do | |
34093 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
34094 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34095 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34096 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34097 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34099 | fi | |
34100 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34101 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34102 | else | |
34103 | # Is the header compilable? | |
34104 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
34105 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
34106 | cat >conftest.$ac_ext <<_ACEOF | |
34107 | /* confdefs.h. */ | |
34108 | _ACEOF | |
34109 | cat confdefs.h >>conftest.$ac_ext | |
34110 | cat >>conftest.$ac_ext <<_ACEOF | |
34111 | /* end confdefs.h. */ | |
34112 | $ac_includes_default | |
34113 | #include <$ac_header> | |
34114 | _ACEOF | |
34115 | rm -f conftest.$ac_objext | |
34116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34117 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34118 | ac_status=$? |
ac1cb8d3 VS |
34119 | grep -v '^ *+' conftest.er1 >conftest.err |
34120 | rm -f conftest.er1 | |
34121 | cat conftest.err >&5 | |
a848cd7e SC |
34122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34123 | (exit $ac_status); } && | |
c228d3a4 RN |
34124 | { ac_try='test -z "$ac_c_werror_flag" |
34125 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34127 | (eval $ac_try) 2>&5 | |
34128 | ac_status=$? | |
34129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34130 | (exit $ac_status); }; } && | |
34131 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34133 | (eval $ac_try) 2>&5 | |
34134 | ac_status=$? | |
34135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34136 | (exit $ac_status); }; }; then | |
34137 | ac_header_compiler=yes | |
34138 | else | |
34139 | echo "$as_me: failed program was:" >&5 | |
34140 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34141 | ||
34142 | ac_header_compiler=no | |
34143 | fi | |
ac1cb8d3 | 34144 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34145 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
34146 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
34147 | ||
34148 | # Is the header present? | |
34149 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
34150 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
34151 | cat >conftest.$ac_ext <<_ACEOF | |
34152 | /* confdefs.h. */ | |
34153 | _ACEOF | |
34154 | cat confdefs.h >>conftest.$ac_ext | |
34155 | cat >>conftest.$ac_ext <<_ACEOF | |
34156 | /* end confdefs.h. */ | |
34157 | #include <$ac_header> | |
34158 | _ACEOF | |
34159 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
34160 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
34161 | ac_status=$? | |
34162 | grep -v '^ *+' conftest.er1 >conftest.err | |
34163 | rm -f conftest.er1 | |
34164 | cat conftest.err >&5 | |
34165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34166 | (exit $ac_status); } >/dev/null; then | |
34167 | if test -s conftest.err; then | |
34168 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 34169 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
34170 | else |
34171 | ac_cpp_err= | |
34172 | fi | |
34173 | else | |
34174 | ac_cpp_err=yes | |
34175 | fi | |
34176 | if test -z "$ac_cpp_err"; then | |
34177 | ac_header_preproc=yes | |
34178 | else | |
34179 | echo "$as_me: failed program was:" >&5 | |
34180 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34181 | ||
34182 | ac_header_preproc=no | |
34183 | fi | |
34184 | rm -f conftest.err conftest.$ac_ext | |
34185 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
34186 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
34187 | ||
34188 | # So? What about this header? | |
ac1cb8d3 VS |
34189 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
34190 | yes:no: ) | |
a848cd7e SC |
34191 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
34192 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
34193 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
34194 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
34195 | ac_header_preproc=yes | |
a848cd7e | 34196 | ;; |
ac1cb8d3 | 34197 | no:yes:* ) |
a848cd7e SC |
34198 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
34199 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
34200 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
34201 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
34202 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
34203 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
34204 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
34205 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
34206 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
34207 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
34208 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
34209 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
34210 | ( |
34211 | cat <<\_ASBOX | |
ac1cb8d3 VS |
34212 | ## ----------------------------------------- ## |
34213 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
34214 | ## ----------------------------------------- ## | |
a848cd7e SC |
34215 | _ASBOX |
34216 | ) | | |
34217 | sed "s/^/$as_me: WARNING: /" >&2 | |
34218 | ;; | |
34219 | esac | |
34220 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34221 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34222 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34224 | else | |
ac1cb8d3 | 34225 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
34226 | fi |
34227 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34228 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34229 | ||
34230 | fi | |
34231 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
34232 | cat >>confdefs.h <<_ACEOF | |
34233 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
34234 | _ACEOF | |
34235 | ||
34236 | fi | |
34237 | ||
34238 | done | |
34239 | ||
34240 | ||
34241 | if test "$wxUSE_LIBSDL" != "no"; then | |
34242 | ||
34243 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
34244 | if test "${with_sdl_prefix+set}" = set; then | |
34245 | withval="$with_sdl_prefix" | |
34246 | sdl_prefix="$withval" | |
34247 | else | |
34248 | sdl_prefix="" | |
34249 | fi; | |
34250 | ||
34251 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
34252 | if test "${with_sdl_exec_prefix+set}" = set; then | |
34253 | withval="$with_sdl_exec_prefix" | |
34254 | sdl_exec_prefix="$withval" | |
34255 | else | |
34256 | sdl_exec_prefix="" | |
34257 | fi; | |
34258 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
34259 | if test "${enable_sdltest+set}" = set; then | |
34260 | enableval="$enable_sdltest" | |
34261 | ||
34262 | else | |
34263 | enable_sdltest=yes | |
34264 | fi; | |
34265 | ||
34266 | if test x$sdl_exec_prefix != x ; then | |
34267 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
34268 | if test x${SDL_CONFIG+set} != xset ; then | |
34269 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
34270 | fi | |
34271 | fi | |
34272 | if test x$sdl_prefix != x ; then | |
34273 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
34274 | if test x${SDL_CONFIG+set} != xset ; then | |
34275 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
34276 | fi | |
34277 | fi | |
34278 | ||
34279 | ||
34280 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
34281 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
34282 | set dummy sdl-config; ac_word=$2 | |
34283 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
34284 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34285 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
34286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34287 | else | |
34288 | case $SDL_CONFIG in | |
34289 | [\\/]* | ?:[\\/]*) | |
34290 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
34291 | ;; | |
34292 | *) | |
34293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34294 | for as_dir in $PATH | |
34295 | do | |
34296 | IFS=$as_save_IFS | |
34297 | test -z "$as_dir" && as_dir=. | |
34298 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34299 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34300 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
34301 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34302 | break 2 | |
34303 | fi | |
34304 | done | |
34305 | done | |
34306 | ||
34307 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
34308 | ;; | |
34309 | esac | |
34310 | fi | |
34311 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
34312 | ||
34313 | if test -n "$SDL_CONFIG"; then | |
34314 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
34315 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
34316 | else | |
34317 | echo "$as_me:$LINENO: result: no" >&5 | |
34318 | echo "${ECHO_T}no" >&6 | |
34319 | fi | |
34320 | ||
34321 | min_sdl_version=1.2.0 | |
34322 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
34323 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
34324 | no_sdl="" | |
34325 | if test "$SDL_CONFIG" = "no" ; then | |
34326 | no_sdl=yes | |
34327 | else | |
34328 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
34329 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
34330 | ||
34331 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
34332 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
34333 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
34334 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
34335 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
34336 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
34337 | if test "x$enable_sdltest" = "xyes" ; then | |
34338 | ac_save_CFLAGS="$CFLAGS" | |
34339 | ac_save_LIBS="$LIBS" | |
34340 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
34341 | LIBS="$LIBS $SDL_LIBS" | |
34342 | rm -f conf.sdltest | |
34343 | if test "$cross_compiling" = yes; then | |
34344 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
34345 | else | |
34346 | cat >conftest.$ac_ext <<_ACEOF | |
34347 | /* confdefs.h. */ | |
34348 | _ACEOF | |
34349 | cat confdefs.h >>conftest.$ac_ext | |
34350 | cat >>conftest.$ac_ext <<_ACEOF | |
34351 | /* end confdefs.h. */ | |
34352 | ||
34353 | #include <stdio.h> | |
34354 | #include <stdlib.h> | |
34355 | #include <string.h> | |
34356 | #include "SDL.h" | |
34357 | ||
34358 | char* | |
34359 | my_strdup (char *str) | |
34360 | { | |
34361 | char *new_str; | |
34362 | ||
34363 | if (str) | |
34364 | { | |
34365 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
34366 | strcpy (new_str, str); | |
34367 | } | |
34368 | else | |
34369 | new_str = NULL; | |
34370 | ||
34371 | return new_str; | |
34372 | } | |
34373 | ||
34374 | int main (int argc, char *argv[]) | |
34375 | { | |
34376 | int major, minor, micro; | |
34377 | char *tmp_version; | |
34378 | ||
34379 | /* This hangs on some systems (?) | |
34380 | system ("touch conf.sdltest"); | |
34381 | */ | |
34382 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
34383 | ||
34384 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
34385 | tmp_version = my_strdup("$min_sdl_version"); | |
34386 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
34387 | printf("%s, bad version string\n", "$min_sdl_version"); | |
34388 | exit(1); | |
34389 | } | |
34390 | ||
34391 | if (($sdl_major_version > major) || | |
34392 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
34393 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
34394 | { | |
34395 | return 0; | |
34396 | } | |
34397 | else | |
34398 | { | |
34399 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
34400 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
34401 | printf("*** best to upgrade to the required version.\n"); | |
34402 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
34403 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
34404 | printf("*** config.cache before re-running configure\n"); | |
34405 | return 1; | |
34406 | } | |
34407 | } | |
34408 | ||
34409 | ||
34410 | _ACEOF | |
34411 | rm -f conftest$ac_exeext | |
34412 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34413 | (eval $ac_link) 2>&5 | |
34414 | ac_status=$? | |
34415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34416 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
34417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34418 | (eval $ac_try) 2>&5 | |
34419 | ac_status=$? | |
34420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34421 | (exit $ac_status); }; }; then | |
34422 | : | |
34423 | else | |
34424 | echo "$as_me: program exited with status $ac_status" >&5 | |
34425 | echo "$as_me: failed program was:" >&5 | |
34426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34427 | ||
34428 | ( exit $ac_status ) | |
34429 | no_sdl=yes | |
34430 | fi | |
ac1cb8d3 | 34431 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34432 | fi |
34433 | CFLAGS="$ac_save_CFLAGS" | |
34434 | LIBS="$ac_save_LIBS" | |
34435 | fi | |
34436 | fi | |
34437 | if test "x$no_sdl" = x ; then | |
34438 | echo "$as_me:$LINENO: result: yes" >&5 | |
34439 | echo "${ECHO_T}yes" >&6 | |
34440 | ||
34441 | EXTRALIBS_SDL="$SDL_LIBS" | |
34442 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
34443 | cat >>confdefs.h <<\_ACEOF | |
34444 | #define wxUSE_LIBSDL 1 | |
34445 | _ACEOF | |
34446 | ||
34447 | ||
34448 | else | |
34449 | echo "$as_me:$LINENO: result: no" >&5 | |
34450 | echo "${ECHO_T}no" >&6 | |
34451 | if test "$SDL_CONFIG" = "no" ; then | |
34452 | echo "*** The sdl-config script installed by SDL could not be found" | |
34453 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
34454 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
34455 | echo "*** full path to sdl-config." | |
34456 | else | |
34457 | if test -f conf.sdltest ; then | |
34458 | : | |
34459 | else | |
34460 | echo "*** Could not run SDL test program, checking why..." | |
34461 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
34462 | LIBS="$LIBS $SDL_LIBS" | |
34463 | cat >conftest.$ac_ext <<_ACEOF | |
34464 | /* confdefs.h. */ | |
34465 | _ACEOF | |
34466 | cat confdefs.h >>conftest.$ac_ext | |
34467 | cat >>conftest.$ac_ext <<_ACEOF | |
34468 | /* end confdefs.h. */ | |
34469 | ||
34470 | #include <stdio.h> | |
34471 | #include "SDL.h" | |
34472 | ||
34473 | int main(int argc, char *argv[]) | |
34474 | { return 0; } | |
34475 | #undef main | |
34476 | #define main K_and_R_C_main | |
34477 | ||
34478 | int | |
34479 | main () | |
34480 | { | |
34481 | return 0; | |
34482 | ; | |
34483 | return 0; | |
34484 | } | |
34485 | _ACEOF | |
34486 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34487 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34488 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34489 | ac_status=$? |
ac1cb8d3 VS |
34490 | grep -v '^ *+' conftest.er1 >conftest.err |
34491 | rm -f conftest.er1 | |
34492 | cat conftest.err >&5 | |
a848cd7e SC |
34493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34494 | (exit $ac_status); } && | |
c228d3a4 RN |
34495 | { ac_try='test -z "$ac_c_werror_flag" |
34496 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34498 | (eval $ac_try) 2>&5 | |
34499 | ac_status=$? | |
34500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34501 | (exit $ac_status); }; } && | |
34502 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34504 | (eval $ac_try) 2>&5 | |
34505 | ac_status=$? | |
34506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34507 | (exit $ac_status); }; }; then | |
34508 | echo "*** The test program compiled, but did not run. This usually means" | |
34509 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
34510 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
34511 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
34512 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
34513 | echo "*** is required on your system" | |
34514 | echo "***" | |
34515 | echo "*** If you have an old version installed, it is best to remove it, although" | |
34516 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
34517 | else | |
34518 | echo "$as_me: failed program was:" >&5 | |
34519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34520 | ||
34521 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
34522 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
34523 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
34524 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
34525 | fi | |
ac1cb8d3 VS |
34526 | rm -f conftest.err conftest.$ac_objext \ |
34527 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34528 | CFLAGS="$ac_save_CFLAGS" |
34529 | LIBS="$ac_save_LIBS" | |
34530 | fi | |
34531 | fi | |
34532 | SDL_CFLAGS="" | |
34533 | SDL_LIBS="" | |
34534 | wxUSE_LIBSDL="no" | |
34535 | fi | |
34536 | ||
34537 | ||
34538 | rm -f conf.sdltest | |
34539 | ||
34540 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
34541 | WITH_PLUGIN_SDL=1 | |
34542 | fi | |
34543 | fi | |
34544 | fi | |
34545 | ||
34546 | cat >>confdefs.h <<\_ACEOF | |
34547 | #define wxUSE_SOUND 1 | |
34548 | _ACEOF | |
34549 | ||
34550 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
34551 | fi | |
34552 | ||
34553 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then | |
34554 | cat >>confdefs.h <<\_ACEOF | |
34555 | #define wxUSE_CMDLINE_PARSER 1 | |
34556 | _ACEOF | |
34557 | ||
34558 | fi | |
34559 | ||
34560 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
34561 | cat >>confdefs.h <<\_ACEOF | |
34562 | #define wxUSE_STOPWATCH 1 | |
34563 | _ACEOF | |
34564 | ||
34565 | fi | |
34566 | ||
34567 | if test "$wxUSE_DATETIME" = "yes"; then | |
34568 | cat >>confdefs.h <<\_ACEOF | |
34569 | #define wxUSE_DATETIME 1 | |
34570 | _ACEOF | |
34571 | ||
34572 | fi | |
34573 | ||
34574 | if test "$wxUSE_FILE" = "yes"; then | |
34575 | cat >>confdefs.h <<\_ACEOF | |
34576 | #define wxUSE_FILE 1 | |
34577 | _ACEOF | |
34578 | ||
34579 | fi | |
34580 | ||
34581 | if test "$wxUSE_FFILE" = "yes"; then | |
34582 | cat >>confdefs.h <<\_ACEOF | |
34583 | #define wxUSE_FFILE 1 | |
34584 | _ACEOF | |
34585 | ||
34586 | fi | |
34587 | ||
34588 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
34589 | cat >>confdefs.h <<\_ACEOF | |
34590 | #define wxUSE_FILESYSTEM 1 | |
34591 | _ACEOF | |
34592 | ||
34593 | fi | |
34594 | ||
34595 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
34596 | cat >>confdefs.h <<\_ACEOF | |
34597 | #define wxUSE_FS_ZIP 1 | |
34598 | _ACEOF | |
34599 | ||
34600 | fi | |
34601 | ||
34602 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
34603 | cat >>confdefs.h <<\_ACEOF | |
34604 | #define wxUSE_ZIPSTREAM 1 | |
34605 | _ACEOF | |
34606 | ||
34607 | fi | |
34608 | ||
a848cd7e SC |
34609 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
34610 | cat >>confdefs.h <<\_ACEOF | |
34611 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
34612 | _ACEOF | |
34613 | ||
34614 | fi | |
34615 | ||
34616 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
34617 | cat >>confdefs.h <<\_ACEOF | |
34618 | #define wxUSE_SNGLINST_CHECKER 1 | |
34619 | _ACEOF | |
34620 | ||
34621 | fi | |
34622 | ||
34623 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
34624 | cat >>confdefs.h <<\_ACEOF | |
34625 | #define wxUSE_BUSYINFO 1 | |
34626 | _ACEOF | |
34627 | ||
34628 | fi | |
34629 | ||
34630 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
34631 | cat >>confdefs.h <<\_ACEOF | |
34632 | #define wxUSE_STD_IOSTREAM 1 | |
34633 | _ACEOF | |
34634 | ||
34635 | fi | |
34636 | ||
34637 | if test "$wxUSE_TEXTBUFFER" = "yes"; then | |
34638 | cat >>confdefs.h <<\_ACEOF | |
34639 | #define wxUSE_TEXTBUFFER 1 | |
34640 | _ACEOF | |
34641 | ||
34642 | fi | |
34643 | ||
34644 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
34645 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
34646 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
34647 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
34648 | else | |
34649 | cat >>confdefs.h <<\_ACEOF | |
34650 | #define wxUSE_TEXTFILE 1 | |
34651 | _ACEOF | |
34652 | ||
34653 | fi | |
34654 | fi | |
34655 | ||
34656 | if test "$wxUSE_CONFIG" = "yes" ; then | |
34657 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
34658 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
34659 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
34660 | else | |
34661 | cat >>confdefs.h <<\_ACEOF | |
34662 | #define wxUSE_CONFIG 1 | |
34663 | _ACEOF | |
34664 | ||
34665 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
34666 | fi | |
34667 | fi | |
34668 | ||
34669 | if test "$wxUSE_INTL" = "yes" ; then | |
34670 | if test "$wxUSE_FILE" != "yes"; then | |
34671 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
34672 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
34673 | else | |
34674 | cat >>confdefs.h <<\_ACEOF | |
34675 | #define wxUSE_INTL 1 | |
34676 | _ACEOF | |
34677 | ||
34678 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
34679 | GUIDIST="$GUIDIST INTL_DIST" | |
34680 | fi | |
34681 | fi | |
34682 | ||
34683 | if test "$wxUSE_LOG" = "yes"; then | |
34684 | cat >>confdefs.h <<\_ACEOF | |
34685 | #define wxUSE_LOG 1 | |
34686 | _ACEOF | |
34687 | ||
34688 | ||
34689 | if test "$wxUSE_LOGGUI" = "yes"; then | |
34690 | cat >>confdefs.h <<\_ACEOF | |
34691 | #define wxUSE_LOGGUI 1 | |
34692 | _ACEOF | |
34693 | ||
34694 | fi | |
34695 | ||
34696 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
34697 | cat >>confdefs.h <<\_ACEOF | |
34698 | #define wxUSE_LOGWINDOW 1 | |
34699 | _ACEOF | |
34700 | ||
34701 | fi | |
34702 | ||
34703 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
34704 | cat >>confdefs.h <<\_ACEOF | |
34705 | #define wxUSE_LOG_DIALOG 1 | |
34706 | _ACEOF | |
34707 | ||
34708 | fi | |
34709 | fi | |
34710 | ||
34711 | if test "$wxUSE_LONGLONG" = "yes"; then | |
34712 | cat >>confdefs.h <<\_ACEOF | |
34713 | #define wxUSE_LONGLONG 1 | |
34714 | _ACEOF | |
34715 | ||
34716 | fi | |
34717 | ||
34718 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
34719 | cat >>confdefs.h <<\_ACEOF | |
34720 | #define wxUSE_GEOMETRY 1 | |
34721 | _ACEOF | |
34722 | ||
34723 | fi | |
34724 | ||
34725 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then | |
34726 | cat >>confdefs.h <<\_ACEOF | |
34727 | #define wxUSE_DIALUP_MANAGER 1 | |
34728 | _ACEOF | |
34729 | ||
34730 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
34731 | fi | |
34732 | ||
34733 | if test "$wxUSE_STREAMS" = "yes" ; then | |
34734 | cat >>confdefs.h <<\_ACEOF | |
34735 | #define wxUSE_STREAMS 1 | |
34736 | _ACEOF | |
34737 | ||
34738 | fi | |
34739 | ||
34740 | ||
34741 | if test "$wxUSE_DATETIME" = "yes"; then | |
34742 | ||
34743 | for ac_func in strptime | |
34744 | do | |
34745 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34746 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34747 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34748 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34750 | else | |
34751 | cat >conftest.$ac_ext <<_ACEOF | |
34752 | /* confdefs.h. */ | |
34753 | _ACEOF | |
34754 | cat confdefs.h >>conftest.$ac_ext | |
34755 | cat >>conftest.$ac_ext <<_ACEOF | |
34756 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34757 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34758 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34759 | #define $ac_func innocuous_$ac_func | |
34760 | ||
a848cd7e SC |
34761 | /* System header to define __stub macros and hopefully few prototypes, |
34762 | which can conflict with char $ac_func (); below. | |
34763 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34764 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34765 | |
a848cd7e SC |
34766 | #ifdef __STDC__ |
34767 | # include <limits.h> | |
34768 | #else | |
34769 | # include <assert.h> | |
34770 | #endif | |
ac1cb8d3 VS |
34771 | |
34772 | #undef $ac_func | |
34773 | ||
a848cd7e SC |
34774 | /* Override any gcc2 internal prototype to avoid an error. */ |
34775 | #ifdef __cplusplus | |
34776 | extern "C" | |
34777 | { | |
34778 | #endif | |
34779 | /* We use char because int might match the return type of a gcc2 | |
34780 | builtin and then its argument prototype would still apply. */ | |
34781 | char $ac_func (); | |
34782 | /* The GNU C library defines this for functions which it implements | |
34783 | to always fail with ENOSYS. Some functions are actually named | |
34784 | something starting with __ and the normal name is an alias. */ | |
34785 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34786 | choke me | |
34787 | #else | |
34788 | char (*f) () = $ac_func; | |
34789 | #endif | |
34790 | #ifdef __cplusplus | |
34791 | } | |
34792 | #endif | |
34793 | ||
34794 | int | |
34795 | main () | |
34796 | { | |
34797 | return f != $ac_func; | |
34798 | ; | |
34799 | return 0; | |
34800 | } | |
34801 | _ACEOF | |
34802 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34803 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34804 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34805 | ac_status=$? |
ac1cb8d3 VS |
34806 | grep -v '^ *+' conftest.er1 >conftest.err |
34807 | rm -f conftest.er1 | |
34808 | cat conftest.err >&5 | |
a848cd7e SC |
34809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34810 | (exit $ac_status); } && | |
c228d3a4 RN |
34811 | { ac_try='test -z "$ac_c_werror_flag" |
34812 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34814 | (eval $ac_try) 2>&5 | |
34815 | ac_status=$? | |
34816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34817 | (exit $ac_status); }; } && | |
34818 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34820 | (eval $ac_try) 2>&5 | |
34821 | ac_status=$? | |
34822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34823 | (exit $ac_status); }; }; then | |
34824 | eval "$as_ac_var=yes" | |
34825 | else | |
34826 | echo "$as_me: failed program was:" >&5 | |
34827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34828 | ||
34829 | eval "$as_ac_var=no" | |
34830 | fi | |
ac1cb8d3 VS |
34831 | rm -f conftest.err conftest.$ac_objext \ |
34832 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34833 | fi |
34834 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34835 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34836 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34837 | cat >>confdefs.h <<_ACEOF | |
34838 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34839 | _ACEOF | |
34840 | ||
34841 | fi | |
34842 | done | |
34843 | ||
34844 | ||
34845 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
34846 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
34847 | if test "${wx_cv_var_timezone+set}" = set; then | |
34848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34849 | else | |
34850 | ||
34851 | cat >conftest.$ac_ext <<_ACEOF | |
34852 | /* confdefs.h. */ | |
34853 | _ACEOF | |
34854 | cat confdefs.h >>conftest.$ac_ext | |
34855 | cat >>conftest.$ac_ext <<_ACEOF | |
34856 | /* end confdefs.h. */ | |
34857 | ||
34858 | #include <time.h> | |
34859 | ||
34860 | int | |
34861 | main () | |
34862 | { | |
34863 | ||
34864 | int tz; | |
34865 | tz = timezone; | |
34866 | ||
34867 | ; | |
34868 | return 0; | |
34869 | } | |
34870 | _ACEOF | |
34871 | rm -f conftest.$ac_objext | |
34872 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34873 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34874 | ac_status=$? |
ac1cb8d3 VS |
34875 | grep -v '^ *+' conftest.er1 >conftest.err |
34876 | rm -f conftest.er1 | |
34877 | cat conftest.err >&5 | |
a848cd7e SC |
34878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34879 | (exit $ac_status); } && | |
c228d3a4 RN |
34880 | { ac_try='test -z "$ac_c_werror_flag" |
34881 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34883 | (eval $ac_try) 2>&5 | |
34884 | ac_status=$? | |
34885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34886 | (exit $ac_status); }; } && | |
34887 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34889 | (eval $ac_try) 2>&5 | |
34890 | ac_status=$? | |
34891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34892 | (exit $ac_status); }; }; then | |
34893 | ||
34894 | wx_cv_var_timezone=timezone | |
34895 | ||
34896 | else | |
34897 | echo "$as_me: failed program was:" >&5 | |
34898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34899 | ||
34900 | ||
34901 | cat >conftest.$ac_ext <<_ACEOF | |
34902 | /* confdefs.h. */ | |
34903 | _ACEOF | |
34904 | cat confdefs.h >>conftest.$ac_ext | |
34905 | cat >>conftest.$ac_ext <<_ACEOF | |
34906 | /* end confdefs.h. */ | |
34907 | ||
34908 | #include <time.h> | |
34909 | ||
34910 | int | |
34911 | main () | |
34912 | { | |
34913 | ||
34914 | int tz; | |
34915 | tz = _timezone; | |
34916 | ||
34917 | ; | |
34918 | return 0; | |
34919 | } | |
34920 | _ACEOF | |
34921 | rm -f conftest.$ac_objext | |
34922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34923 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34924 | ac_status=$? |
ac1cb8d3 VS |
34925 | grep -v '^ *+' conftest.er1 >conftest.err |
34926 | rm -f conftest.er1 | |
34927 | cat conftest.err >&5 | |
a848cd7e SC |
34928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34929 | (exit $ac_status); } && | |
c228d3a4 RN |
34930 | { ac_try='test -z "$ac_c_werror_flag" |
34931 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34933 | (eval $ac_try) 2>&5 | |
34934 | ac_status=$? | |
34935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34936 | (exit $ac_status); }; } && | |
34937 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34939 | (eval $ac_try) 2>&5 | |
34940 | ac_status=$? | |
34941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34942 | (exit $ac_status); }; }; then | |
34943 | ||
34944 | wx_cv_var_timezone=_timezone | |
34945 | ||
34946 | else | |
34947 | echo "$as_me: failed program was:" >&5 | |
34948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34949 | ||
34950 | ||
34951 | cat >conftest.$ac_ext <<_ACEOF | |
34952 | /* confdefs.h. */ | |
34953 | _ACEOF | |
34954 | cat confdefs.h >>conftest.$ac_ext | |
34955 | cat >>conftest.$ac_ext <<_ACEOF | |
34956 | /* end confdefs.h. */ | |
34957 | ||
34958 | #include <time.h> | |
34959 | ||
34960 | int | |
34961 | main () | |
34962 | { | |
34963 | ||
34964 | int tz; | |
34965 | tz = __timezone; | |
34966 | ||
34967 | ; | |
34968 | return 0; | |
34969 | } | |
34970 | _ACEOF | |
34971 | rm -f conftest.$ac_objext | |
34972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34973 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34974 | ac_status=$? |
ac1cb8d3 VS |
34975 | grep -v '^ *+' conftest.er1 >conftest.err |
34976 | rm -f conftest.er1 | |
34977 | cat conftest.err >&5 | |
a848cd7e SC |
34978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34979 | (exit $ac_status); } && | |
c228d3a4 RN |
34980 | { ac_try='test -z "$ac_c_werror_flag" |
34981 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34983 | (eval $ac_try) 2>&5 | |
34984 | ac_status=$? | |
34985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34986 | (exit $ac_status); }; } && | |
34987 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34989 | (eval $ac_try) 2>&5 | |
34990 | ac_status=$? | |
34991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34992 | (exit $ac_status); }; }; then | |
34993 | ||
34994 | wx_cv_var_timezone=__timezone | |
34995 | ||
34996 | else | |
34997 | echo "$as_me: failed program was:" >&5 | |
34998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34999 | ||
35000 | ||
35001 | if test "$USE_DOS" = 0 ; then | |
35002 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
35003 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
35004 | fi | |
35005 | ||
35006 | ||
35007 | fi | |
ac1cb8d3 | 35008 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35009 | |
35010 | ||
35011 | fi | |
ac1cb8d3 | 35012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35013 | |
35014 | ||
35015 | fi | |
ac1cb8d3 | 35016 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35017 | |
35018 | ||
35019 | fi | |
35020 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
35021 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
35022 | ||
35023 | if test "x$wx_cv_var_timezone" != x ; then | |
35024 | cat >>confdefs.h <<_ACEOF | |
35025 | #define WX_TIMEZONE $wx_cv_var_timezone | |
35026 | _ACEOF | |
35027 | ||
35028 | fi | |
35029 | ||
35030 | ||
35031 | for ac_func in localtime | |
35032 | do | |
35033 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35034 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35035 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35036 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35038 | else | |
35039 | cat >conftest.$ac_ext <<_ACEOF | |
35040 | /* confdefs.h. */ | |
35041 | _ACEOF | |
35042 | cat confdefs.h >>conftest.$ac_ext | |
35043 | cat >>conftest.$ac_ext <<_ACEOF | |
35044 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35045 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35046 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35047 | #define $ac_func innocuous_$ac_func | |
35048 | ||
a848cd7e SC |
35049 | /* System header to define __stub macros and hopefully few prototypes, |
35050 | which can conflict with char $ac_func (); below. | |
35051 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35052 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35053 | |
a848cd7e SC |
35054 | #ifdef __STDC__ |
35055 | # include <limits.h> | |
35056 | #else | |
35057 | # include <assert.h> | |
35058 | #endif | |
ac1cb8d3 VS |
35059 | |
35060 | #undef $ac_func | |
35061 | ||
a848cd7e SC |
35062 | /* Override any gcc2 internal prototype to avoid an error. */ |
35063 | #ifdef __cplusplus | |
35064 | extern "C" | |
35065 | { | |
35066 | #endif | |
35067 | /* We use char because int might match the return type of a gcc2 | |
35068 | builtin and then its argument prototype would still apply. */ | |
35069 | char $ac_func (); | |
35070 | /* The GNU C library defines this for functions which it implements | |
35071 | to always fail with ENOSYS. Some functions are actually named | |
35072 | something starting with __ and the normal name is an alias. */ | |
35073 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35074 | choke me | |
35075 | #else | |
35076 | char (*f) () = $ac_func; | |
35077 | #endif | |
35078 | #ifdef __cplusplus | |
35079 | } | |
35080 | #endif | |
35081 | ||
35082 | int | |
35083 | main () | |
35084 | { | |
35085 | return f != $ac_func; | |
35086 | ; | |
35087 | return 0; | |
35088 | } | |
35089 | _ACEOF | |
35090 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35091 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35092 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35093 | ac_status=$? |
ac1cb8d3 VS |
35094 | grep -v '^ *+' conftest.er1 >conftest.err |
35095 | rm -f conftest.er1 | |
35096 | cat conftest.err >&5 | |
a848cd7e SC |
35097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35098 | (exit $ac_status); } && | |
c228d3a4 RN |
35099 | { ac_try='test -z "$ac_c_werror_flag" |
35100 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35102 | (eval $ac_try) 2>&5 | |
35103 | ac_status=$? | |
35104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35105 | (exit $ac_status); }; } && | |
35106 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35108 | (eval $ac_try) 2>&5 | |
35109 | ac_status=$? | |
35110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35111 | (exit $ac_status); }; }; then | |
35112 | eval "$as_ac_var=yes" | |
35113 | else | |
35114 | echo "$as_me: failed program was:" >&5 | |
35115 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35116 | ||
35117 | eval "$as_ac_var=no" | |
35118 | fi | |
ac1cb8d3 VS |
35119 | rm -f conftest.err conftest.$ac_objext \ |
35120 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35121 | fi |
35122 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35123 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35124 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35125 | cat >>confdefs.h <<_ACEOF | |
35126 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35127 | _ACEOF | |
35128 | ||
35129 | fi | |
35130 | done | |
35131 | ||
35132 | ||
35133 | if test "$ac_cv_func_localtime" = "yes"; then | |
35134 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
35135 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
35136 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
35137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35138 | else | |
35139 | ||
35140 | cat >conftest.$ac_ext <<_ACEOF | |
35141 | /* confdefs.h. */ | |
35142 | _ACEOF | |
35143 | cat confdefs.h >>conftest.$ac_ext | |
35144 | cat >>conftest.$ac_ext <<_ACEOF | |
35145 | /* end confdefs.h. */ | |
35146 | ||
35147 | #include <time.h> | |
35148 | ||
35149 | int | |
35150 | main () | |
35151 | { | |
35152 | ||
35153 | struct tm tm; | |
35154 | tm.tm_gmtoff++; | |
35155 | ||
35156 | ; | |
35157 | return 0; | |
35158 | } | |
35159 | _ACEOF | |
35160 | rm -f conftest.$ac_objext | |
35161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35162 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35163 | ac_status=$? |
ac1cb8d3 VS |
35164 | grep -v '^ *+' conftest.er1 >conftest.err |
35165 | rm -f conftest.er1 | |
35166 | cat conftest.err >&5 | |
a848cd7e SC |
35167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35168 | (exit $ac_status); } && | |
c228d3a4 RN |
35169 | { ac_try='test -z "$ac_c_werror_flag" |
35170 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35172 | (eval $ac_try) 2>&5 | |
35173 | ac_status=$? | |
35174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35175 | (exit $ac_status); }; } && | |
35176 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35178 | (eval $ac_try) 2>&5 | |
35179 | ac_status=$? | |
35180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35181 | (exit $ac_status); }; }; then | |
35182 | ||
35183 | wx_cv_struct_tm_has_gmtoff=yes | |
35184 | ||
35185 | else | |
35186 | echo "$as_me: failed program was:" >&5 | |
35187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35188 | ||
35189 | wx_cv_struct_tm_has_gmtoff=no | |
35190 | ||
35191 | fi | |
ac1cb8d3 | 35192 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35193 | |
35194 | fi | |
35195 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
35196 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
35197 | fi | |
35198 | ||
35199 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
35200 | cat >>confdefs.h <<\_ACEOF | |
35201 | #define WX_GMTOFF_IN_TM 1 | |
35202 | _ACEOF | |
35203 | ||
35204 | fi | |
35205 | ||
35206 | ||
35207 | ||
35208 | for ac_func in gettimeofday ftime | |
35209 | do | |
35210 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35211 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35212 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35213 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35215 | else | |
35216 | cat >conftest.$ac_ext <<_ACEOF | |
35217 | /* confdefs.h. */ | |
35218 | _ACEOF | |
35219 | cat confdefs.h >>conftest.$ac_ext | |
35220 | cat >>conftest.$ac_ext <<_ACEOF | |
35221 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35222 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35223 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35224 | #define $ac_func innocuous_$ac_func | |
35225 | ||
a848cd7e SC |
35226 | /* System header to define __stub macros and hopefully few prototypes, |
35227 | which can conflict with char $ac_func (); below. | |
35228 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35229 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35230 | |
a848cd7e SC |
35231 | #ifdef __STDC__ |
35232 | # include <limits.h> | |
35233 | #else | |
35234 | # include <assert.h> | |
35235 | #endif | |
ac1cb8d3 VS |
35236 | |
35237 | #undef $ac_func | |
35238 | ||
a848cd7e SC |
35239 | /* Override any gcc2 internal prototype to avoid an error. */ |
35240 | #ifdef __cplusplus | |
35241 | extern "C" | |
35242 | { | |
35243 | #endif | |
35244 | /* We use char because int might match the return type of a gcc2 | |
35245 | builtin and then its argument prototype would still apply. */ | |
35246 | char $ac_func (); | |
35247 | /* The GNU C library defines this for functions which it implements | |
35248 | to always fail with ENOSYS. Some functions are actually named | |
35249 | something starting with __ and the normal name is an alias. */ | |
35250 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35251 | choke me | |
35252 | #else | |
35253 | char (*f) () = $ac_func; | |
35254 | #endif | |
35255 | #ifdef __cplusplus | |
35256 | } | |
35257 | #endif | |
35258 | ||
35259 | int | |
35260 | main () | |
35261 | { | |
35262 | return f != $ac_func; | |
35263 | ; | |
35264 | return 0; | |
35265 | } | |
35266 | _ACEOF | |
35267 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35269 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35270 | ac_status=$? |
ac1cb8d3 VS |
35271 | grep -v '^ *+' conftest.er1 >conftest.err |
35272 | rm -f conftest.er1 | |
35273 | cat conftest.err >&5 | |
a848cd7e SC |
35274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35275 | (exit $ac_status); } && | |
c228d3a4 RN |
35276 | { ac_try='test -z "$ac_c_werror_flag" |
35277 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35279 | (eval $ac_try) 2>&5 | |
35280 | ac_status=$? | |
35281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35282 | (exit $ac_status); }; } && | |
35283 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35285 | (eval $ac_try) 2>&5 | |
35286 | ac_status=$? | |
35287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35288 | (exit $ac_status); }; }; then | |
35289 | eval "$as_ac_var=yes" | |
35290 | else | |
35291 | echo "$as_me: failed program was:" >&5 | |
35292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35293 | ||
35294 | eval "$as_ac_var=no" | |
35295 | fi | |
ac1cb8d3 VS |
35296 | rm -f conftest.err conftest.$ac_objext \ |
35297 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35298 | fi |
35299 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35300 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35301 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35302 | cat >>confdefs.h <<_ACEOF | |
35303 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35304 | _ACEOF | |
35305 | break | |
35306 | fi | |
35307 | done | |
35308 | ||
35309 | ||
35310 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
35311 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
35312 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
35313 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
35314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35315 | else | |
35316 | ||
35317 | ||
35318 | ||
35319 | ac_ext=cc | |
35320 | ac_cpp='$CXXCPP $CPPFLAGS' | |
35321 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35322 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35323 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35324 | ||
35325 | ||
35326 | cat >conftest.$ac_ext <<_ACEOF | |
35327 | /* confdefs.h. */ | |
35328 | _ACEOF | |
35329 | cat confdefs.h >>conftest.$ac_ext | |
35330 | cat >>conftest.$ac_ext <<_ACEOF | |
35331 | /* end confdefs.h. */ | |
35332 | ||
35333 | #include <sys/time.h> | |
35334 | #include <unistd.h> | |
35335 | ||
35336 | int | |
35337 | main () | |
35338 | { | |
35339 | ||
35340 | struct timeval tv; | |
35341 | gettimeofday(&tv, NULL); | |
35342 | ||
35343 | ; | |
35344 | return 0; | |
35345 | } | |
35346 | _ACEOF | |
35347 | rm -f conftest.$ac_objext | |
35348 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35349 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35350 | ac_status=$? |
ac1cb8d3 VS |
35351 | grep -v '^ *+' conftest.er1 >conftest.err |
35352 | rm -f conftest.er1 | |
35353 | cat conftest.err >&5 | |
a848cd7e SC |
35354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35355 | (exit $ac_status); } && | |
c228d3a4 RN |
35356 | { ac_try='test -z "$ac_cxx_werror_flag" |
35357 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35359 | (eval $ac_try) 2>&5 | |
35360 | ac_status=$? | |
35361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35362 | (exit $ac_status); }; } && | |
35363 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35365 | (eval $ac_try) 2>&5 | |
35366 | ac_status=$? | |
35367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35368 | (exit $ac_status); }; }; then | |
35369 | wx_cv_func_gettimeofday_has_2_args=yes | |
35370 | else | |
35371 | echo "$as_me: failed program was:" >&5 | |
35372 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35373 | ||
35374 | cat >conftest.$ac_ext <<_ACEOF | |
35375 | /* confdefs.h. */ | |
35376 | _ACEOF | |
35377 | cat confdefs.h >>conftest.$ac_ext | |
35378 | cat >>conftest.$ac_ext <<_ACEOF | |
35379 | /* end confdefs.h. */ | |
35380 | ||
35381 | #include <sys/time.h> | |
35382 | #include <unistd.h> | |
35383 | ||
35384 | int | |
35385 | main () | |
35386 | { | |
35387 | ||
35388 | struct timeval tv; | |
35389 | gettimeofday(&tv); | |
35390 | ||
35391 | ; | |
35392 | return 0; | |
35393 | } | |
35394 | _ACEOF | |
35395 | rm -f conftest.$ac_objext | |
35396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35397 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35398 | ac_status=$? |
ac1cb8d3 VS |
35399 | grep -v '^ *+' conftest.er1 >conftest.err |
35400 | rm -f conftest.er1 | |
35401 | cat conftest.err >&5 | |
a848cd7e SC |
35402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35403 | (exit $ac_status); } && | |
c228d3a4 RN |
35404 | { ac_try='test -z "$ac_cxx_werror_flag" |
35405 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35407 | (eval $ac_try) 2>&5 | |
35408 | ac_status=$? | |
35409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35410 | (exit $ac_status); }; } && | |
35411 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35413 | (eval $ac_try) 2>&5 | |
35414 | ac_status=$? | |
35415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35416 | (exit $ac_status); }; }; then | |
35417 | wx_cv_func_gettimeofday_has_2_args=no | |
35418 | else | |
35419 | echo "$as_me: failed program was:" >&5 | |
35420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35421 | ||
35422 | ||
35423 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
35424 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
35425 | wx_cv_func_gettimeofday_has_2_args=unknown | |
35426 | ||
35427 | ||
35428 | fi | |
ac1cb8d3 | 35429 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35430 | |
35431 | fi | |
ac1cb8d3 | 35432 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35433 | ac_ext=c |
35434 | ac_cpp='$CPP $CPPFLAGS' | |
35435 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35436 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35437 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35438 | ||
35439 | ||
35440 | fi | |
35441 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
35442 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
35443 | ||
35444 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
35445 | cat >>confdefs.h <<\_ACEOF | |
35446 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
35447 | _ACEOF | |
35448 | ||
35449 | fi | |
35450 | fi | |
35451 | ||
35452 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
35453 | fi | |
35454 | ||
35455 | ||
35456 | if test "$wxUSE_SOCKETS" = "yes"; then | |
35457 | if test "$wxUSE_MGL" = "1"; then | |
35458 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
35459 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
35460 | wxUSE_SOCKETS="no" | |
35461 | fi | |
35462 | fi | |
35463 | ||
35464 | if test "$wxUSE_SOCKETS" = "yes"; then | |
35465 | if test "$TOOLKIT" != "MSW"; then | |
35466 | echo "$as_me:$LINENO: checking for socket" >&5 | |
35467 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
35468 | if test "${ac_cv_func_socket+set}" = set; then | |
35469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35470 | else | |
35471 | cat >conftest.$ac_ext <<_ACEOF | |
35472 | /* confdefs.h. */ | |
35473 | _ACEOF | |
35474 | cat confdefs.h >>conftest.$ac_ext | |
35475 | cat >>conftest.$ac_ext <<_ACEOF | |
35476 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35477 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
35478 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35479 | #define socket innocuous_socket | |
35480 | ||
a848cd7e SC |
35481 | /* System header to define __stub macros and hopefully few prototypes, |
35482 | which can conflict with char socket (); below. | |
35483 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35484 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35485 | |
a848cd7e SC |
35486 | #ifdef __STDC__ |
35487 | # include <limits.h> | |
35488 | #else | |
35489 | # include <assert.h> | |
35490 | #endif | |
ac1cb8d3 VS |
35491 | |
35492 | #undef socket | |
35493 | ||
a848cd7e SC |
35494 | /* Override any gcc2 internal prototype to avoid an error. */ |
35495 | #ifdef __cplusplus | |
35496 | extern "C" | |
35497 | { | |
35498 | #endif | |
35499 | /* We use char because int might match the return type of a gcc2 | |
35500 | builtin and then its argument prototype would still apply. */ | |
35501 | char socket (); | |
35502 | /* The GNU C library defines this for functions which it implements | |
35503 | to always fail with ENOSYS. Some functions are actually named | |
35504 | something starting with __ and the normal name is an alias. */ | |
35505 | #if defined (__stub_socket) || defined (__stub___socket) | |
35506 | choke me | |
35507 | #else | |
35508 | char (*f) () = socket; | |
35509 | #endif | |
35510 | #ifdef __cplusplus | |
35511 | } | |
35512 | #endif | |
35513 | ||
35514 | int | |
35515 | main () | |
35516 | { | |
35517 | return f != socket; | |
35518 | ; | |
35519 | return 0; | |
35520 | } | |
35521 | _ACEOF | |
35522 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35523 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35524 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35525 | ac_status=$? |
ac1cb8d3 VS |
35526 | grep -v '^ *+' conftest.er1 >conftest.err |
35527 | rm -f conftest.er1 | |
35528 | cat conftest.err >&5 | |
a848cd7e SC |
35529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35530 | (exit $ac_status); } && | |
c228d3a4 RN |
35531 | { ac_try='test -z "$ac_c_werror_flag" |
35532 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35534 | (eval $ac_try) 2>&5 | |
35535 | ac_status=$? | |
35536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35537 | (exit $ac_status); }; } && | |
35538 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35540 | (eval $ac_try) 2>&5 | |
35541 | ac_status=$? | |
35542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35543 | (exit $ac_status); }; }; then | |
35544 | ac_cv_func_socket=yes | |
35545 | else | |
35546 | echo "$as_me: failed program was:" >&5 | |
35547 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35548 | ||
35549 | ac_cv_func_socket=no | |
35550 | fi | |
ac1cb8d3 VS |
35551 | rm -f conftest.err conftest.$ac_objext \ |
35552 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35553 | fi |
35554 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
35555 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
35556 | if test $ac_cv_func_socket = yes; then | |
35557 | : | |
35558 | else | |
35559 | ||
35560 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
35561 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
35562 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
35563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35564 | else | |
35565 | ac_check_lib_save_LIBS=$LIBS | |
35566 | LIBS="-lsocket $LIBS" | |
35567 | cat >conftest.$ac_ext <<_ACEOF | |
35568 | /* confdefs.h. */ | |
35569 | _ACEOF | |
35570 | cat confdefs.h >>conftest.$ac_ext | |
35571 | cat >>conftest.$ac_ext <<_ACEOF | |
35572 | /* end confdefs.h. */ | |
35573 | ||
35574 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35575 | #ifdef __cplusplus | |
35576 | extern "C" | |
35577 | #endif | |
35578 | /* We use char because int might match the return type of a gcc2 | |
35579 | builtin and then its argument prototype would still apply. */ | |
35580 | char socket (); | |
35581 | int | |
35582 | main () | |
35583 | { | |
35584 | socket (); | |
35585 | ; | |
35586 | return 0; | |
35587 | } | |
35588 | _ACEOF | |
35589 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35590 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35591 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35592 | ac_status=$? |
ac1cb8d3 VS |
35593 | grep -v '^ *+' conftest.er1 >conftest.err |
35594 | rm -f conftest.er1 | |
35595 | cat conftest.err >&5 | |
a848cd7e SC |
35596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35597 | (exit $ac_status); } && | |
c228d3a4 RN |
35598 | { ac_try='test -z "$ac_c_werror_flag" |
35599 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35601 | (eval $ac_try) 2>&5 | |
35602 | ac_status=$? | |
35603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35604 | (exit $ac_status); }; } && | |
35605 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35607 | (eval $ac_try) 2>&5 | |
35608 | ac_status=$? | |
35609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35610 | (exit $ac_status); }; }; then | |
35611 | ac_cv_lib_socket_socket=yes | |
35612 | else | |
35613 | echo "$as_me: failed program was:" >&5 | |
35614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35615 | ||
35616 | ac_cv_lib_socket_socket=no | |
35617 | fi | |
ac1cb8d3 VS |
35618 | rm -f conftest.err conftest.$ac_objext \ |
35619 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35620 | LIBS=$ac_check_lib_save_LIBS |
35621 | fi | |
35622 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
35623 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
35624 | if test $ac_cv_lib_socket_socket = yes; then | |
35625 | if test "$INET_LINK" != " -lsocket"; then | |
35626 | INET_LINK="$INET_LINK -lsocket" | |
35627 | fi | |
35628 | else | |
35629 | ||
35630 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
35631 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
35632 | wxUSE_SOCKETS=no | |
35633 | ||
35634 | ||
35635 | fi | |
35636 | ||
35637 | ||
35638 | ||
35639 | fi | |
35640 | ||
35641 | fi | |
35642 | fi | |
35643 | ||
35644 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
35645 | if test "$TOOLKIT" != "MSW"; then | |
4d4ff94c VZ |
35646 | ac_ext=cc |
35647 | ac_cpp='$CXXCPP $CPPFLAGS' | |
35648 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35649 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35650 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35651 | ||
35652 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
a848cd7e SC |
35653 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
35654 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
35655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35656 | else | |
35657 | ||
35658 | cat >conftest.$ac_ext <<_ACEOF | |
35659 | /* confdefs.h. */ | |
35660 | _ACEOF | |
35661 | cat confdefs.h >>conftest.$ac_ext | |
35662 | cat >>conftest.$ac_ext <<_ACEOF | |
35663 | /* end confdefs.h. */ | |
35664 | ||
35665 | #include <sys/types.h> | |
35666 | #include <sys/socket.h> | |
35667 | ||
35668 | int | |
35669 | main () | |
35670 | { | |
35671 | ||
35672 | socklen_t len; | |
35673 | getsockname(0, 0, &len); | |
35674 | ||
35675 | ; | |
35676 | return 0; | |
35677 | } | |
35678 | _ACEOF | |
35679 | rm -f conftest.$ac_objext | |
35680 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35681 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35682 | ac_status=$? |
ac1cb8d3 VS |
35683 | grep -v '^ *+' conftest.er1 >conftest.err |
35684 | rm -f conftest.er1 | |
35685 | cat conftest.err >&5 | |
a848cd7e SC |
35686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35687 | (exit $ac_status); } && | |
c228d3a4 RN |
35688 | { ac_try='test -z "$ac_cxx_werror_flag" |
35689 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35691 | (eval $ac_try) 2>&5 | |
35692 | ac_status=$? | |
35693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35694 | (exit $ac_status); }; } && | |
35695 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35697 | (eval $ac_try) 2>&5 | |
35698 | ac_status=$? | |
35699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35700 | (exit $ac_status); }; }; then | |
35701 | wx_cv_type_getsockname3=socklen_t | |
35702 | else | |
35703 | echo "$as_me: failed program was:" >&5 | |
35704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35705 | ||
35706 | ||
35707 | CFLAGS_OLD="$CFLAGS" | |
35708 | if test "$GCC" = yes ; then | |
35709 | CFLAGS="$CFLAGS -Werror" | |
35710 | fi | |
35711 | ||
35712 | cat >conftest.$ac_ext <<_ACEOF | |
35713 | /* confdefs.h. */ | |
35714 | _ACEOF | |
35715 | cat confdefs.h >>conftest.$ac_ext | |
35716 | cat >>conftest.$ac_ext <<_ACEOF | |
35717 | /* end confdefs.h. */ | |
35718 | ||
35719 | #include <sys/types.h> | |
35720 | #include <sys/socket.h> | |
35721 | ||
35722 | int | |
35723 | main () | |
35724 | { | |
35725 | ||
35726 | size_t len; | |
35727 | getsockname(0, 0, &len); | |
35728 | ||
35729 | ; | |
35730 | return 0; | |
35731 | } | |
35732 | _ACEOF | |
35733 | rm -f conftest.$ac_objext | |
35734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35735 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35736 | ac_status=$? |
ac1cb8d3 VS |
35737 | grep -v '^ *+' conftest.er1 >conftest.err |
35738 | rm -f conftest.er1 | |
35739 | cat conftest.err >&5 | |
a848cd7e SC |
35740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35741 | (exit $ac_status); } && | |
c228d3a4 RN |
35742 | { ac_try='test -z "$ac_cxx_werror_flag" |
35743 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35745 | (eval $ac_try) 2>&5 | |
35746 | ac_status=$? | |
35747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35748 | (exit $ac_status); }; } && | |
35749 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35751 | (eval $ac_try) 2>&5 | |
35752 | ac_status=$? | |
35753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35754 | (exit $ac_status); }; }; then | |
35755 | wx_cv_type_getsockname3=size_t | |
35756 | else | |
35757 | echo "$as_me: failed program was:" >&5 | |
35758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35759 | ||
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 <sys/types.h> | |
35768 | #include <sys/socket.h> | |
35769 | ||
35770 | int | |
35771 | main () | |
35772 | { | |
35773 | ||
35774 | int len; | |
35775 | getsockname(0, 0, &len); | |
35776 | ||
35777 | ; | |
35778 | return 0; | |
35779 | } | |
35780 | _ACEOF | |
35781 | rm -f conftest.$ac_objext | |
35782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35783 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35784 | ac_status=$? |
ac1cb8d3 VS |
35785 | grep -v '^ *+' conftest.er1 >conftest.err |
35786 | rm -f conftest.er1 | |
35787 | cat conftest.err >&5 | |
a848cd7e SC |
35788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35789 | (exit $ac_status); } && | |
c228d3a4 RN |
35790 | { ac_try='test -z "$ac_cxx_werror_flag" |
35791 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35793 | (eval $ac_try) 2>&5 | |
35794 | ac_status=$? | |
35795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35796 | (exit $ac_status); }; } && | |
35797 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35799 | (eval $ac_try) 2>&5 | |
35800 | ac_status=$? | |
35801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35802 | (exit $ac_status); }; }; then | |
35803 | wx_cv_type_getsockname3=int | |
35804 | else | |
35805 | echo "$as_me: failed program was:" >&5 | |
35806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35807 | ||
35808 | wx_cv_type_getsockname3=unknown | |
35809 | ||
35810 | fi | |
ac1cb8d3 | 35811 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35812 | |
35813 | fi | |
ac1cb8d3 | 35814 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35815 | |
35816 | CFLAGS="$CFLAGS_OLD" | |
35817 | ||
35818 | ||
35819 | fi | |
ac1cb8d3 | 35820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35821 | |
35822 | fi | |
35823 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
35824 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
35825 | ||
35826 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
35827 | wxUSE_SOCKETS=no | |
35828 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
35829 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
35830 | else | |
35831 | cat >>confdefs.h <<_ACEOF | |
35832 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
35833 | _ACEOF | |
35834 | ||
35835 | fi | |
4d4ff94c VZ |
35836 | ac_ext=c |
35837 | ac_cpp='$CPP $CPPFLAGS' | |
35838 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35839 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35840 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35841 | ||
a848cd7e SC |
35842 | fi |
35843 | fi | |
35844 | ||
35845 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
35846 | cat >>confdefs.h <<\_ACEOF | |
35847 | #define wxUSE_SOCKETS 1 | |
35848 | _ACEOF | |
35849 | ||
35850 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
35851 | fi | |
35852 | ||
35853 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
35854 | if test "$wxUSE_SOCKETS" != "yes"; then | |
35855 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
35856 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
35857 | wxUSE_PROTOCOL=no | |
35858 | fi | |
35859 | fi | |
35860 | ||
35861 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
35862 | cat >>confdefs.h <<\_ACEOF | |
35863 | #define wxUSE_PROTOCOL 1 | |
35864 | _ACEOF | |
35865 | ||
35866 | ||
35867 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
35868 | cat >>confdefs.h <<\_ACEOF | |
35869 | #define wxUSE_PROTOCOL_HTTP 1 | |
35870 | _ACEOF | |
35871 | ||
35872 | fi | |
35873 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
35874 | cat >>confdefs.h <<\_ACEOF | |
35875 | #define wxUSE_PROTOCOL_FTP 1 | |
35876 | _ACEOF | |
35877 | ||
35878 | fi | |
35879 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
35880 | cat >>confdefs.h <<\_ACEOF | |
35881 | #define wxUSE_PROTOCOL_FILE 1 | |
35882 | _ACEOF | |
35883 | ||
35884 | fi | |
35885 | else | |
35886 | if test "$wxUSE_FS_INET" = "yes"; then | |
35887 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
35888 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
35889 | wxUSE_FS_INET="no" | |
35890 | fi | |
35891 | fi | |
35892 | ||
35893 | if test "$wxUSE_URL" = "yes"; then | |
35894 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
35895 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
35896 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
35897 | wxUSE_URL=no | |
35898 | fi | |
35899 | if test "$wxUSE_URL" = "yes"; then | |
35900 | cat >>confdefs.h <<\_ACEOF | |
35901 | #define wxUSE_URL 1 | |
35902 | _ACEOF | |
35903 | ||
35904 | fi | |
35905 | fi | |
35906 | ||
35907 | if test "$wxUSE_FS_INET" = "yes"; then | |
35908 | cat >>confdefs.h <<\_ACEOF | |
35909 | #define wxUSE_FS_INET 1 | |
35910 | _ACEOF | |
35911 | ||
35912 | fi | |
35913 | ||
35914 | ||
35915 | if test "$wxUSE_GUI" = "yes"; then | |
35916 | ||
35917 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
35918 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 | |
35919 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
35920 | wxUSE_JOYSTICK=no | |
35921 | fi | |
35922 | ||
35923 | if test "$TOOLKIT" != "MSW"; then | |
35924 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
35925 | ||
35926 | for ac_header in linux/joystick.h | |
35927 | do | |
35928 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
35929 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35930 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35931 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35932 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35934 | fi | |
35935 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35936 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35937 | else | |
35938 | # Is the header compilable? | |
35939 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
35940 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
35941 | cat >conftest.$ac_ext <<_ACEOF | |
35942 | /* confdefs.h. */ | |
35943 | _ACEOF | |
35944 | cat confdefs.h >>conftest.$ac_ext | |
35945 | cat >>conftest.$ac_ext <<_ACEOF | |
35946 | /* end confdefs.h. */ | |
35947 | $ac_includes_default | |
35948 | #include <$ac_header> | |
35949 | _ACEOF | |
35950 | rm -f conftest.$ac_objext | |
35951 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35952 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35953 | ac_status=$? |
ac1cb8d3 VS |
35954 | grep -v '^ *+' conftest.er1 >conftest.err |
35955 | rm -f conftest.er1 | |
35956 | cat conftest.err >&5 | |
a848cd7e SC |
35957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35958 | (exit $ac_status); } && | |
c228d3a4 RN |
35959 | { ac_try='test -z "$ac_c_werror_flag" |
35960 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35962 | (eval $ac_try) 2>&5 | |
35963 | ac_status=$? | |
35964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35965 | (exit $ac_status); }; } && | |
35966 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35968 | (eval $ac_try) 2>&5 | |
35969 | ac_status=$? | |
35970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35971 | (exit $ac_status); }; }; then | |
35972 | ac_header_compiler=yes | |
35973 | else | |
35974 | echo "$as_me: failed program was:" >&5 | |
35975 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35976 | ||
35977 | ac_header_compiler=no | |
35978 | fi | |
ac1cb8d3 | 35979 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35980 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
35981 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
35982 | ||
35983 | # Is the header present? | |
35984 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
35985 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
35986 | cat >conftest.$ac_ext <<_ACEOF | |
35987 | /* confdefs.h. */ | |
35988 | _ACEOF | |
35989 | cat confdefs.h >>conftest.$ac_ext | |
35990 | cat >>conftest.$ac_ext <<_ACEOF | |
35991 | /* end confdefs.h. */ | |
35992 | #include <$ac_header> | |
35993 | _ACEOF | |
35994 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
35995 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
35996 | ac_status=$? | |
35997 | grep -v '^ *+' conftest.er1 >conftest.err | |
35998 | rm -f conftest.er1 | |
35999 | cat conftest.err >&5 | |
36000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36001 | (exit $ac_status); } >/dev/null; then | |
36002 | if test -s conftest.err; then | |
36003 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 36004 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
36005 | else |
36006 | ac_cpp_err= | |
36007 | fi | |
36008 | else | |
36009 | ac_cpp_err=yes | |
36010 | fi | |
36011 | if test -z "$ac_cpp_err"; then | |
36012 | ac_header_preproc=yes | |
36013 | else | |
36014 | echo "$as_me: failed program was:" >&5 | |
36015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36016 | ||
36017 | ac_header_preproc=no | |
36018 | fi | |
36019 | rm -f conftest.err conftest.$ac_ext | |
36020 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36021 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36022 | ||
36023 | # So? What about this header? | |
ac1cb8d3 VS |
36024 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36025 | yes:no: ) | |
a848cd7e SC |
36026 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36027 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36028 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36029 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36030 | ac_header_preproc=yes | |
a848cd7e | 36031 | ;; |
ac1cb8d3 | 36032 | no:yes:* ) |
a848cd7e SC |
36033 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36034 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36035 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36036 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36037 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36038 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36039 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36040 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36041 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36042 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36043 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36044 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36045 | ( |
36046 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36047 | ## ----------------------------------------- ## |
36048 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36049 | ## ----------------------------------------- ## | |
a848cd7e SC |
36050 | _ASBOX |
36051 | ) | | |
36052 | sed "s/^/$as_me: WARNING: /" >&2 | |
36053 | ;; | |
36054 | esac | |
36055 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36056 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36057 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36059 | else | |
ac1cb8d3 | 36060 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36061 | fi |
36062 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36063 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36064 | ||
36065 | fi | |
36066 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36067 | cat >>confdefs.h <<_ACEOF | |
36068 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36069 | _ACEOF | |
36070 | ||
36071 | fi | |
36072 | ||
36073 | done | |
36074 | ||
36075 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
36076 | wxUSE_JOYSTICK=no | |
36077 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
36078 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
36079 | fi | |
36080 | fi | |
36081 | fi | |
36082 | ||
36083 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
36084 | cat >>confdefs.h <<\_ACEOF | |
36085 | #define wxUSE_JOYSTICK 1 | |
36086 | _ACEOF | |
36087 | ||
36088 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
36089 | fi | |
36090 | fi | |
36091 | ||
36092 | ||
36093 | ||
36094 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
36095 | cat >>confdefs.h <<\_ACEOF | |
36096 | #define wxUSE_FONTMAP 1 | |
36097 | _ACEOF | |
36098 | ||
36099 | fi | |
36100 | ||
36101 | if test "$wxUSE_UNICODE" = "yes" ; then | |
36102 | cat >>confdefs.h <<\_ACEOF | |
36103 | #define wxUSE_UNICODE 1 | |
36104 | _ACEOF | |
36105 | ||
36106 | ||
36107 | if test "$USE_WIN32" != 1; then | |
36108 | wxUSE_UNICODE_MSLU=no | |
36109 | fi | |
36110 | ||
36111 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
36112 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
36113 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
36114 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
36115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36116 | else | |
36117 | ac_check_lib_save_LIBS=$LIBS | |
36118 | LIBS="-lunicows $LIBS" | |
36119 | cat >conftest.$ac_ext <<_ACEOF | |
36120 | /* confdefs.h. */ | |
36121 | _ACEOF | |
36122 | cat confdefs.h >>conftest.$ac_ext | |
36123 | cat >>conftest.$ac_ext <<_ACEOF | |
36124 | /* end confdefs.h. */ | |
36125 | ||
36126 | ||
36127 | int | |
36128 | main () | |
36129 | { | |
36130 | main (); | |
36131 | ; | |
36132 | return 0; | |
36133 | } | |
36134 | _ACEOF | |
36135 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36136 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36137 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36138 | ac_status=$? |
ac1cb8d3 VS |
36139 | grep -v '^ *+' conftest.er1 >conftest.err |
36140 | rm -f conftest.er1 | |
36141 | cat conftest.err >&5 | |
a848cd7e SC |
36142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36143 | (exit $ac_status); } && | |
c228d3a4 RN |
36144 | { ac_try='test -z "$ac_c_werror_flag" |
36145 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36147 | (eval $ac_try) 2>&5 | |
36148 | ac_status=$? | |
36149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36150 | (exit $ac_status); }; } && | |
36151 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36153 | (eval $ac_try) 2>&5 | |
36154 | ac_status=$? | |
36155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36156 | (exit $ac_status); }; }; then | |
36157 | ac_cv_lib_unicows_main=yes | |
36158 | else | |
36159 | echo "$as_me: failed program was:" >&5 | |
36160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36161 | ||
36162 | ac_cv_lib_unicows_main=no | |
36163 | fi | |
ac1cb8d3 VS |
36164 | rm -f conftest.err conftest.$ac_objext \ |
36165 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36166 | LIBS=$ac_check_lib_save_LIBS |
36167 | fi | |
36168 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
36169 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
36170 | if test $ac_cv_lib_unicows_main = yes; then | |
36171 | ||
36172 | cat >>confdefs.h <<\_ACEOF | |
36173 | #define wxUSE_UNICODE_MSLU 1 | |
36174 | _ACEOF | |
36175 | ||
36176 | ||
36177 | else | |
36178 | ||
36179 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
36180 | Applications will only run on Windows NT/2000/XP!" >&5 | |
36181 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
36182 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
36183 | wxUSE_UNICODE_MSLU=no | |
36184 | ||
36185 | fi | |
36186 | ||
36187 | fi | |
36188 | fi | |
36189 | ||
36190 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
36191 | cat >>confdefs.h <<\_ACEOF | |
36192 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
36193 | _ACEOF | |
36194 | ||
36195 | fi | |
36196 | ||
36197 | ||
36198 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
36199 | cat >>confdefs.h <<\_ACEOF | |
36200 | #define wxUSE_POSTSCRIPT 1 | |
36201 | _ACEOF | |
36202 | ||
36203 | fi | |
36204 | ||
36205 | cat >>confdefs.h <<\_ACEOF | |
36206 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
36207 | _ACEOF | |
36208 | ||
36209 | ||
36210 | cat >>confdefs.h <<\_ACEOF | |
36211 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
36212 | _ACEOF | |
36213 | ||
36214 | ||
36215 | ||
36216 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
36217 | cat >>confdefs.h <<\_ACEOF | |
36218 | #define wxUSE_CONSTRAINTS 1 | |
36219 | _ACEOF | |
36220 | ||
36221 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
36222 | fi | |
36223 | ||
8a7b1113 VZ |
36224 | if test "$wxUSE_MDI" = "yes"; then |
36225 | cat >>confdefs.h <<\_ACEOF | |
36226 | #define wxUSE_MDI 1 | |
36227 | _ACEOF | |
36228 | ||
36229 | ||
36230 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
36231 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
36232 | #define wxUSE_MDI_ARCHITECTURE 1 |
36233 | _ACEOF | |
36234 | ||
8a7b1113 VZ |
36235 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
36236 | fi | |
a848cd7e SC |
36237 | fi |
36238 | ||
36239 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
36240 | cat >>confdefs.h <<\_ACEOF | |
36241 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
36242 | _ACEOF | |
36243 | ||
36244 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
36245 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
36246 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
36247 | fi | |
36248 | fi | |
36249 | ||
36250 | if test "$wxUSE_HELP" = "yes"; then | |
36251 | cat >>confdefs.h <<\_ACEOF | |
36252 | #define wxUSE_HELP 1 | |
36253 | _ACEOF | |
36254 | ||
36255 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
36256 | ||
36257 | if test "$wxUSE_MSW" = 1; then | |
36258 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
36259 | cat >>confdefs.h <<\_ACEOF | |
36260 | #define wxUSE_MS_HTML_HELP 1 | |
36261 | _ACEOF | |
36262 | ||
36263 | fi | |
36264 | fi | |
36265 | ||
36266 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
36267 | if test "$wxUSE_HTML" = "yes"; then | |
36268 | cat >>confdefs.h <<\_ACEOF | |
36269 | #define wxUSE_WXHTML_HELP 1 | |
36270 | _ACEOF | |
36271 | ||
36272 | else | |
36273 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
36274 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
36275 | wxUSE_WXHTML_HELP=no | |
36276 | fi | |
36277 | fi | |
36278 | fi | |
36279 | ||
36280 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
36281 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
36282 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
36283 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
36284 | else | |
36285 | cat >>confdefs.h <<\_ACEOF | |
36286 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
36287 | _ACEOF | |
36288 | ||
36289 | fi | |
36290 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
36291 | fi | |
36292 | ||
36293 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
36294 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
36295 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
36296 | { (exit 1); exit 1; }; } | |
36297 | fi | |
36298 | ||
36299 | ||
36300 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
36301 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
36302 | -o "$wxUSE_OLE" = "yes" \ | |
36303 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
36304 | ||
36305 | for ac_header in ole2.h | |
36306 | do | |
36307 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36308 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36309 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36310 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36311 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36313 | fi | |
36314 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36315 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36316 | else | |
36317 | # Is the header compilable? | |
36318 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36319 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36320 | cat >conftest.$ac_ext <<_ACEOF | |
36321 | /* confdefs.h. */ | |
36322 | _ACEOF | |
36323 | cat confdefs.h >>conftest.$ac_ext | |
36324 | cat >>conftest.$ac_ext <<_ACEOF | |
36325 | /* end confdefs.h. */ | |
36326 | $ac_includes_default | |
36327 | #include <$ac_header> | |
36328 | _ACEOF | |
36329 | rm -f conftest.$ac_objext | |
36330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36331 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36332 | ac_status=$? |
ac1cb8d3 VS |
36333 | grep -v '^ *+' conftest.er1 >conftest.err |
36334 | rm -f conftest.er1 | |
36335 | cat conftest.err >&5 | |
a848cd7e SC |
36336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36337 | (exit $ac_status); } && | |
c228d3a4 RN |
36338 | { ac_try='test -z "$ac_c_werror_flag" |
36339 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36341 | (eval $ac_try) 2>&5 | |
36342 | ac_status=$? | |
36343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36344 | (exit $ac_status); }; } && | |
36345 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36347 | (eval $ac_try) 2>&5 | |
36348 | ac_status=$? | |
36349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36350 | (exit $ac_status); }; }; then | |
36351 | ac_header_compiler=yes | |
36352 | else | |
36353 | echo "$as_me: failed program was:" >&5 | |
36354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36355 | ||
36356 | ac_header_compiler=no | |
36357 | fi | |
ac1cb8d3 | 36358 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36359 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36360 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36361 | ||
36362 | # Is the header present? | |
36363 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36364 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36365 | cat >conftest.$ac_ext <<_ACEOF | |
36366 | /* confdefs.h. */ | |
36367 | _ACEOF | |
36368 | cat confdefs.h >>conftest.$ac_ext | |
36369 | cat >>conftest.$ac_ext <<_ACEOF | |
36370 | /* end confdefs.h. */ | |
36371 | #include <$ac_header> | |
36372 | _ACEOF | |
36373 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36374 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36375 | ac_status=$? | |
36376 | grep -v '^ *+' conftest.er1 >conftest.err | |
36377 | rm -f conftest.er1 | |
36378 | cat conftest.err >&5 | |
36379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36380 | (exit $ac_status); } >/dev/null; then | |
36381 | if test -s conftest.err; then | |
36382 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 36383 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
36384 | else |
36385 | ac_cpp_err= | |
36386 | fi | |
36387 | else | |
36388 | ac_cpp_err=yes | |
36389 | fi | |
36390 | if test -z "$ac_cpp_err"; then | |
36391 | ac_header_preproc=yes | |
36392 | else | |
36393 | echo "$as_me: failed program was:" >&5 | |
36394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36395 | ||
36396 | ac_header_preproc=no | |
36397 | fi | |
36398 | rm -f conftest.err conftest.$ac_ext | |
36399 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36400 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36401 | ||
36402 | # So? What about this header? | |
ac1cb8d3 VS |
36403 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36404 | yes:no: ) | |
a848cd7e SC |
36405 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36406 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36407 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36408 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36409 | ac_header_preproc=yes | |
a848cd7e | 36410 | ;; |
ac1cb8d3 | 36411 | no:yes:* ) |
a848cd7e SC |
36412 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36413 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36414 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36415 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36416 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36417 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36418 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36419 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36420 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36421 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36422 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36423 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36424 | ( |
36425 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36426 | ## ----------------------------------------- ## |
36427 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36428 | ## ----------------------------------------- ## | |
a848cd7e SC |
36429 | _ASBOX |
36430 | ) | | |
36431 | sed "s/^/$as_me: WARNING: /" >&2 | |
36432 | ;; | |
36433 | esac | |
36434 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36435 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36436 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36438 | else | |
ac1cb8d3 | 36439 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36440 | fi |
36441 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36442 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36443 | ||
36444 | fi | |
36445 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36446 | cat >>confdefs.h <<_ACEOF | |
36447 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36448 | _ACEOF | |
36449 | ||
36450 | fi | |
36451 | ||
36452 | done | |
36453 | ||
36454 | ||
36455 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
36456 | if test "$GCC" = yes ; then | |
36457 | ||
36458 | ||
36459 | ac_ext=cc | |
36460 | ac_cpp='$CXXCPP $CPPFLAGS' | |
36461 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36462 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36463 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
36464 | ||
36465 | ||
36466 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
36467 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
36468 | cat >conftest.$ac_ext <<_ACEOF | |
36469 | /* confdefs.h. */ | |
36470 | _ACEOF | |
36471 | cat confdefs.h >>conftest.$ac_ext | |
36472 | cat >>conftest.$ac_ext <<_ACEOF | |
36473 | /* end confdefs.h. */ | |
36474 | #include <windows.h> | |
36475 | #include <ole2.h> | |
36476 | int | |
36477 | main () | |
36478 | { | |
36479 | ||
36480 | ; | |
36481 | return 0; | |
36482 | } | |
36483 | _ACEOF | |
36484 | rm -f conftest.$ac_objext | |
36485 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36486 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36487 | ac_status=$? |
ac1cb8d3 VS |
36488 | grep -v '^ *+' conftest.er1 >conftest.err |
36489 | rm -f conftest.er1 | |
36490 | cat conftest.err >&5 | |
a848cd7e SC |
36491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36492 | (exit $ac_status); } && | |
c228d3a4 RN |
36493 | { ac_try='test -z "$ac_cxx_werror_flag" |
36494 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36496 | (eval $ac_try) 2>&5 | |
36497 | ac_status=$? | |
36498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36499 | (exit $ac_status); }; } && | |
36500 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36502 | (eval $ac_try) 2>&5 | |
36503 | ac_status=$? | |
36504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36505 | (exit $ac_status); }; }; then | |
36506 | echo "$as_me:$LINENO: result: no" >&5 | |
36507 | echo "${ECHO_T}no" >&6 | |
36508 | else | |
36509 | echo "$as_me: failed program was:" >&5 | |
36510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36511 | ||
36512 | echo "$as_me:$LINENO: result: yes" >&5 | |
36513 | echo "${ECHO_T}yes" >&6 | |
36514 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
36515 | fi | |
ac1cb8d3 | 36516 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36517 | ac_ext=c |
36518 | ac_cpp='$CPP $CPPFLAGS' | |
36519 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36520 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36521 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
36522 | ||
a848cd7e SC |
36523 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
36524 | if test "$wxUSE_OLE" = "yes" ; then | |
36525 | cat >>confdefs.h <<\_ACEOF | |
36526 | #define wxUSE_OLE 1 | |
36527 | _ACEOF | |
36528 | ||
36529 | fi | |
36530 | fi | |
36531 | ||
36532 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
36533 | cat >>confdefs.h <<\_ACEOF | |
36534 | #define wxUSE_DATAOBJ 1 | |
36535 | _ACEOF | |
36536 | ||
36537 | fi | |
36538 | else | |
36539 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
36540 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
36541 | ||
36542 | wxUSE_CLIPBOARD=no | |
36543 | wxUSE_DRAG_AND_DROP=no | |
36544 | wxUSE_DATAOBJ=no | |
36545 | wxUSE_OLE=no | |
36546 | fi | |
36547 | ||
36548 | if test "$wxUSE_METAFILE" = "yes"; then | |
36549 | cat >>confdefs.h <<\_ACEOF | |
36550 | #define wxUSE_METAFILE 1 | |
36551 | _ACEOF | |
36552 | ||
36553 | ||
36554 | cat >>confdefs.h <<\_ACEOF | |
36555 | #define wxUSE_ENH_METAFILE 1 | |
36556 | _ACEOF | |
36557 | ||
36558 | fi | |
36559 | fi | |
36560 | ||
36561 | if test "$wxUSE_IPC" = "yes"; then | |
36562 | if test "$wxUSE_SOCKETS" != "yes"; then | |
77ffb593 JS |
36563 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
36564 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
a848cd7e SC |
36565 | fi |
36566 | ||
36567 | cat >>confdefs.h <<\_ACEOF | |
36568 | #define wxUSE_IPC 1 | |
36569 | _ACEOF | |
36570 | ||
36571 | fi | |
36572 | ||
36573 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
36574 | if test "$wxUSE_MGL" = 1; then | |
36575 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
36576 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
36577 | wxUSE_CLIPBOARD=no | |
36578 | fi | |
36579 | ||
36580 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
36581 | cat >>confdefs.h <<\_ACEOF | |
36582 | #define wxUSE_CLIPBOARD 1 | |
36583 | _ACEOF | |
36584 | ||
36585 | ||
36586 | cat >>confdefs.h <<\_ACEOF | |
36587 | #define wxUSE_DATAOBJ 1 | |
36588 | _ACEOF | |
36589 | ||
36590 | fi | |
36591 | fi | |
36592 | ||
36593 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
36594 | if test "$wxUSE_GTK" = 1; then | |
36595 | if test "$WXGTK12" != 1; then | |
36596 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
36597 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
36598 | wxUSE_DRAG_AND_DROP=no | |
36599 | fi | |
36600 | fi | |
36601 | ||
36602 | if test "$wxUSE_MOTIF" = 1; then | |
36603 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
36604 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
36605 | wxUSE_DRAG_AND_DROP=no | |
36606 | fi | |
36607 | ||
36608 | if test "$wxUSE_X11" = 1; then | |
36609 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
36610 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
36611 | wxUSE_DRAG_AND_DROP=no | |
36612 | fi | |
36613 | ||
36614 | if test "$wxUSE_MGL" = 1; then | |
36615 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
36616 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
36617 | wxUSE_DRAG_AND_DROP=no | |
36618 | fi | |
36619 | ||
36620 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
36621 | cat >>confdefs.h <<\_ACEOF | |
36622 | #define wxUSE_DRAG_AND_DROP 1 | |
36623 | _ACEOF | |
36624 | ||
36625 | fi | |
36626 | ||
36627 | fi | |
36628 | ||
36629 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
36630 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
36631 | fi | |
36632 | ||
36633 | if test "$wxUSE_SPLINES" = "yes" ; then | |
36634 | cat >>confdefs.h <<\_ACEOF | |
36635 | #define wxUSE_SPLINES 1 | |
36636 | _ACEOF | |
36637 | ||
36638 | fi | |
36639 | ||
36640 | ||
36641 | USES_CONTROLS=0 | |
36642 | if test "$wxUSE_CONTROLS" = "yes"; then | |
36643 | USES_CONTROLS=1 | |
36644 | fi | |
36645 | ||
36646 | if test "$wxUSE_ACCEL" = "yes"; then | |
36647 | cat >>confdefs.h <<\_ACEOF | |
36648 | #define wxUSE_ACCEL 1 | |
36649 | _ACEOF | |
36650 | ||
36651 | USES_CONTROLS=1 | |
36652 | fi | |
36653 | ||
36654 | if test "$wxUSE_BUTTON" = "yes"; then | |
36655 | cat >>confdefs.h <<\_ACEOF | |
36656 | #define wxUSE_BUTTON 1 | |
36657 | _ACEOF | |
36658 | ||
36659 | USES_CONTROLS=1 | |
36660 | fi | |
36661 | ||
36662 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
36663 | cat >>confdefs.h <<\_ACEOF | |
36664 | #define wxUSE_BMPBUTTON 1 | |
36665 | _ACEOF | |
36666 | ||
36667 | USES_CONTROLS=1 | |
36668 | fi | |
36669 | ||
36670 | if test "$wxUSE_CALCTRL" = "yes"; then | |
36671 | cat >>confdefs.h <<\_ACEOF | |
36672 | #define wxUSE_CALENDARCTRL 1 | |
36673 | _ACEOF | |
36674 | ||
36675 | USES_CONTROLS=1 | |
36676 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
36677 | fi | |
36678 | ||
36679 | if test "$wxUSE_CARET" = "yes"; then | |
36680 | cat >>confdefs.h <<\_ACEOF | |
36681 | #define wxUSE_CARET 1 | |
36682 | _ACEOF | |
36683 | ||
36684 | USES_CONTROLS=1 | |
36685 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
36686 | fi | |
36687 | ||
36688 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
36689 | cat >>confdefs.h <<\_ACEOF | |
36690 | #define wxUSE_COMBOBOX 1 | |
36691 | _ACEOF | |
36692 | ||
36693 | USES_CONTROLS=1 | |
36694 | fi | |
36695 | ||
36696 | if test "$wxUSE_CHOICE" = "yes"; then | |
36697 | cat >>confdefs.h <<\_ACEOF | |
36698 | #define wxUSE_CHOICE 1 | |
36699 | _ACEOF | |
36700 | ||
36701 | USES_CONTROLS=1 | |
36702 | fi | |
36703 | ||
92bbdbcd WS |
36704 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
36705 | cat >>confdefs.h <<\_ACEOF | |
36706 | #define wxUSE_CHOICEBOOK 1 | |
36707 | _ACEOF | |
36708 | ||
36709 | USES_CONTROLS=1 | |
36710 | fi | |
36711 | ||
a848cd7e SC |
36712 | if test "$wxUSE_CHECKBOX" = "yes"; then |
36713 | cat >>confdefs.h <<\_ACEOF | |
36714 | #define wxUSE_CHECKBOX 1 | |
36715 | _ACEOF | |
36716 | ||
36717 | USES_CONTROLS=1 | |
36718 | fi | |
36719 | ||
36720 | if test "$wxUSE_CHECKLST" = "yes"; then | |
36721 | cat >>confdefs.h <<\_ACEOF | |
36722 | #define wxUSE_CHECKLISTBOX 1 | |
36723 | _ACEOF | |
36724 | ||
36725 | USES_CONTROLS=1 | |
36726 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
36727 | fi | |
36728 | ||
36729 | if test "$wxUSE_DISPLAY" = "yes"; then | |
36730 | cat >>confdefs.h <<\_ACEOF | |
36731 | #define wxUSE_DISPLAY 1 | |
36732 | _ACEOF | |
36733 | ||
36734 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
36735 | fi | |
36736 | ||
36737 | if test "$wxUSE_GAUGE" = "yes"; then | |
36738 | cat >>confdefs.h <<\_ACEOF | |
36739 | #define wxUSE_GAUGE 1 | |
36740 | _ACEOF | |
36741 | ||
36742 | USES_CONTROLS=1 | |
36743 | fi | |
36744 | ||
36745 | if test "$wxUSE_GRID" = "yes"; then | |
36746 | cat >>confdefs.h <<\_ACEOF | |
36747 | #define wxUSE_GRID 1 | |
36748 | _ACEOF | |
36749 | ||
36750 | USES_CONTROLS=1 | |
36751 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
36752 | fi | |
36753 | ||
36754 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
36755 | cat >>confdefs.h <<\_ACEOF | |
36756 | #define wxUSE_IMAGLIST 1 | |
36757 | _ACEOF | |
36758 | ||
36759 | fi | |
36760 | ||
36761 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
36762 | cat >>confdefs.h <<\_ACEOF | |
36763 | #define wxUSE_LISTBOOK 1 | |
36764 | _ACEOF | |
36765 | ||
36766 | USES_CONTROLS=1 | |
36767 | fi | |
36768 | ||
36769 | if test "$wxUSE_LISTBOX" = "yes"; then | |
36770 | cat >>confdefs.h <<\_ACEOF | |
36771 | #define wxUSE_LISTBOX 1 | |
36772 | _ACEOF | |
36773 | ||
36774 | USES_CONTROLS=1 | |
36775 | fi | |
36776 | ||
36777 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
36778 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
36779 | cat >>confdefs.h <<\_ACEOF | |
36780 | #define wxUSE_LISTCTRL 1 | |
36781 | _ACEOF | |
36782 | ||
36783 | USES_CONTROLS=1 | |
36784 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
36785 | else | |
36786 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
36787 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
36788 | fi | |
36789 | fi | |
36790 | ||
36791 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
36792 | cat >>confdefs.h <<\_ACEOF | |
36793 | #define wxUSE_NOTEBOOK 1 | |
36794 | _ACEOF | |
36795 | ||
36796 | USES_CONTROLS=1 | |
36797 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
36798 | fi | |
36799 | ||
36800 | ||
36801 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
36802 | cat >>confdefs.h <<\_ACEOF | |
36803 | #define wxUSE_RADIOBOX 1 | |
36804 | _ACEOF | |
36805 | ||
36806 | USES_CONTROLS=1 | |
36807 | fi | |
36808 | ||
36809 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
36810 | cat >>confdefs.h <<\_ACEOF | |
36811 | #define wxUSE_RADIOBTN 1 | |
36812 | _ACEOF | |
36813 | ||
36814 | USES_CONTROLS=1 | |
36815 | fi | |
36816 | ||
36817 | if test "$wxUSE_SASH" = "yes"; then | |
36818 | cat >>confdefs.h <<\_ACEOF | |
36819 | #define wxUSE_SASH 1 | |
36820 | _ACEOF | |
36821 | ||
36822 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
36823 | fi | |
36824 | ||
36825 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
36826 | cat >>confdefs.h <<\_ACEOF | |
36827 | #define wxUSE_SCROLLBAR 1 | |
36828 | _ACEOF | |
36829 | ||
36830 | USES_CONTROLS=1 | |
36831 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
36832 | fi | |
36833 | ||
36834 | if test "$wxUSE_SLIDER" = "yes"; then | |
36835 | cat >>confdefs.h <<\_ACEOF | |
36836 | #define wxUSE_SLIDER 1 | |
36837 | _ACEOF | |
36838 | ||
36839 | USES_CONTROLS=1 | |
36840 | fi | |
36841 | ||
36842 | if test "$wxUSE_SPINBTN" = "yes"; then | |
36843 | cat >>confdefs.h <<\_ACEOF | |
36844 | #define wxUSE_SPINBTN 1 | |
36845 | _ACEOF | |
36846 | ||
36847 | USES_CONTROLS=1 | |
36848 | fi | |
36849 | ||
36850 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
36851 | cat >>confdefs.h <<\_ACEOF | |
36852 | #define wxUSE_SPINCTRL 1 | |
36853 | _ACEOF | |
36854 | ||
36855 | USES_CONTROLS=1 | |
36856 | fi | |
36857 | ||
36858 | if test "$wxUSE_SPLITTER" = "yes"; then | |
36859 | cat >>confdefs.h <<\_ACEOF | |
36860 | #define wxUSE_SPLITTER 1 | |
36861 | _ACEOF | |
36862 | ||
36863 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
36864 | fi | |
36865 | ||
36866 | if test "$wxUSE_STATBMP" = "yes"; then | |
36867 | cat >>confdefs.h <<\_ACEOF | |
36868 | #define wxUSE_STATBMP 1 | |
36869 | _ACEOF | |
36870 | ||
36871 | USES_CONTROLS=1 | |
36872 | fi | |
36873 | ||
36874 | if test "$wxUSE_STATBOX" = "yes"; then | |
36875 | cat >>confdefs.h <<\_ACEOF | |
36876 | #define wxUSE_STATBOX 1 | |
36877 | _ACEOF | |
36878 | ||
36879 | USES_CONTROLS=1 | |
36880 | fi | |
36881 | ||
36882 | if test "$wxUSE_STATTEXT" = "yes"; then | |
36883 | cat >>confdefs.h <<\_ACEOF | |
36884 | #define wxUSE_STATTEXT 1 | |
36885 | _ACEOF | |
36886 | ||
36887 | USES_CONTROLS=1 | |
36888 | fi | |
36889 | ||
36890 | if test "$wxUSE_STATLINE" = "yes"; then | |
36891 | cat >>confdefs.h <<\_ACEOF | |
36892 | #define wxUSE_STATLINE 1 | |
36893 | _ACEOF | |
36894 | ||
36895 | USES_CONTROLS=1 | |
36896 | fi | |
36897 | ||
36898 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
36899 | cat >>confdefs.h <<\_ACEOF | |
36900 | #define wxUSE_STATUSBAR 1 | |
36901 | _ACEOF | |
36902 | ||
36903 | USES_CONTROLS=1 | |
36904 | ||
36905 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
36906 | fi | |
36907 | ||
36908 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
36909 | cat >>confdefs.h <<\_ACEOF | |
36910 | #define wxUSE_TAB_DIALOG 1 | |
36911 | _ACEOF | |
36912 | ||
36913 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
36914 | fi | |
36915 | ||
36916 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
36917 | cat >>confdefs.h <<\_ACEOF | |
36918 | #define wxUSE_TEXTCTRL 1 | |
36919 | _ACEOF | |
36920 | ||
36921 | USES_CONTROLS=1 | |
36922 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
36923 | fi | |
36924 | ||
36925 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
36926 | if test "$wxUSE_COCOA" = 1 ; then | |
36927 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
36928 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
36929 | wxUSE_TOGGLEBTN=no | |
bdcade0a MB |
36930 | else |
36931 | if test "$wxUSE_PM" = 1; then | |
36932 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5 | |
36933 | echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;} | |
36934 | wxUSE_TOGGLEBTN=no | |
36935 | fi | |
a848cd7e SC |
36936 | fi |
36937 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
36938 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
36939 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
36940 | wxUSE_TOGGLEBTN=no | |
36941 | fi | |
36942 | ||
36943 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
36944 | cat >>confdefs.h <<\_ACEOF | |
36945 | #define wxUSE_TOGGLEBTN 1 | |
36946 | _ACEOF | |
36947 | ||
36948 | USES_CONTROLS=1 | |
36949 | fi | |
36950 | fi | |
36951 | ||
36952 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
36953 | cat >>confdefs.h <<\_ACEOF | |
36954 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
36955 | _ACEOF | |
36956 | ||
36957 | wxUSE_TOOLBAR="yes" | |
36958 | USES_CONTROLS=1 | |
36959 | fi | |
36960 | ||
36961 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
36962 | cat >>confdefs.h <<\_ACEOF | |
36963 | #define wxUSE_TOOLBAR 1 | |
36964 | _ACEOF | |
36965 | ||
36966 | USES_CONTROLS=1 | |
36967 | ||
36968 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
36969 | wxUSE_TOOLBAR_NATIVE="yes" | |
36970 | fi | |
36971 | ||
36972 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
36973 | cat >>confdefs.h <<\_ACEOF | |
36974 | #define wxUSE_TOOLBAR_NATIVE 1 | |
36975 | _ACEOF | |
36976 | ||
36977 | USES_CONTROLS=1 | |
36978 | fi | |
36979 | ||
36980 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
36981 | fi | |
36982 | ||
36983 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
36984 | if test "$wxUSE_MOTIF" = 1; then | |
36985 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
36986 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
36987 | else | |
36988 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
36989 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
36990 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
36991 | else | |
36992 | cat >>confdefs.h <<\_ACEOF | |
36993 | #define wxUSE_TOOLTIPS 1 | |
36994 | _ACEOF | |
36995 | ||
36996 | fi | |
36997 | fi | |
36998 | fi | |
36999 | ||
37000 | if test "$wxUSE_TREECTRL" = "yes"; then | |
37001 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
37002 | cat >>confdefs.h <<\_ACEOF | |
37003 | #define wxUSE_TREECTRL 1 | |
37004 | _ACEOF | |
37005 | ||
37006 | USES_CONTROLS=1 | |
37007 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
37008 | else | |
37009 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
37010 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
37011 | fi | |
37012 | fi | |
37013 | ||
37014 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
37015 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
37016 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
37017 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
37018 | else | |
37019 | if test "$wxUSE_PM" = 1; then | |
37020 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
37021 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
37022 | else | |
37023 | cat >>confdefs.h <<\_ACEOF | |
37024 | #define wxUSE_POPUPWIN 1 | |
37025 | _ACEOF | |
37026 | ||
37027 | ||
37028 | USES_CONTROLS=1 | |
37029 | fi | |
37030 | fi | |
37031 | fi | |
37032 | ||
37033 | if test "$wxUSE_TIPWINDOW" = "yes"; then | |
37034 | if test "$wxUSE_PM" = 1; then | |
37035 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
37036 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
37037 | else | |
37038 | cat >>confdefs.h <<\_ACEOF | |
37039 | #define wxUSE_TIPWINDOW 1 | |
37040 | _ACEOF | |
37041 | ||
37042 | fi | |
37043 | fi | |
37044 | ||
37045 | if test "$USES_CONTROLS" = 1; then | |
37046 | cat >>confdefs.h <<\_ACEOF | |
37047 | #define wxUSE_CONTROLS 1 | |
37048 | _ACEOF | |
37049 | ||
37050 | fi | |
37051 | ||
37052 | ||
37053 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
37054 | cat >>confdefs.h <<\_ACEOF | |
37055 | #define wxUSE_ACCESSIBILITY 1 | |
37056 | _ACEOF | |
37057 | ||
37058 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
37059 | fi | |
37060 | ||
37061 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
37062 | cat >>confdefs.h <<\_ACEOF | |
37063 | #define wxUSE_DRAGIMAGE 1 | |
37064 | _ACEOF | |
37065 | ||
37066 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
37067 | fi | |
37068 | ||
37069 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
37070 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
37071 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
37072 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
37073 | else | |
37074 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
37075 | #define wxUSE_EXCEPTIONS 1 |
37076 | _ACEOF | |
37077 | ||
07bea8f0 VS |
37078 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
37079 | fi | |
a848cd7e SC |
37080 | fi |
37081 | ||
37082 | USE_HTML=0 | |
37083 | if test "$wxUSE_HTML" = "yes"; then | |
37084 | cat >>confdefs.h <<\_ACEOF | |
37085 | #define wxUSE_HTML 1 | |
37086 | _ACEOF | |
37087 | ||
37088 | USE_HTML=1 | |
37089 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
37090 | if test "$wxUSE_MAC" = 1; then |
37091 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
37092 | fi | |
a848cd7e | 37093 | fi |
646b6ec1 | 37094 | if test "$wxUSE_WEBKIT" = "yes"; then |
07bea8f0 VS |
37095 | if test "$wxUSE_MAC" = 1; then |
37096 | old_CPPFLAGS="$CPPFLAGS" | |
37097 | CPPFLAGS="$CPPFLAGS -x objective-c++" | |
37098 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 | |
37099 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
37100 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
37101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37102 | else | |
37103 | cat >conftest.$ac_ext <<_ACEOF | |
37104 | /* confdefs.h. */ | |
37105 | _ACEOF | |
37106 | cat confdefs.h >>conftest.$ac_ext | |
37107 | cat >>conftest.$ac_ext <<_ACEOF | |
37108 | /* end confdefs.h. */ | |
37109 | #include <Carbon/Carbon.h> | |
37110 | ||
37111 | #include <WebKit/HIWebView.h> | |
37112 | _ACEOF | |
37113 | rm -f conftest.$ac_objext | |
37114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37115 | (eval $ac_compile) 2>conftest.er1 | |
37116 | ac_status=$? | |
37117 | grep -v '^ *+' conftest.er1 >conftest.err | |
37118 | rm -f conftest.er1 | |
37119 | cat conftest.err >&5 | |
37120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37121 | (exit $ac_status); } && | |
c228d3a4 RN |
37122 | { ac_try='test -z "$ac_c_werror_flag" |
37123 | || test ! -s conftest.err' | |
07bea8f0 VS |
37124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37125 | (eval $ac_try) 2>&5 | |
37126 | ac_status=$? | |
37127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37128 | (exit $ac_status); }; } && | |
37129 | { ac_try='test -s conftest.$ac_objext' | |
37130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37131 | (eval $ac_try) 2>&5 | |
37132 | ac_status=$? | |
37133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37134 | (exit $ac_status); }; }; then | |
37135 | ac_cv_header_WebKit_HIWebView_h=yes | |
37136 | else | |
37137 | echo "$as_me: failed program was:" >&5 | |
37138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37139 | ||
37140 | ac_cv_header_WebKit_HIWebView_h=no | |
37141 | fi | |
37142 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
37143 | fi | |
37144 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
37145 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
37146 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
37147 | ||
37148 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
37149 | #define wxUSE_WEBKIT 1 |
37150 | _ACEOF | |
37151 | ||
07bea8f0 VS |
37152 | WEBKIT_LINK="-framework WebKit" |
37153 | ||
37154 | else | |
37155 | ||
37156 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
37157 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
37158 | wxUSE_WEBKIT=no | |
37159 | ||
646b6ec1 VS |
37160 | fi |
37161 | ||
07bea8f0 VS |
37162 | |
37163 | CPPFLAGS="$old_CPPFLAGS" | |
37164 | elif test "$wxUSE_COCOA" = 1; then | |
37165 | cat >>confdefs.h <<\_ACEOF | |
37166 | #define wxUSE_WEBKIT 1 | |
37167 | _ACEOF | |
37168 | ||
37169 | else | |
37170 | wxUSE_WEBKIT=no | |
37171 | fi | |
37172 | fi | |
37173 | ||
9a8f0513 VS |
37174 | USE_XRC=0 |
37175 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
37176 | if test "$wxUSE_XML" != "yes"; then |
37177 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
37178 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
37179 | wxUSE_XRC=no | |
37180 | else | |
37181 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
37182 | #define wxUSE_XRC 1 |
37183 | _ACEOF | |
37184 | ||
d2ebf0b7 VS |
37185 | USE_XRC=1 |
37186 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
37187 | fi | |
9a8f0513 | 37188 | fi |
07bea8f0 | 37189 | |
a848cd7e SC |
37190 | if test "$wxUSE_MENUS" = "yes"; then |
37191 | cat >>confdefs.h <<\_ACEOF | |
37192 | #define wxUSE_MENUS 1 | |
37193 | _ACEOF | |
37194 | ||
37195 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
37196 | fi | |
37197 | ||
37198 | if test "$wxUSE_METAFILE" = "yes"; then | |
37199 | cat >>confdefs.h <<\_ACEOF | |
37200 | #define wxUSE_METAFILE 1 | |
37201 | _ACEOF | |
37202 | ||
37203 | fi | |
37204 | ||
37205 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
37206 | cat >>confdefs.h <<\_ACEOF | |
37207 | #define wxUSE_MIMETYPE 1 | |
37208 | _ACEOF | |
37209 | ||
37210 | fi | |
37211 | ||
37212 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
37213 | cat >>confdefs.h <<\_ACEOF | |
37214 | #define wxUSE_MINIFRAME 1 | |
37215 | _ACEOF | |
37216 | ||
37217 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
37218 | fi | |
37219 | ||
37220 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
37221 | cat >>confdefs.h <<\_ACEOF | |
37222 | #define wxUSE_SYSTEM_OPTIONS 1 | |
37223 | _ACEOF | |
37224 | ||
37225 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
37226 | "$TOOLKIT" = "MOTIF"; then | |
37227 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
37228 | fi | |
37229 | fi | |
37230 | ||
37231 | ||
37232 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
37233 | cat >>confdefs.h <<\_ACEOF | |
37234 | #define wxUSE_VALIDATORS 1 | |
37235 | _ACEOF | |
37236 | ||
37237 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
37238 | fi | |
37239 | ||
37240 | if test "$wxUSE_PALETTE" = "yes" ; then | |
37241 | cat >>confdefs.h <<\_ACEOF | |
37242 | #define wxUSE_PALETTE 1 | |
37243 | _ACEOF | |
37244 | ||
37245 | fi | |
37246 | ||
37247 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
37248 | LIBS=" -lunicows $LIBS" | |
37249 | fi | |
37250 | ||
37251 | ||
37252 | if test "$wxUSE_IMAGE" = "yes" ; then | |
37253 | cat >>confdefs.h <<\_ACEOF | |
37254 | #define wxUSE_IMAGE 1 | |
37255 | _ACEOF | |
37256 | ||
37257 | ||
37258 | if test "$wxUSE_GIF" = "yes" ; then | |
37259 | cat >>confdefs.h <<\_ACEOF | |
37260 | #define wxUSE_GIF 1 | |
37261 | _ACEOF | |
37262 | ||
37263 | fi | |
37264 | ||
37265 | if test "$wxUSE_PCX" = "yes" ; then | |
37266 | cat >>confdefs.h <<\_ACEOF | |
37267 | #define wxUSE_PCX 1 | |
37268 | _ACEOF | |
37269 | ||
37270 | fi | |
37271 | ||
37272 | if test "$wxUSE_IFF" = "yes" ; then | |
37273 | cat >>confdefs.h <<\_ACEOF | |
37274 | #define wxUSE_IFF 1 | |
37275 | _ACEOF | |
37276 | ||
37277 | fi | |
37278 | ||
37279 | if test "$wxUSE_PNM" = "yes" ; then | |
37280 | cat >>confdefs.h <<\_ACEOF | |
37281 | #define wxUSE_PNM 1 | |
37282 | _ACEOF | |
37283 | ||
37284 | fi | |
37285 | ||
37286 | if test "$wxUSE_XPM" = "yes" ; then | |
37287 | cat >>confdefs.h <<\_ACEOF | |
37288 | #define wxUSE_XPM 1 | |
37289 | _ACEOF | |
37290 | ||
37291 | fi | |
37292 | ||
37293 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
37294 | cat >>confdefs.h <<\_ACEOF | |
37295 | #define wxUSE_ICO_CUR 1 | |
37296 | _ACEOF | |
37297 | ||
37298 | fi | |
37299 | fi | |
37300 | ||
37301 | ||
37302 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
37303 | cat >>confdefs.h <<\_ACEOF | |
37304 | #define wxUSE_CHOICEDLG 1 | |
37305 | _ACEOF | |
37306 | ||
37307 | fi | |
37308 | ||
37309 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
37310 | cat >>confdefs.h <<\_ACEOF | |
37311 | #define wxUSE_COLOURDLG 1 | |
37312 | _ACEOF | |
37313 | ||
37314 | fi | |
37315 | ||
37316 | if test "$wxUSE_FILEDLG" = "yes"; then | |
37317 | cat >>confdefs.h <<\_ACEOF | |
37318 | #define wxUSE_FILEDLG 1 | |
37319 | _ACEOF | |
37320 | ||
37321 | fi | |
37322 | ||
37323 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
37324 | cat >>confdefs.h <<\_ACEOF | |
37325 | #define wxUSE_FINDREPLDLG 1 | |
37326 | _ACEOF | |
37327 | ||
37328 | fi | |
37329 | ||
37330 | if test "$wxUSE_FONTDLG" = "yes"; then | |
37331 | cat >>confdefs.h <<\_ACEOF | |
37332 | #define wxUSE_FONTDLG 1 | |
37333 | _ACEOF | |
37334 | ||
37335 | fi | |
37336 | ||
37337 | if test "$wxUSE_DIRDLG" = "yes"; then | |
37338 | if test "$wxUSE_TREECTRL" != "yes"; then | |
37339 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
37340 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
37341 | else | |
37342 | cat >>confdefs.h <<\_ACEOF | |
37343 | #define wxUSE_DIRDLG 1 | |
37344 | _ACEOF | |
37345 | ||
37346 | fi | |
37347 | fi | |
37348 | ||
37349 | if test "$wxUSE_MSGDLG" = "yes"; then | |
37350 | cat >>confdefs.h <<\_ACEOF | |
37351 | #define wxUSE_MSGDLG 1 | |
37352 | _ACEOF | |
37353 | ||
37354 | fi | |
37355 | ||
37356 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
37357 | cat >>confdefs.h <<\_ACEOF | |
37358 | #define wxUSE_NUMBERDLG 1 | |
37359 | _ACEOF | |
37360 | ||
37361 | fi | |
37362 | ||
37363 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
37364 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
37365 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
37366 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
37367 | else | |
37368 | cat >>confdefs.h <<\_ACEOF | |
37369 | #define wxUSE_PROGRESSDLG 1 | |
37370 | _ACEOF | |
37371 | ||
37372 | fi | |
37373 | fi | |
37374 | ||
37375 | if test "$wxUSE_SPLASH" = "yes"; then | |
37376 | cat >>confdefs.h <<\_ACEOF | |
37377 | #define wxUSE_SPLASH 1 | |
37378 | _ACEOF | |
37379 | ||
2057db16 | 37380 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
37381 | fi |
37382 | ||
37383 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
37384 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
37385 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
37386 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
37387 | else | |
37388 | cat >>confdefs.h <<\_ACEOF | |
37389 | #define wxUSE_STARTUP_TIPS 1 | |
37390 | _ACEOF | |
37391 | ||
37392 | fi | |
37393 | fi | |
37394 | ||
37395 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
37396 | cat >>confdefs.h <<\_ACEOF | |
37397 | #define wxUSE_TEXTDLG 1 | |
37398 | _ACEOF | |
37399 | ||
37400 | fi | |
37401 | ||
37402 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
37403 | cat >>confdefs.h <<\_ACEOF | |
37404 | #define wxUSE_WIZARDDLG 1 | |
37405 | _ACEOF | |
37406 | ||
37407 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
37408 | fi | |
37409 | ||
37410 | ||
37411 | if test "$cross_compiling" = "yes"; then | |
37412 | OSINFO="\"$host\"" | |
37413 | else | |
37414 | OSINFO=`uname -s -r -m` | |
37415 | OSINFO="\"$OSINFO\"" | |
37416 | fi | |
37417 | ||
37418 | cat >>confdefs.h <<_ACEOF | |
37419 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
37420 | _ACEOF | |
37421 | ||
37422 | ||
37423 | ||
37424 | if test "x$prefix" != "xNONE"; then | |
37425 | wxPREFIX=$prefix | |
37426 | else | |
37427 | wxPREFIX=$ac_default_prefix | |
37428 | fi | |
37429 | ||
37430 | cat >>confdefs.h <<_ACEOF | |
37431 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
37432 | _ACEOF | |
37433 | ||
37434 | ||
a848cd7e SC |
37435 | |
37436 | ||
37437 | CORE_BASE_LIBS="net base" | |
37438 | CORE_GUI_LIBS="adv core" | |
37439 | ||
37440 | if test "$wxUSE_XML" = "yes" ; then | |
37441 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
37442 | fi | |
37443 | if test "$wxUSE_ODBC" != "no" ; then | |
37444 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
37445 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
37446 | fi | |
37447 | if test "$wxUSE_HTML" = "yes" ; then | |
37448 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
37449 | fi | |
9a8f0513 VS |
37450 | if test "$wxUSE_XRC" = "yes" ; then |
37451 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
37452 | fi | |
a848cd7e SC |
37453 | |
37454 | if test "$wxUSE_GUI" != "yes"; then | |
37455 | CORE_GUI_LIBS="" | |
37456 | fi | |
37457 | ||
37458 | ||
37459 | ||
37460 | ||
37461 | ||
37462 | ||
37463 | ||
37464 | ||
37465 | if test "$wxUSE_MAC" = 1 ; then | |
07bea8f0 VS |
37466 | if test "$wxUSE_SOUND" = "yes"; then |
37467 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
37468 | fi | |
5dcf30a0 RN |
37469 | if test "$USE_DARWIN" = 1; then |
37470 | LDFLAGS="$LDFLAGS -framework IOKit" | |
37471 | fi | |
07bea8f0 | 37472 | LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework System" |
a848cd7e SC |
37473 | fi |
37474 | if test "$wxUSE_COCOA" = 1 ; then | |
f7e98dee | 37475 | LDFLAGS="$LDFLAGS -framework Cocoa" |
a848cd7e SC |
37476 | fi |
37477 | ||
37478 | ||
37479 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
37480 | ||
37481 | have_cos=0 | |
37482 | have_floor=0 | |
37483 | ||
37484 | for ac_func in cos | |
37485 | do | |
37486 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37487 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37488 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37489 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37491 | else | |
37492 | cat >conftest.$ac_ext <<_ACEOF | |
37493 | /* confdefs.h. */ | |
37494 | _ACEOF | |
37495 | cat confdefs.h >>conftest.$ac_ext | |
37496 | cat >>conftest.$ac_ext <<_ACEOF | |
37497 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37498 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37499 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37500 | #define $ac_func innocuous_$ac_func | |
37501 | ||
a848cd7e SC |
37502 | /* System header to define __stub macros and hopefully few prototypes, |
37503 | which can conflict with char $ac_func (); below. | |
37504 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37505 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37506 | |
a848cd7e SC |
37507 | #ifdef __STDC__ |
37508 | # include <limits.h> | |
37509 | #else | |
37510 | # include <assert.h> | |
37511 | #endif | |
ac1cb8d3 VS |
37512 | |
37513 | #undef $ac_func | |
37514 | ||
a848cd7e SC |
37515 | /* Override any gcc2 internal prototype to avoid an error. */ |
37516 | #ifdef __cplusplus | |
37517 | extern "C" | |
37518 | { | |
37519 | #endif | |
37520 | /* We use char because int might match the return type of a gcc2 | |
37521 | builtin and then its argument prototype would still apply. */ | |
37522 | char $ac_func (); | |
37523 | /* The GNU C library defines this for functions which it implements | |
37524 | to always fail with ENOSYS. Some functions are actually named | |
37525 | something starting with __ and the normal name is an alias. */ | |
37526 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37527 | choke me | |
37528 | #else | |
37529 | char (*f) () = $ac_func; | |
37530 | #endif | |
37531 | #ifdef __cplusplus | |
37532 | } | |
37533 | #endif | |
37534 | ||
37535 | int | |
37536 | main () | |
37537 | { | |
37538 | return f != $ac_func; | |
37539 | ; | |
37540 | return 0; | |
37541 | } | |
37542 | _ACEOF | |
37543 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37544 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37545 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37546 | ac_status=$? |
ac1cb8d3 VS |
37547 | grep -v '^ *+' conftest.er1 >conftest.err |
37548 | rm -f conftest.er1 | |
37549 | cat conftest.err >&5 | |
a848cd7e SC |
37550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37551 | (exit $ac_status); } && | |
c228d3a4 RN |
37552 | { ac_try='test -z "$ac_c_werror_flag" |
37553 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37555 | (eval $ac_try) 2>&5 | |
37556 | ac_status=$? | |
37557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37558 | (exit $ac_status); }; } && | |
37559 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37561 | (eval $ac_try) 2>&5 | |
37562 | ac_status=$? | |
37563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37564 | (exit $ac_status); }; }; then | |
37565 | eval "$as_ac_var=yes" | |
37566 | else | |
37567 | echo "$as_me: failed program was:" >&5 | |
37568 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37569 | ||
37570 | eval "$as_ac_var=no" | |
37571 | fi | |
ac1cb8d3 VS |
37572 | rm -f conftest.err conftest.$ac_objext \ |
37573 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37574 | fi |
37575 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37576 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37577 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37578 | cat >>confdefs.h <<_ACEOF | |
37579 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37580 | _ACEOF | |
37581 | have_cos=1 | |
37582 | fi | |
37583 | done | |
37584 | ||
37585 | ||
37586 | for ac_func in floor | |
37587 | do | |
37588 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37589 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37590 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37591 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37593 | else | |
37594 | cat >conftest.$ac_ext <<_ACEOF | |
37595 | /* confdefs.h. */ | |
37596 | _ACEOF | |
37597 | cat confdefs.h >>conftest.$ac_ext | |
37598 | cat >>conftest.$ac_ext <<_ACEOF | |
37599 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37600 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37601 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37602 | #define $ac_func innocuous_$ac_func | |
37603 | ||
a848cd7e SC |
37604 | /* System header to define __stub macros and hopefully few prototypes, |
37605 | which can conflict with char $ac_func (); below. | |
37606 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37607 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37608 | |
a848cd7e SC |
37609 | #ifdef __STDC__ |
37610 | # include <limits.h> | |
37611 | #else | |
37612 | # include <assert.h> | |
37613 | #endif | |
ac1cb8d3 VS |
37614 | |
37615 | #undef $ac_func | |
37616 | ||
a848cd7e SC |
37617 | /* Override any gcc2 internal prototype to avoid an error. */ |
37618 | #ifdef __cplusplus | |
37619 | extern "C" | |
37620 | { | |
37621 | #endif | |
37622 | /* We use char because int might match the return type of a gcc2 | |
37623 | builtin and then its argument prototype would still apply. */ | |
37624 | char $ac_func (); | |
37625 | /* The GNU C library defines this for functions which it implements | |
37626 | to always fail with ENOSYS. Some functions are actually named | |
37627 | something starting with __ and the normal name is an alias. */ | |
37628 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37629 | choke me | |
37630 | #else | |
37631 | char (*f) () = $ac_func; | |
37632 | #endif | |
37633 | #ifdef __cplusplus | |
37634 | } | |
37635 | #endif | |
37636 | ||
37637 | int | |
37638 | main () | |
37639 | { | |
37640 | return f != $ac_func; | |
37641 | ; | |
37642 | return 0; | |
37643 | } | |
37644 | _ACEOF | |
37645 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37646 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37647 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37648 | ac_status=$? |
ac1cb8d3 VS |
37649 | grep -v '^ *+' conftest.er1 >conftest.err |
37650 | rm -f conftest.er1 | |
37651 | cat conftest.err >&5 | |
a848cd7e SC |
37652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37653 | (exit $ac_status); } && | |
c228d3a4 RN |
37654 | { ac_try='test -z "$ac_c_werror_flag" |
37655 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37657 | (eval $ac_try) 2>&5 | |
37658 | ac_status=$? | |
37659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37660 | (exit $ac_status); }; } && | |
37661 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37663 | (eval $ac_try) 2>&5 | |
37664 | ac_status=$? | |
37665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37666 | (exit $ac_status); }; }; then | |
37667 | eval "$as_ac_var=yes" | |
37668 | else | |
37669 | echo "$as_me: failed program was:" >&5 | |
37670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37671 | ||
37672 | eval "$as_ac_var=no" | |
37673 | fi | |
ac1cb8d3 VS |
37674 | rm -f conftest.err conftest.$ac_objext \ |
37675 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37676 | fi |
37677 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37678 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37679 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37680 | cat >>confdefs.h <<_ACEOF | |
37681 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37682 | _ACEOF | |
37683 | have_floor=1 | |
37684 | fi | |
37685 | done | |
37686 | ||
37687 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
37688 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
37689 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
37690 | echo "$as_me:$LINENO: result: yes" >&5 | |
37691 | echo "${ECHO_T}yes" >&6 | |
37692 | else | |
37693 | echo "$as_me:$LINENO: result: no" >&5 | |
37694 | echo "${ECHO_T}no" >&6 | |
37695 | LIBS="$LIBS -lm" | |
37696 | # use different functions to avoid configure caching | |
37697 | have_sin=0 | |
37698 | have_ceil=0 | |
37699 | ||
37700 | for ac_func in sin | |
37701 | do | |
37702 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37703 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37704 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37705 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37707 | else | |
37708 | cat >conftest.$ac_ext <<_ACEOF | |
37709 | /* confdefs.h. */ | |
37710 | _ACEOF | |
37711 | cat confdefs.h >>conftest.$ac_ext | |
37712 | cat >>conftest.$ac_ext <<_ACEOF | |
37713 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37714 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37715 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37716 | #define $ac_func innocuous_$ac_func | |
37717 | ||
a848cd7e SC |
37718 | /* System header to define __stub macros and hopefully few prototypes, |
37719 | which can conflict with char $ac_func (); below. | |
37720 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37721 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37722 | |
a848cd7e SC |
37723 | #ifdef __STDC__ |
37724 | # include <limits.h> | |
37725 | #else | |
37726 | # include <assert.h> | |
37727 | #endif | |
ac1cb8d3 VS |
37728 | |
37729 | #undef $ac_func | |
37730 | ||
a848cd7e SC |
37731 | /* Override any gcc2 internal prototype to avoid an error. */ |
37732 | #ifdef __cplusplus | |
37733 | extern "C" | |
37734 | { | |
37735 | #endif | |
37736 | /* We use char because int might match the return type of a gcc2 | |
37737 | builtin and then its argument prototype would still apply. */ | |
37738 | char $ac_func (); | |
37739 | /* The GNU C library defines this for functions which it implements | |
37740 | to always fail with ENOSYS. Some functions are actually named | |
37741 | something starting with __ and the normal name is an alias. */ | |
37742 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37743 | choke me | |
37744 | #else | |
37745 | char (*f) () = $ac_func; | |
37746 | #endif | |
37747 | #ifdef __cplusplus | |
37748 | } | |
37749 | #endif | |
37750 | ||
37751 | int | |
37752 | main () | |
37753 | { | |
37754 | return f != $ac_func; | |
37755 | ; | |
37756 | return 0; | |
37757 | } | |
37758 | _ACEOF | |
37759 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37760 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37761 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37762 | ac_status=$? |
ac1cb8d3 VS |
37763 | grep -v '^ *+' conftest.er1 >conftest.err |
37764 | rm -f conftest.er1 | |
37765 | cat conftest.err >&5 | |
a848cd7e SC |
37766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37767 | (exit $ac_status); } && | |
c228d3a4 RN |
37768 | { ac_try='test -z "$ac_c_werror_flag" |
37769 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37771 | (eval $ac_try) 2>&5 | |
37772 | ac_status=$? | |
37773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37774 | (exit $ac_status); }; } && | |
37775 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37777 | (eval $ac_try) 2>&5 | |
37778 | ac_status=$? | |
37779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37780 | (exit $ac_status); }; }; then | |
37781 | eval "$as_ac_var=yes" | |
37782 | else | |
37783 | echo "$as_me: failed program was:" >&5 | |
37784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37785 | ||
37786 | eval "$as_ac_var=no" | |
37787 | fi | |
ac1cb8d3 VS |
37788 | rm -f conftest.err conftest.$ac_objext \ |
37789 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37790 | fi |
37791 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37792 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37793 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37794 | cat >>confdefs.h <<_ACEOF | |
37795 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37796 | _ACEOF | |
37797 | have_sin=1 | |
37798 | fi | |
37799 | done | |
37800 | ||
37801 | ||
37802 | for ac_func in ceil | |
37803 | do | |
37804 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37805 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37806 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37807 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37809 | else | |
37810 | cat >conftest.$ac_ext <<_ACEOF | |
37811 | /* confdefs.h. */ | |
37812 | _ACEOF | |
37813 | cat confdefs.h >>conftest.$ac_ext | |
37814 | cat >>conftest.$ac_ext <<_ACEOF | |
37815 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37816 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37817 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37818 | #define $ac_func innocuous_$ac_func | |
37819 | ||
a848cd7e SC |
37820 | /* System header to define __stub macros and hopefully few prototypes, |
37821 | which can conflict with char $ac_func (); below. | |
37822 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37823 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37824 | |
a848cd7e SC |
37825 | #ifdef __STDC__ |
37826 | # include <limits.h> | |
37827 | #else | |
37828 | # include <assert.h> | |
37829 | #endif | |
ac1cb8d3 VS |
37830 | |
37831 | #undef $ac_func | |
37832 | ||
a848cd7e SC |
37833 | /* Override any gcc2 internal prototype to avoid an error. */ |
37834 | #ifdef __cplusplus | |
37835 | extern "C" | |
37836 | { | |
37837 | #endif | |
37838 | /* We use char because int might match the return type of a gcc2 | |
37839 | builtin and then its argument prototype would still apply. */ | |
37840 | char $ac_func (); | |
37841 | /* The GNU C library defines this for functions which it implements | |
37842 | to always fail with ENOSYS. Some functions are actually named | |
37843 | something starting with __ and the normal name is an alias. */ | |
37844 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37845 | choke me | |
37846 | #else | |
37847 | char (*f) () = $ac_func; | |
37848 | #endif | |
37849 | #ifdef __cplusplus | |
37850 | } | |
37851 | #endif | |
37852 | ||
37853 | int | |
37854 | main () | |
37855 | { | |
37856 | return f != $ac_func; | |
37857 | ; | |
37858 | return 0; | |
37859 | } | |
37860 | _ACEOF | |
37861 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37862 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37863 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37864 | ac_status=$? |
ac1cb8d3 VS |
37865 | grep -v '^ *+' conftest.er1 >conftest.err |
37866 | rm -f conftest.er1 | |
37867 | cat conftest.err >&5 | |
a848cd7e SC |
37868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37869 | (exit $ac_status); } && | |
c228d3a4 RN |
37870 | { ac_try='test -z "$ac_c_werror_flag" |
37871 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37873 | (eval $ac_try) 2>&5 | |
37874 | ac_status=$? | |
37875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37876 | (exit $ac_status); }; } && | |
37877 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37879 | (eval $ac_try) 2>&5 | |
37880 | ac_status=$? | |
37881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37882 | (exit $ac_status); }; }; then | |
37883 | eval "$as_ac_var=yes" | |
37884 | else | |
37885 | echo "$as_me: failed program was:" >&5 | |
37886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37887 | ||
37888 | eval "$as_ac_var=no" | |
37889 | fi | |
ac1cb8d3 VS |
37890 | rm -f conftest.err conftest.$ac_objext \ |
37891 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37892 | fi |
37893 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37894 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37895 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37896 | cat >>confdefs.h <<_ACEOF | |
37897 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37898 | _ACEOF | |
37899 | have_ceil=1 | |
37900 | fi | |
37901 | done | |
37902 | ||
37903 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
37904 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
37905 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
37906 | echo "$as_me:$LINENO: result: yes" >&5 | |
37907 | echo "${ECHO_T}yes" >&6 | |
37908 | else | |
37909 | echo "$as_me:$LINENO: result: no" >&5 | |
37910 | echo "${ECHO_T}no" >&6 | |
37911 | # not sure we should warn the user, crash, etc. | |
37912 | fi | |
37913 | fi | |
37914 | ||
37915 | if test "$wxUSE_GUI" = "yes"; then | |
37916 | ||
37917 | ||
37918 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ | |
37919 | drawing dynamic erase event exec font image \ | |
37920 | minimal propsize rotate shaped widgets render" | |
37921 | ||
37922 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
37923 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
37924 | fi | |
37925 | else | |
37926 | SAMPLES_SUBDIRS="console" | |
37927 | fi | |
37928 | ||
37929 | ||
ceec2216 | 37930 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
a848cd7e SC |
37931 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" |
37932 | ||
37933 | if test "$GXX" = yes ; then | |
37934 | CXXWARNINGS="-Wall" | |
37935 | fi | |
37936 | ||
37937 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
37938 | ||
0c3c69fc VS |
37939 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS` |
37940 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS` | |
37941 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS` | |
a848cd7e SC |
37942 | |
37943 | ||
0c3c69fc | 37944 | LIBS=`echo $LIBS` |
a848cd7e SC |
37945 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
37946 | EXTRALIBS_XML="$EXPAT_LINK" | |
37947 | EXTRALIBS_HTML="$MSPACK_LINK" | |
37948 | EXTRALIBS_ODBC="$ODBC_LINK" | |
37949 | if test "$wxUSE_GUI" = "yes"; then | |
0c3c69fc | 37950 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK` |
a848cd7e SC |
37951 | fi |
37952 | if test "$wxUSE_OPENGL" = "yes"; then | |
37953 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
37954 | fi | |
37955 | ||
37956 | LDFLAGS="$LDFLAGS $PROFILE" | |
37957 | ||
37958 | if test "$wxUSE_GTK" = 1; then | |
37959 | WXCONFIG_INCLUDE= | |
37960 | else | |
37961 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
37962 | fi | |
37963 | ||
37964 | WXCONFIG_EXTRALIBS="$LIBS" | |
37965 | ||
37966 | if test "$wxUSE_REGEX" = "builtin" ; then | |
37967 | wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}" | |
37968 | fi | |
37969 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
37970 | wxconfig_3rdparty="$wxconfig_3rdparty expat" | |
37971 | fi | |
37972 | if test "$wxUSE_ODBC" = "builtin" ; then | |
37973 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
37974 | fi | |
37975 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
37976 | wxconfig_3rdparty="$wxconfig_3rdparty tiff" | |
37977 | fi | |
37978 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
37979 | wxconfig_3rdparty="$wxconfig_3rdparty jpeg" | |
37980 | fi | |
37981 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
37982 | wxconfig_3rdparty="$wxconfig_3rdparty png" | |
37983 | fi | |
37984 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
37985 | wxconfig_3rdparty="$wxconfig_3rdparty zlib" | |
37986 | fi | |
37987 | if test "$wxUSE_ODBC" = "builtin" ; then | |
37988 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
37989 | fi | |
37990 | ||
37991 | for i in $wxconfig_3rdparty ; do | |
ceec2216 | 37992 | WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}" |
a848cd7e SC |
37993 | done |
37994 | ||
37995 | ||
37996 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
37997 | WXUNIV=1 | |
37998 | else | |
37999 | WXUNIV=0 | |
38000 | fi | |
38001 | ||
38002 | ||
38003 | ||
38004 | ||
38005 | ||
38006 | ||
38007 | ||
38008 | ||
38009 | ||
38010 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
38011 | MONOLITHIC=1 | |
38012 | else | |
38013 | MONOLITHIC=0 | |
38014 | fi | |
38015 | ||
38016 | if test $wxUSE_PLUGINS = "yes" ; then | |
38017 | USE_PLUGINS=1 | |
38018 | else | |
38019 | USE_PLUGINS=0 | |
38020 | fi | |
38021 | ||
38022 | if test $wxUSE_ODBC != "no" ; then | |
38023 | USE_ODBC=1 | |
38024 | else | |
38025 | USE_ODBC=0 | |
38026 | fi | |
38027 | ||
38028 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then | |
38029 | OFFICIAL_BUILD=1 | |
38030 | else | |
38031 | OFFICIAL_BUILD=0 | |
38032 | fi | |
38033 | ||
38034 | ||
38035 | ||
38036 | ||
38037 | ||
38038 | ||
38039 | ||
38040 | ||
38041 | ||
38042 | ||
38043 | ||
38044 | ||
38045 | ||
38046 | ||
38047 | ||
38048 | ||
38049 | ||
38050 | ||
38051 | ||
ceec2216 | 38052 | |
a848cd7e SC |
38053 | |
38054 | ||
38055 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
38056 | ||
38057 | ||
38058 | ||
38059 | ||
38060 | ||
38061 | ||
38062 | ||
38063 | ||
4d4ff94c VZ |
38064 | case "$TOOLKIT" in |
38065 | GTK) | |
38066 | TOOLKIT_USER="GTK+" | |
38067 | if test "$WXGTK20" = 1; then | |
38068 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
38069 | fi | |
9a8f0513 | 38070 | ;; |
4d4ff94c VZ |
38071 | |
38072 | *) | |
38073 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 38074 | ;; |
4d4ff94c | 38075 | esac |
a848cd7e | 38076 | |
9a8f0513 | 38077 | |
a848cd7e SC |
38078 | if test "x$BAKEFILE_HOST" = "x"; then |
38079 | BAKEFILE_HOST="${host}" | |
38080 | fi | |
38081 | ||
38082 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
38083 | ||
38084 | if test -n "$ac_tool_prefix"; then | |
38085 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
38086 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
38087 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38088 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38089 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
38090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38091 | else | |
38092 | if test -n "$RANLIB"; then | |
38093 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
38094 | else | |
38095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38096 | for as_dir in $PATH | |
38097 | do | |
38098 | IFS=$as_save_IFS | |
38099 | test -z "$as_dir" && as_dir=. | |
38100 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38101 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38102 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
38103 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38104 | break 2 | |
38105 | fi | |
38106 | done | |
38107 | done | |
38108 | ||
38109 | fi | |
38110 | fi | |
38111 | RANLIB=$ac_cv_prog_RANLIB | |
38112 | if test -n "$RANLIB"; then | |
38113 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
38114 | echo "${ECHO_T}$RANLIB" >&6 | |
38115 | else | |
38116 | echo "$as_me:$LINENO: result: no" >&5 | |
38117 | echo "${ECHO_T}no" >&6 | |
38118 | fi | |
38119 | ||
38120 | fi | |
38121 | if test -z "$ac_cv_prog_RANLIB"; then | |
38122 | ac_ct_RANLIB=$RANLIB | |
38123 | # Extract the first word of "ranlib", so it can be a program name with args. | |
38124 | set dummy ranlib; ac_word=$2 | |
38125 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38126 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38127 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
38128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38129 | else | |
38130 | if test -n "$ac_ct_RANLIB"; then | |
38131 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
38132 | else | |
38133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38134 | for as_dir in $PATH | |
38135 | do | |
38136 | IFS=$as_save_IFS | |
38137 | test -z "$as_dir" && as_dir=. | |
38138 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38139 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38140 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
38141 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38142 | break 2 | |
38143 | fi | |
38144 | done | |
38145 | done | |
38146 | ||
38147 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
38148 | fi | |
38149 | fi | |
38150 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
38151 | if test -n "$ac_ct_RANLIB"; then | |
38152 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
38153 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
38154 | else | |
38155 | echo "$as_me:$LINENO: result: no" >&5 | |
38156 | echo "${ECHO_T}no" >&6 | |
38157 | fi | |
38158 | ||
38159 | RANLIB=$ac_ct_RANLIB | |
38160 | else | |
38161 | RANLIB="$ac_cv_prog_RANLIB" | |
38162 | fi | |
38163 | ||
38164 | # Find a good install program. We prefer a C program (faster), | |
38165 | # so one script is as good as another. But avoid the broken or | |
38166 | # incompatible versions: | |
38167 | # SysV /etc/install, /usr/sbin/install | |
38168 | # SunOS /usr/etc/install | |
38169 | # IRIX /sbin/install | |
38170 | # AIX /bin/install | |
38171 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
38172 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
38173 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
38174 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 38175 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
38176 | # ./install, which can be erroneously created by make from ./install.sh. |
38177 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
38178 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
38179 | if test -z "$INSTALL"; then | |
38180 | if test "${ac_cv_path_install+set}" = set; then | |
38181 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38182 | else | |
38183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38184 | for as_dir in $PATH | |
38185 | do | |
38186 | IFS=$as_save_IFS | |
38187 | test -z "$as_dir" && as_dir=. | |
38188 | # Account for people who put trailing slashes in PATH elements. | |
38189 | case $as_dir/ in | |
38190 | ./ | .// | /cC/* | \ | |
38191 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 38192 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
38193 | /usr/ucb/* ) ;; |
38194 | *) | |
38195 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
38196 | # Don't use installbsd from OSF since it installs stuff as root | |
38197 | # by default. | |
38198 | for ac_prog in ginstall scoinst install; do | |
38199 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
38200 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
38201 | if test $ac_prog = install && | |
38202 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
38203 | # AIX install. It has an incompatible calling convention. | |
38204 | : | |
38205 | elif test $ac_prog = install && | |
38206 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
38207 | # program-specific install script used by HP pwplus--don't use. | |
38208 | : | |
38209 | else | |
38210 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
38211 | break 3 | |
38212 | fi | |
38213 | fi | |
a848cd7e SC |
38214 | done |
38215 | done | |
38216 | ;; | |
38217 | esac | |
38218 | done | |
38219 | ||
38220 | ||
38221 | fi | |
38222 | if test "${ac_cv_path_install+set}" = set; then | |
38223 | INSTALL=$ac_cv_path_install | |
38224 | else | |
38225 | # As a last resort, use the slow shell script. We don't cache a | |
38226 | # path for INSTALL within a source directory, because that will | |
38227 | # break other packages using the cache if that directory is | |
38228 | # removed, or if the path is relative. | |
38229 | INSTALL=$ac_install_sh | |
38230 | fi | |
38231 | fi | |
38232 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
38233 | echo "${ECHO_T}$INSTALL" >&6 | |
38234 | ||
38235 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
38236 | # It thinks the first close brace ends the variable substitution. | |
38237 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
38238 | ||
38239 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
38240 | ||
38241 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
38242 | ||
38243 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
38244 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
38245 | LN_S=$as_ln_s | |
38246 | if test "$LN_S" = "ln -s"; then | |
38247 | echo "$as_me:$LINENO: result: yes" >&5 | |
38248 | echo "${ECHO_T}yes" >&6 | |
38249 | else | |
38250 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
38251 | echo "${ECHO_T}no, using $LN_S" >&6 | |
38252 | fi | |
38253 | ||
38254 | ||
38255 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
38256 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 38257 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
38258 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
38259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38260 | else | |
38261 | cat >conftest.make <<\_ACEOF | |
38262 | all: | |
38263 | @echo 'ac_maketemp="$(MAKE)"' | |
38264 | _ACEOF | |
38265 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
38266 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
38267 | if test -n "$ac_maketemp"; then | |
38268 | eval ac_cv_prog_make_${ac_make}_set=yes | |
38269 | else | |
38270 | eval ac_cv_prog_make_${ac_make}_set=no | |
38271 | fi | |
38272 | rm -f conftest.make | |
38273 | fi | |
38274 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
38275 | echo "$as_me:$LINENO: result: yes" >&5 | |
38276 | echo "${ECHO_T}yes" >&6 | |
38277 | SET_MAKE= | |
38278 | else | |
38279 | echo "$as_me:$LINENO: result: no" >&5 | |
38280 | echo "${ECHO_T}no" >&6 | |
38281 | SET_MAKE="MAKE=${MAKE-make}" | |
38282 | fi | |
38283 | ||
38284 | ||
38285 | ||
38286 | if test -n "$ac_tool_prefix"; then | |
38287 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
38288 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
38289 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38290 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38291 | if test "${ac_cv_prog_AR+set}" = set; then | |
38292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38293 | else | |
38294 | if test -n "$AR"; then | |
38295 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
38296 | else | |
38297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38298 | for as_dir in $PATH | |
38299 | do | |
38300 | IFS=$as_save_IFS | |
38301 | test -z "$as_dir" && as_dir=. | |
38302 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38303 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38304 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
38305 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38306 | break 2 | |
38307 | fi | |
38308 | done | |
38309 | done | |
38310 | ||
38311 | fi | |
38312 | fi | |
38313 | AR=$ac_cv_prog_AR | |
38314 | if test -n "$AR"; then | |
38315 | echo "$as_me:$LINENO: result: $AR" >&5 | |
38316 | echo "${ECHO_T}$AR" >&6 | |
38317 | else | |
38318 | echo "$as_me:$LINENO: result: no" >&5 | |
38319 | echo "${ECHO_T}no" >&6 | |
38320 | fi | |
38321 | ||
38322 | fi | |
38323 | if test -z "$ac_cv_prog_AR"; then | |
38324 | ac_ct_AR=$AR | |
38325 | # Extract the first word of "ar", so it can be a program name with args. | |
38326 | set dummy ar; ac_word=$2 | |
38327 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38328 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38329 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
38330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38331 | else | |
38332 | if test -n "$ac_ct_AR"; then | |
38333 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
38334 | else | |
38335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38336 | for as_dir in $PATH | |
38337 | do | |
38338 | IFS=$as_save_IFS | |
38339 | test -z "$as_dir" && as_dir=. | |
38340 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38341 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38342 | ac_cv_prog_ac_ct_AR="ar" | |
38343 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38344 | break 2 | |
38345 | fi | |
38346 | done | |
38347 | done | |
38348 | ||
38349 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
38350 | fi | |
38351 | fi | |
38352 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
38353 | if test -n "$ac_ct_AR"; then | |
38354 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
38355 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
38356 | else | |
38357 | echo "$as_me:$LINENO: result: no" >&5 | |
38358 | echo "${ECHO_T}no" >&6 | |
38359 | fi | |
38360 | ||
38361 | AR=$ac_ct_AR | |
38362 | else | |
38363 | AR="$ac_cv_prog_AR" | |
38364 | fi | |
38365 | ||
38366 | if test -n "$ac_tool_prefix"; then | |
38367 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
38368 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
38369 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38370 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38371 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
38372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38373 | else | |
38374 | if test -n "$STRIP"; then | |
38375 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
38376 | else | |
38377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38378 | for as_dir in $PATH | |
38379 | do | |
38380 | IFS=$as_save_IFS | |
38381 | test -z "$as_dir" && as_dir=. | |
38382 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38383 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38384 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
38385 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38386 | break 2 | |
38387 | fi | |
38388 | done | |
38389 | done | |
38390 | ||
38391 | fi | |
38392 | fi | |
38393 | STRIP=$ac_cv_prog_STRIP | |
38394 | if test -n "$STRIP"; then | |
38395 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
38396 | echo "${ECHO_T}$STRIP" >&6 | |
38397 | else | |
38398 | echo "$as_me:$LINENO: result: no" >&5 | |
38399 | echo "${ECHO_T}no" >&6 | |
38400 | fi | |
38401 | ||
38402 | fi | |
38403 | if test -z "$ac_cv_prog_STRIP"; then | |
38404 | ac_ct_STRIP=$STRIP | |
38405 | # Extract the first word of "strip", so it can be a program name with args. | |
38406 | set dummy strip; ac_word=$2 | |
38407 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38408 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38409 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
38410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38411 | else | |
38412 | if test -n "$ac_ct_STRIP"; then | |
38413 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
38414 | else | |
38415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38416 | for as_dir in $PATH | |
38417 | do | |
38418 | IFS=$as_save_IFS | |
38419 | test -z "$as_dir" && as_dir=. | |
38420 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38421 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38422 | ac_cv_prog_ac_ct_STRIP="strip" | |
38423 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38424 | break 2 | |
38425 | fi | |
38426 | done | |
38427 | done | |
38428 | ||
38429 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
38430 | fi | |
38431 | fi | |
38432 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
38433 | if test -n "$ac_ct_STRIP"; then | |
38434 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
38435 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
38436 | else | |
38437 | echo "$as_me:$LINENO: result: no" >&5 | |
38438 | echo "${ECHO_T}no" >&6 | |
38439 | fi | |
38440 | ||
38441 | STRIP=$ac_ct_STRIP | |
38442 | else | |
38443 | STRIP="$ac_cv_prog_STRIP" | |
38444 | fi | |
38445 | ||
38446 | if test -n "$ac_tool_prefix"; then | |
38447 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
38448 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
38449 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38450 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38451 | if test "${ac_cv_prog_NM+set}" = set; then | |
38452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38453 | else | |
38454 | if test -n "$NM"; then | |
38455 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
38456 | else | |
38457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38458 | for as_dir in $PATH | |
38459 | do | |
38460 | IFS=$as_save_IFS | |
38461 | test -z "$as_dir" && as_dir=. | |
38462 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38463 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38464 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
38465 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38466 | break 2 | |
38467 | fi | |
38468 | done | |
38469 | done | |
38470 | ||
38471 | fi | |
38472 | fi | |
38473 | NM=$ac_cv_prog_NM | |
38474 | if test -n "$NM"; then | |
38475 | echo "$as_me:$LINENO: result: $NM" >&5 | |
38476 | echo "${ECHO_T}$NM" >&6 | |
38477 | else | |
38478 | echo "$as_me:$LINENO: result: no" >&5 | |
38479 | echo "${ECHO_T}no" >&6 | |
38480 | fi | |
38481 | ||
38482 | fi | |
38483 | if test -z "$ac_cv_prog_NM"; then | |
38484 | ac_ct_NM=$NM | |
38485 | # Extract the first word of "nm", so it can be a program name with args. | |
38486 | set dummy nm; ac_word=$2 | |
38487 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38488 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38489 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
38490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38491 | else | |
38492 | if test -n "$ac_ct_NM"; then | |
38493 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
38494 | else | |
38495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38496 | for as_dir in $PATH | |
38497 | do | |
38498 | IFS=$as_save_IFS | |
38499 | test -z "$as_dir" && as_dir=. | |
38500 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38501 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38502 | ac_cv_prog_ac_ct_NM="nm" | |
38503 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38504 | break 2 | |
38505 | fi | |
38506 | done | |
38507 | done | |
38508 | ||
38509 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
38510 | fi | |
38511 | fi | |
38512 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
38513 | if test -n "$ac_ct_NM"; then | |
38514 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
38515 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
38516 | else | |
38517 | echo "$as_me:$LINENO: result: no" >&5 | |
38518 | echo "${ECHO_T}no" >&6 | |
38519 | fi | |
38520 | ||
38521 | NM=$ac_ct_NM | |
38522 | else | |
38523 | NM="$ac_cv_prog_NM" | |
38524 | fi | |
38525 | ||
38526 | ||
38527 | case ${BAKEFILE_HOST} in | |
38528 | *-hp-hpux* ) | |
ecd16d74 | 38529 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
38530 | ;; |
38531 | *) INSTALL_DIR="$INSTALL -d" | |
38532 | ;; | |
38533 | esac | |
38534 | ||
38535 | ||
38536 | LDFLAGS_GUI= | |
38537 | case ${BAKEFILE_HOST} in | |
38538 | *-*-cygwin* | *-*-mingw32* ) | |
38539 | LDFLAGS_GUI="-mwindows" | |
38540 | esac | |
38541 | ||
38542 | ||
38543 | fi | |
38544 | ||
38545 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
38546 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
38547 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
38548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38549 | else | |
38550 | ||
38551 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
38552 | egrep -s GNU > /dev/null); then | |
38553 | bakefile_cv_prog_makeisgnu="yes" | |
38554 | else | |
38555 | bakefile_cv_prog_makeisgnu="no" | |
38556 | fi | |
38557 | ||
38558 | fi | |
38559 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
38560 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
38561 | ||
38562 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
38563 | IF_GNU_MAKE="" | |
38564 | else | |
38565 | IF_GNU_MAKE="#" | |
38566 | fi | |
38567 | ||
38568 | ||
38569 | ||
38570 | PLATFORM_UNIX=0 | |
38571 | PLATFORM_WIN32=0 | |
38572 | PLATFORM_MSDOS=0 | |
38573 | PLATFORM_MAC=0 | |
38574 | PLATFORM_MACOSX=0 | |
38575 | PLATFORM_OS2=0 | |
38576 | ||
38577 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
38578 | case "${BAKEFILE_HOST}" in | |
38579 | *-*-cygwin* | *-*-mingw32* ) | |
38580 | PLATFORM_WIN32=1 | |
38581 | ;; | |
38582 | *-pc-msdosdjgpp ) | |
38583 | PLATFORM_MSDOS=1 | |
38584 | ;; | |
38585 | *-pc-os2_emx | *-pc-os2-emx ) | |
38586 | PLATFORM_OS2=1 | |
38587 | ;; | |
38588 | powerpc-*-darwin* ) | |
38589 | PLATFORM_MAC=1 | |
38590 | PLATFORM_MACOSX=1 | |
38591 | ;; | |
38592 | * ) | |
38593 | PLATFORM_UNIX=1 | |
38594 | ;; | |
38595 | esac | |
38596 | else | |
38597 | case "$BAKEFILE_FORCE_PLATFORM" in | |
38598 | win32 ) | |
38599 | PLATFORM_WIN32=1 | |
38600 | ;; | |
38601 | msdos ) | |
38602 | PLATFORM_MSDOS=1 | |
38603 | ;; | |
38604 | os2 ) | |
38605 | PLATFORM_OS2=1 | |
38606 | ;; | |
38607 | darwin ) | |
38608 | PLATFORM_MAC=1 | |
38609 | PLATFORM_MACOSX=1 | |
38610 | ;; | |
38611 | unix ) | |
38612 | PLATFORM_UNIX=1 | |
38613 | ;; | |
38614 | * ) | |
38615 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
38616 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
38617 | { (exit 1); exit 1; }; } | |
38618 | ;; | |
38619 | esac | |
38620 | fi | |
38621 | ||
38622 | ||
38623 | ||
38624 | ||
38625 | ||
38626 | ||
38627 | ||
38628 | ||
38629 | ||
38630 | # Check whether --enable-omf or --disable-omf was given. | |
38631 | if test "${enable_omf+set}" = set; then | |
38632 | enableval="$enable_omf" | |
38633 | bk_os2_use_omf="$enableval" | |
38634 | fi; | |
38635 | ||
38636 | case "${BAKEFILE_HOST}" in | |
38637 | *-*-darwin* ) | |
38638 | CFLAGS="$CFLAGS -fno-common" | |
38639 | CXXFLAGS="$CXXFLAGS -fno-common" | |
38640 | ;; | |
38641 | ||
38642 | *-pc-os2_emx | *-pc-os2-emx ) | |
38643 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
38644 | AR=emxomfar | |
38645 | RANLIB=: | |
38646 | LDFLAGS="-Zomf $LDFLAGS" | |
38647 | CFLAGS="-Zomf $CFLAGS" | |
38648 | CXXFLAGS="-Zomf $CXXFLAGS" | |
38649 | OS2_LIBEXT="lib" | |
38650 | else | |
38651 | OS2_LIBEXT="a" | |
38652 | fi | |
38653 | ;; | |
38654 | esac | |
38655 | ||
38656 | ||
38657 | SO_SUFFIX="so" | |
38658 | SO_SUFFIX_MODULE="so" | |
38659 | EXEEXT="" | |
38660 | LIBPREFIX="lib" | |
38661 | LIBEXT=".a" | |
38662 | DLLPREFIX="lib" | |
38663 | DLLPREFIX_MODULE="" | |
38664 | DLLIMP_SUFFIX="" | |
38665 | ||
38666 | case "${BAKEFILE_HOST}" in | |
38667 | *-hp-hpux* ) | |
38668 | SO_SUFFIX="sl" | |
38669 | SO_SUFFIX_MODULE="sl" | |
38670 | ;; | |
38671 | *-*-aix* ) | |
38672 | SO_SUFFIX="a" | |
38673 | SO_SUFFIX_MODULE="a" | |
38674 | ;; | |
38675 | *-*-cygwin* | *-*-mingw32* ) | |
38676 | SO_SUFFIX="dll" | |
38677 | SO_SUFFIX_MODULE="dll" | |
38678 | DLLIMP_SUFFIX="dll.a" | |
38679 | EXEEXT=".exe" | |
38680 | DLLPREFIX="" | |
38681 | ;; | |
38682 | *-pc-msdosdjgpp ) | |
38683 | EXEEXT=".exe" | |
38684 | DLLPREFIX="" | |
38685 | ;; | |
38686 | *-pc-os2_emx | *-pc-os2-emx ) | |
38687 | SO_SUFFIX="dll" | |
38688 | SO_SUFFIX_MODULE="dll" | |
38689 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
38690 | EXEEXT=".exe" | |
38691 | DLLPREFIX="" | |
38692 | LIBPREFIX="" | |
38693 | LIBEXT=".$OS2_LIBEXT" | |
38694 | ;; | |
38695 | powerpc-*-darwin* ) | |
38696 | SO_SUFFIX="dylib" | |
38697 | SO_SUFFIX_MODULE="bundle" | |
38698 | ;; | |
38699 | esac | |
38700 | ||
38701 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
38702 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
38703 | fi | |
38704 | ||
38705 | ||
38706 | ||
38707 | ||
38708 | ||
38709 | ||
38710 | ||
38711 | ||
38712 | ||
38713 | ||
38714 | ||
38715 | SHARED_LD_CC="\$(CC) -shared -o" | |
38716 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
38717 | ||
38718 | if test "x$GCC" = "xyes"; then | |
38719 | PIC_FLAG="-fPIC" | |
38720 | fi | |
38721 | ||
38722 | case "${BAKEFILE_HOST}" in | |
38723 | *-hp-hpux* ) | |
38724 | if test "x$GCC" = "xyes"; then | |
38725 | SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o" | |
38726 | SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o" | |
38727 | else | |
38728 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
38729 | ||
38730 | SHARED_LD_CC="${CC} -b -o" | |
38731 | SHARED_LD_CXX="${CXX} -b -o" | |
38732 | PIC_FLAG="+Z" | |
38733 | fi | |
38734 | ;; | |
38735 | ||
38736 | *-*-linux* ) | |
38737 | if test "x$GCC" != "xyes"; then | |
38738 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
38739 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
38740 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
38741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38742 | else | |
38743 | ||
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 | ||
38751 | int | |
38752 | main () | |
38753 | { | |
38754 | ||
38755 | #ifndef __INTEL_COMPILER | |
38756 | #error Not icc | |
38757 | #endif | |
38758 | ||
38759 | ; | |
38760 | return 0; | |
38761 | } | |
38762 | _ACEOF | |
38763 | rm -f conftest.$ac_objext | |
38764 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38765 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38766 | ac_status=$? |
ac1cb8d3 VS |
38767 | grep -v '^ *+' conftest.er1 >conftest.err |
38768 | rm -f conftest.er1 | |
38769 | cat conftest.err >&5 | |
a848cd7e SC |
38770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38771 | (exit $ac_status); } && | |
c228d3a4 RN |
38772 | { ac_try='test -z "$ac_c_werror_flag" |
38773 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38775 | (eval $ac_try) 2>&5 | |
38776 | ac_status=$? | |
38777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38778 | (exit $ac_status); }; } && | |
38779 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38781 | (eval $ac_try) 2>&5 | |
38782 | ac_status=$? | |
38783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38784 | (exit $ac_status); }; }; then | |
38785 | bakefile_cv_prog_icc=yes | |
38786 | else | |
38787 | echo "$as_me: failed program was:" >&5 | |
38788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38789 | ||
38790 | bakefile_cv_prog_icc=no | |
38791 | ||
38792 | fi | |
ac1cb8d3 | 38793 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38794 | |
38795 | fi | |
38796 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
38797 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
38798 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
38799 | PIC_FLAG="-KPIC" | |
38800 | fi | |
38801 | fi | |
38802 | ;; | |
38803 | ||
38804 | *-*-solaris2* ) | |
38805 | if test "x$GCC" != xyes ; then | |
38806 | SHARED_LD_CC="${CC} -G -o" | |
38807 | SHARED_LD_CXX="${CXX} -G -o" | |
38808 | PIC_FLAG="-KPIC" | |
38809 | fi | |
38810 | ;; | |
38811 | ||
38812 | *-*-darwin* ) | |
38813 | ||
38814 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
38815 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
38816 | if test "${wx_cv_gcc31+set}" = set; then | |
38817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38818 | else | |
38819 | ||
38820 | cat >conftest.$ac_ext <<_ACEOF | |
38821 | /* confdefs.h. */ | |
38822 | _ACEOF | |
38823 | cat confdefs.h >>conftest.$ac_ext | |
38824 | cat >>conftest.$ac_ext <<_ACEOF | |
38825 | /* end confdefs.h. */ | |
38826 | ||
38827 | int | |
38828 | main () | |
38829 | { | |
38830 | ||
38831 | #if (__GNUC__ < 3) || \ | |
38832 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
38833 | #error old gcc | |
38834 | #endif | |
38835 | ||
38836 | ; | |
38837 | return 0; | |
38838 | } | |
38839 | _ACEOF | |
38840 | rm -f conftest.$ac_objext | |
38841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38842 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38843 | ac_status=$? |
ac1cb8d3 VS |
38844 | grep -v '^ *+' conftest.er1 >conftest.err |
38845 | rm -f conftest.er1 | |
38846 | cat conftest.err >&5 | |
a848cd7e SC |
38847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38848 | (exit $ac_status); } && | |
c228d3a4 RN |
38849 | { ac_try='test -z "$ac_c_werror_flag" |
38850 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38852 | (eval $ac_try) 2>&5 | |
38853 | ac_status=$? | |
38854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38855 | (exit $ac_status); }; } && | |
38856 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38858 | (eval $ac_try) 2>&5 | |
38859 | ac_status=$? | |
38860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38861 | (exit $ac_status); }; }; then | |
38862 | ||
38863 | wx_cv_gcc31=yes | |
38864 | ||
38865 | else | |
38866 | echo "$as_me: failed program was:" >&5 | |
38867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38868 | ||
38869 | ||
38870 | wx_cv_gcc31=no | |
38871 | ||
38872 | ||
38873 | fi | |
ac1cb8d3 | 38874 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38875 | |
38876 | fi | |
38877 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
38878 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
38879 | if test "$wx_cv_gcc31" = "no"; then | |
473276a9 VS |
38880 | |
38881 | D='$' | |
38882 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
38883 | #!/bin/sh |
38884 | #----------------------------------------------------------------------------- | |
38885 | #-- Name: distrib/mac/shared-ld-sh | |
38886 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
38887 | #-- Author: Gilles Depeyrot | |
38888 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
38889 | #-- Licence: any use permitted | |
38890 | #----------------------------------------------------------------------------- | |
38891 | ||
38892 | verbose=0 | |
38893 | args="" | |
38894 | objects="" | |
38895 | linking_flag="-dynamiclib" | |
38896 | ||
473276a9 VS |
38897 | while test ${D}# -gt 0; do |
38898 | case ${D}1 in | |
a848cd7e SC |
38899 | |
38900 | -v) | |
38901 | verbose=1 | |
38902 | ;; | |
38903 | ||
38904 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
38905 | # collect these options and values | |
473276a9 | 38906 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
38907 | shift |
38908 | ;; | |
38909 | ||
38910 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
38911 | # collect these options | |
473276a9 | 38912 | args="${D}{args} ${D}1" |
a848cd7e SC |
38913 | ;; |
38914 | ||
38915 | -dynamiclib|-bundle) | |
473276a9 | 38916 | linking_flag="${D}1" |
a848cd7e SC |
38917 | ;; |
38918 | ||
38919 | -*) | |
473276a9 | 38920 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
38921 | exit 1 |
38922 | ;; | |
38923 | ||
38924 | *.o | *.a | *.dylib) | |
38925 | # collect object files | |
473276a9 | 38926 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
38927 | ;; |
38928 | ||
38929 | *) | |
473276a9 | 38930 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
38931 | exit 1 |
38932 | ;; | |
38933 | ||
38934 | esac | |
38935 | shift | |
38936 | done | |
38937 | ||
38938 | # | |
38939 | # Link one module containing all the others | |
38940 | # | |
473276a9 VS |
38941 | if test ${D}{verbose} = 1; then |
38942 | echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o" | |
a848cd7e | 38943 | fi |
473276a9 VS |
38944 | c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o |
38945 | status=${D}? | |
38946 | if test ${D}{status} != 0; then | |
38947 | exit ${D}{status} | |
a848cd7e SC |
38948 | fi |
38949 | ||
38950 | # | |
38951 | # Link the shared library from the single module created | |
38952 | # | |
473276a9 VS |
38953 | if test ${D}{verbose} = 1; then |
38954 | echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
a848cd7e | 38955 | fi |
473276a9 VS |
38956 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} |
38957 | status=${D}? | |
38958 | if test ${D}{status} != 0; then | |
38959 | exit ${D}{status} | |
a848cd7e SC |
38960 | fi |
38961 | ||
38962 | # | |
38963 | # Remove intermediate module | |
38964 | # | |
473276a9 | 38965 | rm -f master.${D}${D}.o |
a848cd7e SC |
38966 | |
38967 | exit 0 | |
38968 | EOF | |
473276a9 | 38969 | |
a848cd7e SC |
38970 | chmod +x shared-ld-sh |
38971 | ||
38972 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" | |
38973 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
38974 | SHARED_LD_CXX="$SHARED_LD_CC" | |
38975 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
38976 | else | |
38977 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
38978 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
38979 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
38980 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
38981 | fi | |
38982 | ||
38983 | PIC_FLAG="-dynamic -fPIC" | |
38984 | ;; | |
38985 | ||
38986 | *-*-aix* ) | |
38987 | if test "x$GCC" != "xyes"; then | |
38988 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
38989 | set dummy makeC++SharedLib; ac_word=$2 | |
38990 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38991 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38992 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
38993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38994 | else | |
38995 | if test -n "$AIX_CXX_LD"; then | |
38996 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
38997 | else | |
38998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38999 | for as_dir in $PATH | |
39000 | do | |
39001 | IFS=$as_save_IFS | |
39002 | test -z "$as_dir" && as_dir=. | |
39003 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39004 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39005 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
39006 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39007 | break 2 | |
39008 | fi | |
39009 | done | |
39010 | done | |
39011 | ||
39012 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
39013 | fi | |
39014 | fi | |
39015 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
39016 | if test -n "$AIX_CXX_LD"; then | |
39017 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
39018 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
39019 | else | |
39020 | echo "$as_me:$LINENO: result: no" >&5 | |
39021 | echo "${ECHO_T}no" >&6 | |
39022 | fi | |
39023 | ||
39024 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
39025 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
39026 | fi | |
39027 | ;; | |
39028 | ||
39029 | *-*-beos* ) | |
39030 | SHARED_LD_CC="${LD} -shared -o" | |
39031 | SHARED_LD_CXX="${LD} -shared -o" | |
39032 | ;; | |
39033 | ||
39034 | *-*-irix* ) | |
39035 | if test "x$GCC" != "xyes"; then | |
39036 | PIC_FLAG="-KPIC" | |
39037 | fi | |
39038 | ;; | |
39039 | ||
39040 | *-*-cygwin* | *-*-mingw32* ) | |
39041 | PIC_FLAG="" | |
39042 | ;; | |
39043 | ||
39044 | *-pc-os2_emx | *-pc-os2-emx ) | |
473276a9 VS |
39045 | SHARED_LD_CC="`pwd`/dllar.sh -o" |
39046 | SHARED_LD_CXX="`pwd`/dllar.sh -o" | |
a848cd7e | 39047 | PIC_FLAG="" |
473276a9 VS |
39048 | |
39049 | D='$' | |
39050 | cat <<EOF >dllar.sh | |
39051 | #!/bin/sh | |
39052 | # | |
39053 | # dllar - a tool to build both a .dll and an .a file | |
39054 | # from a set of object (.o) files for EMX/OS2. | |
39055 | # | |
39056 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
39057 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
39058 | # | |
39059 | # This script will accept a set of files on the command line. | |
39060 | # All the public symbols from the .o files will be exported into | |
39061 | # a .DEF file, then linker will be run (through gcc) against them to | |
39062 | # build a shared library consisting of all given .o files. All libraries | |
39063 | # (.a) will be first decompressed into component .o files then act as | |
39064 | # described above. You can optionally give a description (-d "description") | |
39065 | # which will be put into .DLL. To see the list of accepted options (as well | |
39066 | # as command-line format) simply run this program without options. The .DLL | |
39067 | # is built to be imported by name (there is no guarantee that new versions | |
39068 | # of the library you build will have same ordinals for same symbols). | |
39069 | # | |
39070 | # dllar is free software; you can redistribute it and/or modify | |
39071 | # it under the terms of the GNU General Public License as published by | |
39072 | # the Free Software Foundation; either version 2, or (at your option) | |
39073 | # any later version. | |
39074 | # | |
39075 | # dllar is distributed in the hope that it will be useful, | |
39076 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
39077 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
39078 | # GNU General Public License for more details. | |
39079 | # | |
39080 | # You should have received a copy of the GNU General Public License | |
39081 | # along with dllar; see the file COPYING. If not, write to the Free | |
39082 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
39083 | # 02111-1307, USA. | |
39084 | ||
39085 | # To successfuly run this program you will need: | |
39086 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
39087 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
39088 | # - gcc | |
39089 | # (used to build the .dll) | |
39090 | # - emxexp | |
39091 | # (used to create .def file from .o files) | |
39092 | # - emximp | |
39093 | # (used to create .a file from .def file) | |
39094 | # - GNU text utilites (cat, sort, uniq) | |
39095 | # used to process emxexp output | |
39096 | # - GNU file utilities (mv, rm) | |
39097 | # - GNU sed | |
39098 | # - lxlite (optional, see flag below) | |
39099 | # (used for general .dll cleanup) | |
39100 | # | |
39101 | ||
39102 | flag_USE_LXLITE=1; | |
39103 | ||
39104 | # | |
39105 | # helper functions | |
39106 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
39107 | # second argument (suffix to remove) is given | |
39108 | basnam(){ | |
39109 | case ${D}# in | |
39110 | 1) | |
39111 | echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//' | |
39112 | ;; | |
39113 | 2) | |
39114 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
39115 | ;; | |
39116 | *) | |
39117 | echo "error in basnam ${D}*" | |
39118 | exit 8 | |
39119 | ;; | |
39120 | esac | |
39121 | } | |
39122 | ||
39123 | # Cleanup temporary files and output | |
39124 | CleanUp() { | |
39125 | cd ${D}curDir | |
39126 | for i in ${D}inputFiles ; do | |
39127 | case ${D}i in | |
39128 | *!) | |
39129 | rm -rf \`basnam ${D}i !\` | |
39130 | ;; | |
39131 | *) | |
39132 | ;; | |
39133 | esac | |
39134 | done | |
39135 | ||
39136 | # Kill result in case of failure as there is just to many stupid make/nmake | |
39137 | # things out there which doesn't do this. | |
2057db16 | 39138 | if [] ${D}# -eq 0 []; then |
473276a9 VS |
39139 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
39140 | fi | |
39141 | } | |
39142 | ||
39143 | # Print usage and exit script with rc=1. | |
39144 | PrintHelp() { | |
2057db16 VS |
39145 | echo 'Usage: dllar []-o[[]utput[]] output_file[] []-i[[]mport[]] importlib_name[]' |
39146 | echo ' []-d[[]escription[]] "dll descrption"[] []-cc "CC"[] []-f[[]lags[]] "CFLAGS"[]' | |
39147 | echo ' []-ord[[]inals[]][] -ex[]clude[] "symbol(s)"' | |
39148 | echo ' []-libf[[]lags[]] "{INIT|TERM}{GLOBAL|INSTANCE}"[] []-nocrt[[]dll[]][] []-nolxl[[]ite[]][]' | |
39149 | echo ' []*.o[] []*.a[]' | |
473276a9 VS |
39150 | echo '*> "output_file" should have no extension.' |
39151 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
39152 | echo ' The import library name is derived from this and is set to "name".a,' | |
39153 | echo ' unless overridden by -import' | |
39154 | echo '*> "importlib_name" should have no extension.' | |
39155 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
39156 | echo ' This name is used as the import library name and may be longer and' | |
39157 | echo ' more descriptive than the DLL name which has to follow the old ' | |
39158 | echo ' 8.3 convention of FAT.' | |
39159 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' | |
39160 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
39161 | echo ' These flags will be put at the start of GCC command line.' | |
2057db16 VS |
39162 | echo '*> -ord[]inals[] tells dllar to export entries by ordinals. Be careful.' |
39163 | echo '*> -ex[]clude[] defines symbols which will not be exported. You can define' | |
473276a9 VS |
39164 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
39165 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
39166 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
2057db16 | 39167 | echo '*> -libf[]lags[] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 39168 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
2057db16 | 39169 | echo '*> -nocrt[]dll[] switch will disable linking the library against emx''s' |
473276a9 | 39170 | echo ' C runtime DLLs.' |
2057db16 | 39171 | echo '*> -nolxl[]ite[] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
39172 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
39173 | echo ' unchanged to GCC at the end of command line.' | |
39174 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
39175 | echo ' the basename for DLL and import library will be set to library name,' | |
39176 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
39177 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
39178 | echo ' library will be renamed into gcc_s.a.' | |
39179 | echo '--------' | |
39180 | echo 'Example:' | |
39181 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
39182 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
39183 | CleanUp | |
39184 | exit 1 | |
39185 | } | |
39186 | ||
39187 | # Execute a command. | |
39188 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
39189 | # @Uses Whatever CleanUp() uses. | |
39190 | doCommand() { | |
39191 | echo "${D}*" | |
39192 | eval ${D}* | |
39193 | rcCmd=${D}? | |
39194 | ||
2057db16 | 39195 | if [] ${D}rcCmd -ne 0 []; then |
473276a9 VS |
39196 | echo "command failed, exit code="${D}rcCmd |
39197 | CleanUp | |
39198 | exit ${D}rcCmd | |
39199 | fi | |
39200 | } | |
39201 | ||
39202 | # main routine | |
39203 | # setup globals | |
39204 | cmdLine=${D}* | |
39205 | outFile="" | |
39206 | outimpFile="" | |
39207 | inputFiles="" | |
39208 | description="" | |
39209 | CC=gcc.exe | |
39210 | CFLAGS="-s -Zcrtdll" | |
39211 | EXTRA_CFLAGS="" | |
39212 | EXPORT_BY_ORDINALS=0 | |
39213 | exclude_symbols="" | |
39214 | library_flags="" | |
39215 | curDir=\`pwd\` | |
39216 | curDirS=curDir | |
39217 | case ${D}curDirS in | |
39218 | */) | |
39219 | ;; | |
39220 | *) | |
39221 | curDirS=${D}{curDirS}"/" | |
39222 | ;; | |
39223 | esac | |
39224 | # Parse commandline | |
39225 | libsToLink=0 | |
2057db16 | 39226 | while [] ${D}1 []; do |
473276a9 VS |
39227 | case ${D}1 in |
39228 | -ord*) | |
39229 | EXPORT_BY_ORDINALS=1; | |
39230 | ;; | |
39231 | -o*) | |
39232 | shift | |
39233 | outFile=${D}1 | |
39234 | ;; | |
39235 | -i*) | |
39236 | shift | |
39237 | outimpFile=${D}1 | |
39238 | ;; | |
39239 | -d*) | |
39240 | shift | |
39241 | description=${D}1 | |
39242 | ;; | |
39243 | -f*) | |
39244 | shift | |
39245 | CFLAGS=${D}1 | |
39246 | ;; | |
39247 | -c*) | |
39248 | shift | |
39249 | CC=${D}1 | |
39250 | ;; | |
39251 | -h*) | |
39252 | PrintHelp | |
39253 | ;; | |
39254 | -ex*) | |
39255 | shift | |
39256 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
39257 | ;; | |
39258 | -libf*) | |
39259 | shift | |
39260 | library_flags=${D}{library_flags}${D}1" " | |
39261 | ;; | |
39262 | -nocrt*) | |
39263 | CFLAGS="-s" | |
39264 | ;; | |
39265 | -nolxl*) | |
39266 | flag_USE_LXLITE=0 | |
39267 | ;; | |
39268 | -* | /*) | |
39269 | case ${D}1 in | |
39270 | -L* | -l*) | |
39271 | libsToLink=1 | |
39272 | ;; | |
39273 | *) | |
39274 | ;; | |
39275 | esac | |
39276 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
39277 | ;; | |
39278 | *) | |
39279 | found=0; | |
2057db16 | 39280 | if [] ${D}libsToLink -ne 0 []; then |
473276a9 VS |
39281 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
39282 | else | |
39283 | for file in ${D}1 ; do | |
2057db16 | 39284 | if [] -f ${D}file []; then |
473276a9 VS |
39285 | inputFiles="${D}{inputFiles} ${D}file" |
39286 | found=1 | |
39287 | fi | |
39288 | done | |
2057db16 | 39289 | if [] ${D}found -eq 0 []; then |
473276a9 VS |
39290 | echo "ERROR: No file(s) found: "${D}1 |
39291 | exit 8 | |
39292 | fi | |
39293 | fi | |
39294 | ;; | |
39295 | esac | |
39296 | shift | |
39297 | done # iterate cmdline words | |
39298 | ||
39299 | # | |
2057db16 | 39300 | if [] -z "${D}inputFiles" []; then |
473276a9 VS |
39301 | echo "dllar: no input files" |
39302 | PrintHelp | |
39303 | fi | |
39304 | ||
39305 | # Now extract all .o files from .a files | |
39306 | newInputFiles="" | |
39307 | for file in ${D}inputFiles ; do | |
39308 | case ${D}file in | |
39309 | *.a | *.lib) | |
39310 | case ${D}file in | |
39311 | *.a) | |
39312 | suffix=".a" | |
39313 | AR="ar" | |
39314 | ;; | |
39315 | *.lib) | |
39316 | suffix=".lib" | |
39317 | AR="emxomfar" | |
39318 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
39319 | ;; | |
39320 | *) | |
39321 | ;; | |
39322 | esac | |
39323 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
39324 | mkdir ${D}dirname | |
2057db16 | 39325 | if [] ${D}? -ne 0 []; then |
473276a9 VS |
39326 | echo "Failed to create subdirectory ./${D}dirname" |
39327 | CleanUp | |
39328 | exit 8; | |
39329 | fi | |
39330 | # Append '!' to indicate archive | |
39331 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
39332 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
39333 | cd ${D}curDir | |
39334 | found=0; | |
39335 | for subfile in ${D}dirname/*.o* ; do | |
2057db16 | 39336 | if [] -f ${D}subfile []; then |
473276a9 | 39337 | found=1 |
2057db16 | 39338 | if [] -s ${D}subfile []; then |
473276a9 VS |
39339 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
39340 | newInputFiles="${D}newInputFiles ${D}subfile" | |
39341 | fi | |
39342 | fi | |
39343 | done | |
2057db16 | 39344 | if [] ${D}found -eq 0 []; then |
473276a9 VS |
39345 | echo "WARNING: there are no files in archive \'${D}file\'" |
39346 | fi | |
39347 | ;; | |
39348 | *) | |
39349 | newInputFiles="${D}{newInputFiles} ${D}file" | |
39350 | ;; | |
39351 | esac | |
39352 | done | |
39353 | inputFiles="${D}newInputFiles" | |
39354 | ||
39355 | # Output filename(s). | |
39356 | do_backup=0; | |
2057db16 | 39357 | if [] -z ${D}outFile []; then |
473276a9 VS |
39358 | do_backup=1; |
39359 | set outFile ${D}inputFiles; outFile=${D}2 | |
39360 | fi | |
39361 | ||
39362 | # If it is an archive, remove the '!' and the '_%' suffixes | |
39363 | case ${D}outFile in | |
39364 | *_%!) | |
39365 | outFile=\`basnam ${D}outFile _%!\` | |
39366 | ;; | |
39367 | *) | |
39368 | ;; | |
39369 | esac | |
39370 | case ${D}outFile in | |
39371 | *.dll) | |
39372 | outFile=\`basnam ${D}outFile .dll\` | |
39373 | ;; | |
39374 | *.DLL) | |
39375 | outFile=\`basnam ${D}outFile .DLL\` | |
39376 | ;; | |
39377 | *.o) | |
39378 | outFile=\`basnam ${D}outFile .o\` | |
39379 | ;; | |
39380 | *.obj) | |
39381 | outFile=\`basnam ${D}outFile .obj\` | |
39382 | ;; | |
39383 | *.a) | |
39384 | outFile=\`basnam ${D}outFile .a\` | |
39385 | ;; | |
39386 | *.lib) | |
39387 | outFile=\`basnam ${D}outFile .lib\` | |
39388 | ;; | |
39389 | *) | |
39390 | ;; | |
39391 | esac | |
39392 | case ${D}outimpFile in | |
39393 | *.a) | |
39394 | outimpFile=\`basnam ${D}outimpFile .a\` | |
39395 | ;; | |
39396 | *.lib) | |
39397 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
39398 | ;; | |
39399 | *) | |
39400 | ;; | |
39401 | esac | |
2057db16 | 39402 | if [] -z ${D}outimpFile []; then |
473276a9 VS |
39403 | outimpFile=${D}outFile |
39404 | fi | |
39405 | defFile="${D}{outFile}.def" | |
39406 | arcFile="${D}{outimpFile}.a" | |
39407 | arcFile2="${D}{outimpFile}.lib" | |
39408 | dllFile="${D}outFile" | |
39409 | # Add suffix to dllFile later, first we need a version to use as | |
39410 | # name in .def file. | |
39411 | ||
2057db16 VS |
39412 | if [] ${D}do_backup -ne 0 [] ; then |
39413 | if [] -f ${D}arcFile [] ; then | |
473276a9 VS |
39414 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
39415 | fi | |
2057db16 | 39416 | if [] -f ${D}arcFile2 [] ; then |
473276a9 VS |
39417 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
39418 | fi | |
39419 | fi | |
39420 | ||
39421 | # Extract public symbols from all the object files. | |
39422 | tmpdefFile=${D}{defFile}_% | |
39423 | rm -f ${D}tmpdefFile | |
39424 | for file in ${D}inputFiles ; do | |
39425 | case ${D}file in | |
39426 | *!) | |
39427 | ;; | |
39428 | *) | |
39429 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
39430 | ;; | |
39431 | esac | |
39432 | done | |
39433 | ||
39434 | # Create the def file. | |
39435 | rm -f ${D}defFile | |
39436 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
39437 | dllFile="${D}dllFile.dll" | |
2057db16 | 39438 | if [] -n ${D}description []; then |
473276a9 VS |
39439 | echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile |
39440 | fi | |
39441 | echo "EXPORTS" >> ${D}defFile | |
39442 | ||
39443 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
39444 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
39445 | ||
39446 | # Checks if the export is ok or not. | |
39447 | for word in ${D}exclude_symbols; do | |
39448 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
39449 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
39450 | done | |
39451 | ||
39452 | ||
2057db16 | 39453 | if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then |
473276a9 VS |
39454 | sed "=" < ${D}tmpdefFile | \ |
39455 | sed ' | |
39456 | N | |
39457 | : loop | |
2057db16 | 39458 | s/^\([]0-9[]\+\)\([]^;[]*\)\(;.*\)\?/\2 @\1 NONAME/ |
473276a9 VS |
39459 | t loop |
39460 | ' > ${D}{tmpdefFile}% | |
39461 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
39462 | else | |
39463 | rm -f ${D}{tmpdefFile}% | |
39464 | fi | |
39465 | cat ${D}tmpdefFile >> ${D}defFile | |
39466 | rm -f ${D}tmpdefFile | |
39467 | ||
39468 | # Do linking, create implib, and apply lxlite. | |
39469 | gccCmdl=""; | |
39470 | for file in ${D}inputFiles ; do | |
39471 | case ${D}file in | |
39472 | *!) | |
39473 | ;; | |
39474 | *) | |
39475 | gccCmdl="${D}gccCmdl ${D}file" | |
39476 | ;; | |
39477 | esac | |
39478 | done | |
39479 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
39480 | touch "${D}{outFile}.dll" | |
39481 | ||
39482 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
2057db16 | 39483 | if [] ${D}flag_USE_LXLITE -ne 0 []; then |
473276a9 | 39484 | add_flags=""; |
2057db16 | 39485 | if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then |
473276a9 VS |
39486 | add_flags="-ynd" |
39487 | fi | |
39488 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
39489 | fi | |
39490 | doCommand "emxomf -s -l ${D}arcFile" | |
39491 | ||
39492 | # Successful exit. | |
39493 | CleanUp 1 | |
39494 | exit 0 | |
39495 | EOF | |
39496 | ||
39497 | chmod +x dllar.sh | |
a848cd7e SC |
39498 | ;; |
39499 | ||
39500 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
39501 | *-*-sunos4* | \ | |
39502 | *-*-osf* | \ | |
39503 | *-*-dgux5* | \ | |
39504 | *-*-sysv5* ) | |
39505 | ;; | |
39506 | ||
39507 | *) | |
39508 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
39509 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
39510 | { (exit 1); exit 1; }; } | |
39511 | esac | |
39512 | ||
2057db16 VS |
39513 | if test "x$PIC_FLAG" != "x" ; then |
39514 | PIC_FLAG="$PIC_FLAG -DPIC" | |
39515 | fi | |
39516 | ||
a848cd7e SC |
39517 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
39518 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
39519 | fi | |
39520 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
39521 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
39522 | fi | |
39523 | ||
39524 | ||
39525 | ||
39526 | ||
39527 | ||
39528 | ||
39529 | ||
39530 | ||
39531 | USE_SOVERSION=0 | |
39532 | USE_SOVERLINUX=0 | |
39533 | USE_SOVERSOLARIS=0 | |
39534 | USE_SOSYMLINKS=0 | |
39535 | USE_MACVERSION=0 | |
39536 | SONAME_FLAG= | |
39537 | ||
39538 | case "${BAKEFILE_HOST}" in | |
39539 | *-*-linux* ) | |
39540 | SONAME_FLAG="-Wl,-soname," | |
39541 | USE_SOVERSION=1 | |
39542 | USE_SOVERLINUX=1 | |
39543 | USE_SOSYMLINKS=1 | |
39544 | ;; | |
39545 | ||
39546 | *-*-solaris2* ) | |
39547 | SONAME_FLAG="-h " | |
39548 | USE_SOVERSION=1 | |
39549 | USE_SOVERSOLARIS=1 | |
39550 | USE_SOSYMLINKS=1 | |
39551 | ;; | |
39552 | ||
39553 | *-*-darwin* ) | |
39554 | USE_MACVERSION=1 | |
39555 | USE_SOVERSION=1 | |
39556 | USE_SOSYMLINKS=1 | |
39557 | ;; | |
39558 | esac | |
39559 | ||
39560 | ||
39561 | ||
39562 | ||
39563 | ||
39564 | ||
39565 | ||
39566 | ||
39567 | ||
39568 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 | |
39569 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
39570 | DEPS_TRACKING=0 | |
39571 | ||
39572 | if test "x$GCC" = "xyes"; then | |
39573 | DEPSMODE=gcc | |
39574 | DEPS_TRACKING=1 | |
39575 | case "${BAKEFILE_HOST}" in | |
39576 | powerpc-*-darwin* ) | |
39577 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
39578 | ;; | |
39579 | * ) | |
39580 | DEPSFLAG_GCC="-MMD" | |
39581 | ;; | |
39582 | esac | |
39583 | echo "$as_me:$LINENO: result: gcc" >&5 | |
39584 | echo "${ECHO_T}gcc" >&6 | |
39585 | else | |
39586 | echo "$as_me:$LINENO: result: none" >&5 | |
39587 | echo "${ECHO_T}none" >&6 | |
39588 | fi | |
39589 | ||
39590 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
39591 | |
39592 | D='$' | |
39593 | cat <<EOF >bk-deps | |
a848cd7e SC |
39594 | #!/bin/sh |
39595 | ||
39596 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
39597 | # script. It is used to track C/C++ files dependencies in portable way. | |
39598 | # | |
39599 | # Permission is given to use this file in any way. | |
39600 | ||
473276a9 | 39601 | DEPSMODE=${DEPSMODE} |
a848cd7e | 39602 | DEPSDIR=.deps |
473276a9 | 39603 | DEPSFLAG_GCC="${DEPSFLAG_GCC}" |
a848cd7e | 39604 | |
473276a9 | 39605 | mkdir -p ${D}DEPSDIR |
a848cd7e | 39606 | |
473276a9 VS |
39607 | if test ${D}DEPSMODE = gcc ; then |
39608 | ${D}* ${D}{DEPSFLAG_GCC} | |
39609 | status=${D}? | |
39610 | if test ${D}{status} != 0 ; then | |
39611 | exit ${D}{status} | |
a848cd7e SC |
39612 | fi |
39613 | # move created file to the location we want it in: | |
473276a9 VS |
39614 | while test ${D}# -gt 0; do |
39615 | case "${D}1" in | |
a848cd7e SC |
39616 | -o ) |
39617 | shift | |
473276a9 | 39618 | objfile=${D}1 |
a848cd7e SC |
39619 | ;; |
39620 | -* ) | |
39621 | ;; | |
39622 | * ) | |
473276a9 | 39623 | srcfile=${D}1 |
a848cd7e SC |
39624 | ;; |
39625 | esac | |
39626 | shift | |
39627 | done | |
473276a9 VS |
39628 | depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\` |
39629 | depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\` | |
39630 | if test -f ${D}depfile ; then | |
39631 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
39632 | rm -f ${D}depfile | |
a848cd7e | 39633 | else |
473276a9 VS |
39634 | depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\` |
39635 | if test -f ${D}depfile ; then | |
39636 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
39637 | rm -f ${D}depfile | |
a848cd7e SC |
39638 | fi |
39639 | fi | |
39640 | exit 0 | |
39641 | else | |
473276a9 VS |
39642 | ${D}* |
39643 | exit ${D}? | |
a848cd7e SC |
39644 | fi |
39645 | EOF | |
473276a9 | 39646 | |
a848cd7e SC |
39647 | chmod +x bk-deps |
39648 | fi | |
39649 | ||
39650 | ||
39651 | ||
39652 | ||
39653 | RESCOMP= | |
39654 | SETFILE= | |
39655 | ||
39656 | case ${BAKEFILE_HOST} in | |
39657 | *-*-cygwin* | *-*-mingw32* ) | |
39658 | if test "$build" != "$host" ; then | |
39659 | RESCOMP=$host_alias-windres | |
39660 | else | |
39661 | # Extract the first word of "windres", so it can be a program name with args. | |
39662 | set dummy windres; ac_word=$2 | |
39663 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39664 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39665 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
39666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39667 | else | |
39668 | if test -n "$RESCOMP"; then | |
39669 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
39670 | else | |
39671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39672 | for as_dir in $PATH | |
39673 | do | |
39674 | IFS=$as_save_IFS | |
39675 | test -z "$as_dir" && as_dir=. | |
39676 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39677 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39678 | ac_cv_prog_RESCOMP="windres" | |
39679 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39680 | break 2 | |
39681 | fi | |
39682 | done | |
39683 | done | |
39684 | ||
39685 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" | |
39686 | fi | |
39687 | fi | |
39688 | RESCOMP=$ac_cv_prog_RESCOMP | |
39689 | if test -n "$RESCOMP"; then | |
39690 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
39691 | echo "${ECHO_T}$RESCOMP" >&6 | |
39692 | else | |
39693 | echo "$as_me:$LINENO: result: no" >&5 | |
39694 | echo "${ECHO_T}no" >&6 | |
39695 | fi | |
39696 | ||
39697 | fi | |
39698 | ;; | |
39699 | ||
39700 | *-*-darwin* ) | |
39701 | # Extract the first word of "Rez", so it can be a program name with args. | |
39702 | set dummy Rez; ac_word=$2 | |
39703 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39704 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39705 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
39706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39707 | else | |
39708 | if test -n "$RESCOMP"; then | |
39709 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
39710 | else | |
39711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39712 | for as_dir in $PATH | |
39713 | do | |
39714 | IFS=$as_save_IFS | |
39715 | test -z "$as_dir" && as_dir=. | |
39716 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39717 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39718 | ac_cv_prog_RESCOMP="Rez" | |
39719 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39720 | break 2 | |
39721 | fi | |
39722 | done | |
39723 | done | |
39724 | ||
39725 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
39726 | fi | |
39727 | fi | |
39728 | RESCOMP=$ac_cv_prog_RESCOMP | |
39729 | if test -n "$RESCOMP"; then | |
39730 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
39731 | echo "${ECHO_T}$RESCOMP" >&6 | |
39732 | else | |
39733 | echo "$as_me:$LINENO: result: no" >&5 | |
39734 | echo "${ECHO_T}no" >&6 | |
39735 | fi | |
39736 | ||
39737 | # Extract the first word of "SetFile", so it can be a program name with args. | |
39738 | set dummy SetFile; ac_word=$2 | |
39739 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39740 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39741 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
39742 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39743 | else | |
39744 | if test -n "$SETFILE"; then | |
39745 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
39746 | else | |
39747 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39748 | for as_dir in $PATH | |
39749 | do | |
39750 | IFS=$as_save_IFS | |
39751 | test -z "$as_dir" && as_dir=. | |
39752 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39753 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39754 | ac_cv_prog_SETFILE="SetFile" | |
39755 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39756 | break 2 | |
39757 | fi | |
39758 | done | |
39759 | done | |
39760 | ||
39761 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
39762 | fi | |
39763 | fi | |
39764 | SETFILE=$ac_cv_prog_SETFILE | |
39765 | if test -n "$SETFILE"; then | |
39766 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
39767 | echo "${ECHO_T}$SETFILE" >&6 | |
39768 | else | |
39769 | echo "$as_me:$LINENO: result: no" >&5 | |
39770 | echo "${ECHO_T}no" >&6 | |
39771 | fi | |
39772 | ||
39773 | ;; | |
39774 | esac | |
39775 | ||
39776 | ||
39777 | ||
39778 | ||
39779 | ||
2057db16 | 39780 | BAKEFILE_BAKEFILE_M4_VERSION="0.1.4" |
a848cd7e | 39781 | |
dcc1b6ad | 39782 | |
ceec2216 | 39783 | |
f7e98dee RN |
39784 | |
39785 | ||
9f45f08e | 39786 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4" |
a848cd7e | 39787 | |
646b6ec1 | 39788 | |
74b84332 | 39789 | |
a848cd7e SC |
39790 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
39791 | if test "${enable_precomp_headers+set}" = set; then | |
39792 | enableval="$enable_precomp_headers" | |
39793 | bk_use_pch="$enableval" | |
39794 | fi; | |
39795 | ||
39796 | GCC_PCH=0 | |
39797 | ||
39798 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
39799 | if test "x$GCC" = "xyes"; then | |
39800 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
39801 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
39802 | cat >conftest.$ac_ext <<_ACEOF | |
39803 | /* confdefs.h. */ | |
39804 | _ACEOF | |
39805 | cat confdefs.h >>conftest.$ac_ext | |
39806 | cat >>conftest.$ac_ext <<_ACEOF | |
39807 | /* end confdefs.h. */ | |
39808 | ||
39809 | int | |
39810 | main () | |
39811 | { | |
39812 | ||
39813 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
39814 | #error "no pch support" | |
39815 | #endif | |
39816 | #if (__GNUC__ < 3) | |
39817 | #error "no pch support" | |
39818 | #endif | |
39819 | #if (__GNUC__ == 3) && \ | |
39820 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
39821 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
39822 | #error "no pch support" | |
39823 | #endif | |
39824 | ||
39825 | ; | |
39826 | return 0; | |
39827 | } | |
39828 | _ACEOF | |
39829 | rm -f conftest.$ac_objext | |
39830 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39831 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39832 | ac_status=$? |
ac1cb8d3 VS |
39833 | grep -v '^ *+' conftest.er1 >conftest.err |
39834 | rm -f conftest.er1 | |
39835 | cat conftest.err >&5 | |
a848cd7e SC |
39836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39837 | (exit $ac_status); } && | |
c228d3a4 RN |
39838 | { ac_try='test -z "$ac_c_werror_flag" |
39839 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39841 | (eval $ac_try) 2>&5 | |
39842 | ac_status=$? | |
39843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39844 | (exit $ac_status); }; } && | |
39845 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39847 | (eval $ac_try) 2>&5 | |
39848 | ac_status=$? | |
39849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39850 | (exit $ac_status); }; }; then | |
39851 | ||
39852 | echo "$as_me:$LINENO: result: yes" >&5 | |
39853 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
39854 | GCC_PCH=1 |
39855 | ||
39856 | else | |
39857 | echo "$as_me: failed program was:" >&5 | |
39858 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39859 | ||
39860 | ||
39861 | echo "$as_me:$LINENO: result: no" >&5 | |
39862 | echo "${ECHO_T}no" >&6 | |
39863 | ||
39864 | fi | |
ac1cb8d3 | 39865 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39866 | if test $GCC_PCH = 1 ; then |
39867 | cat <<EOF >bk-make-pch | |
39868 | #!/bin/sh | |
39869 | ||
39870 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
39871 | # script. It is used to generated precompiled headers. | |
39872 | # | |
39873 | # Permission is given to use this file in any way. | |
39874 | ||
39875 | outfile="\${1}" | |
39876 | header="\${2}" | |
39877 | shift | |
39878 | shift | |
39879 | ||
39880 | compiler= | |
39881 | headerfile= | |
39882 | while test \${#} -gt 0; do | |
39883 | case "\${1}" in | |
39884 | -I* ) | |
39885 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
39886 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
39887 | headerfile="\${incdir}/\${header}" | |
39888 | fi | |
39889 | ;; | |
39890 | esac | |
39891 | compiler="\${compiler} \${1}" | |
39892 | shift | |
39893 | done | |
39894 | ||
39895 | if test "x\${headerfile}" = "x" ; then | |
39896 | echo "error: can't find header \${header} in include paths" >2 | |
39897 | else | |
39898 | if test -f \${outfile} ; then | |
39899 | rm -f \${outfile} | |
39900 | else | |
39901 | mkdir -p \`dirname \${outfile}\` | |
39902 | fi | |
39903 | depsfile=".deps/\`basename \${outfile}\`.d" | |
39904 | mkdir -p .deps | |
39905 | # can do this because gcc is >= 3.4: | |
39906 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
39907 | exit \${?} | |
39908 | fi | |
39909 | EOF | |
39910 | chmod +x bk-make-pch | |
39911 | fi | |
39912 | fi | |
39913 | fi | |
39914 | ||
39915 | ||
39916 | ||
39917 | ||
39918 | ||
dcc1b6ad VS |
39919 | |
39920 | ||
39921 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. | |
39922 | if test "${enable_precomp_headers+set}" = set; then | |
39923 | enableval="$enable_precomp_headers" | |
39924 | bk_use_pch="$enableval" | |
39925 | fi; | |
39926 | ||
39927 | GCC_PCH=0 | |
39928 | ||
39929 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
39930 | if test "x$GCC" = "xyes"; then | |
39931 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
39932 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
39933 | cat >conftest.$ac_ext <<_ACEOF | |
39934 | /* confdefs.h. */ | |
39935 | _ACEOF | |
39936 | cat confdefs.h >>conftest.$ac_ext | |
39937 | cat >>conftest.$ac_ext <<_ACEOF | |
39938 | /* end confdefs.h. */ | |
39939 | ||
39940 | int | |
39941 | main () | |
39942 | { | |
39943 | ||
39944 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
39945 | #error "no pch support" | |
39946 | #endif | |
39947 | #if (__GNUC__ < 3) | |
39948 | #error "no pch support" | |
39949 | #endif | |
39950 | #if (__GNUC__ == 3) && \ | |
39951 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
39952 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
39953 | #error "no pch support" | |
39954 | #endif | |
39955 | ||
39956 | ; | |
39957 | return 0; | |
39958 | } | |
39959 | _ACEOF | |
39960 | rm -f conftest.$ac_objext | |
39961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39962 | (eval $ac_compile) 2>conftest.er1 |
dcc1b6ad | 39963 | ac_status=$? |
ac1cb8d3 VS |
39964 | grep -v '^ *+' conftest.er1 >conftest.err |
39965 | rm -f conftest.er1 | |
39966 | cat conftest.err >&5 | |
dcc1b6ad VS |
39967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39968 | (exit $ac_status); } && | |
c228d3a4 RN |
39969 | { ac_try='test -z "$ac_c_werror_flag" |
39970 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39972 | (eval $ac_try) 2>&5 | |
39973 | ac_status=$? | |
39974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39975 | (exit $ac_status); }; } && | |
39976 | { ac_try='test -s conftest.$ac_objext' | |
dcc1b6ad VS |
39977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39978 | (eval $ac_try) 2>&5 | |
39979 | ac_status=$? | |
39980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39981 | (exit $ac_status); }; }; then | |
39982 | ||
39983 | echo "$as_me:$LINENO: result: yes" >&5 | |
39984 | echo "${ECHO_T}yes" >&6 | |
dcc1b6ad VS |
39985 | GCC_PCH=1 |
39986 | ||
39987 | else | |
39988 | echo "$as_me: failed program was:" >&5 | |
39989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39990 | ||
39991 | ||
39992 | echo "$as_me:$LINENO: result: no" >&5 | |
39993 | echo "${ECHO_T}no" >&6 | |
39994 | ||
39995 | fi | |
ac1cb8d3 | 39996 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
dcc1b6ad VS |
39997 | if test $GCC_PCH = 1 ; then |
39998 | cat <<EOF >bk-make-pch | |
39999 | #!/bin/sh | |
40000 | ||
40001 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
40002 | # script. It is used to generated precompiled headers. | |
40003 | # | |
40004 | # Permission is given to use this file in any way. | |
40005 | ||
40006 | outfile="\${1}" | |
40007 | header="\${2}" | |
40008 | shift | |
40009 | shift | |
40010 | ||
40011 | compiler= | |
40012 | headerfile= | |
40013 | while test \${#} -gt 0; do | |
40014 | case "\${1}" in | |
40015 | -I* ) | |
40016 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
40017 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
40018 | headerfile="\${incdir}/\${header}" | |
40019 | fi | |
40020 | ;; | |
40021 | esac | |
40022 | compiler="\${compiler} \${1}" | |
40023 | shift | |
40024 | done | |
40025 | ||
40026 | if test "x\${headerfile}" = "x" ; then | |
40027 | echo "error: can't find header \${header} in include paths" >2 | |
40028 | else | |
40029 | if test -f \${outfile} ; then | |
40030 | rm -f \${outfile} | |
40031 | else | |
40032 | mkdir -p \`dirname \${outfile}\` | |
40033 | fi | |
40034 | depsfile=".deps/\`basename \${outfile}\`.d" | |
40035 | mkdir -p .deps | |
40036 | # can do this because gcc is >= 3.4: | |
40037 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
40038 | exit \${?} | |
40039 | fi | |
40040 | EOF | |
40041 | chmod +x bk-make-pch | |
40042 | fi | |
40043 | fi | |
40044 | fi | |
40045 | ||
40046 | ||
40047 | ||
a848cd7e SC |
40048 | COND_BUILD_DEBUG="#" |
40049 | if test "x$BUILD" = "xdebug" ; then | |
40050 | COND_BUILD_DEBUG="" | |
40051 | fi | |
40052 | ||
40053 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
40054 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
40055 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
40056 | fi | |
40057 | ||
40058 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
40059 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40060 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
40061 | fi | |
40062 | ||
40063 | COND_BUILD_DEBUG_UNICODE_0="#" | |
40064 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
40065 | COND_BUILD_DEBUG_UNICODE_0="" | |
40066 | fi | |
40067 | ||
40068 | COND_BUILD_DEBUG_UNICODE_1="#" | |
40069 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
40070 | COND_BUILD_DEBUG_UNICODE_1="" | |
40071 | fi | |
40072 | ||
40073 | COND_BUILD_RELEASE="#" | |
40074 | if test "x$BUILD" = "xrelease" ; then | |
40075 | COND_BUILD_RELEASE="" | |
40076 | fi | |
40077 | ||
40078 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
40079 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40080 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
40081 | fi | |
40082 | ||
40083 | COND_BUILD_RELEASE_UNICODE_0="#" | |
40084 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
40085 | COND_BUILD_RELEASE_UNICODE_0="" | |
40086 | fi | |
40087 | ||
40088 | COND_BUILD_RELEASE_UNICODE_1="#" | |
40089 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
40090 | COND_BUILD_RELEASE_UNICODE_1="" | |
40091 | fi | |
40092 | ||
40093 | COND_DEBUG_FLAG_1="#" | |
40094 | if test "x$DEBUG_FLAG" = "x1" ; then | |
40095 | COND_DEBUG_FLAG_1="" | |
40096 | fi | |
40097 | ||
40098 | COND_DEBUG_INFO_0="#" | |
40099 | if test "x$DEBUG_INFO" = "x0" ; then | |
40100 | COND_DEBUG_INFO_0="" | |
40101 | fi | |
40102 | ||
40103 | COND_DEBUG_INFO_1="#" | |
40104 | if test "x$DEBUG_INFO" = "x1" ; then | |
40105 | COND_DEBUG_INFO_1="" | |
40106 | fi | |
40107 | ||
40108 | COND_DEPS_TRACKING_0="#" | |
40109 | if test "x$DEPS_TRACKING" = "x0" ; then | |
40110 | COND_DEPS_TRACKING_0="" | |
40111 | fi | |
40112 | ||
40113 | COND_DEPS_TRACKING_1="#" | |
40114 | if test "x$DEPS_TRACKING" = "x1" ; then | |
40115 | COND_DEPS_TRACKING_1="" | |
40116 | fi | |
40117 | ||
40118 | COND_GCC_PCH_1="#" | |
40119 | if test "x$GCC_PCH" = "x1" ; then | |
40120 | COND_GCC_PCH_1="" | |
40121 | fi | |
40122 | ||
40123 | COND_MONOLITHIC_0="#" | |
40124 | if test "x$MONOLITHIC" = "x0" ; then | |
40125 | COND_MONOLITHIC_0="" | |
40126 | fi | |
40127 | ||
40128 | COND_MONOLITHIC_0_SHARED_0="#" | |
40129 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
40130 | COND_MONOLITHIC_0_SHARED_0="" | |
40131 | fi | |
40132 | ||
40133 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
40134 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
40135 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
40136 | fi | |
40137 | ||
40138 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" | |
40139 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40140 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
40141 | fi | |
40142 | ||
40143 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" | |
40144 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
40145 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
40146 | fi | |
40147 | ||
40148 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" | |
40149 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
40150 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
40151 | fi | |
40152 | ||
ceec2216 RL |
40153 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
40154 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
40155 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
40156 | fi | |
40157 | ||
a848cd7e SC |
40158 | COND_MONOLITHIC_0_SHARED_1="#" |
40159 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
40160 | COND_MONOLITHIC_0_SHARED_1="" | |
40161 | fi | |
40162 | ||
40163 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
40164 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40165 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
40166 | fi | |
40167 | ||
40168 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" | |
40169 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40170 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
40171 | fi | |
40172 | ||
40173 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" | |
40174 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
40175 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
40176 | fi | |
40177 | ||
40178 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" | |
40179 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40180 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
40181 | fi | |
40182 | ||
ceec2216 RL |
40183 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
40184 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
40185 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
40186 | fi | |
40187 | ||
a848cd7e SC |
40188 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
40189 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
40190 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
40191 | fi | |
40192 | ||
40193 | COND_MONOLITHIC_1="#" | |
40194 | if test "x$MONOLITHIC" = "x1" ; then | |
40195 | COND_MONOLITHIC_1="" | |
40196 | fi | |
40197 | ||
40198 | COND_MONOLITHIC_1_SHARED_0="#" | |
40199 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
40200 | COND_MONOLITHIC_1_SHARED_0="" | |
40201 | fi | |
40202 | ||
40203 | COND_MONOLITHIC_1_SHARED_1="#" | |
40204 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
40205 | COND_MONOLITHIC_1_SHARED_1="" | |
40206 | fi | |
40207 | ||
40208 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
40209 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40210 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
40211 | fi | |
40212 | ||
40213 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
40214 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40215 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
40216 | fi | |
40217 | ||
40218 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
40219 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
40220 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
40221 | fi | |
40222 | ||
40223 | COND_PLATFORM_MACOSX_1="#" | |
40224 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
40225 | COND_PLATFORM_MACOSX_1="" | |
40226 | fi | |
40227 | ||
40228 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" | |
40229 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
40230 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
40231 | fi | |
40232 | ||
40233 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
40234 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
40235 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
40236 | fi | |
40237 | ||
40238 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
40239 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
40240 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
40241 | fi | |
40242 | ||
ebee3cd0 VS |
40243 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
40244 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
40245 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
40246 | fi | |
40247 | ||
40248 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
40249 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
40250 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
40251 | fi | |
40252 | ||
a848cd7e SC |
40253 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
40254 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40255 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
40256 | fi | |
40257 | ||
40258 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
40259 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
40260 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
40261 | fi | |
40262 | ||
40263 | COND_PLATFORM_MAC_1="#" | |
40264 | if test "x$PLATFORM_MAC" = "x1" ; then | |
40265 | COND_PLATFORM_MAC_1="" | |
40266 | fi | |
40267 | ||
40268 | COND_PLATFORM_OS2_1="#" | |
40269 | if test "x$PLATFORM_OS2" = "x1" ; then | |
40270 | COND_PLATFORM_OS2_1="" | |
40271 | fi | |
40272 | ||
40273 | COND_PLATFORM_UNIX_0="#" | |
40274 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
40275 | COND_PLATFORM_UNIX_0="" | |
40276 | fi | |
40277 | ||
40278 | COND_PLATFORM_UNIX_1="#" | |
40279 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
40280 | COND_PLATFORM_UNIX_1="" | |
40281 | fi | |
40282 | ||
40283 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
40284 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40285 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
40286 | fi | |
40287 | ||
40288 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
40289 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
40290 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
40291 | fi | |
40292 | ||
40293 | COND_PLATFORM_WIN32_0="#" | |
40294 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
40295 | COND_PLATFORM_WIN32_0="" | |
40296 | fi | |
40297 | ||
40298 | COND_PLATFORM_WIN32_1="#" | |
40299 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
40300 | COND_PLATFORM_WIN32_1="" | |
40301 | fi | |
40302 | ||
40303 | COND_SHARED_0="#" | |
40304 | if test "x$SHARED" = "x0" ; then | |
40305 | COND_SHARED_0="" | |
40306 | fi | |
40307 | ||
ceec2216 RL |
40308 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
40309 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
40310 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
40311 | fi | |
40312 | ||
40313 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
40314 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
40315 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
40316 | fi | |
40317 | ||
40318 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
40319 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
40320 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
40321 | fi | |
40322 | ||
a848cd7e SC |
40323 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
40324 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40325 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
40326 | fi | |
40327 | ||
40328 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40329 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40330 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40331 | fi | |
40332 | ||
40333 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40334 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40335 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40336 | fi | |
40337 | ||
40338 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40339 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40340 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40341 | fi | |
40342 | ||
40343 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
40344 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40345 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
40346 | fi | |
40347 | ||
40348 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
40349 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40350 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
40351 | fi | |
40352 | ||
40353 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
40354 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40355 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
40356 | fi | |
40357 | ||
40358 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
40359 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40360 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
40361 | fi | |
40362 | ||
40363 | COND_SHARED_1="#" | |
40364 | if test "x$SHARED" = "x1" ; then | |
40365 | COND_SHARED_1="" | |
40366 | fi | |
40367 | ||
40368 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
40369 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40370 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
40371 | fi | |
40372 | ||
40373 | COND_TOOLKIT_COCOA="#" | |
40374 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
40375 | COND_TOOLKIT_COCOA="" | |
40376 | fi | |
40377 | ||
40378 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" | |
40379 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40380 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
40381 | fi | |
40382 | ||
40383 | COND_TOOLKIT_GTK="#" | |
40384 | if test "x$TOOLKIT" = "xGTK" ; then | |
40385 | COND_TOOLKIT_GTK="" | |
40386 | fi | |
40387 | ||
40388 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
40389 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
40390 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
40391 | fi | |
40392 | ||
40393 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
40394 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40395 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
40396 | fi | |
40397 | ||
40398 | COND_TOOLKIT_MAC="#" | |
40399 | if test "x$TOOLKIT" = "xMAC" ; then | |
40400 | COND_TOOLKIT_MAC="" | |
40401 | fi | |
40402 | ||
40403 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
40404 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
40405 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
40406 | fi | |
40407 | ||
40408 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
40409 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40410 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
40411 | fi | |
40412 | ||
40413 | COND_TOOLKIT_MGL="#" | |
40414 | if test "x$TOOLKIT" = "xMGL" ; then | |
40415 | COND_TOOLKIT_MGL="" | |
40416 | fi | |
40417 | ||
40418 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
40419 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
40420 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
40421 | fi | |
40422 | ||
40423 | COND_TOOLKIT_MOTIF="#" | |
40424 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
40425 | COND_TOOLKIT_MOTIF="" | |
40426 | fi | |
40427 | ||
40428 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
40429 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
40430 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
40431 | fi | |
40432 | ||
40433 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
40434 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40435 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
40436 | fi | |
40437 | ||
40438 | COND_TOOLKIT_MSW="#" | |
40439 | if test "x$TOOLKIT" = "xMSW" ; then | |
40440 | COND_TOOLKIT_MSW="" | |
40441 | fi | |
40442 | ||
40443 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
40444 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
40445 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
40446 | fi | |
40447 | ||
40448 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
40449 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40450 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
40451 | fi | |
40452 | ||
40453 | COND_TOOLKIT_PM="#" | |
40454 | if test "x$TOOLKIT" = "xPM" ; then | |
40455 | COND_TOOLKIT_PM="" | |
40456 | fi | |
40457 | ||
40458 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
40459 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
40460 | COND_TOOLKIT_PM_USE_GUI_1="" | |
40461 | fi | |
40462 | ||
40463 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
40464 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40465 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
40466 | fi | |
40467 | ||
3fd9c298 DE |
40468 | COND_TOOLKIT_WINCE="#" |
40469 | if test "x$TOOLKIT" = "xWINCE" ; then | |
40470 | COND_TOOLKIT_WINCE="" | |
40471 | fi | |
40472 | ||
40473 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
40474 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
40475 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
40476 | fi | |
40477 | ||
40478 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
40479 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40480 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
40481 | fi | |
40482 | ||
a848cd7e SC |
40483 | COND_TOOLKIT_X11="#" |
40484 | if test "x$TOOLKIT" = "xX11" ; then | |
40485 | COND_TOOLKIT_X11="" | |
40486 | fi | |
40487 | ||
40488 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
40489 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
40490 | COND_TOOLKIT_X11_USE_GUI_1="" | |
40491 | fi | |
40492 | ||
40493 | COND_UNICODE_1="#" | |
40494 | if test "x$UNICODE" = "x1" ; then | |
40495 | COND_UNICODE_1="" | |
40496 | fi | |
40497 | ||
40498 | COND_USE_EXCEPTIONS_0="#" | |
40499 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
40500 | COND_USE_EXCEPTIONS_0="" | |
40501 | fi | |
40502 | ||
40503 | COND_USE_EXCEPTIONS_1="#" | |
40504 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
40505 | COND_USE_EXCEPTIONS_1="" | |
40506 | fi | |
40507 | ||
40508 | COND_USE_GUI_0="#" | |
40509 | if test "x$USE_GUI" = "x0" ; then | |
40510 | COND_USE_GUI_0="" | |
40511 | fi | |
40512 | ||
40513 | COND_USE_GUI_1="#" | |
40514 | if test "x$USE_GUI" = "x1" ; then | |
40515 | COND_USE_GUI_1="" | |
40516 | fi | |
40517 | ||
40518 | COND_USE_GUI_1_WXUNIV_0="#" | |
40519 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40520 | COND_USE_GUI_1_WXUNIV_0="" | |
40521 | fi | |
40522 | ||
40523 | COND_USE_GUI_1_WXUNIV_1="#" | |
40524 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
40525 | COND_USE_GUI_1_WXUNIV_1="" | |
40526 | fi | |
40527 | ||
40528 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40529 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40530 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40531 | fi | |
40532 | ||
40533 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40534 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40535 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40536 | fi | |
40537 | ||
40538 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40539 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40540 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40541 | fi | |
40542 | ||
ceec2216 RL |
40543 | COND_USE_ODBC_1="#" |
40544 | if test "x$USE_ODBC" = "x1" ; then | |
40545 | COND_USE_ODBC_1="" | |
40546 | fi | |
40547 | ||
a848cd7e SC |
40548 | COND_USE_PLUGINS_0="#" |
40549 | if test "x$USE_PLUGINS" = "x0" ; then | |
40550 | COND_USE_PLUGINS_0="" | |
40551 | fi | |
40552 | ||
40553 | COND_USE_SOSYMLINKS_1="#" | |
40554 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
40555 | COND_USE_SOSYMLINKS_1="" | |
40556 | fi | |
40557 | ||
40558 | COND_USE_SOVERLINUX_1="#" | |
40559 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
40560 | COND_USE_SOVERLINUX_1="" | |
40561 | fi | |
40562 | ||
40563 | COND_USE_SOVERSION_0="#" | |
40564 | if test "x$USE_SOVERSION" = "x0" ; then | |
40565 | COND_USE_SOVERSION_0="" | |
40566 | fi | |
40567 | ||
40568 | COND_USE_SOVERSOLARIS_1="#" | |
40569 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
40570 | COND_USE_SOVERSOLARIS_1="" | |
40571 | fi | |
40572 | ||
a13a7f89 RL |
40573 | COND_USE_XRC_1="#" |
40574 | if test "x$USE_XRC" = "x1" ; then | |
40575 | COND_USE_XRC_1="" | |
40576 | fi | |
40577 | ||
a848cd7e SC |
40578 | COND_WITH_PLUGIN_SDL_1="#" |
40579 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
40580 | COND_WITH_PLUGIN_SDL_1="" | |
40581 | fi | |
40582 | ||
a848cd7e SC |
40583 | COND_WXUNIV_1="#" |
40584 | if test "x$WXUNIV" = "x1" ; then | |
40585 | COND_WXUNIV_1="" | |
40586 | fi | |
40587 | ||
40588 | COND_WXUSE_EXPAT_BUILTIN="#" | |
40589 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40590 | COND_WXUSE_EXPAT_BUILTIN="" | |
40591 | fi | |
40592 | ||
40593 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
40594 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40595 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
40596 | fi | |
40597 | ||
40598 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
40599 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40600 | COND_WXUSE_LIBPNG_BUILTIN="" | |
40601 | fi | |
40602 | ||
40603 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
40604 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40605 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
40606 | fi | |
40607 | ||
40608 | COND_WXUSE_ODBC_BUILTIN="#" | |
40609 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40610 | COND_WXUSE_ODBC_BUILTIN="" | |
40611 | fi | |
40612 | ||
40613 | COND_WXUSE_REGEX_BUILTIN="#" | |
40614 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40615 | COND_WXUSE_REGEX_BUILTIN="" | |
40616 | fi | |
40617 | ||
40618 | COND_WXUSE_ZLIB_BUILTIN="#" | |
40619 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40620 | COND_WXUSE_ZLIB_BUILTIN="" | |
40621 | fi | |
40622 | ||
dcc1b6ad VS |
40623 | COND_BUILD_DEBUG="#" |
40624 | if test "x$BUILD" = "xdebug" ; then | |
40625 | COND_BUILD_DEBUG="" | |
40626 | fi | |
40627 | ||
40628 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
40629 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
40630 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
40631 | fi | |
40632 | ||
40633 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
40634 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40635 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
40636 | fi | |
40637 | ||
40638 | COND_BUILD_DEBUG_UNICODE_0="#" | |
40639 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
40640 | COND_BUILD_DEBUG_UNICODE_0="" | |
40641 | fi | |
40642 | ||
40643 | COND_BUILD_DEBUG_UNICODE_1="#" | |
40644 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
40645 | COND_BUILD_DEBUG_UNICODE_1="" | |
40646 | fi | |
40647 | ||
40648 | COND_BUILD_RELEASE="#" | |
40649 | if test "x$BUILD" = "xrelease" ; then | |
40650 | COND_BUILD_RELEASE="" | |
40651 | fi | |
40652 | ||
40653 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
40654 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40655 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
40656 | fi | |
40657 | ||
40658 | COND_BUILD_RELEASE_UNICODE_0="#" | |
40659 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
40660 | COND_BUILD_RELEASE_UNICODE_0="" | |
40661 | fi | |
40662 | ||
40663 | COND_BUILD_RELEASE_UNICODE_1="#" | |
40664 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
40665 | COND_BUILD_RELEASE_UNICODE_1="" | |
40666 | fi | |
40667 | ||
40668 | COND_DEBUG_FLAG_1="#" | |
40669 | if test "x$DEBUG_FLAG" = "x1" ; then | |
40670 | COND_DEBUG_FLAG_1="" | |
40671 | fi | |
40672 | ||
40673 | COND_DEBUG_INFO_0="#" | |
40674 | if test "x$DEBUG_INFO" = "x0" ; then | |
40675 | COND_DEBUG_INFO_0="" | |
40676 | fi | |
40677 | ||
40678 | COND_DEBUG_INFO_1="#" | |
40679 | if test "x$DEBUG_INFO" = "x1" ; then | |
40680 | COND_DEBUG_INFO_1="" | |
40681 | fi | |
40682 | ||
40683 | COND_DEPS_TRACKING_0="#" | |
40684 | if test "x$DEPS_TRACKING" = "x0" ; then | |
40685 | COND_DEPS_TRACKING_0="" | |
40686 | fi | |
40687 | ||
40688 | COND_DEPS_TRACKING_1="#" | |
40689 | if test "x$DEPS_TRACKING" = "x1" ; then | |
40690 | COND_DEPS_TRACKING_1="" | |
40691 | fi | |
40692 | ||
40693 | COND_GCC_PCH_1="#" | |
40694 | if test "x$GCC_PCH" = "x1" ; then | |
40695 | COND_GCC_PCH_1="" | |
40696 | fi | |
40697 | ||
40698 | COND_MONOLITHIC_0="#" | |
40699 | if test "x$MONOLITHIC" = "x0" ; then | |
40700 | COND_MONOLITHIC_0="" | |
40701 | fi | |
40702 | ||
40703 | COND_MONOLITHIC_0_SHARED_0="#" | |
40704 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
40705 | COND_MONOLITHIC_0_SHARED_0="" | |
40706 | fi | |
40707 | ||
40708 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
40709 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
40710 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
40711 | fi | |
40712 | ||
40713 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" | |
40714 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40715 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
40716 | fi | |
40717 | ||
40718 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" | |
40719 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
40720 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
40721 | fi | |
40722 | ||
40723 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" | |
40724 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
40725 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
40726 | fi | |
40727 | ||
9a8f0513 VS |
40728 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
40729 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
40730 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
40731 | fi | |
40732 | ||
dcc1b6ad VS |
40733 | COND_MONOLITHIC_0_SHARED_1="#" |
40734 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
40735 | COND_MONOLITHIC_0_SHARED_1="" | |
40736 | fi | |
40737 | ||
40738 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
40739 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40740 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
40741 | fi | |
40742 | ||
40743 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" | |
40744 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40745 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
40746 | fi | |
40747 | ||
40748 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" | |
40749 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
40750 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
40751 | fi | |
40752 | ||
40753 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" | |
40754 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40755 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
40756 | fi | |
40757 | ||
9a8f0513 VS |
40758 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
40759 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
40760 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
40761 | fi | |
40762 | ||
dcc1b6ad VS |
40763 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
40764 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
40765 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
40766 | fi | |
40767 | ||
40768 | COND_MONOLITHIC_1="#" | |
40769 | if test "x$MONOLITHIC" = "x1" ; then | |
40770 | COND_MONOLITHIC_1="" | |
40771 | fi | |
40772 | ||
40773 | COND_MONOLITHIC_1_SHARED_0="#" | |
40774 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
40775 | COND_MONOLITHIC_1_SHARED_0="" | |
40776 | fi | |
40777 | ||
40778 | COND_MONOLITHIC_1_SHARED_1="#" | |
40779 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
40780 | COND_MONOLITHIC_1_SHARED_1="" | |
40781 | fi | |
40782 | ||
40783 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
40784 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40785 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
40786 | fi | |
40787 | ||
40788 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
40789 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40790 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
40791 | fi | |
40792 | ||
40793 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
40794 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
40795 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
40796 | fi | |
40797 | ||
40798 | COND_PLATFORM_MACOSX_1="#" | |
40799 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
40800 | COND_PLATFORM_MACOSX_1="" | |
40801 | fi | |
40802 | ||
40803 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" | |
40804 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
40805 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
40806 | fi | |
40807 | ||
40808 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
40809 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
40810 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
40811 | fi | |
40812 | ||
40813 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
40814 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
40815 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
40816 | fi | |
40817 | ||
9a8f0513 VS |
40818 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
40819 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
40820 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
40821 | fi | |
40822 | ||
40823 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
40824 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
40825 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
40826 | fi | |
40827 | ||
dcc1b6ad VS |
40828 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
40829 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40830 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
40831 | fi | |
40832 | ||
40833 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
40834 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
40835 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
40836 | fi | |
40837 | ||
40838 | COND_PLATFORM_MAC_1="#" | |
40839 | if test "x$PLATFORM_MAC" = "x1" ; then | |
40840 | COND_PLATFORM_MAC_1="" | |
40841 | fi | |
40842 | ||
40843 | COND_PLATFORM_OS2_1="#" | |
40844 | if test "x$PLATFORM_OS2" = "x1" ; then | |
40845 | COND_PLATFORM_OS2_1="" | |
40846 | fi | |
40847 | ||
40848 | COND_PLATFORM_UNIX_0="#" | |
40849 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
40850 | COND_PLATFORM_UNIX_0="" | |
40851 | fi | |
40852 | ||
40853 | COND_PLATFORM_UNIX_1="#" | |
40854 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
40855 | COND_PLATFORM_UNIX_1="" | |
40856 | fi | |
40857 | ||
40858 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
40859 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40860 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
40861 | fi | |
40862 | ||
40863 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
40864 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
40865 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
40866 | fi | |
40867 | ||
40868 | COND_PLATFORM_WIN32_0="#" | |
40869 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
40870 | COND_PLATFORM_WIN32_0="" | |
40871 | fi | |
40872 | ||
40873 | COND_PLATFORM_WIN32_1="#" | |
40874 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
40875 | COND_PLATFORM_WIN32_1="" | |
40876 | fi | |
40877 | ||
40878 | COND_SHARED_0="#" | |
40879 | if test "x$SHARED" = "x0" ; then | |
40880 | COND_SHARED_0="" | |
40881 | fi | |
40882 | ||
40883 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" | |
40884 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40885 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
40886 | fi | |
40887 | ||
40888 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40889 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40890 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40891 | fi | |
40892 | ||
40893 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40894 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40895 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40896 | fi | |
40897 | ||
40898 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40899 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40900 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40901 | fi | |
40902 | ||
40903 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
40904 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40905 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
40906 | fi | |
40907 | ||
40908 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
40909 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40910 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
40911 | fi | |
40912 | ||
40913 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
40914 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40915 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
40916 | fi | |
40917 | ||
40918 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
40919 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40920 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
40921 | fi | |
40922 | ||
40923 | COND_SHARED_1="#" | |
40924 | if test "x$SHARED" = "x1" ; then | |
40925 | COND_SHARED_1="" | |
40926 | fi | |
40927 | ||
40928 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
40929 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40930 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
40931 | fi | |
40932 | ||
40933 | COND_TOOLKIT_COCOA="#" | |
40934 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
40935 | COND_TOOLKIT_COCOA="" | |
40936 | fi | |
40937 | ||
40938 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" | |
40939 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40940 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
40941 | fi | |
40942 | ||
40943 | COND_TOOLKIT_GTK="#" | |
40944 | if test "x$TOOLKIT" = "xGTK" ; then | |
40945 | COND_TOOLKIT_GTK="" | |
40946 | fi | |
40947 | ||
40948 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
40949 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
40950 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
40951 | fi | |
40952 | ||
40953 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
40954 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40955 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
40956 | fi | |
40957 | ||
40958 | COND_TOOLKIT_MAC="#" | |
40959 | if test "x$TOOLKIT" = "xMAC" ; then | |
40960 | COND_TOOLKIT_MAC="" | |
40961 | fi | |
40962 | ||
40963 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
40964 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
40965 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
40966 | fi | |
40967 | ||
40968 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
40969 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40970 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
40971 | fi | |
40972 | ||
9a8f0513 VS |
40973 | COND_TOOLKIT_MAC_WXUNIV_0="#" |
40974 | if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
40975 | COND_TOOLKIT_MAC_WXUNIV_0="" | |
40976 | fi | |
40977 | ||
dcc1b6ad VS |
40978 | COND_TOOLKIT_MGL="#" |
40979 | if test "x$TOOLKIT" = "xMGL" ; then | |
40980 | COND_TOOLKIT_MGL="" | |
40981 | fi | |
40982 | ||
40983 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
40984 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
40985 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
40986 | fi | |
40987 | ||
40988 | COND_TOOLKIT_MOTIF="#" | |
40989 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
40990 | COND_TOOLKIT_MOTIF="" | |
40991 | fi | |
40992 | ||
40993 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
40994 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
40995 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
40996 | fi | |
40997 | ||
40998 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
40999 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41000 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
41001 | fi | |
41002 | ||
41003 | COND_TOOLKIT_MSW="#" | |
41004 | if test "x$TOOLKIT" = "xMSW" ; then | |
41005 | COND_TOOLKIT_MSW="" | |
41006 | fi | |
41007 | ||
41008 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
41009 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
41010 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
41011 | fi | |
41012 | ||
41013 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
41014 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41015 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
41016 | fi | |
41017 | ||
9a8f0513 VS |
41018 | COND_TOOLKIT_MSW_WXUNIV_0="#" |
41019 | if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
41020 | COND_TOOLKIT_MSW_WXUNIV_0="" | |
41021 | fi | |
41022 | ||
dcc1b6ad VS |
41023 | COND_TOOLKIT_PM="#" |
41024 | if test "x$TOOLKIT" = "xPM" ; then | |
41025 | COND_TOOLKIT_PM="" | |
41026 | fi | |
41027 | ||
41028 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
41029 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
41030 | COND_TOOLKIT_PM_USE_GUI_1="" | |
41031 | fi | |
41032 | ||
41033 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
41034 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41035 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
41036 | fi | |
41037 | ||
9a8f0513 VS |
41038 | COND_TOOLKIT_PM_WXUNIV_0="#" |
41039 | if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
41040 | COND_TOOLKIT_PM_WXUNIV_0="" | |
41041 | fi | |
41042 | ||
dcc1b6ad VS |
41043 | COND_TOOLKIT_WINCE="#" |
41044 | if test "x$TOOLKIT" = "xWINCE" ; then | |
41045 | COND_TOOLKIT_WINCE="" | |
41046 | fi | |
41047 | ||
41048 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
41049 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
41050 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
41051 | fi | |
41052 | ||
41053 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
41054 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41055 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
41056 | fi | |
41057 | ||
41058 | COND_TOOLKIT_X11="#" | |
41059 | if test "x$TOOLKIT" = "xX11" ; then | |
41060 | COND_TOOLKIT_X11="" | |
41061 | fi | |
41062 | ||
41063 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
41064 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
41065 | COND_TOOLKIT_X11_USE_GUI_1="" | |
41066 | fi | |
41067 | ||
41068 | COND_UNICODE_1="#" | |
41069 | if test "x$UNICODE" = "x1" ; then | |
41070 | COND_UNICODE_1="" | |
41071 | fi | |
41072 | ||
41073 | COND_USE_EXCEPTIONS_0="#" | |
41074 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
41075 | COND_USE_EXCEPTIONS_0="" | |
41076 | fi | |
41077 | ||
41078 | COND_USE_EXCEPTIONS_1="#" | |
41079 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
41080 | COND_USE_EXCEPTIONS_1="" | |
41081 | fi | |
41082 | ||
41083 | COND_USE_GUI_0="#" | |
41084 | if test "x$USE_GUI" = "x0" ; then | |
41085 | COND_USE_GUI_0="" | |
41086 | fi | |
41087 | ||
41088 | COND_USE_GUI_1="#" | |
41089 | if test "x$USE_GUI" = "x1" ; then | |
41090 | COND_USE_GUI_1="" | |
41091 | fi | |
41092 | ||
41093 | COND_USE_GUI_1_WXUNIV_0="#" | |
41094 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41095 | COND_USE_GUI_1_WXUNIV_0="" | |
41096 | fi | |
41097 | ||
41098 | COND_USE_GUI_1_WXUNIV_1="#" | |
41099 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
41100 | COND_USE_GUI_1_WXUNIV_1="" | |
41101 | fi | |
41102 | ||
41103 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
41104 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
41105 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
41106 | fi | |
41107 | ||
41108 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
41109 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
41110 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
41111 | fi | |
41112 | ||
41113 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
41114 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
41115 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
41116 | fi | |
41117 | ||
41118 | COND_USE_ODBC_1="#" | |
41119 | if test "x$USE_ODBC" = "x1" ; then | |
41120 | COND_USE_ODBC_1="" | |
41121 | fi | |
41122 | ||
41123 | COND_USE_PLUGINS_0="#" | |
41124 | if test "x$USE_PLUGINS" = "x0" ; then | |
41125 | COND_USE_PLUGINS_0="" | |
41126 | fi | |
41127 | ||
41128 | COND_USE_SOSYMLINKS_1="#" | |
41129 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
41130 | COND_USE_SOSYMLINKS_1="" | |
41131 | fi | |
41132 | ||
41133 | COND_USE_SOVERLINUX_1="#" | |
41134 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
41135 | COND_USE_SOVERLINUX_1="" | |
41136 | fi | |
41137 | ||
41138 | COND_USE_SOVERSION_0="#" | |
41139 | if test "x$USE_SOVERSION" = "x0" ; then | |
41140 | COND_USE_SOVERSION_0="" | |
41141 | fi | |
41142 | ||
41143 | COND_USE_SOVERSOLARIS_1="#" | |
41144 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
41145 | COND_USE_SOVERSOLARIS_1="" | |
41146 | fi | |
41147 | ||
41148 | COND_WITH_PLUGIN_SDL_1="#" | |
41149 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
41150 | COND_WITH_PLUGIN_SDL_1="" | |
41151 | fi | |
41152 | ||
41153 | COND_WXUNIV_1="#" | |
41154 | if test "x$WXUNIV" = "x1" ; then | |
41155 | COND_WXUNIV_1="" | |
41156 | fi | |
41157 | ||
41158 | COND_WXUSE_EXPAT_BUILTIN="#" | |
41159 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
41160 | COND_WXUSE_EXPAT_BUILTIN="" | |
41161 | fi | |
41162 | ||
41163 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
41164 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
41165 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
41166 | fi | |
41167 | ||
41168 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
41169 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
41170 | COND_WXUSE_LIBPNG_BUILTIN="" | |
41171 | fi | |
41172 | ||
41173 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
41174 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
41175 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
41176 | fi | |
41177 | ||
41178 | COND_WXUSE_ODBC_BUILTIN="#" | |
41179 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
41180 | COND_WXUSE_ODBC_BUILTIN="" | |
41181 | fi | |
41182 | ||
41183 | COND_WXUSE_REGEX_BUILTIN="#" | |
41184 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
41185 | COND_WXUSE_REGEX_BUILTIN="" | |
41186 | fi | |
41187 | ||
41188 | COND_WXUSE_ZLIB_BUILTIN="#" | |
41189 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
41190 | COND_WXUSE_ZLIB_BUILTIN="" | |
41191 | fi | |
41192 | ||
a848cd7e SC |
41193 | |
41194 | ||
2057db16 VS |
41195 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
41196 | { { 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 | |
41197 | 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;} | |
41198 | { (exit 1); exit 1; }; } | |
41199 | fi | |
41200 | ||
a848cd7e | 41201 | |
ceec2216 RL |
41202 | if test "$wxUSE_SHARED" = "yes"; then |
41203 | ||
41204 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
41205 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
41206 | ||
41207 | else | |
41208 | ||
41209 | EXE_LINKER="$CXX -o" | |
41210 | ||
41211 | fi | |
a848cd7e | 41212 | |
74b84332 | 41213 | GCC_PRAGMA_FLAGS="" |
a848cd7e | 41214 | if test $GCC_PCH = 1 ; then |
74b84332 | 41215 | GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA" |
a848cd7e SC |
41216 | else |
41217 | case "${host}" in | |
41218 | powerpc-*-darwin* ) | |
74b84332 | 41219 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
a848cd7e | 41220 | ;; |
bea8e651 | 41221 | *-*-mingw32* ) |
1f344abf VS |
41222 | if test "$wxUSE_STL" = "yes" -o \ |
41223 | "$wxUSE_NO_EXCEPTIONS" != "yes" -o \ | |
41224 | "$wxUSE_NO_RTTI" != "yes"; then | |
41225 | echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5 | |
41226 | echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
bea8e651 MB |
41227 | cat >conftest.$ac_ext <<_ACEOF |
41228 | /* confdefs.h. */ | |
41229 | _ACEOF | |
41230 | cat confdefs.h >>conftest.$ac_ext | |
41231 | cat >>conftest.$ac_ext <<_ACEOF | |
41232 | /* end confdefs.h. */ | |
41233 | ||
41234 | int | |
41235 | main () | |
41236 | { | |
1f344abf | 41237 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) |
bea8e651 MB |
41238 | #error "Not GCC 3.2 or greater" |
41239 | #endif | |
41240 | ||
41241 | ; | |
41242 | return 0; | |
41243 | } | |
41244 | _ACEOF | |
41245 | rm -f conftest.$ac_objext | |
41246 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41247 | (eval $ac_compile) 2>conftest.er1 |
bea8e651 | 41248 | ac_status=$? |
ac1cb8d3 VS |
41249 | grep -v '^ *+' conftest.er1 >conftest.err |
41250 | rm -f conftest.er1 | |
41251 | cat conftest.err >&5 | |
bea8e651 MB |
41252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41253 | (exit $ac_status); } && | |
c228d3a4 RN |
41254 | { ac_try='test -z "$ac_c_werror_flag" |
41255 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41257 | (eval $ac_try) 2>&5 | |
41258 | ac_status=$? | |
41259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41260 | (exit $ac_status); }; } && | |
41261 | { ac_try='test -s conftest.$ac_objext' | |
bea8e651 MB |
41262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41263 | (eval $ac_try) 2>&5 | |
41264 | ac_status=$? | |
41265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41266 | (exit $ac_status); }; }; then | |
74b84332 | 41267 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
bea8e651 MB |
41268 | echo "$as_me:$LINENO: result: yes" >&5 |
41269 | echo "${ECHO_T}yes" >&6 | |
41270 | else | |
41271 | echo "$as_me: failed program was:" >&5 | |
41272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41273 | ||
41274 | echo "$as_me:$LINENO: result: no" >&5 | |
41275 | echo "${ECHO_T}no" >&6 | |
41276 | fi | |
ac1cb8d3 | 41277 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bea8e651 MB |
41278 | fi |
41279 | ;; | |
a848cd7e SC |
41280 | esac |
41281 | fi | |
74b84332 | 41282 | CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS" |
a848cd7e SC |
41283 | |
41284 | ||
41285 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
41286 | ||
41287 | ||
41288 | ||
41289 | ||
41290 | ||
41291 | ||
41292 | ||
41293 | ||
41294 | ||
41295 | ||
41296 | ||
41297 | ||
41298 | ||
41299 | ||
41300 | ||
41301 | ||
41302 | ||
41303 | ||
41304 | ||
41305 | ||
41306 | ||
41307 | ||
41308 | ||
41309 | ||
41310 | ||
41311 | ||
41312 | ||
41313 | ||
41314 | ||
41315 | ||
41316 | ||
41317 | ||
41318 | ||
41319 | ||
41320 | ||
41321 | ||
41322 | ||
41323 | ||
41324 | ||
41325 | ||
41326 | ||
41327 | ||
a848cd7e SC |
41328 | |
41329 | ||
41330 | ||
41331 | ||
41332 | ||
41333 | ||
41334 | ||
41335 | ||
41336 | ||
41337 | ||
41338 | ||
41339 | ||
41340 | ||
41341 | ||
41342 | ||
41343 | ||
41344 | ||
41345 | ||
74b84332 | 41346 | |
a848cd7e SC |
41347 | |
41348 | ||
41349 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
41350 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 41351 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
41352 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
41353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41354 | else | |
41355 | cat >conftest.make <<\_ACEOF | |
41356 | all: | |
41357 | @echo 'ac_maketemp="$(MAKE)"' | |
41358 | _ACEOF | |
41359 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
41360 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
41361 | if test -n "$ac_maketemp"; then | |
41362 | eval ac_cv_prog_make_${ac_make}_set=yes | |
41363 | else | |
41364 | eval ac_cv_prog_make_${ac_make}_set=no | |
41365 | fi | |
41366 | rm -f conftest.make | |
41367 | fi | |
41368 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
41369 | echo "$as_me:$LINENO: result: yes" >&5 | |
41370 | echo "${ECHO_T}yes" >&6 | |
41371 | SET_MAKE= | |
41372 | else | |
41373 | echo "$as_me:$LINENO: result: no" >&5 | |
41374 | echo "${ECHO_T}no" >&6 | |
41375 | SET_MAKE="MAKE=${MAKE-make}" | |
41376 | fi | |
41377 | ||
41378 | ||
a848cd7e | 41379 | |
ceec2216 RL |
41380 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
41381 | ||
a848cd7e | 41382 | |
ceec2216 | 41383 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 41384 | |
a848cd7e | 41385 | |
ceec2216 | 41386 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 41387 | |
ceec2216 RL |
41388 | |
41389 | ac_config_files="$ac_config_files version-script Makefile" | |
41390 | ||
41391 | ||
41392 | ac_config_commands="$ac_config_commands wx-config | |
41393 | " | |
a848cd7e SC |
41394 | |
41395 | ||
9103d280 RL |
41396 | |
41397 | ||
a848cd7e SC |
41398 | if test "$wxUSE_GUI" = "yes"; then |
41399 | SUBDIRS="samples demos utils contrib" | |
41400 | else SUBDIRS="samples utils" | |
41401 | fi | |
41402 | ||
41403 | ||
41404 | ||
41405 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
41406 | if test "${with_cppunit_prefix+set}" = set; then | |
41407 | withval="$with_cppunit_prefix" | |
41408 | cppunit_config_prefix="$withval" | |
41409 | else | |
41410 | cppunit_config_prefix="" | |
41411 | fi; | |
41412 | ||
41413 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
41414 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
41415 | withval="$with_cppunit_exec_prefix" | |
41416 | cppunit_config_exec_prefix="$withval" | |
41417 | else | |
41418 | cppunit_config_exec_prefix="" | |
41419 | fi; | |
41420 | ||
41421 | if test x$cppunit_config_exec_prefix != x ; then | |
41422 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
41423 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
41424 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
41425 | fi | |
41426 | fi | |
41427 | if test x$cppunit_config_prefix != x ; then | |
41428 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
41429 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
41430 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
41431 | fi | |
41432 | fi | |
41433 | ||
41434 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
41435 | set dummy cppunit-config; ac_word=$2 | |
41436 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41437 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41438 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
41439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41440 | else | |
41441 | case $CPPUNIT_CONFIG in | |
41442 | [\\/]* | ?:[\\/]*) | |
41443 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
41444 | ;; | |
41445 | *) | |
41446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41447 | for as_dir in $PATH | |
41448 | do | |
41449 | IFS=$as_save_IFS | |
41450 | test -z "$as_dir" && as_dir=. | |
41451 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41452 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41453 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
41454 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41455 | break 2 | |
41456 | fi | |
41457 | done | |
41458 | done | |
41459 | ||
41460 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
41461 | ;; | |
41462 | esac | |
41463 | fi | |
41464 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
41465 | ||
41466 | if test -n "$CPPUNIT_CONFIG"; then | |
41467 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
41468 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
41469 | else | |
41470 | echo "$as_me:$LINENO: result: no" >&5 | |
41471 | echo "${ECHO_T}no" >&6 | |
41472 | fi | |
41473 | ||
41474 | cppunit_version_min=1.8.0 | |
41475 | ||
41476 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
41477 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
41478 | no_cppunit="" | |
41479 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
41480 | no_cppunit=yes | |
41481 | else | |
41482 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
41483 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
41484 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
41485 | ||
41486 | cppunit_major_version=`echo $cppunit_version | \ | |
41487 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
41488 | cppunit_minor_version=`echo $cppunit_version | \ | |
41489 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
41490 | cppunit_micro_version=`echo $cppunit_version | \ | |
41491 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
41492 | ||
41493 | cppunit_major_min=`echo $cppunit_version_min | \ | |
41494 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
41495 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
41496 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
41497 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
41498 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
41499 | ||
41500 | cppunit_version_proper=`expr \ | |
41501 | $cppunit_major_version \> $cppunit_major_min \| \ | |
41502 | $cppunit_major_version \= $cppunit_major_min \& \ | |
41503 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
41504 | $cppunit_major_version \= $cppunit_major_min \& \ | |
41505 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
41506 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
41507 | ||
41508 | if test "$cppunit_version_proper" = "1" ; then | |
41509 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
41510 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
41511 | else | |
41512 | echo "$as_me:$LINENO: result: no" >&5 | |
41513 | echo "${ECHO_T}no" >&6 | |
41514 | no_cppunit=yes | |
41515 | fi | |
41516 | fi | |
41517 | ||
41518 | if test "x$no_cppunit" = x ; then | |
c2218763 | 41519 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
41520 | else |
41521 | CPPUNIT_CFLAGS="" | |
41522 | CPPUNIT_LIBS="" | |
c2218763 | 41523 | : |
a848cd7e SC |
41524 | fi |
41525 | ||
41526 | ||
41527 | ||
41528 | ||
41529 | ||
41530 | for subdir in `echo $SUBDIRS`; do | |
41531 | if test -d ${srcdir}/${subdir} ; then | |
41532 | if test "$wxUSE_GUI" = "yes"; then | |
41533 | if test ${subdir} = "samples"; then | |
41534 | makefiles="samples/Makefile.in $makefiles" | |
41535 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
41536 | if test -d $srcdir/samples/$sample; then | |
41537 | makefiles="samples/$sample/Makefile.in $makefiles" | |
41538 | fi | |
41539 | done | |
41540 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
41541 | fi | |
41542 | else if test ${subdir} = "samples"; then | |
41543 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
41544 | elif test ${subdir} = "utils"; then | |
41545 | makefiles="utils/HelpGen/Makefile.in \ | |
41546 | utils/HelpGen/src/Makefile.in \ | |
41547 | utils/tex2rtf/Makefile.in \ | |
41548 | utils/tex2rtf/src/Makefile.in" | |
41549 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
41550 | fi | |
41551 | fi | |
41552 | ||
41553 | for mkin in $makefiles ; do | |
41554 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
41555 | ac_config_files="$ac_config_files $mk" | |
41556 | ||
41557 | done | |
41558 | fi | |
41559 | done | |
41560 | ||
41561 | ||
41562 | cat >confcache <<\_ACEOF | |
41563 | # This file is a shell script that caches the results of configure | |
41564 | # tests run on this system so they can be shared between configure | |
41565 | # scripts and configure runs, see configure's option --config-cache. | |
41566 | # It is not useful on other systems. If it contains results you don't | |
41567 | # want to keep, you may remove or edit it. | |
41568 | # | |
41569 | # config.status only pays attention to the cache file if you give it | |
41570 | # the --recheck option to rerun configure. | |
41571 | # | |
41572 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
41573 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
41574 | # following values. | |
41575 | ||
41576 | _ACEOF | |
41577 | ||
41578 | # The following way of writing the cache mishandles newlines in values, | |
41579 | # but we know of no workaround that is simple, portable, and efficient. | |
41580 | # So, don't put newlines in cache variables' values. | |
41581 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
41582 | # and sets the high bit in the cache file unless we assign to the vars. | |
41583 | { | |
41584 | (set) 2>&1 | | |
41585 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
41586 | *ac_space=\ *) | |
41587 | # `set' does not quote correctly, so add quotes (double-quote | |
41588 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
41589 | sed -n \ | |
ac1cb8d3 VS |
41590 | "s/'/'\\\\''/g; |
41591 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
41592 | ;; |
41593 | *) | |
41594 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
41595 | sed -n \ | |
ac1cb8d3 | 41596 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
41597 | ;; |
41598 | esac; | |
41599 | } | | |
41600 | sed ' | |
41601 | t clear | |
41602 | : clear | |
41603 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
41604 | t end | |
41605 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
41606 | : end' >>confcache | |
41607 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
41608 | if test -w $cache_file; then | |
41609 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
41610 | cat confcache >$cache_file | |
41611 | else | |
41612 | echo "not updating unwritable cache $cache_file" | |
41613 | fi | |
41614 | fi | |
41615 | rm -f confcache | |
41616 | ||
41617 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
41618 | # Let make expand exec_prefix. | |
41619 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
41620 | ||
41621 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
41622 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
41623 | # trailing colons and then remove the whole line if VPATH becomes empty | |
41624 | # (actually we leave an empty line to preserve line numbers). | |
41625 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 41626 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
41627 | s/:*\$(srcdir):*/:/; |
41628 | s/:*\${srcdir}:*/:/; | |
41629 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 41630 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 41631 | s/:*$//; |
ac1cb8d3 | 41632 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
41633 | }' |
41634 | fi | |
41635 | ||
41636 | DEFS=-DHAVE_CONFIG_H | |
41637 | ||
41638 | ac_libobjs= | |
41639 | ac_ltlibobjs= | |
41640 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
41641 | # 1. Remove the extension, and $U if already installed. | |
41642 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 41643 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
41644 | # 2. Add them. |
41645 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
41646 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
41647 | done | |
41648 | LIBOBJS=$ac_libobjs | |
41649 | ||
41650 | LTLIBOBJS=$ac_ltlibobjs | |
41651 | ||
41652 | ||
41653 | ||
41654 | : ${CONFIG_STATUS=./config.status} | |
41655 | ac_clean_files_save=$ac_clean_files | |
41656 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
41657 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
41658 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
41659 | cat >$CONFIG_STATUS <<_ACEOF | |
41660 | #! $SHELL | |
41661 | # Generated by $as_me. | |
41662 | # Run this file to recreate the current configuration. | |
41663 | # Compiler output produced by configure, useful for debugging | |
41664 | # configure, is in config.log if it exists. | |
41665 | ||
41666 | debug=false | |
41667 | ac_cs_recheck=false | |
41668 | ac_cs_silent=false | |
41669 | SHELL=\${CONFIG_SHELL-$SHELL} | |
41670 | _ACEOF | |
41671 | ||
41672 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41673 | ## --------------------- ## | |
41674 | ## M4sh Initialization. ## | |
41675 | ## --------------------- ## | |
41676 | ||
41677 | # Be Bourne compatible | |
41678 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
41679 | emulate sh | |
41680 | NULLCMD=: | |
41681 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
41682 | # is contrary to our usage. Disable this feature. | |
41683 | alias -g '${1+"$@"}'='"$@"' | |
41684 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
41685 | set -o posix | |
41686 | fi | |
ac1cb8d3 | 41687 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
41688 | |
41689 | # Support unset when possible. | |
ac1cb8d3 | 41690 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
41691 | as_unset=unset |
41692 | else | |
41693 | as_unset=false | |
41694 | fi | |
41695 | ||
41696 | ||
41697 | # Work around bugs in pre-3.0 UWIN ksh. | |
41698 | $as_unset ENV MAIL MAILPATH | |
41699 | PS1='$ ' | |
41700 | PS2='> ' | |
41701 | PS4='+ ' | |
41702 | ||
41703 | # NLS nuisances. | |
41704 | for as_var in \ | |
41705 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41706 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
41707 | LC_TELEPHONE LC_TIME | |
41708 | do | |
ac1cb8d3 | 41709 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
41710 | eval $as_var=C; export $as_var |
41711 | else | |
41712 | $as_unset $as_var | |
41713 | fi | |
41714 | done | |
41715 | ||
41716 | # Required to use basename. | |
41717 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
41718 | as_expr=expr | |
41719 | else | |
41720 | as_expr=false | |
41721 | fi | |
41722 | ||
41723 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
41724 | as_basename=basename | |
41725 | else | |
41726 | as_basename=false | |
41727 | fi | |
41728 | ||
41729 | ||
41730 | # Name of the executable. | |
41731 | as_me=`$as_basename "$0" || | |
41732 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
41733 | X"$0" : 'X\(//\)$' \| \ | |
41734 | X"$0" : 'X\(/\)$' \| \ | |
41735 | . : '\(.\)' 2>/dev/null || | |
41736 | echo X/"$0" | | |
41737 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
41738 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
41739 | /^X\/\(\/\).*/{ s//\1/; q; } | |
41740 | s/.*/./; q'` | |
41741 | ||
41742 | ||
41743 | # PATH needs CR, and LINENO needs CR and PATH. | |
41744 | # Avoid depending upon Character Ranges. | |
41745 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
41746 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
41747 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
41748 | as_cr_digits='0123456789' | |
41749 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
41750 | ||
41751 | # The user is always right. | |
41752 | if test "${PATH_SEPARATOR+set}" != set; then | |
41753 | echo "#! /bin/sh" >conf$$.sh | |
41754 | echo "exit 0" >>conf$$.sh | |
41755 | chmod +x conf$$.sh | |
41756 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
41757 | PATH_SEPARATOR=';' | |
41758 | else | |
41759 | PATH_SEPARATOR=: | |
41760 | fi | |
41761 | rm -f conf$$.sh | |
41762 | fi | |
41763 | ||
41764 | ||
41765 | as_lineno_1=$LINENO | |
41766 | as_lineno_2=$LINENO | |
41767 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
41768 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
41769 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
41770 | # Find who we are. Look in the path if we contain no path at all | |
41771 | # relative or not. | |
41772 | case $0 in | |
41773 | *[\\/]* ) as_myself=$0 ;; | |
41774 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41775 | for as_dir in $PATH | |
41776 | do | |
41777 | IFS=$as_save_IFS | |
41778 | test -z "$as_dir" && as_dir=. | |
41779 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
41780 | done | |
41781 | ||
41782 | ;; | |
41783 | esac | |
41784 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
41785 | # in which case we are not to be found in the path. | |
41786 | if test "x$as_myself" = x; then | |
41787 | as_myself=$0 | |
41788 | fi | |
41789 | if test ! -f "$as_myself"; then | |
41790 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
41791 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
41792 | { (exit 1); exit 1; }; } | |
41793 | fi | |
41794 | case $CONFIG_SHELL in | |
41795 | '') | |
41796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41797 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
41798 | do | |
41799 | IFS=$as_save_IFS | |
41800 | test -z "$as_dir" && as_dir=. | |
41801 | for as_base in sh bash ksh sh5; do | |
41802 | case $as_dir in | |
41803 | /*) | |
41804 | if ("$as_dir/$as_base" -c ' | |
41805 | as_lineno_1=$LINENO | |
41806 | as_lineno_2=$LINENO | |
41807 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
41808 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
41809 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
41810 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
41811 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
41812 | CONFIG_SHELL=$as_dir/$as_base | |
41813 | export CONFIG_SHELL | |
41814 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
41815 | fi;; | |
41816 | esac | |
41817 | done | |
41818 | done | |
41819 | ;; | |
41820 | esac | |
41821 | ||
41822 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
41823 | # uniformly replaced by the line number. The first 'sed' inserts a | |
41824 | # line-number line before each line; the second 'sed' does the real | |
41825 | # work. The second script uses 'N' to pair each line-number line | |
41826 | # with the numbered line, and appends trailing '-' during | |
41827 | # substitution so that $LINENO is not a special case at line end. | |
41828 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
41829 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
41830 | sed '=' <$as_myself | | |
41831 | sed ' | |
41832 | N | |
41833 | s,$,-, | |
41834 | : loop | |
41835 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
41836 | t loop | |
41837 | s,-$,, | |
41838 | s,^['$as_cr_digits']*\n,, | |
41839 | ' >$as_me.lineno && | |
41840 | chmod +x $as_me.lineno || | |
41841 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
41842 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
41843 | { (exit 1); exit 1; }; } | |
41844 | ||
41845 | # Don't try to exec as it changes $[0], causing all sort of problems | |
41846 | # (the dirname of $[0] is not the place where we might find the | |
41847 | # original and so on. Autoconf is especially sensible to this). | |
41848 | . ./$as_me.lineno | |
41849 | # Exit status is that of the last command. | |
41850 | exit | |
41851 | } | |
41852 | ||
41853 | ||
41854 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
41855 | *c*,-n*) ECHO_N= ECHO_C=' | |
41856 | ' ECHO_T=' ' ;; | |
41857 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
41858 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
41859 | esac | |
41860 | ||
41861 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
41862 | as_expr=expr | |
41863 | else | |
41864 | as_expr=false | |
41865 | fi | |
41866 | ||
41867 | rm -f conf$$ conf$$.exe conf$$.file | |
41868 | echo >conf$$.file | |
41869 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
41870 | # We could just check for DJGPP; but this test a) works b) is more generic | |
41871 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
41872 | if test -f conf$$.exe; then | |
41873 | # Don't use ln at all; we don't have any links | |
41874 | as_ln_s='cp -p' | |
41875 | else | |
41876 | as_ln_s='ln -s' | |
41877 | fi | |
41878 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
41879 | as_ln_s=ln | |
41880 | else | |
41881 | as_ln_s='cp -p' | |
41882 | fi | |
41883 | rm -f conf$$ conf$$.exe conf$$.file | |
41884 | ||
41885 | if mkdir -p . 2>/dev/null; then | |
41886 | as_mkdir_p=: | |
41887 | else | |
ac1cb8d3 | 41888 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
41889 | as_mkdir_p=false |
41890 | fi | |
41891 | ||
41892 | as_executable_p="test -f" | |
41893 | ||
41894 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 41895 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
41896 | |
41897 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 41898 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
41899 | |
41900 | ||
41901 | # IFS | |
41902 | # We need space, tab and new line, in precisely that order. | |
41903 | as_nl=' | |
41904 | ' | |
41905 | IFS=" $as_nl" | |
41906 | ||
41907 | # CDPATH. | |
41908 | $as_unset CDPATH | |
41909 | ||
41910 | exec 6>&1 | |
41911 | ||
41912 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
41913 | # report actual input values of CONFIG_FILES etc. instead of their | |
41914 | # values after options handling. Logging --version etc. is OK. | |
41915 | exec 5>>config.log | |
41916 | { | |
41917 | echo | |
41918 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
41919 | ## Running $as_me. ## | |
41920 | _ASBOX | |
41921 | } >&5 | |
41922 | cat >&5 <<_CSEOF | |
41923 | ||
7714864e | 41924 | This file was extended by wxWidgets $as_me 2.5.3, which was |
ac1cb8d3 | 41925 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
41926 | |
41927 | CONFIG_FILES = $CONFIG_FILES | |
41928 | CONFIG_HEADERS = $CONFIG_HEADERS | |
41929 | CONFIG_LINKS = $CONFIG_LINKS | |
41930 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
41931 | $ $0 $@ | |
41932 | ||
41933 | _CSEOF | |
41934 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
41935 | echo >&5 | |
41936 | _ACEOF | |
41937 | ||
41938 | # Files that config.status was made for. | |
41939 | if test -n "$ac_config_files"; then | |
41940 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
41941 | fi | |
41942 | ||
41943 | if test -n "$ac_config_headers"; then | |
41944 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
41945 | fi | |
41946 | ||
41947 | if test -n "$ac_config_links"; then | |
41948 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
41949 | fi | |
41950 | ||
41951 | if test -n "$ac_config_commands"; then | |
41952 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
41953 | fi | |
41954 | ||
41955 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41956 | ||
41957 | ac_cs_usage="\ | |
41958 | \`$as_me' instantiates files from templates according to the | |
41959 | current configuration. | |
41960 | ||
41961 | Usage: $0 [OPTIONS] [FILE]... | |
41962 | ||
41963 | -h, --help print this help, then exit | |
41964 | -V, --version print version number, then exit | |
41965 | -q, --quiet do not print progress messages | |
41966 | -d, --debug don't remove temporary files | |
41967 | --recheck update $as_me by reconfiguring in the same conditions | |
41968 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 41969 | instantiate the configuration file FILE |
a848cd7e | 41970 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 41971 | instantiate the configuration header FILE |
a848cd7e SC |
41972 | |
41973 | Configuration files: | |
41974 | $config_files | |
41975 | ||
41976 | Configuration headers: | |
41977 | $config_headers | |
41978 | ||
41979 | Configuration commands: | |
41980 | $config_commands | |
41981 | ||
41982 | Report bugs to <bug-autoconf@gnu.org>." | |
41983 | _ACEOF | |
41984 | ||
41985 | cat >>$CONFIG_STATUS <<_ACEOF | |
41986 | ac_cs_version="\\ | |
7714864e | 41987 | wxWidgets config.status 2.5.3 |
ac1cb8d3 | 41988 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
41989 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
41990 | ||
ac1cb8d3 | 41991 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
41992 | This config.status script is free software; the Free Software Foundation |
41993 | gives unlimited permission to copy, distribute and modify it." | |
41994 | srcdir=$srcdir | |
41995 | INSTALL="$INSTALL" | |
41996 | _ACEOF | |
41997 | ||
41998 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41999 | # If no file are specified by the user, then we need to provide default | |
42000 | # value. By we need to know if files were specified by the user. | |
42001 | ac_need_defaults=: | |
42002 | while test $# != 0 | |
42003 | do | |
42004 | case $1 in | |
42005 | --*=*) | |
42006 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
42007 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
42008 | ac_shift=: | |
42009 | ;; | |
42010 | -*) | |
42011 | ac_option=$1 | |
42012 | ac_optarg=$2 | |
42013 | ac_shift=shift | |
42014 | ;; | |
42015 | *) # This is not an option, so the user has probably given explicit | |
42016 | # arguments. | |
42017 | ac_option=$1 | |
42018 | ac_need_defaults=false;; | |
42019 | esac | |
42020 | ||
42021 | case $ac_option in | |
42022 | # Handling of the options. | |
42023 | _ACEOF | |
42024 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42025 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
42026 | ac_cs_recheck=: ;; | |
42027 | --version | --vers* | -V ) | |
42028 | echo "$ac_cs_version"; exit 0 ;; | |
42029 | --he | --h) | |
42030 | # Conflict between --help and --header | |
42031 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
42032 | Try \`$0 --help' for more information." >&5 | |
42033 | echo "$as_me: error: ambiguous option: $1 | |
42034 | Try \`$0 --help' for more information." >&2;} | |
42035 | { (exit 1); exit 1; }; };; | |
42036 | --help | --hel | -h ) | |
42037 | echo "$ac_cs_usage"; exit 0 ;; | |
42038 | --debug | --d* | -d ) | |
42039 | debug=: ;; | |
42040 | --file | --fil | --fi | --f ) | |
42041 | $ac_shift | |
42042 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
42043 | ac_need_defaults=false;; | |
42044 | --header | --heade | --head | --hea ) | |
42045 | $ac_shift | |
42046 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
42047 | ac_need_defaults=false;; | |
42048 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
42049 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
42050 | ac_cs_silent=: ;; | |
42051 | ||
42052 | # This is an error. | |
42053 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
42054 | Try \`$0 --help' for more information." >&5 | |
42055 | echo "$as_me: error: unrecognized option: $1 | |
42056 | Try \`$0 --help' for more information." >&2;} | |
42057 | { (exit 1); exit 1; }; } ;; | |
42058 | ||
42059 | *) ac_config_targets="$ac_config_targets $1" ;; | |
42060 | ||
42061 | esac | |
42062 | shift | |
42063 | done | |
42064 | ||
42065 | ac_configure_extra_args= | |
42066 | ||
42067 | if $ac_cs_silent; then | |
42068 | exec 6>/dev/null | |
42069 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
42070 | fi | |
42071 | ||
42072 | _ACEOF | |
42073 | cat >>$CONFIG_STATUS <<_ACEOF | |
42074 | if \$ac_cs_recheck; then | |
42075 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
42076 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
42077 | fi | |
42078 | ||
42079 | _ACEOF | |
42080 | ||
42081 | cat >>$CONFIG_STATUS <<_ACEOF | |
42082 | # | |
42083 | # INIT-COMMANDS section. | |
42084 | # | |
42085 | ||
ceec2216 RL |
42086 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
42087 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
42088 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
42089 | LN_S="${LN_S}" | |
a848cd7e SC |
42090 | |
42091 | ||
42092 | _ACEOF | |
42093 | ||
42094 | ||
42095 | ||
42096 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42097 | for ac_config_target in $ac_config_targets | |
42098 | do | |
42099 | case "$ac_config_target" in | |
42100 | # Handling of arguments. | |
ceec2216 RL |
42101 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
42102 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
42103 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
42104 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
42105 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
ceec2216 RL |
42106 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
42107 | "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 |
42108 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
42109 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
42110 | { (exit 1); exit 1; }; };; | |
42111 | esac | |
42112 | done | |
42113 | ||
42114 | # If the user did not use the arguments to specify the items to instantiate, | |
42115 | # then the envvar interface is used. Set only those that are not. | |
42116 | # We use the long form for the default assignment because of an extremely | |
42117 | # bizarre bug on SunOS 4.1.3. | |
42118 | if $ac_need_defaults; then | |
42119 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
42120 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
42121 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
42122 | fi | |
42123 | ||
42124 | # Have a temporary directory for convenience. Make it in the build tree | |
42125 | # simply because there is no reason to put it here, and in addition, | |
42126 | # creating and moving files from /tmp can sometimes cause problems. | |
42127 | # Create a temporary directory, and hook for its removal unless debugging. | |
42128 | $debug || | |
42129 | { | |
42130 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
42131 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
42132 | } | |
42133 | ||
42134 | # Create a (secure) tmp directory for tmp files. | |
42135 | ||
42136 | { | |
42137 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
42138 | test -n "$tmp" && test -d "$tmp" | |
42139 | } || | |
42140 | { | |
42141 | tmp=./confstat$$-$RANDOM | |
42142 | (umask 077 && mkdir $tmp) | |
42143 | } || | |
42144 | { | |
42145 | echo "$me: cannot create a temporary directory in ." >&2 | |
42146 | { (exit 1); exit 1; } | |
42147 | } | |
42148 | ||
42149 | _ACEOF | |
42150 | ||
42151 | cat >>$CONFIG_STATUS <<_ACEOF | |
42152 | ||
42153 | # | |
42154 | # CONFIG_FILES section. | |
42155 | # | |
42156 | ||
42157 | # No need to generate the scripts if there are no CONFIG_FILES. | |
42158 | # This happens for instance when ./config.status config.h | |
42159 | if test -n "\$CONFIG_FILES"; then | |
42160 | # Protect against being on the right side of a sed subst in config.status. | |
42161 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
42162 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
42163 | s,@SHELL@,$SHELL,;t t | |
42164 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
42165 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
42166 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
42167 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
42168 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
42169 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
42170 | s,@exec_prefix@,$exec_prefix,;t t | |
42171 | s,@prefix@,$prefix,;t t | |
42172 | s,@program_transform_name@,$program_transform_name,;t t | |
42173 | s,@bindir@,$bindir,;t t | |
42174 | s,@sbindir@,$sbindir,;t t | |
42175 | s,@libexecdir@,$libexecdir,;t t | |
42176 | s,@datadir@,$datadir,;t t | |
42177 | s,@sysconfdir@,$sysconfdir,;t t | |
42178 | s,@sharedstatedir@,$sharedstatedir,;t t | |
42179 | s,@localstatedir@,$localstatedir,;t t | |
42180 | s,@libdir@,$libdir,;t t | |
42181 | s,@includedir@,$includedir,;t t | |
42182 | s,@oldincludedir@,$oldincludedir,;t t | |
42183 | s,@infodir@,$infodir,;t t | |
42184 | s,@mandir@,$mandir,;t t | |
42185 | s,@build_alias@,$build_alias,;t t | |
42186 | s,@host_alias@,$host_alias,;t t | |
42187 | s,@target_alias@,$target_alias,;t t | |
42188 | s,@DEFS@,$DEFS,;t t | |
42189 | s,@ECHO_C@,$ECHO_C,;t t | |
42190 | s,@ECHO_N@,$ECHO_N,;t t | |
42191 | s,@ECHO_T@,$ECHO_T,;t t | |
42192 | s,@LIBS@,$LIBS,;t t | |
42193 | s,@build@,$build,;t t | |
42194 | s,@build_cpu@,$build_cpu,;t t | |
42195 | s,@build_vendor@,$build_vendor,;t t | |
42196 | s,@build_os@,$build_os,;t t | |
42197 | s,@host@,$host,;t t | |
42198 | s,@host_cpu@,$host_cpu,;t t | |
42199 | s,@host_vendor@,$host_vendor,;t t | |
42200 | s,@host_os@,$host_os,;t t | |
42201 | s,@target@,$target,;t t | |
42202 | s,@target_cpu@,$target_cpu,;t t | |
42203 | s,@target_vendor@,$target_vendor,;t t | |
42204 | s,@target_os@,$target_os,;t t | |
42205 | s,@CC@,$CC,;t t | |
42206 | s,@CFLAGS@,$CFLAGS,;t t | |
42207 | s,@LDFLAGS@,$LDFLAGS,;t t | |
42208 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
42209 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
42210 | s,@EXEEXT@,$EXEEXT,;t t | |
42211 | s,@OBJEXT@,$OBJEXT,;t t | |
42212 | s,@CPP@,$CPP,;t t | |
42213 | s,@EGREP@,$EGREP,;t t | |
42214 | s,@CXX@,$CXX,;t t | |
42215 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
42216 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
42217 | s,@RANLIB@,$RANLIB,;t t | |
42218 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
42219 | s,@AR@,$AR,;t t | |
42220 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
42221 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
42222 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
42223 | s,@STRIP@,$STRIP,;t t | |
42224 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
42225 | s,@LN_S@,$LN_S,;t t | |
42226 | s,@CXXCPP@,$CXXCPP,;t t | |
42227 | s,@subdirs@,$subdirs,;t t | |
42228 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
42229 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
42230 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
42231 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
42232 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t | |
42233 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
42234 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
42235 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
42236 | s,@X_LIBS@,$X_LIBS,;t t | |
42237 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
42238 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
42239 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
42240 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t | |
42241 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
42242 | s,@RESCOMP@,$RESCOMP,;t t | |
42243 | s,@DEREZ@,$DEREZ,;t t | |
42244 | s,@SETFILE@,$SETFILE,;t t | |
42245 | s,@LIBICONV@,$LIBICONV,;t t | |
42246 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
42247 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
42248 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
42249 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
42250 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t | |
42251 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
42252 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
42253 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
42254 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
42255 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
42256 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
42257 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
42258 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
42259 | s,@VENDOR@,$VENDOR,;t t | |
42260 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
42261 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
42262 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
42263 | s,@WXUNIV@,$WXUNIV,;t t |
42264 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
42265 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
42266 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
42267 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
42268 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
42269 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
42270 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
42271 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
42272 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
42273 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
42274 | s,@UNICODE@,$UNICODE,;t t | |
42275 | s,@BUILD@,$BUILD,;t t | |
42276 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
42277 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
42278 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
42279 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
42280 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
42281 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
42282 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
42283 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
42284 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
42285 | s,@SET_MAKE@,$SET_MAKE,;t t | |
42286 | s,@MAKE_SET@,$MAKE_SET,;t t | |
42287 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
42288 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
42289 | s,@NM@,$NM,;t t | |
42290 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
42291 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
42292 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
42293 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
42294 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
42295 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
42296 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
42297 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t | |
42298 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
42299 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t | |
42300 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
42301 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
42302 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
42303 | s,@LIBEXT@,$LIBEXT,;t t | |
42304 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
42305 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
42306 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t | |
42307 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
42308 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
42309 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
42310 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
42311 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
42312 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
42313 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
42314 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
42315 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
42316 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
42317 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
42318 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
42319 | s,@GCC_PCH@,$GCC_PCH,;t t | |
42320 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
42321 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
42322 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
42323 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
42324 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
42325 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
42326 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
42327 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
42328 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
42329 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
42330 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
42331 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
42332 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
42333 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
42334 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
42335 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
42336 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
42337 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
42338 | 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 | |
42339 | s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t | |
42340 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t | |
ceec2216 | 42341 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
42342 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
42343 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
42344 | 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 | |
42345 | s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t | |
42346 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t | |
ceec2216 | 42347 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
a848cd7e SC |
42348 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
42349 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
42350 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
42351 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
42352 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
42353 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
42354 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t | |
42355 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
42356 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t | |
42357 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
42358 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
ebee3cd0 VS |
42359 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
42360 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
42361 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
42362 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
42363 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t | |
42364 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t | |
42365 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
42366 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
42367 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
42368 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
42369 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
42370 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
42371 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
ceec2216 RL |
42372 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
42373 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
42374 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
42375 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
42376 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
42377 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
42378 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
42379 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t | |
42380 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
42381 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
42382 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
42383 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
42384 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
42385 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t | |
42386 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t | |
42387 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
42388 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
42389 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t | |
42390 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t | |
42391 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
42392 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
42393 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
42394 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
42395 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
42396 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
42397 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
42398 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
42399 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
42400 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
42401 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t | |
42402 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
42403 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
42404 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
42405 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
42406 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e SC |
42407 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
42408 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
42409 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
42410 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
42411 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
42412 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
42413 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
42414 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
42415 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
42416 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
42417 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
42418 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
ceec2216 | 42419 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
a848cd7e SC |
42420 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
42421 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t | |
42422 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
42423 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
42424 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
a13a7f89 | 42425 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
a848cd7e | 42426 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
a848cd7e SC |
42427 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
42428 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
42429 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
42430 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
42431 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
42432 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
42433 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
42434 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
9a8f0513 VS |
42435 | s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t |
42436 | s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t | |
42437 | s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t | |
ceec2216 | 42438 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
42439 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
42440 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
42441 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t |
42442 | s,@USE_GUI@,$USE_GUI,;t t | |
42443 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
42444 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
42445 | s,@TOOLKIT@,$TOOLKIT,;t t | |
42446 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 42447 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 42448 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e SC |
42449 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t |
42450 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
a848cd7e | 42451 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
42452 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
42453 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
42454 | s,@WX_VERSION@,$WX_VERSION,;t t | |
42455 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
42456 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
42457 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
a848cd7e | 42458 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
a848cd7e SC |
42459 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t |
42460 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
42461 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
42462 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
74b84332 | 42463 | s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t |
a848cd7e SC |
42464 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
42465 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
ceec2216 | 42466 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 42467 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
42468 | s,@DISTDIR@,$DISTDIR,;t t |
42469 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
42470 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
42471 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
42472 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
42473 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
42474 | s,@RESFLAGS@,$RESFLAGS,;t t | |
42475 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
42476 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
42477 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
42478 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
42479 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
42480 | s,@MACSETFILE@,$MACSETFILE,;t t | |
42481 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
42482 | s,@GCC@,$GCC,;t t | |
a848cd7e | 42483 | s,@DLLTOOL@,$DLLTOOL,;t t |
a848cd7e SC |
42484 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
42485 | s,@LIBOBJS@,$LIBOBJS,;t t | |
42486 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
42487 | CEOF | |
42488 | ||
42489 | _ACEOF | |
42490 | ||
42491 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42492 | # Split the substitutions into bite-sized pieces for seds with | |
42493 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
42494 | ac_max_sed_lines=48 | |
42495 | ac_sed_frag=1 # Number of current file. | |
42496 | ac_beg=1 # First line for current file. | |
42497 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
42498 | ac_more_lines=: | |
42499 | ac_sed_cmds= | |
42500 | while $ac_more_lines; do | |
42501 | if test $ac_beg -gt 1; then | |
42502 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
42503 | else | |
42504 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
42505 | fi | |
42506 | if test ! -s $tmp/subs.frag; then | |
42507 | ac_more_lines=false | |
42508 | else | |
42509 | # The purpose of the label and of the branching condition is to | |
42510 | # speed up the sed processing (if there are no `@' at all, there | |
42511 | # is no need to browse any of the substitutions). | |
42512 | # These are the two extra sed commands mentioned above. | |
42513 | (echo ':t | |
42514 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
42515 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 42516 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 42517 | else |
ac1cb8d3 | 42518 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
42519 | fi |
42520 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
42521 | ac_beg=$ac_end | |
42522 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
42523 | fi | |
42524 | done | |
42525 | if test -z "$ac_sed_cmds"; then | |
42526 | ac_sed_cmds=cat | |
42527 | fi | |
42528 | fi # test -n "$CONFIG_FILES" | |
42529 | ||
42530 | _ACEOF | |
42531 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42532 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
42533 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
42534 | case $ac_file in | |
42535 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
42536 | cat >$tmp/stdin |
42537 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
42538 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 42539 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 42540 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
42541 | * ) ac_file_in=$ac_file.in ;; |
42542 | esac | |
42543 | ||
42544 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
42545 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
42546 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42547 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
42548 | X"$ac_file" : 'X\(//\)$' \| \ | |
42549 | X"$ac_file" : 'X\(/\)' \| \ | |
42550 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42551 | echo X"$ac_file" | |
42552 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42553 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42554 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42555 | /^X\(\/\).*/{ s//\1/; q; } | |
42556 | s/.*/./; q'` | |
42557 | { if $as_mkdir_p; then | |
42558 | mkdir -p "$ac_dir" | |
42559 | else | |
42560 | as_dir="$ac_dir" | |
42561 | as_dirs= | |
42562 | while test ! -d "$as_dir"; do | |
42563 | as_dirs="$as_dir $as_dirs" | |
42564 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42565 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42566 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
42567 | X"$as_dir" : 'X\(//\)$' \| \ | |
42568 | X"$as_dir" : 'X\(/\)' \| \ | |
42569 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42570 | echo X"$as_dir" | |
42571 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42572 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42573 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42574 | /^X\(\/\).*/{ s//\1/; q; } | |
42575 | s/.*/./; q'` | |
42576 | done | |
42577 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42578 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42579 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42580 | { (exit 1); exit 1; }; }; } | |
42581 | ||
42582 | ac_builddir=. | |
42583 | ||
42584 | if test "$ac_dir" != .; then | |
42585 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
42586 | # A "../" for each directory in $ac_dir_suffix. | |
42587 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
42588 | else | |
42589 | ac_dir_suffix= ac_top_builddir= | |
42590 | fi | |
42591 | ||
42592 | case $srcdir in | |
42593 | .) # No --srcdir option. We are building in place. | |
42594 | ac_srcdir=. | |
42595 | if test -z "$ac_top_builddir"; then | |
42596 | ac_top_srcdir=. | |
42597 | else | |
42598 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
42599 | fi ;; | |
42600 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
42601 | ac_srcdir=$srcdir$ac_dir_suffix; | |
42602 | ac_top_srcdir=$srcdir ;; | |
42603 | *) # Relative path. | |
42604 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
42605 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
42606 | esac | |
ac1cb8d3 VS |
42607 | |
42608 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
42609 | # the directories may not exist. | |
42610 | case `pwd` in | |
42611 | .) ac_abs_builddir="$ac_dir";; | |
42612 | *) | |
42613 | case "$ac_dir" in | |
42614 | .) ac_abs_builddir=`pwd`;; | |
42615 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
42616 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
42617 | esac;; | |
42618 | esac | |
42619 | case $ac_abs_builddir in | |
42620 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42621 | *) | |
42622 | case ${ac_top_builddir}. in | |
42623 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
42624 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42625 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
42626 | esac;; | |
42627 | esac | |
42628 | case $ac_abs_builddir in | |
42629 | .) ac_abs_srcdir=$ac_srcdir;; | |
42630 | *) | |
42631 | case $ac_srcdir in | |
42632 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
42633 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
42634 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
42635 | esac;; | |
42636 | esac | |
42637 | case $ac_abs_builddir in | |
42638 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42639 | *) | |
42640 | case $ac_top_srcdir in | |
42641 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
42642 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42643 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
42644 | esac;; | |
42645 | esac | |
a848cd7e SC |
42646 | |
42647 | ||
42648 | case $INSTALL in | |
42649 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
42650 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
42651 | esac | |
42652 | ||
c228d3a4 RN |
42653 | if test x"$ac_file" != x-; then |
42654 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
42655 | echo "$as_me: creating $ac_file" >&6;} | |
42656 | rm -f "$ac_file" | |
42657 | fi | |
a848cd7e SC |
42658 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
42659 | # use $as_me), people would be surprised to read: | |
42660 | # /* config.h. Generated by config.status. */ | |
42661 | if test x"$ac_file" = x-; then | |
42662 | configure_input= | |
42663 | else | |
42664 | configure_input="$ac_file. " | |
42665 | fi | |
42666 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 42667 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
42668 | |
42669 | # First look for the input files in the build tree, otherwise in the | |
42670 | # src tree. | |
42671 | ac_file_inputs=`IFS=: | |
42672 | for f in $ac_file_in; do | |
42673 | case $f in | |
42674 | -) echo $tmp/stdin ;; | |
42675 | [\\/$]*) | |
ac1cb8d3 VS |
42676 | # Absolute (can't be DOS-style, as IFS=:) |
42677 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42678 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42679 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 42680 | echo "$f";; |
a848cd7e | 42681 | *) # Relative |
ac1cb8d3 VS |
42682 | if test -f "$f"; then |
42683 | # Build tree | |
42684 | echo "$f" | |
42685 | elif test -f "$srcdir/$f"; then | |
42686 | # Source tree | |
42687 | echo "$srcdir/$f" | |
42688 | else | |
42689 | # /dev/null tree | |
42690 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42691 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42692 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 42693 | fi;; |
a848cd7e SC |
42694 | esac |
42695 | done` || { (exit 1); exit 1; } | |
42696 | _ACEOF | |
42697 | cat >>$CONFIG_STATUS <<_ACEOF | |
42698 | sed "$ac_vpsub | |
42699 | $extrasub | |
42700 | _ACEOF | |
42701 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42702 | :t | |
42703 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
42704 | s,@configure_input@,$configure_input,;t t | |
42705 | s,@srcdir@,$ac_srcdir,;t t | |
42706 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
42707 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
42708 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
42709 | s,@builddir@,$ac_builddir,;t t | |
42710 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
42711 | s,@top_builddir@,$ac_top_builddir,;t t | |
42712 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
42713 | s,@INSTALL@,$ac_INSTALL,;t t | |
42714 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
42715 | rm -f $tmp/stdin | |
42716 | if test x"$ac_file" != x-; then | |
42717 | mv $tmp/out $ac_file | |
42718 | else | |
42719 | cat $tmp/out | |
42720 | rm -f $tmp/out | |
42721 | fi | |
42722 | ||
ceec2216 RL |
42723 | # Run the commands associated with the file. |
42724 | case $ac_file in | |
42725 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
42726 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
42727 | esac | |
a848cd7e SC |
42728 | done |
42729 | _ACEOF | |
42730 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42731 | ||
42732 | # | |
42733 | # CONFIG_HEADER section. | |
42734 | # | |
42735 | ||
42736 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
42737 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
42738 | # | |
42739 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
42740 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
42741 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
42742 | ac_dC=' ' |
42743 | ac_dD=',;t' | |
42744 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 42745 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
42746 | ac_uB='$,\1#\2define\3' |
42747 | ac_uC=' ' | |
42748 | ac_uD=',;t' | |
42749 | ||
42750 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
42751 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
42752 | case $ac_file in | |
42753 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
42754 | cat >$tmp/stdin |
42755 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
42756 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 42757 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 42758 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
42759 | * ) ac_file_in=$ac_file.in ;; |
42760 | esac | |
42761 | ||
42762 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
42763 | echo "$as_me: creating $ac_file" >&6;} | |
42764 | ||
42765 | # First look for the input files in the build tree, otherwise in the | |
42766 | # src tree. | |
42767 | ac_file_inputs=`IFS=: | |
42768 | for f in $ac_file_in; do | |
42769 | case $f in | |
42770 | -) echo $tmp/stdin ;; | |
42771 | [\\/$]*) | |
ac1cb8d3 VS |
42772 | # Absolute (can't be DOS-style, as IFS=:) |
42773 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42774 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42775 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
42776 | # Do quote $f, to prevent DOS paths from being IFS'd. |
42777 | echo "$f";; | |
a848cd7e | 42778 | *) # Relative |
ac1cb8d3 VS |
42779 | if test -f "$f"; then |
42780 | # Build tree | |
42781 | echo "$f" | |
42782 | elif test -f "$srcdir/$f"; then | |
42783 | # Source tree | |
42784 | echo "$srcdir/$f" | |
42785 | else | |
42786 | # /dev/null tree | |
42787 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42788 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42789 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 42790 | fi;; |
a848cd7e SC |
42791 | esac |
42792 | done` || { (exit 1); exit 1; } | |
42793 | # Remove the trailing spaces. | |
ac1cb8d3 | 42794 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
42795 | |
42796 | _ACEOF | |
42797 | ||
42798 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
42799 | # `conftest.undefs', that substitutes the proper values into | |
42800 | # config.h.in to produce config.h. The first handles `#define' | |
42801 | # templates, and the second `#undef' templates. | |
42802 | # And first: Protect against being on the right side of a sed subst in | |
42803 | # config.status. Protect against being in an unquoted here document | |
42804 | # in config.status. | |
42805 | rm -f conftest.defines conftest.undefs | |
42806 | # Using a here document instead of a string reduces the quoting nightmare. | |
42807 | # Putting comments in sed scripts is not portable. | |
42808 | # | |
42809 | # `end' is used to avoid that the second main sed command (meant for | |
42810 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
42811 | # See the Autoconf documentation for `clear'. | |
42812 | cat >confdef2sed.sed <<\_ACEOF | |
42813 | s/[\\&,]/\\&/g | |
42814 | s,[\\$`],\\&,g | |
42815 | t clear | |
42816 | : clear | |
ac1cb8d3 | 42817 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 42818 | t end |
ac1cb8d3 | 42819 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
42820 | : end |
42821 | _ACEOF | |
42822 | # If some macros were called several times there might be several times | |
42823 | # the same #defines, which is useless. Nevertheless, we may not want to | |
42824 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
42825 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
42826 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
42827 | rm -f confdef2sed.sed | |
42828 | ||
42829 | # This sed command replaces #undef with comments. This is necessary, for | |
42830 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
42831 | # on some systems where configure will not decide to define it. | |
42832 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 42833 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
42834 | _ACEOF |
42835 | ||
42836 | # Break up conftest.defines because some shells have a limit on the size | |
42837 | # of here documents, and old seds have small limits too (100 cmds). | |
42838 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 42839 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
42840 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
42841 | echo ' :' >>$CONFIG_STATUS | |
42842 | rm -f conftest.tail | |
42843 | while grep . conftest.defines >/dev/null | |
42844 | do | |
42845 | # Write a limited-size here document to $tmp/defines.sed. | |
42846 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
42847 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 42848 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
42849 | # Work around the forget-to-reset-the-flag bug. |
42850 | echo 't clr' >>$CONFIG_STATUS | |
42851 | echo ': clr' >>$CONFIG_STATUS | |
42852 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
42853 | echo 'CEOF | |
42854 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
42855 | rm -f $tmp/in | |
42856 | mv $tmp/out $tmp/in | |
42857 | ' >>$CONFIG_STATUS | |
42858 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
42859 | rm -f conftest.defines | |
42860 | mv conftest.tail conftest.defines | |
42861 | done | |
42862 | rm -f conftest.defines | |
42863 | echo ' fi # grep' >>$CONFIG_STATUS | |
42864 | echo >>$CONFIG_STATUS | |
42865 | ||
42866 | # Break up conftest.undefs because some shells have a limit on the size | |
42867 | # of here documents, and old seds have small limits too (100 cmds). | |
42868 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
42869 | rm -f conftest.tail | |
42870 | while grep . conftest.undefs >/dev/null | |
42871 | do | |
42872 | # Write a limited-size here document to $tmp/undefs.sed. | |
42873 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
42874 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 42875 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
42876 | # Work around the forget-to-reset-the-flag bug. |
42877 | echo 't clr' >>$CONFIG_STATUS | |
42878 | echo ': clr' >>$CONFIG_STATUS | |
42879 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
42880 | echo 'CEOF | |
42881 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
42882 | rm -f $tmp/in | |
42883 | mv $tmp/out $tmp/in | |
42884 | ' >>$CONFIG_STATUS | |
42885 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
42886 | rm -f conftest.undefs | |
42887 | mv conftest.tail conftest.undefs | |
42888 | done | |
42889 | rm -f conftest.undefs | |
42890 | ||
42891 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42892 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
42893 | # use $as_me), people would be surprised to read: | |
42894 | # /* config.h. Generated by config.status. */ | |
42895 | if test x"$ac_file" = x-; then | |
42896 | echo "/* Generated by configure. */" >$tmp/config.h | |
42897 | else | |
42898 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
42899 | fi | |
42900 | cat $tmp/in >>$tmp/config.h | |
42901 | rm -f $tmp/in | |
42902 | if test x"$ac_file" != x-; then | |
42903 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
42904 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
42905 | echo "$as_me: $ac_file is unchanged" >&6;} | |
42906 | else | |
42907 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
42908 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42909 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
42910 | X"$ac_file" : 'X\(//\)$' \| \ | |
42911 | X"$ac_file" : 'X\(/\)' \| \ | |
42912 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42913 | echo X"$ac_file" | |
42914 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42915 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42916 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42917 | /^X\(\/\).*/{ s//\1/; q; } | |
42918 | s/.*/./; q'` | |
42919 | { if $as_mkdir_p; then | |
42920 | mkdir -p "$ac_dir" | |
42921 | else | |
42922 | as_dir="$ac_dir" | |
42923 | as_dirs= | |
42924 | while test ! -d "$as_dir"; do | |
42925 | as_dirs="$as_dir $as_dirs" | |
42926 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42927 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42928 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
42929 | X"$as_dir" : 'X\(//\)$' \| \ | |
42930 | X"$as_dir" : 'X\(/\)' \| \ | |
42931 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42932 | echo X"$as_dir" | |
42933 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42934 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42935 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42936 | /^X\(\/\).*/{ s//\1/; q; } | |
42937 | s/.*/./; q'` | |
42938 | done | |
42939 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42940 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42941 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42942 | { (exit 1); exit 1; }; }; } | |
42943 | ||
42944 | rm -f $ac_file | |
42945 | mv $tmp/config.h $ac_file | |
42946 | fi | |
42947 | else | |
42948 | cat $tmp/config.h | |
42949 | rm -f $tmp/config.h | |
42950 | fi | |
42951 | done | |
42952 | _ACEOF | |
42953 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42954 | ||
42955 | # | |
42956 | # CONFIG_COMMANDS section. | |
42957 | # | |
42958 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
42959 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
42960 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
42961 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
42962 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42963 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
42964 | X"$ac_dest" : 'X\(//\)$' \| \ | |
42965 | X"$ac_dest" : 'X\(/\)' \| \ | |
42966 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42967 | echo X"$ac_dest" | |
42968 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42969 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42970 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42971 | /^X\(\/\).*/{ s//\1/; q; } | |
42972 | s/.*/./; q'` | |
ac1cb8d3 VS |
42973 | { if $as_mkdir_p; then |
42974 | mkdir -p "$ac_dir" | |
42975 | else | |
42976 | as_dir="$ac_dir" | |
42977 | as_dirs= | |
42978 | while test ! -d "$as_dir"; do | |
42979 | as_dirs="$as_dir $as_dirs" | |
42980 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42981 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
42982 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
42983 | X"$as_dir" : 'X\(//\)$' \| \ | |
42984 | X"$as_dir" : 'X\(/\)' \| \ | |
42985 | . : '\(.\)' 2>/dev/null || | |
42986 | echo X"$as_dir" | | |
42987 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42988 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42989 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42990 | /^X\(\/\).*/{ s//\1/; q; } | |
42991 | s/.*/./; q'` | |
42992 | done | |
42993 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42994 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42995 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42996 | { (exit 1); exit 1; }; }; } | |
42997 | ||
a848cd7e SC |
42998 | ac_builddir=. |
42999 | ||
43000 | if test "$ac_dir" != .; then | |
43001 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
43002 | # A "../" for each directory in $ac_dir_suffix. | |
43003 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
43004 | else | |
43005 | ac_dir_suffix= ac_top_builddir= | |
43006 | fi | |
43007 | ||
43008 | case $srcdir in | |
43009 | .) # No --srcdir option. We are building in place. | |
43010 | ac_srcdir=. | |
43011 | if test -z "$ac_top_builddir"; then | |
43012 | ac_top_srcdir=. | |
43013 | else | |
43014 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
43015 | fi ;; | |
43016 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
43017 | ac_srcdir=$srcdir$ac_dir_suffix; | |
43018 | ac_top_srcdir=$srcdir ;; | |
43019 | *) # Relative path. | |
43020 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
43021 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
43022 | esac | |
ac1cb8d3 VS |
43023 | |
43024 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
43025 | # the directories may not exist. | |
43026 | case `pwd` in | |
43027 | .) ac_abs_builddir="$ac_dir";; | |
43028 | *) | |
43029 | case "$ac_dir" in | |
43030 | .) ac_abs_builddir=`pwd`;; | |
43031 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
43032 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
43033 | esac;; | |
43034 | esac | |
43035 | case $ac_abs_builddir in | |
43036 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43037 | *) | |
43038 | case ${ac_top_builddir}. in | |
43039 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
43040 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43041 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
43042 | esac;; | |
43043 | esac | |
43044 | case $ac_abs_builddir in | |
43045 | .) ac_abs_srcdir=$ac_srcdir;; | |
43046 | *) | |
43047 | case $ac_srcdir in | |
43048 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
43049 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
43050 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
43051 | esac;; | |
43052 | esac | |
43053 | case $ac_abs_builddir in | |
43054 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43055 | *) | |
43056 | case $ac_top_srcdir in | |
43057 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
43058 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43059 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
43060 | esac;; | |
43061 | esac | |
a848cd7e SC |
43062 | |
43063 | ||
43064 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
43065 | echo "$as_me: executing $ac_dest commands" >&6;} | |
43066 | case $ac_dest in | |
ceec2216 RL |
43067 | wx-config ) rm -f wx-config |
43068 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
43069 | ;; | |
a848cd7e SC |
43070 | esac |
43071 | done | |
43072 | _ACEOF | |
43073 | ||
43074 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43075 | ||
43076 | { (exit 0); exit 0; } | |
43077 | _ACEOF | |
43078 | chmod +x $CONFIG_STATUS | |
43079 | ac_clean_files=$ac_clean_files_save | |
43080 | ||
43081 | ||
43082 | # configure is writing to config.log, and then calls config.status. | |
43083 | # config.status does its own redirection, appending to config.log. | |
43084 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
43085 | # by configure, so config.status won't be able to write to it; its | |
43086 | # output is simply discarded. So we exec the FD to /dev/null, | |
43087 | # effectively closing config.log, so it can be properly (re)opened and | |
43088 | # appended to by config.status. When coming back to configure, we | |
43089 | # need to make the FD available again. | |
43090 | if test "$no_create" != yes; then | |
43091 | ac_cs_success=: | |
43092 | ac_config_status_args= | |
43093 | test "$silent" = yes && | |
43094 | ac_config_status_args="$ac_config_status_args --quiet" | |
43095 | exec 5>/dev/null | |
43096 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
43097 | exec 5>>config.log | |
43098 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
43099 | # would make configure fail if this is the last instruction. | |
43100 | $ac_cs_success || { (exit 1); exit 1; } | |
43101 | fi | |
43102 | ||
43103 | # | |
43104 | # CONFIG_SUBDIRS section. | |
43105 | # | |
43106 | if test "$no_recursion" != yes; then | |
43107 | ||
43108 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
43109 | ac_sub_configure_args= | |
43110 | ac_prev= | |
43111 | for ac_arg in $ac_configure_args; do | |
43112 | if test -n "$ac_prev"; then | |
43113 | ac_prev= | |
43114 | continue | |
43115 | fi | |
43116 | case $ac_arg in | |
43117 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
43118 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
43119 | ac_prev=cache_file ;; | |
43120 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
43121 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
43122 | | --c=*) | |
43123 | ;; | |
43124 | --config-cache | -C) | |
43125 | ;; | |
43126 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
43127 | ac_prev=srcdir ;; | |
43128 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
43129 | ;; | |
43130 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
43131 | ac_prev=prefix ;; | |
43132 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
43133 | ;; | |
43134 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
43135 | esac | |
43136 | done | |
43137 | ||
43138 | # Always prepend --prefix to ensure using the same prefix | |
43139 | # in subdir configurations. | |
43140 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
43141 | ||
43142 | ac_popdir=`pwd` | |
43143 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
43144 | ||
43145 | # Do not complain, so a configure script can configure whichever | |
43146 | # parts of a large source tree are present. | |
43147 | test -d $srcdir/$ac_dir || continue | |
43148 | ||
43149 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
43150 | echo "$as_me: configuring in $ac_dir" >&6;} | |
43151 | { if $as_mkdir_p; then | |
43152 | mkdir -p "$ac_dir" | |
43153 | else | |
43154 | as_dir="$ac_dir" | |
43155 | as_dirs= | |
43156 | while test ! -d "$as_dir"; do | |
43157 | as_dirs="$as_dir $as_dirs" | |
43158 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
43159 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43160 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
43161 | X"$as_dir" : 'X\(//\)$' \| \ | |
43162 | X"$as_dir" : 'X\(/\)' \| \ | |
43163 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43164 | echo X"$as_dir" | |
43165 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43166 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43167 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43168 | /^X\(\/\).*/{ s//\1/; q; } | |
43169 | s/.*/./; q'` | |
43170 | done | |
43171 | test ! -n "$as_dirs" || mkdir $as_dirs | |
43172 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
43173 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
43174 | { (exit 1); exit 1; }; }; } | |
43175 | ||
43176 | ac_builddir=. | |
43177 | ||
43178 | if test "$ac_dir" != .; then | |
43179 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
43180 | # A "../" for each directory in $ac_dir_suffix. | |
43181 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
43182 | else | |
43183 | ac_dir_suffix= ac_top_builddir= | |
43184 | fi | |
43185 | ||
43186 | case $srcdir in | |
43187 | .) # No --srcdir option. We are building in place. | |
43188 | ac_srcdir=. | |
43189 | if test -z "$ac_top_builddir"; then | |
43190 | ac_top_srcdir=. | |
43191 | else | |
43192 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
43193 | fi ;; | |
43194 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
43195 | ac_srcdir=$srcdir$ac_dir_suffix; | |
43196 | ac_top_srcdir=$srcdir ;; | |
43197 | *) # Relative path. | |
43198 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
43199 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
43200 | esac | |
ac1cb8d3 VS |
43201 | |
43202 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
43203 | # the directories may not exist. | |
43204 | case `pwd` in | |
43205 | .) ac_abs_builddir="$ac_dir";; | |
43206 | *) | |
43207 | case "$ac_dir" in | |
43208 | .) ac_abs_builddir=`pwd`;; | |
43209 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
43210 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
43211 | esac;; | |
43212 | esac | |
43213 | case $ac_abs_builddir in | |
43214 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43215 | *) | |
43216 | case ${ac_top_builddir}. in | |
43217 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
43218 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43219 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
43220 | esac;; | |
43221 | esac | |
43222 | case $ac_abs_builddir in | |
43223 | .) ac_abs_srcdir=$ac_srcdir;; | |
43224 | *) | |
43225 | case $ac_srcdir in | |
43226 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
43227 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
43228 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
43229 | esac;; | |
43230 | esac | |
43231 | case $ac_abs_builddir in | |
43232 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43233 | *) | |
43234 | case $ac_top_srcdir in | |
43235 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
43236 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43237 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
43238 | esac;; | |
43239 | esac | |
a848cd7e SC |
43240 | |
43241 | ||
43242 | cd $ac_dir | |
43243 | ||
43244 | # Check for guested configure; otherwise get Cygnus style configure. | |
43245 | if test -f $ac_srcdir/configure.gnu; then | |
43246 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
43247 | elif test -f $ac_srcdir/configure; then | |
43248 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
43249 | elif test -f $ac_srcdir/configure.in; then | |
43250 | ac_sub_configure=$ac_configure | |
43251 | else | |
43252 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
43253 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
43254 | ac_sub_configure= | |
43255 | fi | |
43256 | ||
43257 | # The recursion is here. | |
43258 | if test -n "$ac_sub_configure"; then | |
43259 | # Make the cache file name correct relative to the subdirectory. | |
43260 | case $cache_file in | |
43261 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
43262 | *) # Relative path. | |
ac1cb8d3 | 43263 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
43264 | esac |
43265 | ||
43266 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
43267 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
43268 | # The eval makes quoting arguments work. | |
43269 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
43270 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
43271 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
43272 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
43273 | { (exit 1); exit 1; }; } | |
43274 | fi | |
43275 | ||
c228d3a4 | 43276 | cd $ac_popdir |
a848cd7e SC |
43277 | done |
43278 | fi | |
43279 | ||
43280 | ||
43281 | echo | |
77ffb593 | 43282 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 43283 | echo "" |
4d4ff94c | 43284 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 43285 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 43286 | |
77ffb593 JS |
43287 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
43288 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
43289 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 43290 | |
77ffb593 JS |
43291 | echo " What level of wxWidgets compatibility should be enabled?" |
43292 | echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" | |
43293 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
a848cd7e | 43294 | |
77ffb593 | 43295 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
43296 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
43297 | echo " png ${wxUSE_LIBPNG-none}" | |
43298 | echo " regex ${wxUSE_REGEX}" | |
43299 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
43300 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
43301 | echo " xpm ${wxUSE_LIBXPM-none}" | |
43302 | fi | |
43303 | echo " zlib ${wxUSE_ZLIB}" | |
43304 | echo " odbc ${wxUSE_ODBC}" | |
43305 | echo " expat ${wxUSE_EXPAT}" | |
43306 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
43307 | echo " sdl ${wxUSE_LIBSDL}" | |
43308 | ||
43309 | echo "" | |
43310 |